{
  "openapi": "3.1.0",
  "info": {
    "title": "Runearc REST API",
    "version": "1",
    "description": "Email infrastructure for apps and agents. Source-derived request and response contracts. API keys and sessions use Authorization: Bearer; session requests may select a workspace with Runearc-Workspace.",
    "license": {
      "name": "Runearc terms",
      "url": "https://runearc.com/legal/terms"
    },
    "contact": {
      "email": "hello@runearc.com",
      "url": "https://runearc.com"
    }
  },
  "servers": [
    {
      "url": "https://api.runearc.com"
    }
  ],
  "paths": {
    "/v1/account": {
      "delete": {
        "operationId": "runearc_api_account_delete_account_delete__v1_account",
        "summary": "Delete account",
        "tags": [
          "account"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/account.rs:44",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__account__DeleteBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__account_data__DeletedAccount_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/account/export": {
      "get": {
        "operationId": "runearc_api_account_export_get__v1_account_export",
        "summary": "Export",
        "tags": [
          "account"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/account.rs:22",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "runearc_account_export"
                    },
                    "exported_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "profile": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_login_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "last_login_at",
                        "created_at"
                      ]
                    },
                    "memberships": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "workspace_id": {
                            "type": "string"
                          },
                          "workspace_name": {
                            "type": "string"
                          },
                          "workspace_slug": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "joined_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "workspace_id",
                          "workspace_name",
                          "workspace_slug",
                          "role",
                          "joined_at"
                        ]
                      }
                    },
                    "sessions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "last_seen_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expires_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "current": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "created_at",
                          "last_seen_at",
                          "expires_at",
                          "current"
                        ]
                      }
                    },
                    "app_passwords": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          },
                          "workspace_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "last_used_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "revoked_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "kind",
                          "username",
                          "workspace_id",
                          "created_at",
                          "last_used_at",
                          "revoked_at"
                        ]
                      }
                    },
                    "oauth_identities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": {
                          "description": "Arbitrary JSON, as stored by the source; its keys are application-defined."
                        }
                      }
                    },
                    "domain_layouts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "workspace_id": {
                            "type": "string"
                          },
                          "items": {
                            "description": "Arbitrary JSON, as stored by the source; its keys are application-defined."
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "workspace_id",
                          "items",
                          "updated_at"
                        ]
                      }
                    },
                    "user_dismissals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "workspace_id": {
                            "type": "string"
                          },
                          "notice": {
                            "type": "string"
                          },
                          "dismissed_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "workspace_id",
                          "notice",
                          "dismissed_at"
                        ]
                      }
                    },
                    "audit_events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "workspace_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "action": {
                            "type": "string"
                          },
                          "target_type": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "target_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "target_label": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "metadata": {
                            "description": "Arbitrary JSON, as stored by the source; its keys are application-defined."
                          },
                          "ip": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "workspace_id",
                          "action",
                          "target_type",
                          "target_id",
                          "target_label",
                          "metadata",
                          "ip",
                          "created_at"
                        ]
                      }
                    }
                  },
                  "required": [
                    "type",
                    "exported_at",
                    "profile",
                    "memberships",
                    "sessions",
                    "app_passwords",
                    "oauth_identities",
                    "domain_layouts",
                    "user_dismissals",
                    "audit_events"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Download the signed-in user’s personal data. OAuth identity rows follow the exported database records; their additional keys are intentionally open.",
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/admin/paused-workspaces": {
      "get": {
        "operationId": "runearc_api_admin_list_paused_get__v1_admin_paused_workspaces",
        "summary": "List paused",
        "tags": [
          "admin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/admin.rs:27",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__admin_PausedWorkspace__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a platform administrator session. Other callers receive 404. Workspace selection is ignored."
      }
    },
    "/v1/admin/waitlist": {
      "get": {
        "operationId": "runearc_api_waitlist_list_get__v1_admin_waitlist",
        "summary": "List",
        "tags": [
          "waitlist"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/waitlist.rs:120",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__waitlist_WaitlistEntry__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a platform administrator session. Other callers receive 404. Workspace selection is ignored."
      }
    },
    "/v1/admin/waitlist/{id}/decline": {
      "post": {
        "operationId": "runearc_api_waitlist_decline_post__v1_admin_waitlist__id__decline",
        "summary": "Decline",
        "tags": [
          "waitlist"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/waitlist.rs:145",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__waitlist__WaitlistEntry_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a platform administrator session. Other callers receive 404. Workspace selection is ignored."
      }
    },
    "/v1/admin/waitlist/{id}/invite": {
      "post": {
        "operationId": "runearc_api_waitlist_invite_post__v1_admin_waitlist__id__invite",
        "summary": "Invite",
        "tags": [
          "waitlist"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/waitlist.rs:137",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__waitlist__WaitlistEntry_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a platform administrator session. Other callers receive 404. Workspace selection is ignored."
      }
    },
    "/v1/admin/workspaces/{id}/unpause": {
      "post": {
        "operationId": "runearc_api_admin_unpause_post__v1_admin_workspaces__id__unpause",
        "summary": "Unpause",
        "tags": [
          "admin"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/admin.rs:36",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__orgs__Org_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a platform administrator session. Other callers receive 404. Workspace selection is ignored."
      }
    },
    "/v1/ai/email": {
      "post": {
        "operationId": "runearc_api_ai_email_post__v1_ai_email",
        "summary": "Email",
        "tags": [
          "ai"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/ai.rs:45",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__ai__generate__GenerateEmailRequest_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__ai__generate__GeneratedEmail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/ai/sequence": {
      "post": {
        "operationId": "runearc_api_ai_sequence_post__v1_ai_sequence",
        "summary": "Sequence",
        "tags": [
          "ai"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/ai.rs:57",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__ai__generate__GenerateSequenceRequest_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__ai__generate__SequenceDraft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/ai/usage": {
      "get": {
        "operationId": "runearc_api_ai_usage_get__v1_ai_usage",
        "summary": "Usage",
        "tags": [
          "ai"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/ai.rs:69",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__ai__usage__AiUsage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/analytics": {
      "get": {
        "operationId": "runearc_api_analytics_analytics_get__v1_analytics",
        "summary": "Analytics",
        "tags": [
          "analytics"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/analytics.rs:20",
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "step_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "subscriber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__analytics__AnalyticsReport_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/app-passwords/{id}": {
      "delete": {
        "operationId": "runearc_api_app_passwords_revoke_app_password_delete__v1_app_passwords__id_",
        "summary": "Revoke app password",
        "tags": [
          "app_passwords"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/app_passwords.rs:62",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/attachments/{id}": {
      "get": {
        "operationId": "runearc_api_get_attachment_get__v1_attachments__id_",
        "summary": "Get attachment",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:569",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Attachment bytes; Content-Type is the stored attachment MIME type, with Content-Disposition.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit": {
      "get": {
        "operationId": "runearc_api_audit_list_audit_get__v1_audit",
        "summary": "List audit",
        "tags": [
          "audit"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audit.rs:26",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Events at or after this time: RFC 3339 (`2026-10-01T09:00:00Z`) or a date (`2026-10-01`, from the start of that day UTC)."
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Events before this time: RFC 3339, or a date (up to the end of that day UTC, so `from=2026-10-01&to=2026-10-01` is that one day)."
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The `next_cursor` of the previous page: events older than this one."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Page_runearc_api__audit_AuditEvent__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit/export": {
      "get": {
        "operationId": "runearc_api_audit_export_audit_get__v1_audit_export",
        "summary": "Export audit",
        "tags": [
          "audit"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audit.rs:52",
        "description": "`GET /v1/audit/export`: the log as CSV or newline delimited JSON, streamed\nin keyset pages. Permission, range and format errors come back as normal\nJSON errors before the first byte.",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "CSV or newline-delimited JSON stream selected with format.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/apple": {
      "post": {
        "operationId": "runearc_api_auth_apple_login_post__v1_auth_apple",
        "summary": "Apple login",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:149",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__auth__LoginOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__apple_auth__AppleLogin_input"
              }
            }
          }
        }
      }
    },
    "/v1/auth/email": {
      "post": {
        "operationId": "runearc_api_auth_request_login_post__v1_auth_email",
        "summary": "Request login",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:108",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__EmailBody_input"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__auth__Sent_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/logout": {
      "post": {
        "operationId": "runearc_api_auth_logout_post__v1_auth_logout",
        "summary": "Logout",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:309",
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/logout-all": {
      "post": {
        "operationId": "runearc_api_auth_logout_all_post__v1_auth_logout_all",
        "summary": "Logout all",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:314",
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/mfa": {
      "get": {
        "operationId": "runearc_api_auth_mfa_status_get__v1_auth_mfa",
        "summary": "Mfa status",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:245",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mfa__MfaStatus_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/mfa/confirm": {
      "post": {
        "operationId": "runearc_api_auth_mfa_confirm_post__v1_auth_mfa_confirm",
        "summary": "Mfa confirm",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:256",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__CodeBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mfa__RecoveryCodes_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/mfa/disable": {
      "post": {
        "operationId": "runearc_api_auth_mfa_disable_post__v1_auth_mfa_disable",
        "summary": "Mfa disable",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:265",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__CodeBody_input"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/mfa/enrol": {
      "post": {
        "operationId": "runearc_api_auth_mfa_enrol_post__v1_auth_mfa_enrol",
        "summary": "Mfa enrol",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:249",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mfa__MfaEnrolment_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/mfa/recovery-codes": {
      "post": {
        "operationId": "runearc_api_auth_mfa_recovery_codes_post__v1_auth_mfa_recovery_codes",
        "summary": "Mfa recovery codes",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:275",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__CodeBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mfa__RecoveryCodes_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/auth/mfa/verify": {
      "post": {
        "operationId": "runearc_api_auth_mfa_verify_post__v1_auth_mfa_verify",
        "summary": "Mfa verify",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:294",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__MfaVerifyBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__auth__LoginSession_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oauth": {
      "post": {
        "operationId": "runearc_api_auth_oauth_login_post__v1_auth_oauth",
        "summary": "Oauth login",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:224",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__OAuthLoginBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__auth__LoginOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oauth/providers": {
      "get": {
        "operationId": "runearc_api_auth_oauth_providers_get__v1_auth_oauth_providers",
        "summary": "Oauth providers",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:187",
        "description": "Which \"Sign in with\" buttons the login page may show.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__auth__Providers_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oauth/start": {
      "post": {
        "operationId": "runearc_api_auth_oauth_start_post__v1_auth_oauth_start",
        "summary": "Oauth start",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:206",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__OAuthStartBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__auth__OAuthUrl_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/verify": {
      "post": {
        "operationId": "runearc_api_auth_verify_post__v1_auth_verify",
        "summary": "Verify",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:126",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__VerifyBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__auth__LoginOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing": {
      "get": {
        "operationId": "runearc_api_plan_billing_status_get__v1_billing",
        "summary": "Status",
        "tags": [
          "plan_billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/plan_billing.rs:26",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__subscriptions__BillingStatus_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/billing/checkout": {
      "post": {
        "operationId": "runearc_api_plan_billing_checkout_post__v1_billing_checkout",
        "summary": "Checkout",
        "tags": [
          "plan_billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/plan_billing.rs:35",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__plan_billing__Checkout_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__subscriptions__BillingRedirect_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/billing/portal": {
      "post": {
        "operationId": "runearc_api_plan_billing_portal_post__v1_billing_portal",
        "summary": "Portal",
        "tags": [
          "plan_billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/plan_billing.rs:50",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__subscriptions__BillingRedirect_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/bulk-operations": {
      "post": {
        "operationId": "runearc_api_audience_import_start_bulk_post__v1_bulk_operations",
        "summary": "Start bulk",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:139",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__audience_bulk__BulkRequest_input"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_bulk__BulkOperation_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/bulk-operations/{id}": {
      "get": {
        "operationId": "runearc_api_audience_import_get_bulk_get__v1_bulk_operations__id_",
        "summary": "Get bulk",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:157",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_bulk__BulkOperation_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaign-designs": {
      "get": {
        "operationId": "runearc_api_campaigns_designs_get__v1_campaign_designs",
        "summary": "Designs",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:183",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__campaigns_Design__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/campaigns": {
      "get": {
        "operationId": "runearc_api_campaigns_list_get__v1_campaigns",
        "summary": "List",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:72",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__campaigns_Campaign__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_campaigns_create_post__v1_campaigns",
        "summary": "Create",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:82",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__campaigns__CreateBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/campaigns/{id}": {
      "delete": {
        "operationId": "runearc_api_campaigns_remove_delete__v1_campaigns__id_",
        "summary": "Remove",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:118",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_campaigns_show_get__v1_campaigns__id_",
        "summary": "Show",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:97",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_campaigns_update_patch__v1_campaigns__id_",
        "summary": "Update",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:105",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__campaigns__CampaignPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/cancel": {
      "post": {
        "operationId": "runearc_api_campaigns_cancel_post__v1_campaigns__id__cancel",
        "summary": "Cancel",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:175",
        "description": "Stops sending. Mail already handed to the transport is not recalled.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/pause": {
      "post": {
        "operationId": "runearc_api_campaigns_pause_post__v1_campaigns__id__pause",
        "summary": "Pause",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:158",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/resume": {
      "post": {
        "operationId": "runearc_api_campaigns_resume_post__v1_campaigns__id__resume",
        "summary": "Resume",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:166",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/send": {
      "post": {
        "operationId": "runearc_api_campaigns_send_post__v1_campaigns__id__send",
        "summary": "Send",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:140",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__campaigns__SendBody_input"
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/test": {
      "post": {
        "operationId": "runearc_api_campaigns_test_send_post__v1_campaigns__id__test",
        "summary": "Test send",
        "tags": [
          "campaigns"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:127",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__campaigns__TestBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__campaigns_Sent__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contact-fields": {
      "get": {
        "operationId": "runearc_api_audience_list_fields_get__v1_contact_fields",
        "summary": "List fields",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:42",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__audience_ContactField__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_audience_create_field_post__v1_contact_fields",
        "summary": "Create field",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:51",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__audience__CreateField_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience__ContactField_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/contact-fields/{key}": {
      "delete": {
        "operationId": "runearc_api_audience_delete_field_delete__v1_contact_fields__key_",
        "summary": "Delete field",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:70",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contacts": {
      "get": {
        "operationId": "runearc_api_contacts_list_contacts_get__v1_contacts",
        "summary": "List contacts",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:58",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "list_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created_before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Page_runearc_api__contacts_Contact__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_contacts_create_contact_post__v1_contacts",
        "summary": "Create contact",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:88",
        "parameters": [
          {
            "name": "upsert",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__contacts__NewContact_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contacts/counts": {
      "get": {
        "operationId": "runearc_api_contacts_counts_get__v1_contacts_counts",
        "summary": "Counts",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:114",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__ContactCounts_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/contacts/{id}": {
      "delete": {
        "operationId": "runearc_api_contacts_delete_contact_delete__v1_contacts__id_",
        "summary": "Delete contact",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:139",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_contacts_get_contact_get__v1_contacts__id_",
        "summary": "Get contact",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:118",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_contacts_update_contact_patch__v1_contacts__id_",
        "summary": "Update contact",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:126",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__contacts__ContactPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contacts/{id}/events": {
      "get": {
        "operationId": "runearc_api_contact_events_contact_events_get__v1_contacts__id__events",
        "summary": "Contact events",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:82",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contact_events__EventPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contacts/{id}/status": {
      "post": {
        "operationId": "runearc_api_contacts_set_status_post__v1_contacts__id__status",
        "summary": "Set status",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:154",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__contacts__StatusBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contacts/{id}/tags": {
      "post": {
        "operationId": "runearc_api_contacts_add_tags_post__v1_contacts__id__tags",
        "summary": "Add tags",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:170",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__contacts__TagsBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contacts/{id}/tags/{name}": {
      "delete": {
        "operationId": "runearc_api_contacts_remove_tag_delete__v1_contacts__id__tags__name_",
        "summary": "Remove tag",
        "tags": [
          "contacts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contacts.rs:185",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/conversations": {
      "get": {
        "operationId": "runearc_api_conversations_list_get__v1_conversations",
        "summary": "List",
        "tags": [
          "conversations"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/conversations.rs:29",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "`open` (default), `closed`, `snoozed` or `all`."
            }
          },
          {
            "name": "box",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "`any` (default), `inbox` (someone wrote to you), `sent` (you wrote) or `spam` (only spam came in)."
            }
          },
          {
            "name": "assignee",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "`me`, `none` or a user id."
            }
          },
          {
            "name": "inbox_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma separated inbox domains, such as `acme.studio,acme.in` (up to 50)."
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Words to find in the subject, sender or snippet (prefix match)."
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Page_runearc_api__conversations_Conversation__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/conversations/counts": {
      "get": {
        "operationId": "runearc_api_conversations_counts_get__v1_conversations_counts",
        "summary": "Counts",
        "tags": [
          "conversations"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/conversations.rs:44",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__conversations__Counts_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/conversations/{id}": {
      "patch": {
        "operationId": "runearc_api_conversations_update_patch__v1_conversations__id_",
        "summary": "Update",
        "tags": [
          "conversations"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/conversations.rs:48",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__conversations__ConversationUpdate_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__conversations__Conversation_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/conversations/{id}/read": {
      "delete": {
        "operationId": "runearc_api_conversations_mark_unread_delete__v1_conversations__id__read",
        "summary": "Mark unread",
        "tags": [
          "conversations"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/conversations.rs:73",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_conversations_mark_read_post__v1_conversations__id__read",
        "summary": "Mark read",
        "tags": [
          "conversations"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/conversations.rs:64",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/domain-connect/callback": {
      "post": {
        "operationId": "runearc_api_domain_connect_callback_post__v1_domain_connect_callback",
        "summary": "Callback",
        "tags": [
          "domain_connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domain_connect.rs:71",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__domain_connect__Callback_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domain_connect__DomainConnectOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/domains": {
      "get": {
        "operationId": "runearc_api_domains_list_domains_get__v1_domains",
        "summary": "List domains",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:71",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__domains_Domain__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_domains_add_domain_post__v1_domains",
        "summary": "Add domain",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:51",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__domains__AddDomain_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domains__AddedDomain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/domains/analyze": {
      "post": {
        "operationId": "runearc_api_domains_analyze_domain_post__v1_domains_analyze",
        "summary": "Analyze domain",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:62",
        "description": "No side effects: DNS lookups only.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__domains__AddDomain_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__setup__Analysis_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/domains/{id}": {
      "delete": {
        "operationId": "runearc_api_domains_delete_domain_delete__v1_domains__id_",
        "summary": "Delete domain",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:88",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_domains_get_domain_get__v1_domains__id_",
        "summary": "Get domain",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:80",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/domains/{id}/auto-configure": {
      "post": {
        "operationId": "runearc_api_domains_auto_configure_post__v1_domains__id__auto_configure",
        "summary": "Auto configure",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:105",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__domains__AutoConfigure_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domains__AutoConfigured_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/domains/{id}/domain-connect": {
      "get": {
        "operationId": "runearc_api_domain_connect_status_get__v1_domains__id__domain_connect",
        "summary": "Status",
        "tags": [
          "domain_connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domain_connect.rs:50",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domain_connect__DomainConnectStatus_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_domain_connect_start_post__v1_domains__id__domain_connect",
        "summary": "Start",
        "tags": [
          "domain_connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domain_connect.rs:58",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__domain_connect__Start_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domain_connect__DomainConnectStart_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/domains/{id}/verify": {
      "post": {
        "operationId": "runearc_api_domains_verify_domain_post__v1_domains__id__verify",
        "summary": "Verify domain",
        "tags": [
          "domains"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/domains.rs:97",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/drafts": {
      "get": {
        "operationId": "runearc_api_drafts_list_get__v1_drafts",
        "summary": "List",
        "tags": [
          "drafts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/drafts.rs:33",
        "parameters": [
          {
            "name": "inbox_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma separated inbox domains, as for conversations."
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Page_runearc_api__drafts_Draft__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_drafts_create_post__v1_drafts",
        "summary": "Create",
        "tags": [
          "drafts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/drafts.rs:48",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__drafts__Draft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__drafts__DraftInput_input"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/drafts/{id}": {
      "delete": {
        "operationId": "runearc_api_drafts_remove_delete__v1_drafts__id_",
        "summary": "Remove",
        "tags": [
          "drafts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/drafts.rs:78",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_drafts_one_get__v1_drafts__id_",
        "summary": "One",
        "tags": [
          "drafts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/drafts.rs:60",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__drafts__Draft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_drafts_update_patch__v1_drafts__id_",
        "summary": "Update",
        "tags": [
          "drafts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/drafts.rs:68",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__drafts__Draft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__drafts__DraftInput_input"
              }
            }
          }
        }
      }
    },
    "/v1/email-design": {
      "get": {
        "operationId": "runearc_api_email_design_get_brand_get__v1_email_design",
        "summary": "Get brand",
        "tags": [
          "email_design"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/email_design.rs:25",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__email_design__brand__Brand_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "put": {
        "operationId": "runearc_api_email_design_put_brand_put__v1_email_design",
        "summary": "Put brand",
        "tags": [
          "email_design"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/email_design.rs:30",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__email_design__brand__Brand_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__email_design__brand__Brand_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/email-design/design.md": {
      "get": {
        "operationId": "runearc_api_email_design_get_md_get__v1_email_design_design_md",
        "summary": "Get md",
        "tags": [
          "email_design"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/email_design.rs:45",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "put": {
        "operationId": "runearc_api_email_design_put_md_put__v1_email_design_design_md",
        "summary": "Put md",
        "tags": [
          "email_design"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/email_design.rs:51",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__email_design__brand__Brand_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "text/markdown": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/email-design/render": {
      "post": {
        "operationId": "runearc_api_email_design_render_post__v1_email_design_render",
        "summary": "Render",
        "tags": [
          "email_design"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/email_design.rs:77",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__email_design__RenderBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__email_design__RenderedEmail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/emails": {
      "get": {
        "operationId": "runearc_api_emails_list_emails_get__v1_emails",
        "summary": "List emails",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:136",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Page_runearc_api__emails_Email__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_emails_send_email_post__v1_emails",
        "summary": "Send email",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:85",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__emails__EmailRequest_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__emails__Sent_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/emails/batch": {
      "post": {
        "operationId": "runearc_api_emails_send_batch_post__v1_emails_batch",
        "summary": "Send batch",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:103",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__emails__EmailRequest_input"
                },
                "minItems": 1,
                "maxItems": 100
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__emails__BatchAnswer_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "x-batch-validation",
            "in": "header",
            "schema": {
              "type": "string",
              "enum": [
                "strict",
                "permissive"
              ],
              "default": "strict"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "description": "Send 1–100 emails. Permissive mode reports item validation errors in the response instead of rejecting the whole batch."
      }
    },
    "/v1/emails/{id}": {
      "get": {
        "operationId": "runearc_api_emails_get_email_get__v1_emails__id_",
        "summary": "Get email",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:155",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__emails__EmailDetail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_emails_update_email_patch__v1_emails__id_",
        "summary": "Update email",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:163",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__emails__UpdateEmail_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__emails__EmailRef_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/emails/{id}/cancel": {
      "post": {
        "operationId": "runearc_api_emails_cancel_email_post__v1_emails__id__cancel",
        "summary": "Cancel email",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:185",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__emails__EmailRef_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/emails/{id}/tracking": {
      "get": {
        "operationId": "runearc_api_tracking_email_tracking_get__v1_emails__id__tracking",
        "summary": "Email tracking",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:266",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__tracking__events__TrackingCounts_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/event-definitions": {
      "get": {
        "operationId": "runearc_api_contact_events_list_defs_get__v1_event_definitions",
        "summary": "List defs",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:105",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__contact_events_EventDefinition__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_contact_events_create_def_post__v1_event_definitions",
        "summary": "Create def",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:114",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__contact_events__NewEventDefinition_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contact_events__EventDefinition_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/event-definitions/system": {
      "get": {
        "operationId": "runearc_api_contact_events_system_events_get__v1_event_definitions_system",
        "summary": "System events",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:129",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/event-definitions/{id}": {
      "delete": {
        "operationId": "runearc_api_contact_events_delete_def_delete__v1_event_definitions__id_",
        "summary": "Delete def",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:159",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_contact_events_update_def_patch__v1_event_definitions__id_",
        "summary": "Update def",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:143",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__contact_events__DefPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contact_events__EventDefinition_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events": {
      "get": {
        "operationId": "runearc_api_events_list_events_get__v1_events",
        "summary": "List events",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:153",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__events__EventPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_contact_events_track_post__v1_events",
        "summary": "Track",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:46",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Reuse a key only for retries of the same send."
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__contact_events__NewEvent_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contact_events__TrackedEvent_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Event was already recorded for this idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__contact_events__TrackedEvent_output"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/ws": {
      "get": {
        "operationId": "runearc_api_events_events_ws_get__v1_events_ws",
        "summary": "Events ws",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "websocketToken": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:183",
        "description": "Streams events as JSON text frames. Browsers cannot set headers on a\nWebSocket, so the key may also come as `?token=`.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "For sessions: the workspace, as browsers cannot set `Runearc-Workspace` here."
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "101": {
            "description": "WebSocket upgrade. Subsequent JSON text frames carry Event values; this is not a regular HTTP JSON response."
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/form-templates": {
      "get": {
        "operationId": "runearc_api_forms_templates_get__v1_form_templates",
        "summary": "Templates",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:109",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__forms_FormTemplate__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/forms": {
      "get": {
        "operationId": "runearc_api_forms_list_get__v1_forms",
        "summary": "List",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:40",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__forms_Form__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_forms_create_post__v1_forms",
        "summary": "Create",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:46",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__forms__NewForm_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__forms__Form_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/forms/{id}": {
      "delete": {
        "operationId": "runearc_api_forms_remove_delete__v1_forms__id_",
        "summary": "Remove",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:82",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_forms_show_get__v1_forms__id_",
        "summary": "Show",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:61",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__forms__Form_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_forms_update_patch__v1_forms__id_",
        "summary": "Update",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:69",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__forms__FormPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__forms__Form_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/forms/{id}/submissions": {
      "get": {
        "operationId": "runearc_api_forms_submissions_get__v1_forms__id__submissions",
        "summary": "Submissions",
        "tags": [
          "forms"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forms.rs:97",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__forms_FormSubmission__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/forwards/verify": {
      "post": {
        "operationId": "runearc_api_forwards_verify_forward_post__v1_forwards_verify",
        "summary": "Verify forward",
        "tags": [
          "forwards"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/forwards.rs:77",
        "description": "No auth: the link in the confirmation email carries the token.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__forwards__VerifyForward_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__forwarding__VerifiedForward_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/forwards/{id}": {
      "delete": {
        "operationId": "runearc_api_forwards_delete_forward_delete__v1_forwards__id_",
        "summary": "Delete forward",
        "tags": [
          "forwards"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forwards.rs:67",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/goals": {
      "get": {
        "operationId": "runearc_api_contact_events_list_goals_get__v1_goals",
        "summary": "List goals",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:218",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__contact_events_Goal__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_contact_events_create_goal_post__v1_goals",
        "summary": "Create goal",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:224",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__goals__NewGoal_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__goals__Goal_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/goals/{id}": {
      "delete": {
        "operationId": "runearc_api_contact_events_delete_goal_delete__v1_goals__id_",
        "summary": "Delete goal",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:252",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_contact_events_update_goal_patch__v1_goals__id_",
        "summary": "Update goal",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:239",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__goals__GoalPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__goals__Goal_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/goals/{id}/stats": {
      "get": {
        "operationId": "runearc_api_contact_events_goal_stats_get__v1_goals__id__stats",
        "summary": "Goal stats",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:266",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__goals__GoalStats_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/hooks/billing/{provider}/{token}": {
      "post": {
        "operationId": "runearc_api_billing_hook_post__v1_hooks_billing__provider___token_",
        "summary": "Hook",
        "tags": [
          "billing"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/billing.rs:95",
        "description": "Public: the signature is the authentication. Reads the raw bytes the provider signed.\nAuthentication is the provider signature over the raw request body, not a Runearc bearer key. Copy the connection URL and configure the provider-specific signature header from Settings > Integrations.",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__billing__BillingOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Provider-defined signed event JSON. Send the original bytes unchanged; provider verification and normalization validate the event."
              }
            }
          }
        }
      }
    },
    "/v1/hooks/dodo": {
      "post": {
        "operationId": "runearc_api_plan_billing_hook_post__v1_hooks_dodo",
        "summary": "Hook",
        "tags": [
          "plan_billing"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/plan_billing.rs:55",
        "description": "Public: the Standard Webhooks signature is the authentication. Reads the raw bytes Dodo signed.\nAuthentication is the provider signature over the raw request body, not a Runearc bearer key.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__subscriptions__PlanWebhookOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Provider-defined signed event JSON. Send the original bytes unchanged; provider verification and normalization validate the event."
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "webhook-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "webhook-timestamp",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "webhook-signature",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/imports": {
      "get": {
        "operationId": "runearc_api_audience_import_list_imports_get__v1_imports",
        "summary": "List imports",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:69",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__audience_import_Import__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_audience_import_upload_post__v1_imports",
        "summary": "Upload",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:56",
        "parameters": [
          {
            "name": "filename",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_import__ImportPreview_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "text/csv": {
              "schema": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "/v1/imports/{id}": {
      "get": {
        "operationId": "runearc_api_audience_import_get_import_get__v1_imports__id_",
        "summary": "Get import",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:78",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_import__Import_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{id}/cancel": {
      "post": {
        "operationId": "runearc_api_audience_import_cancel_import_post__v1_imports__id__cancel",
        "summary": "Cancel import",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:105",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_import__Import_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{id}/errors": {
      "get": {
        "operationId": "runearc_api_audience_import_import_errors_get__v1_imports__id__errors",
        "summary": "Import errors",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:113",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__audience_import_ImportError__output"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/imports/{id}/start": {
      "post": {
        "operationId": "runearc_api_audience_import_start_import_post__v1_imports__id__start",
        "summary": "Start import",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:86",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__audience_import__ImportStart_input"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_import__Import_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inboxes": {
      "get": {
        "operationId": "runearc_api_list_inboxes_get__v1_inboxes",
        "summary": "List inboxes",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:463",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api_Inbox__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_create_inbox_post__v1_inboxes",
        "summary": "Create inbox",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:469",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__inboxes__Inbox_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__CreateInbox_input"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/inboxes/{id}": {
      "delete": {
        "operationId": "runearc_api_delete_inbox_delete__v1_inboxes__id_",
        "summary": "Delete inbox",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:505",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_get_inbox_get__v1_inboxes__id_",
        "summary": "Get inbox",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:497",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__inboxes__Inbox_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inboxes/{id}/app-passwords": {
      "get": {
        "operationId": "runearc_api_app_passwords_list_app_passwords_get__v1_inboxes__id__app_passwords",
        "summary": "List app passwords",
        "tags": [
          "app_passwords"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/app_passwords.rs:52",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__app_passwords_AppPassword__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_app_passwords_create_app_password_post__v1_inboxes__id__app_passwords",
        "summary": "Create app password",
        "tags": [
          "app_passwords"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/app_passwords.rs:33",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__app_passwords__CreateBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mail_access__CreatedAppPassword_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inboxes/{id}/forwards": {
      "get": {
        "operationId": "runearc_api_forwards_list_forwards_get__v1_inboxes__id__forwards",
        "summary": "List forwards",
        "tags": [
          "forwards"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forwards.rs:40",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__forwards_Forward__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_forwards_create_forward_post__v1_inboxes__id__forwards",
        "summary": "Create forward",
        "tags": [
          "forwards"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/forwards.rs:50",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__forwards__CreateForward_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__forwarding__Forward_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inboxes/{id}/messages": {
      "get": {
        "operationId": "runearc_api_list_messages_get__v1_inboxes__id__messages",
        "summary": "List messages",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:514",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Page_runearc_api_Message__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_sending_send_message_post__v1_inboxes__id__messages",
        "summary": "Send message",
        "tags": [
          "sending"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sending.rs:54",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__sending__SendRequest_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Message_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inboxes/{id}/threads": {
      "get": {
        "operationId": "runearc_api_list_threads_get__v1_inboxes__id__threads",
        "summary": "List threads",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:534",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api_Thread__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inboxes/{id}/wait": {
      "get": {
        "operationId": "runearc_api_events_wait_get__v1_inboxes__id__wait",
        "summary": "Wait",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:381",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeout",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__webhooks__Waited_output"
                }
              }
            }
          },
          "408": {
            "description": "Wait timed out without a matching message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/integrations/billing": {
      "get": {
        "operationId": "runearc_api_billing_list_get__v1_integrations_billing",
        "summary": "List",
        "tags": [
          "billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/billing.rs:52",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__billing_BillingConnection__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_billing_create_post__v1_integrations_billing",
        "summary": "Create",
        "tags": [
          "billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/billing.rs:34",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__billing__Create_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__billing__CreatedBillingConnection_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/integrations/billing/providers": {
      "get": {
        "operationId": "runearc_api_billing_providers_get__v1_integrations_billing_providers",
        "summary": "Providers",
        "tags": [
          "billing"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/billing.rs:61",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__billing_ProviderInfo__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/integrations/billing/{id}": {
      "delete": {
        "operationId": "runearc_api_billing_remove_delete__v1_integrations_billing__id_",
        "summary": "Remove",
        "tags": [
          "billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/billing.rs:67",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/integrations/billing/{id}/events": {
      "get": {
        "operationId": "runearc_api_billing_events_get__v1_integrations_billing__id__events",
        "summary": "Events",
        "tags": [
          "billing"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/billing.rs:81",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__billing_BillingEventRow__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invitations": {
      "get": {
        "operationId": "runearc_api_members_list_invitations_get__v1_invitations",
        "summary": "List invitations",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:93",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__members_Invitation__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_members_create_invitation_post__v1_invitations",
        "summary": "Create invitation",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:102",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__invitations__NewInvitation_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__invitations__Invitation_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/invitations/accept": {
      "post": {
        "operationId": "runearc_api_members_accept_invitation_post__v1_invitations_accept",
        "summary": "Accept invitation",
        "tags": [
          "members"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/members.rs:161",
        "description": "Needs a session but not a workspace: someone who signed in only to accept\nhas none yet, so the session token is read here rather than through [`Auth`].",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__members__AcceptBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__invitations__Accepted_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invitations/lookup": {
      "get": {
        "operationId": "runearc_api_members_lookup_invitation_get__v1_invitations_lookup",
        "summary": "Lookup invitation",
        "tags": [
          "members"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/members.rs:135",
        "description": "No auth: the invite page shows this before the visitor signs in.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__invitations__InvitationLookup_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invitations/{id}": {
      "delete": {
        "operationId": "runearc_api_members_revoke_invitation_delete__v1_invitations__id_",
        "summary": "Revoke invitation",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:112",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invitations/{id}/resend": {
      "post": {
        "operationId": "runearc_api_members_resend_invitation_post__v1_invitations__id__resend",
        "summary": "Resend invitation",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:121",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__invitations__Invitation_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys": {
      "get": {
        "operationId": "runearc_api_auth_list_keys_get__v1_keys",
        "summary": "List keys",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:383",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__auth_ApiKey__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_auth_create_key_post__v1_keys",
        "summary": "Create key",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:407",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__CreateKeyBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__auth__CreatedKeyBody_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/keys/{id}": {
      "delete": {
        "operationId": "runearc_api_auth_revoke_key_delete__v1_keys__id_",
        "summary": "Revoke key",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:436",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lifecycle/unsubscribe": {
      "post": {
        "operationId": "runearc_api_auth_lifecycle_unsubscribe_post__v1_lifecycle_unsubscribe",
        "summary": "Lifecycle unsubscribe",
        "tags": [
          "auth"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/auth.rs:177",
        "description": "The one click unsubscribe from lifecycle emails. No session: the signed link is the proof.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__UnsubscribeBody_input"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lists": {
      "get": {
        "operationId": "runearc_api_audience_list_lists_get__v1_lists",
        "summary": "List lists",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:113",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__audience_AudienceList__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_audience_create_list_post__v1_lists",
        "summary": "Create list",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:122",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__audience__NameBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience__AudienceList_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/lists/{id}": {
      "delete": {
        "operationId": "runearc_api_audience_delete_list_delete__v1_lists__id_",
        "summary": "Delete list",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:171",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_audience_get_list_get__v1_lists__id_",
        "summary": "Get list",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:140",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience__AudienceList_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_audience_update_list_patch__v1_lists__id_",
        "summary": "Update list",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:155",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__audience__PatchList_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience__AudienceList_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lists/{id}/contacts": {
      "post": {
        "operationId": "runearc_api_audience_add_members_post__v1_lists__id__contacts",
        "summary": "Add members",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:186",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__audience__Members_input"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "added": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "added"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lists/{id}/contacts/{contact_id}": {
      "delete": {
        "operationId": "runearc_api_audience_remove_member_delete__v1_lists__id__contacts__contact_id_",
        "summary": "Remove member",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:197",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "operationId": "runearc_api_auth_me_get__v1_me",
        "summary": "Me",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:370",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__auth__Me_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_auth_update_me_patch__v1_me",
        "summary": "Update me",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:326",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__UpdateMeBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__auth__Me_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/me/dismissals": {
      "get": {
        "operationId": "runearc_api_shell_dismissals_get__v1_me_dismissals",
        "summary": "Dismissals",
        "tags": [
          "shell"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/shell.rs:39",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__shell__Dismissals_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/me/dismissals/{notice}": {
      "put": {
        "operationId": "runearc_api_shell_dismiss_put__v1_me_dismissals__notice_",
        "summary": "Dismiss",
        "tags": [
          "shell"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/shell.rs:43",
        "parameters": [
          {
            "name": "notice",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__shell__Dismissals_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/domain-layout": {
      "get": {
        "operationId": "runearc_api_auth_domain_layout_get__v1_me_domain_layout",
        "summary": "Domain layout",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:353",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domain_layout__DomainLayout_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "put": {
        "operationId": "runearc_api_auth_set_domain_layout_put__v1_me_domain_layout",
        "summary": "Set domain layout",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:360",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__auth__DomainLayoutBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__domain_layout__DomainLayout_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/me/workspaces": {
      "get": {
        "operationId": "runearc_api_auth_my_workspaces_get__v1_me_workspaces",
        "summary": "My workspaces",
        "tags": [
          "auth"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/auth.rs:374",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__auth_Workspace__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/members": {
      "get": {
        "operationId": "runearc_api_members_list_members_get__v1_members",
        "summary": "List members",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:50",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__members_Member__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/members/transfer-ownership": {
      "post": {
        "operationId": "runearc_api_members_transfer_ownership_post__v1_members_transfer_ownership",
        "summary": "Transfer ownership",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:84",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__members__TransferBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__members__Member_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/members/{user_id}": {
      "delete": {
        "operationId": "runearc_api_members_remove_member_delete__v1_members__user_id_",
        "summary": "Remove member",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:69",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_members_update_member_patch__v1_members__user_id_",
        "summary": "Update member",
        "tags": [
          "members"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/members.rs:59",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__members__MemberPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__members__Member_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{id}": {
      "get": {
        "operationId": "runearc_api_get_message_get__v1_messages__id_",
        "summary": "Get message",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:552",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Message_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{id}/raw": {
      "get": {
        "operationId": "runearc_api_get_message_raw_get__v1_messages__id__raw",
        "summary": "Get message raw",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:560",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "message/rfc822": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{id}/reply": {
      "post": {
        "operationId": "runearc_api_sending_reply_post__v1_messages__id__reply",
        "summary": "Reply",
        "tags": [
          "sending"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sending.rs:72",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__sending__ReplyRequest_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__Message_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/mobile/activity": {
      "get": {
        "operationId": "runearc_api_mobile_activity_get__v1_mobile_activity",
        "summary": "Activity",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:77",
        "parameters": [
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mobile__MobileActivityPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted."
      }
    },
    "/v1/mobile/badge": {
      "get": {
        "operationId": "runearc_api_mobile_badge_get__v1_mobile_badge",
        "summary": "Badge",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:148",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mobile__MobileBadge_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted.",
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/mobile/conversations/{id}/read": {
      "post": {
        "operationId": "runearc_api_mobile_mark_conversation_read_post__v1_mobile_conversations__id__read",
        "summary": "Mark conversation read",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:155",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted."
      }
    },
    "/v1/mobile/conversations/{id}/snooze-one-hour": {
      "post": {
        "operationId": "runearc_api_mobile_snooze_conversation_one_hour_post__v1_mobile_conversations__id__snooze_one_hour",
        "summary": "Snooze conversation one hour",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:164",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted."
      }
    },
    "/v1/mobile/devices": {
      "put": {
        "operationId": "runearc_api_mobile_register_device_put__v1_mobile_devices",
        "summary": "Register device",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:104",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__mobile__RegisterMobileDevice_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mobile__MobileDevice_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted.",
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/mobile/devices/{id}": {
      "delete": {
        "operationId": "runearc_api_mobile_unregister_device_delete__v1_mobile_devices__id_",
        "summary": "Unregister device",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:118",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted."
      }
    },
    "/v1/mobile/notifications": {
      "get": {
        "operationId": "runearc_api_mobile_preferences_get__v1_mobile_notifications",
        "summary": "Preferences",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:127",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mobile__NotificationPreferences_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted.",
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_mobile_update_preferences_patch__v1_mobile_notifications",
        "summary": "Update preferences",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:134",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__mobile__NotificationPreferencesPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__mobile__NotificationPreferences_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted.",
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/mobile/workspaces": {
      "get": {
        "operationId": "runearc_api_mobile_workspaces_get__v1_mobile_workspaces",
        "summary": "Workspaces",
        "tags": [
          "mobile"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/mobile.rs:95",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__mobile_MobileWorkspaceSummary__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "\nRequires a dashboard session token; API keys are not accepted.",
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/onboarding/site-imports": {
      "post": {
        "operationId": "runearc_api_onboarding_import_post__v1_onboarding_site_imports",
        "summary": "Import",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:49",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__onboarding__ImportBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__onboarding__SiteImport_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/onboarding/site-imports/{id}": {
      "get": {
        "operationId": "runearc_api_onboarding_get_import_get__v1_onboarding_site_imports__id_",
        "summary": "Get import",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:61",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__onboarding__SiteImport_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/onboarding/welcome": {
      "get": {
        "operationId": "runearc_api_onboarding_current_get__v1_onboarding_welcome",
        "summary": "Current",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:99",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeDraft_output"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_onboarding_draft_post__v1_onboarding_welcome",
        "summary": "Draft",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:81",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__onboarding__DraftBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeDraft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/onboarding/welcome/{sequence_id}": {
      "patch": {
        "operationId": "runearc_api_onboarding_update_patch__v1_onboarding_welcome__sequence_id_",
        "summary": "Update",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:115",
        "parameters": [
          {
            "name": "sequence_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__onboarding__UpdateBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeDraft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/onboarding/welcome/{sequence_id}/preview": {
      "get": {
        "operationId": "runearc_api_onboarding_preview_get__v1_onboarding_welcome__sequence_id__preview",
        "summary": "Preview",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:150",
        "parameters": [
          {
            "name": "sequence_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "position",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "style",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/runearc_core__email_design__doc__Style_input"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__email_design__RenderedEmail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/onboarding/welcome/{sequence_id}/turn-on": {
      "post": {
        "operationId": "runearc_api_onboarding_turn_on_post__v1_onboarding_welcome__sequence_id__turn_on",
        "summary": "Turn on",
        "tags": [
          "onboarding"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/onboarding.rs:162",
        "parameters": [
          {
            "name": "sequence_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeDraft_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/page-domain": {
      "delete": {
        "operationId": "runearc_api_pages_domain_remove_delete__v1_page_domain",
        "summary": "Domain remove",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:167",
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "get": {
        "operationId": "runearc_api_pages_domain_get_get__v1_page_domain",
        "summary": "Domain get",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:133",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/runearc_core__page_domain__PageDomain_output"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "put": {
        "operationId": "runearc_api_pages_domain_set_put__v1_page_domain",
        "summary": "Domain set",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:140",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__pages__HostBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__page_domain__PageDomain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/page-domain/home": {
      "put": {
        "operationId": "runearc_api_pages_domain_home_put__v1_page_domain_home",
        "summary": "Domain home",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:153",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__pages__HomeBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__page_domain__PageDomain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/page-domain/verify": {
      "post": {
        "operationId": "runearc_api_pages_domain_verify_post__v1_page_domain_verify",
        "summary": "Domain verify",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:149",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__page_domain__PageDomain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/pages": {
      "get": {
        "operationId": "runearc_api_pages_list_get__v1_pages",
        "summary": "List",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:51",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__pages_PageSummary__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_pages_create_post__v1_pages",
        "summary": "Create",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:66",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__landing_pages__NewPage_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__landing_pages__LandingPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/pages/templates": {
      "get": {
        "operationId": "runearc_api_pages_templates_get__v1_pages_templates",
        "summary": "Templates",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:57",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__pages_runearc_core__PageTemplate__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/pages/{id}": {
      "delete": {
        "operationId": "runearc_api_pages_remove_delete__v1_pages__id_",
        "summary": "Remove",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:96",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_pages_get_one_get__v1_pages__id_",
        "summary": "Get one",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:78",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__landing_pages__LandingPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_pages_update_patch__v1_pages__id_",
        "summary": "Update",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:86",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__landing_pages__PagePatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__landing_pages__LandingPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pages/{id}/publish": {
      "post": {
        "operationId": "runearc_api_pages_publish_post__v1_pages__id__publish",
        "summary": "Publish",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:105",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__landing_pages__LandingPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pages/{id}/unpublish": {
      "post": {
        "operationId": "runearc_api_pages_unpublish_post__v1_pages__id__unpublish",
        "summary": "Unpublish",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/pages.rs:113",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__landing_pages__LandingPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plans": {
      "get": {
        "operationId": "runearc_api_plans_get__v1_plans",
        "summary": "Plans",
        "tags": [
          "runearc_api"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/lib.rs:404",
        "description": "Public: the plans and their limits, so the website prices from the same numbers.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api_Plan__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/platform": {
      "get": {
        "operationId": "runearc_api_platform_get__v1_platform",
        "summary": "Platform",
        "tags": [
          "runearc_api"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/lib.rs:423",
        "description": "Public: where this Runearc runs (`RUNEARC_PLATFORM_DOMAIN`), so the dashboard, docs and\ntools show the records and hosts of this instance instead of runearc.com's.",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "string"
                    },
                    "shared_domain": {
                      "type": "string"
                    },
                    "test_domain": {
                      "type": "string"
                    },
                    "mx_hosts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/runearc_dns__plan__Mx_output"
                      }
                    },
                    "spf_include": {
                      "type": "string"
                    },
                    "return_path_target": {
                      "type": "string"
                    },
                    "dmarc_rua": {
                      "type": "string"
                    },
                    "mta_sts": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string"
                        },
                        "records": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/runearc_dns__mta_sts__MtaStsRecords_output"
                          }
                        }
                      },
                      "required": [
                        "mode",
                        "records"
                      ]
                    },
                    "signup": {
                      "type": "string",
                      "enum": [
                        "open",
                        "closed"
                      ]
                    },
                    "hosts": {
                      "type": "object",
                      "properties": {
                        "api": {
                          "type": "string"
                        },
                        "app": {
                          "type": "string"
                        },
                        "mcp": {
                          "type": "string"
                        },
                        "imap": {
                          "type": "string"
                        },
                        "smtp": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "api",
                        "app",
                        "mcp",
                        "imap",
                        "smtp"
                      ]
                    }
                  },
                  "required": [
                    "domain",
                    "shared_domain",
                    "test_domain",
                    "mx_hosts",
                    "spf_include",
                    "return_path_target",
                    "dmarc_rua",
                    "mta_sts",
                    "signup",
                    "hosts"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/popups": {
      "get": {
        "operationId": "runearc_api_popups_list_get__v1_popups",
        "summary": "List",
        "tags": [
          "popups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/popups.rs:41",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__popups_Popup__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_popups_create_post__v1_popups",
        "summary": "Create",
        "tags": [
          "popups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/popups.rs:47",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__popups__NewPopup_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__popups__Popup_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/popups/{id}": {
      "delete": {
        "operationId": "runearc_api_popups_remove_delete__v1_popups__id_",
        "summary": "Remove",
        "tags": [
          "popups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/popups.rs:83",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_popups_show_get__v1_popups__id_",
        "summary": "Show",
        "tags": [
          "popups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/popups.rs:62",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__popups__Popup_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_popups_update_patch__v1_popups__id_",
        "summary": "Update",
        "tags": [
          "popups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/popups.rs:70",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__popups__PopupPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__popups__Popup_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/popups/{id}/stats": {
      "get": {
        "operationId": "runearc_api_popups_stats_get__v1_popups__id__stats",
        "summary": "Stats",
        "tags": [
          "popups"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/popups.rs:92",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__popups__PopupStats_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/forms/confirm": {
      "post": {
        "operationId": "runearc_api_forms_public_confirm_post__v1_public_forms_confirm",
        "summary": "Public confirm",
        "tags": [
          "forms"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/forms.rs:182",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__forms__ConfirmBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__form_submit__ConfirmedForm_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/forms/{id}": {
      "get": {
        "operationId": "runearc_api_forms_public_form_get__v1_public_forms__id_",
        "summary": "Public form",
        "tags": [
          "forms"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/forms.rs:125",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__form_submit__PublicForm_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/forms/{id}/submit": {
      "post": {
        "operationId": "runearc_api_forms_public_submit_post__v1_public_forms__id__submit",
        "summary": "Public submit",
        "tags": [
          "forms"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/forms.rs:145",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__forms__SubmitBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__form_submit__SubmitOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/by-host": {
      "get": {
        "operationId": "runearc_api_pages_by_host_get__v1_public_pages_by_host",
        "summary": "By host",
        "tags": [
          "pages"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/pages.rs:195",
        "parameters": [
          {
            "name": "host",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__page_public__PublicPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/by-slug/{org_slug}/{slug}": {
      "get": {
        "operationId": "runearc_api_pages_by_slug_get__v1_public_pages_by_slug__org_slug___slug_",
        "summary": "By slug",
        "tags": [
          "pages"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/pages.rs:204",
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__page_public__PublicPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/tls-ask": {
      "get": {
        "operationId": "runearc_api_pages_tls_ask_get__v1_public_pages_tls_ask",
        "summary": "Tls ask",
        "tags": [
          "pages"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/pages.rs:177",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{id}/submit": {
      "post": {
        "operationId": "runearc_api_pages_submit_post__v1_public_pages__id__submit",
        "summary": "Submit",
        "tags": [
          "pages"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/pages.rs:236",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__pages__SubmitBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__page_public__PageLeadOutcome_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{id}/view": {
      "post": {
        "operationId": "runearc_api_pages_view_post__v1_public_pages__id__view",
        "summary": "View",
        "tags": [
          "pages"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/pages.rs:218",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__pages__ViewBody_input"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/popups/{id}": {
      "get": {
        "operationId": "runearc_api_popups_public_popup_get__v1_public_popups__id_",
        "summary": "Public popup",
        "tags": [
          "popups"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/popups.rs:100",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__popups__PublicPopup_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/popups/{id}/events": {
      "post": {
        "operationId": "runearc_api_popups_public_event_post__v1_public_popups__id__events",
        "summary": "Public event",
        "tags": [
          "popups"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/popups.rs:116",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__popups__EventBody_input"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/segments": {
      "get": {
        "operationId": "runearc_api_segments_list_get__v1_segments",
        "summary": "List",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:33",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__segments_Segment__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_segments_create_post__v1_segments",
        "summary": "Create",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:39",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__segments__NewSegment_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__segments__Segment_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/segments/preview": {
      "post": {
        "operationId": "runearc_api_segments_preview_post__v1_segments_preview",
        "summary": "Preview",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:119",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__segments__PreviewBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__segments__SegmentPreview_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/segments/{id}": {
      "delete": {
        "operationId": "runearc_api_segments_remove_delete__v1_segments__id_",
        "summary": "Remove",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:69",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_segments_show_get__v1_segments__id_",
        "summary": "Show",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:51",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__segments__Segment_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_segments_update_patch__v1_segments__id_",
        "summary": "Update",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:59",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__segments__SegmentPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__segments__Segment_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/segments/{id}/contacts": {
      "get": {
        "operationId": "runearc_api_segments_contacts_get__v1_segments__id__contacts",
        "summary": "Contacts",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:94",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/runearc_core__segments__SegmentContact_output"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "next"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/segments/{id}/count": {
      "get": {
        "operationId": "runearc_api_segments_count_get__v1_segments__id__count",
        "summary": "Count",
        "tags": [
          "segments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/segments.rs:78",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "count"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/senders": {
      "get": {
        "operationId": "runearc_api_emails_list_senders_get__v1_senders",
        "summary": "List senders",
        "tags": [
          "emails"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/emails.rs:197",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__emails_SenderAddress__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/sequences": {
      "get": {
        "operationId": "runearc_api_sequences_list_get__v1_sequences",
        "summary": "List",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:80",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__sequences_Sequence__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_sequences_create_post__v1_sequences",
        "summary": "Create",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:91",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__sequences__store__NewSequence_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/sequences/starters": {
      "get": {
        "operationId": "runearc_api_sequences_starters_get__v1_sequences_starters",
        "summary": "Starters",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:216",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__sequences_StarterInfo__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/sequences/starters/{key}/install": {
      "post": {
        "operationId": "runearc_api_sequences_install_starter_post__v1_sequences_starters__key__install",
        "summary": "Install starter",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:225",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sequences/{id}": {
      "delete": {
        "operationId": "runearc_api_sequences_remove_delete__v1_sequences__id_",
        "summary": "Remove",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:127",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_sequences_show_get__v1_sequences__id_",
        "summary": "Show",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:106",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_sequences_update_patch__v1_sequences__id_",
        "summary": "Update",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:114",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__sequences__store__SequencePatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sequences/{id}/activate": {
      "post": {
        "operationId": "runearc_api_sequences_activate_post__v1_sequences__id__activate",
        "summary": "Activate",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:151",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sequences/{id}/enrollments": {
      "get": {
        "operationId": "runearc_api_sequences_enrollments_get__v1_sequences__id__enrollments",
        "summary": "Enrollments",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:167",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__sequences_Enrollment__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_sequences_enroll_post__v1_sequences__id__enrollments",
        "summary": "Enroll",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:181",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__sequences__EnrollBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Enrollment_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sequences/{id}/enrollments/{eid}/exit": {
      "post": {
        "operationId": "runearc_api_sequences_exit_post__v1_sequences__id__enrollments__eid__exit",
        "summary": "Exit",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:208",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Enrollment_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sequences/{id}/pause": {
      "post": {
        "operationId": "runearc_api_sequences_pause_post__v1_sequences__id__pause",
        "summary": "Pause",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:159",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sequences/{id}/steps": {
      "put": {
        "operationId": "runearc_api_sequences_set_steps_put__v1_sequences__id__steps",
        "summary": "Set steps",
        "tags": [
          "sequences"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sequences.rs:136",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__sequences__StepsBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/setup": {
      "post": {
        "operationId": "runearc_api_setup_setup_post__v1_setup",
        "summary": "Setup",
        "tags": [
          "setup"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/setup.rs:12",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__setup__SetupRequest_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__setup__SetupResult_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/status": {
      "get": {
        "operationId": "runearc_api_status_get__v1_status",
        "summary": "Status",
        "tags": [
          "runearc_api"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/lib.rs:413",
        "description": "Public: component states measured now (logic in `runearc_core::status`). The report is\nmeasured at most every 15 seconds, however often this is called, and CDNs may cache it\nfor the same time.",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__status__StatusReport_output"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/suppressions": {
      "get": {
        "operationId": "runearc_api_sending_list_suppressions_get__v1_suppressions",
        "summary": "List suppressions",
        "tags": [
          "sending"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sending.rs:98",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reason",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__suppressions__SuppressionPage_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "runearc_api_sending_add_suppression_post__v1_suppressions",
        "summary": "Add suppression",
        "tags": [
          "sending"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sending.rs:125",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__sending__AddSuppression_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sending__Suppression_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/suppressions/counts": {
      "get": {
        "operationId": "runearc_api_sending_suppression_counts_get__v1_suppressions_counts",
        "summary": "Suppression counts",
        "tags": [
          "sending"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sending.rs:112",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__suppressions__SuppressionCounts_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/suppressions/{address}": {
      "delete": {
        "operationId": "runearc_api_sending_delete_suppression_delete__v1_suppressions__address_",
        "summary": "Delete suppression",
        "tags": [
          "sending"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/sending.rs:137",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sync-rules": {
      "get": {
        "operationId": "runearc_api_contact_events_list_rules_get__v1_sync_rules",
        "summary": "List rules",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:170",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__contact_events_SyncRule__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_contact_events_create_rule_post__v1_sync_rules",
        "summary": "Create rule",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:179",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__sync_rules__NewSyncRule_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sync_rules__SyncRule_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/sync-rules/{id}": {
      "delete": {
        "operationId": "runearc_api_contact_events_delete_rule_delete__v1_sync_rules__id_",
        "summary": "Delete rule",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:207",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_contact_events_update_rule_patch__v1_sync_rules__id_",
        "summary": "Update rule",
        "tags": [
          "contact_events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/contact_events.rs:194",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__sync_rules__SyncRulePatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__sync_rules__SyncRule_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tags": {
      "get": {
        "operationId": "runearc_api_audience_list_tags_get__v1_tags",
        "summary": "List tags",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:86",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__audience_Tag__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_audience_create_tag_post__v1_tags",
        "summary": "Create tag",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:92",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__audience__NameBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience__Tag_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/tags/{id}": {
      "delete": {
        "operationId": "runearc_api_audience_delete_tag_delete__v1_tags__id_",
        "summary": "Delete tag",
        "tags": [
          "audience"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience.rs:104",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/template-starters": {
      "get": {
        "operationId": "runearc_api_templates_list_starters_get__v1_template_starters",
        "summary": "List starters",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:48",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/runearc_core__template_starters__Starter_output"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "preview_subject": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "preview_html": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "preview_subject",
                              "preview_html"
                            ]
                          }
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/templates": {
      "get": {
        "operationId": "runearc_api_templates_list_get__v1_templates",
        "summary": "List",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:69",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__templates_Template__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_templates_create_post__v1_templates",
        "summary": "Create",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:75",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__templates__NewTemplate_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateDetail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/templates/{id}": {
      "delete": {
        "operationId": "runearc_api_templates_archive_delete__v1_templates__id_",
        "summary": "Archive",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:108",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "runearc_api_templates_get_one_get__v1_templates__id_",
        "summary": "Get one",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:90",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateDetail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "runearc_api_templates_update_patch__v1_templates__id_",
        "summary": "Update",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:98",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__templates__TemplatePatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateDetail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/templates/{id}/copy": {
      "post": {
        "operationId": "runearc_api_templates_copy_post__v1_templates__id__copy",
        "summary": "Copy",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:132",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__templates__CopyBody_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateDetail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/templates/{id}/preview": {
      "post": {
        "operationId": "runearc_api_templates_preview_post__v1_templates__id__preview",
        "summary": "Preview",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:155",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__templates__PreviewBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__templates__Preview_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/templates/{id}/publish": {
      "post": {
        "operationId": "runearc_api_templates_publish_post__v1_templates__id__publish",
        "summary": "Publish",
        "tags": [
          "templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/templates.rs:117",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateDetail_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/threads/{id}": {
      "get": {
        "operationId": "runearc_api_get_thread_get__v1_threads__id_",
        "summary": "Get thread",
        "tags": [
          "runearc_api"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/lib.rs:544",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__messages__ThreadWithMessages_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tools/deliverability-checks": {
      "post": {
        "operationId": "runearc_api_tools_create_post__v1_tools_deliverability_checks",
        "summary": "Create",
        "tags": [
          "tools"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/tools.rs:84",
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__deliverability__DeliverabilityCheck_output"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tools/deliverability-checks/{id}": {
      "get": {
        "operationId": "runearc_api_tools_read_get__v1_tools_deliverability_checks__id_",
        "summary": "Read",
        "tags": [
          "tools"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/tools.rs:89",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__deliverability__DeliverabilityCheck_output"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tools/deliverability-checks/{id}/wait": {
      "get": {
        "operationId": "runearc_api_tools_wait_get__v1_tools_deliverability_checks__id__wait",
        "summary": "Wait",
        "tags": [
          "tools"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/tools.rs:104",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeout",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__deliverability__DeliverabilityCheck_output"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking/domain": {
      "delete": {
        "operationId": "runearc_api_tracking_delete_domain_delete__v1_tracking_domain",
        "summary": "Delete domain",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:231",
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "get": {
        "operationId": "runearc_api_tracking_get_domain_get__v1_tracking_domain",
        "summary": "Get domain",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:202",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/runearc_core__tracking__domain__TrackingDomain_output"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "put": {
        "operationId": "runearc_api_tracking_put_domain_put__v1_tracking_domain",
        "summary": "Put domain",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:209",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__tracking__PutDomain_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__tracking__domain__TrackingDomain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/tracking/domain/verify": {
      "post": {
        "operationId": "runearc_api_tracking_verify_domain_post__v1_tracking_domain_verify",
        "summary": "Verify domain",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:224",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__tracking__domain__TrackingDomain_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/tracking/events": {
      "get": {
        "operationId": "runearc_api_tracking_events_get__v1_tracking_events",
        "summary": "Events",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:246",
        "parameters": [
          {
            "name": "message_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contact_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_bots",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__tracking_TrackingEvent__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking/settings": {
      "get": {
        "operationId": "runearc_api_tracking_get_settings_get__v1_tracking_settings",
        "summary": "Get settings",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:174",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__tracking__settings__TrackingSettings_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_tracking_patch_settings_patch__v1_tracking_settings",
        "summary": "Patch settings",
        "tags": [
          "tracking"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/tracking.rs:181",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__tracking__settings__TrackingSettingsBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__tracking__settings__TrackingSettings_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/unsubscribes": {
      "post": {
        "operationId": "runearc_api_audience_import_unsubscribe_post__v1_unsubscribes",
        "summary": "Unsubscribe",
        "tags": [
          "audience_import"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/audience_import.rs:165",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__audience_import__Unsubscribe_input"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__audience_bulk__BulkOperation_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/waitlist": {
      "post": {
        "operationId": "runearc_api_waitlist_join_post__v1_waitlist",
        "summary": "Join",
        "tags": [
          "waitlist"
        ],
        "security": [],
        "x-rust-source": "crates/api/src/waitlist.rs:87",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__waitlist__JoinBody_input"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__waitlist__Accepted_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks": {
      "get": {
        "operationId": "runearc_api_events_list_webhooks_get__v1_webhooks",
        "summary": "List webhooks",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:91",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__events_Webhook__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "post": {
        "operationId": "runearc_api_events_create_webhook_post__v1_webhooks",
        "summary": "Create webhook",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:76",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__events__CreateWebhook_input"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__webhooks__CreatedWebhook_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/webhooks/{id}": {
      "delete": {
        "operationId": "runearc_api_events_delete_webhook_delete__v1_webhooks__id_",
        "summary": "Delete webhook",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:100",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/deliveries": {
      "get": {
        "operationId": "runearc_api_events_list_deliveries_get__v1_webhooks__id__deliveries",
        "summary": "List deliveries",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:114",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_api__List_runearc_api__events_Delivery__output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/deliveries/{delivery_id}/replay": {
      "post": {
        "operationId": "runearc_api_events_replay_delivery_post__v1_webhooks__id__deliveries__delivery_id__replay",
        "summary": "Replay delivery",
        "tags": [
          "events"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/events.rs:128",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "delivery_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__webhooks__Delivery_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspace": {
      "delete": {
        "operationId": "runearc_api_workspace_delete_workspace_delete__v1_workspace",
        "summary": "Delete workspace",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:131",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__workspace__DeleteBody_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__workspace_data__DeletedWorkspace_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_workspace_rename_workspace_patch__v1_workspace",
        "summary": "Rename workspace",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:155",
        "description": "Renames the workspace, sets its address on the shared domain, or both.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_api__workspace__WorkspacePatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__orgs__Org_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/workspace/ai-context": {
      "get": {
        "operationId": "runearc_api_ai_get_context_get__v1_workspace_ai_context",
        "summary": "Get context",
        "tags": [
          "ai"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/ai.rs:29",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__ai__context__AiContext_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_ai_update_context_patch__v1_workspace_ai_context",
        "summary": "Update context",
        "tags": [
          "ai"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/ai.rs:33",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__ai__context__AiContextPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__ai__context__AiContext_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/workspace/badge": {
      "get": {
        "operationId": "runearc_api_workspace_get_badge_get__v1_workspace_badge",
        "summary": "Get badge",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:38",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__badge__BadgeSettings_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_workspace_update_badge_patch__v1_workspace_badge",
        "summary": "Update badge",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:42",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__badge__BadgePatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__badge__BadgeSettings_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/workspace/export": {
      "get": {
        "operationId": "runearc_api_workspace_export_get__v1_workspace_export",
        "summary": "Export",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:84",
        "parameters": [
          {
            "name": "include_raw",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ],
        "responses": {
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Streaming newline-delimited JSON records. Each line has type and data; export/workspace/table/raw-message/end records depend on stored workspace data. See workspace_data.rs.",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspace/postal-address": {
      "get": {
        "operationId": "runearc_api_shell_address_get__v1_workspace_postal_address",
        "summary": "Address",
        "tags": [
          "shell"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/shell.rs:52",
        "description": "`null` until an address is saved.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/runearc_core__shell__PostalAddress_output"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "put": {
        "operationId": "runearc_api_shell_set_address_put__v1_workspace_postal_address",
        "summary": "Set address",
        "tags": [
          "shell"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/shell.rs:59",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__shell__PostalAddress_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__shell__PostalAddress_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    },
    "/v1/workspace/retention": {
      "get": {
        "operationId": "runearc_api_workspace_get_retention_get__v1_workspace_retention",
        "summary": "Get retention",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:57",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__retention__RetentionSettings_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      },
      "patch": {
        "operationId": "runearc_api_workspace_update_retention_patch__v1_workspace_retention",
        "summary": "Update retention",
        "tags": [
          "workspace"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-rust-source": "crates/api/src/workspace.rs:64",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/runearc_core__retention__RetentionPatch_input"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runearc_core__retention__RetentionSettings_output"
                }
              }
            }
          },
          "default": {
            "description": "API error. Invalid JSON/extractor errors may use the framework text response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "4XX": {
            "description": "Client error. See code, message and fix. Framework extractor rejections can return text instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Runearc-Workspace",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Workspace id for session tokens; defaults to the first joined workspace."
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key or session token. Some account/mobile operations require a session or mobile token."
      },
      "websocketToken": {
        "type": "apiKey",
        "in": "query",
        "name": "token",
        "description": "Bearer credential for browser WebSocket clients."
      }
    },
    "schemas": {
      "ApiError": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "fix"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "fix": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "errors": {
                "description": "Optional validation details, omitted for internal errors."
              }
            }
          }
        }
      },
      "runearc_api__CreateInbox_input": {
        "type": "object",
        "properties": {
          "local_part": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A custom domain of the org; the shared domain when absent."
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/lib.rs:284"
      },
      "runearc_api__List_runearc_api_Inbox__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__inboxes__Inbox_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api_Plan__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__plans__Plan_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api_Thread__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__messages__Thread_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__admin_PausedWorkspace__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sending_pause__PausedWorkspace_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__app_passwords_AppPassword__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__mail_access__AppPassword_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__audience_AudienceList__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__audience__AudienceList_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__audience_ContactField__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__audience__ContactField_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__audience_Tag__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__audience__Tag_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__audience_import_ImportError__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__audience_import__ImportError_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__audience_import_Import__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__audience_import__Import_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__auth_ApiKey__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__keys__ApiKey_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__auth_Workspace__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__auth__Workspace_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__billing_BillingConnection__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__billing__BillingConnection_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__billing_BillingEventRow__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__billing__BillingEventRow_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__billing_ProviderInfo__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__billing__ProviderInfo_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__campaigns_Campaign__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__campaigns__Campaign_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__campaigns_Design__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_api__campaigns__Design_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__campaigns_Sent__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_api__campaigns__Sent_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__contact_events_EventDefinition__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__contact_events__EventDefinition_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__contact_events_Goal__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__goals__Goal_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__contact_events_SyncRule__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sync_rules__SyncRule_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__domains_Domain__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__emails_SenderAddress__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__emails__SenderAddress_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__events_Delivery__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__webhooks__Delivery_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__events_Webhook__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__webhooks__Webhook_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__forms_FormSubmission__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__forms__FormSubmission_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__forms_FormTemplate__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__FormTemplate_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__forms_Form__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__forms__Form_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__forwards_Forward__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__forwarding__Forward_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__members_Invitation__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__invitations__Invitation_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__members_Member__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__members__Member_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__mobile_MobileWorkspaceSummary__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__mobile__MobileWorkspaceSummary_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__pages_PageSummary__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__landing_pages__PageSummary_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__pages_runearc_core__PageTemplate__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__page_blocks__PageTemplate_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__popups_Popup__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__popups__Popup_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__segments_Segment__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__segments__Segment_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__sequences_Enrollment__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sequences__Enrollment_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__sequences_Sequence__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sequences__Sequence_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__sequences_StarterInfo__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sequences__starters__StarterInfo_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__templates_Template__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__templates__Template_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__tracking_TrackingEvent__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__tracking__events__TrackingEvent_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__List_runearc_api__waitlist_WaitlistEntry__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__waitlist__WaitlistEntry_output"
            }
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/lib.rs:278"
      },
      "runearc_api__account__DeleteBody_input": {
        "type": "object",
        "properties": {
          "confirm": {
            "type": "string"
          }
        },
        "required": [
          "confirm"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/account.rs:40"
      },
      "runearc_api__app_passwords__CreateBody_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/app_passwords.rs:29"
      },
      "runearc_api__audience__CreateField_input": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "kind"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/audience.rs:36"
      },
      "runearc_api__audience__Members_input": {
        "type": "object",
        "properties": {
          "contact_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "contact_ids"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/audience.rs:182"
      },
      "runearc_api__audience__NameBody_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/audience.rs:81"
      },
      "runearc_api__audience__PatchList_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/audience.rs:150"
      },
      "runearc_api__audience_import__Unsubscribe_input": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "emails"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/audience_import.rs:52"
      },
      "runearc_api__auth__CodeBody_input": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:238"
      },
      "runearc_api__auth__CreateKeyBody_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "permissions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`full`, `sending` or `inbox`."
          },
          "inbox_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sending keys: limit to one domain of the workspace (id or name)."
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:391"
      },
      "runearc_api__auth__CreatedKeyBody_output": {
        "type": "object",
        "properties": {
          "key": {
            "$ref": "#/components/schemas/runearc_core__keys__ApiKey_output"
          },
          "secret": {
            "type": "string",
            "description": "Shown once; Runearc stores only a hash."
          }
        },
        "required": [
          "key",
          "secret"
        ],
        "x-rust-source": "crates/api/src/auth.rs:401"
      },
      "runearc_api__auth__DomainLayoutBody_input": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__domain_layout__LayoutItem_input"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:349"
      },
      "runearc_api__auth__EmailBody_input": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:99"
      },
      "runearc_api__auth__MfaVerifyBody_input": {
        "type": "object",
        "properties": {
          "mfa_token": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "required": [
          "mfa_token",
          "code"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:289"
      },
      "runearc_api__auth__OAuthLoginBody_input": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "redirect_uri": {
            "type": "string"
          }
        },
        "required": [
          "provider",
          "code",
          "redirect_uri"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:218"
      },
      "runearc_api__auth__OAuthStartBody_input": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "redirect_uri": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "provider",
          "redirect_uri",
          "state"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:195"
      },
      "runearc_api__auth__OAuthUrl_output": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "x-rust-source": "crates/api/src/auth.rs:202"
      },
      "runearc_api__auth__Providers_output": {
        "type": "object",
        "properties": {
          "providers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "providers"
        ],
        "x-rust-source": "crates/api/src/auth.rs:165"
      },
      "runearc_api__auth__Sent_output": {
        "type": "object",
        "properties": {
          "sent": {
            "type": "boolean"
          }
        },
        "required": [
          "sent"
        ],
        "x-rust-source": "crates/api/src/auth.rs:104"
      },
      "runearc_api__auth__UnsubscribeBody_input": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "token"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:171"
      },
      "runearc_api__auth__UpdateMeBody_input": {
        "type": "object",
        "properties": {
          "name": {
            "description": "A string, or null to clear. Required, so an empty body is an error."
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:321"
      },
      "runearc_api__auth__VerifyBody_input": {
        "type": "object",
        "properties": {
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/auth.rs:120"
      },
      "runearc_api__billing__Create_input": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "provider"
        ],
        "x-rust-source": "crates/api/src/billing.rs:29"
      },
      "runearc_api__campaigns__CreateBody_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "start": {
            "$ref": "#/components/schemas/runearc_core__campaigns__StartingPoint_input"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/campaigns.rs:36"
      },
      "runearc_api__campaigns__Design_output": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "document": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          }
        },
        "required": [
          "slug",
          "name",
          "description",
          "subject",
          "document"
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:64"
      },
      "runearc_api__campaigns__SendBody_input": {
        "type": "object",
        "properties": {
          "scheduled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/campaigns.rs:54"
      },
      "runearc_api__campaigns__Sent_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "x-rust-source": "crates/api/src/campaigns.rs:59"
      },
      "runearc_api__campaigns__TestBody_input": {
        "type": "object",
        "properties": {
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "to"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/campaigns.rs:48"
      },
      "runearc_api__contact_events__DefPatch_input": {
        "type": "object",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "properties": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/contact_events.rs:138"
      },
      "runearc_api__contacts__StatusBody_input": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/contacts.rs:150"
      },
      "runearc_api__contacts__TagsBody_input": {
        "type": "object",
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "tags"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/contacts.rs:166"
      },
      "runearc_api__domain_connect__Callback_input": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "error_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "state"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/domain_connect.rs:31"
      },
      "runearc_api__domain_connect__Start_input": {
        "type": "object",
        "properties": {
          "return_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Dashboard path to come back to, such as `/app/new?resume=dc`."
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/domain_connect.rs:24"
      },
      "runearc_api__domains__AddDomain_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/domains.rs:27"
      },
      "runearc_api__domains__AutoConfigure_input": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "team_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "provider",
          "token"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/domains.rs:35"
      },
      "runearc_api__email_design__RenderBody_input": {
        "type": "object",
        "properties": {
          "document": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Document_input"
          },
          "vars": {
            "$ref": "#/components/schemas/runearc_core__email_design__vars__Vars_input"
          },
          "brand": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__email_design__brand__Brand_input"
              },
              {
                "type": "null"
              }
            ],
            "description": "Preview an unsaved brand (the dashboard form). Nothing is stored."
          }
        },
        "required": [
          "document"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/email_design.rs:68"
      },
      "runearc_api__emails__BatchAnswer_output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_api__emails__Sent_output"
            }
          },
          "errors": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__emails__BatchItemError_output"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Only in permissive mode, as Resend."
          }
        },
        "required": [
          "data"
        ],
        "x-rust-source": "crates/api/src/emails.rs:53"
      },
      "runearc_api__emails__EmailRef_output": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "object",
          "id"
        ],
        "x-rust-source": "crates/api/src/emails.rs:47"
      },
      "runearc_api__emails__Sent_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "x-rust-source": "crates/api/src/emails.rs:41"
      },
      "runearc_api__emails__UpdateEmail_input": {
        "type": "object",
        "properties": {
          "scheduled_at": {
            "type": "string"
          }
        },
        "required": [
          "scheduled_at"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/emails.rs:62"
      },
      "runearc_api__events__CreateWebhook_input": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "event_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inbox_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/events.rs:69"
      },
      "runearc_api__events__EventPage_output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__webhooks__Event_output"
            }
          },
          "next_after": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Pass as `?after=` to get the next events."
          }
        },
        "required": [
          "data",
          "next_after"
        ],
        "x-rust-source": "crates/api/src/events.rs:147"
      },
      "runearc_api__forms__ConfirmBody_input": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/forms.rs:178"
      },
      "runearc_api__forms__SubmitBody_input": {
        "type": "object",
        "properties": {
          "fields": {
            "type": "object",
            "additionalProperties": {
              "description": "Arbitrary JSON value (serde_json::Value in the source)."
            }
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "popup_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-rust-source": "crates/api/src/forms.rs:137"
      },
      "runearc_api__forwards__CreateForward_input": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/forwards.rs:30"
      },
      "runearc_api__forwards__VerifyForward_input": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/forwards.rs:36"
      },
      "runearc_api__members__AcceptBody_input": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/members.rs:155"
      },
      "runearc_api__members__TransferBody_input": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "user_id"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/members.rs:80"
      },
      "runearc_api__onboarding__DraftBody_input": {
        "type": "object",
        "properties": {
          "import_id": {
            "type": "string"
          },
          "style": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Style_input"
          }
        },
        "required": [
          "import_id"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/onboarding.rs:71"
      },
      "runearc_api__onboarding__ImportBody_input": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/onboarding.rs:45"
      },
      "runearc_api__onboarding__UpdateBody_input": {
        "type": "object",
        "properties": {
          "audience": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeAudience_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__email_design__doc__Style_input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/onboarding.rs:108"
      },
      "runearc_api__pages__HomeBody_input": {
        "type": "object",
        "properties": {
          "page_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/pages.rs:129"
      },
      "runearc_api__pages__HostBody_input": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string"
          }
        },
        "required": [
          "hostname"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/pages.rs:123"
      },
      "runearc_api__pages__SubmitBody_input": {
        "type": "object",
        "properties": {
          "fields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "fields"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/pages.rs:230"
      },
      "runearc_api__pages__ViewBody_input": {
        "type": "object",
        "properties": {
          "user_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/pages.rs:213"
      },
      "runearc_api__plan_billing__Checkout_input": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string"
          }
        },
        "required": [
          "plan"
        ],
        "x-rust-source": "crates/api/src/plan_billing.rs:31"
      },
      "runearc_api__popups__EventBody_input": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "x-rust-source": "crates/api/src/popups.rs:111"
      },
      "runearc_api__segments__PreviewBody_input": {
        "type": "object",
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/runearc_core__segments__filter__Filter_input"
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "filter"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/segments.rs:114"
      },
      "runearc_api__sending__AddSuppression_input": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          }
        },
        "required": [
          "address"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/sending.rs:121"
      },
      "runearc_api__sequences__EnrollBody_input": {
        "type": "object",
        "properties": {
          "contact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "force": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/sequences.rs:53"
      },
      "runearc_api__sequences__StepsBody_input": {
        "type": "object",
        "properties": {
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sequences__Wire_input"
            }
          }
        },
        "required": [
          "steps"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/sequences.rs:47"
      },
      "runearc_api__templates__CopyBody_input": {
        "type": "object",
        "properties": {
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/templates.rs:127"
      },
      "runearc_api__templates__PreviewBody_input": {
        "type": "object",
        "properties": {
          "version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__templates__VersionChoice_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "variables": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/templates.rs:150"
      },
      "runearc_api__tracking__PutDomain_input": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string"
          }
        },
        "required": [
          "hostname"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/tracking.rs:198"
      },
      "runearc_api__waitlist__Accepted_output": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "x-rust-source": "crates/api/src/waitlist.rs:83"
      },
      "runearc_api__waitlist__JoinBody_input": {
        "type": "object",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "use_case": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-rust-source": "crates/api/src/waitlist.rs:72"
      },
      "runearc_api__workspace__DeleteBody_input": {
        "type": "object",
        "properties": {
          "confirm": {
            "type": "string"
          }
        },
        "required": [
          "confirm"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/workspace.rs:127"
      },
      "runearc_api__workspace__WorkspacePatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "shared_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The workspace address: `acme` for `acme.runearc.email`."
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/api/src/workspace.rs:148"
      },
      "runearc_core__account_data__DeletedAccount_output": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean"
          }
        },
        "required": [
          "deleted"
        ],
        "x-rust-source": "crates/core/src/account_data.rs:38"
      },
      "runearc_core__ai__context__AiContextPatch_input": {
        "type": "object",
        "properties": {
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "product_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "founder_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "founder_voice": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "company_context": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "instructions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "languages": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "default_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/ai/context.rs:41"
      },
      "runearc_core__ai__context__AiContext_output": {
        "type": "object",
        "properties": {
          "product_name": {
            "type": "string"
          },
          "product_url": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "founder_name": {
            "type": "string"
          },
          "founder_voice": {
            "type": "string"
          },
          "tone": {
            "type": "string"
          },
          "company_context": {
            "type": "string"
          },
          "instructions": {
            "type": "string"
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "default_language": {
            "type": "string"
          }
        },
        "required": [
          "product_name",
          "product_url",
          "category",
          "founder_name",
          "founder_voice",
          "tone",
          "company_context",
          "instructions",
          "languages",
          "default_language"
        ],
        "x-rust-source": "crates/core/src/ai/context.rs:9"
      },
      "runearc_core__ai__generate__GenerateEmailRequest_input": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "site_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Text scraped from the customer's site (plan 15). Untrusted."
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "prompt"
        ],
        "x-rust-source": "crates/core/src/ai/generate.rs:24"
      },
      "runearc_core__ai__generate__GenerateSequenceRequest_input": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "site_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "1 to 10; default 4 (immediate, day 1, day 3, day 5)."
          }
        },
        "required": [
          "prompt"
        ],
        "x-rust-source": "crates/core/src/ai/generate.rs:34"
      },
      "runearc_core__ai__generate__GeneratedEmail_output": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "preview_text": {
            "type": "string"
          },
          "document": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Document_output"
          }
        },
        "required": [
          "subject",
          "preview_text",
          "document"
        ],
        "x-rust-source": "crates/core/src/ai/generate.rs:46"
      },
      "runearc_core__ai__generate__SequenceDraft_output": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__ai__generate__SequenceStepDraft_output"
            }
          }
        },
        "required": [
          "name",
          "steps"
        ],
        "x-rust-source": "crates/core/src/ai/generate.rs:61"
      },
      "runearc_core__ai__generate__SequenceStepDraft_output": {
        "type": "object",
        "properties": {
          "delay_days": {
            "type": "integer"
          },
          "subject": {
            "type": "string"
          },
          "preview_text": {
            "type": "string"
          },
          "document": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Document_output"
          }
        },
        "required": [
          "delay_days",
          "subject",
          "preview_text",
          "document"
        ],
        "x-rust-source": "crates/core/src/ai/generate.rs:53"
      },
      "runearc_core__ai__usage__AiUsage_output": {
        "type": "object",
        "properties": {
          "used": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "month": {
            "type": "string",
            "description": "First day of the UTC month, `YYYY-MM-DD`."
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          }
        },
        "required": [
          "used",
          "limit",
          "month",
          "input_tokens",
          "output_tokens"
        ],
        "x-rust-source": "crates/core/src/ai/usage.rs:10"
      },
      "runearc_core__analytics__AnalyticsReport_output": {
        "type": "object",
        "properties": {
          "range": {
            "$ref": "#/components/schemas/runearc_core__analytics__Range_output"
          },
          "filters": {
            "$ref": "#/components/schemas/runearc_core__analytics__Filters_output"
          },
          "availability": {
            "$ref": "#/components/schemas/runearc_core__analytics__Availability_output"
          },
          "totals": {
            "$ref": "#/components/schemas/runearc_core__analytics__Metrics_output"
          },
          "rates": {
            "$ref": "#/components/schemas/runearc_core__analytics__Rates_output"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__analytics__SeriesPoint_output"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__analytics__Row_output"
            }
          }
        },
        "required": [
          "range",
          "filters",
          "availability",
          "totals",
          "rates",
          "series",
          "rows"
        ],
        "x-rust-source": "crates/core/src/analytics.rs:440"
      },
      "runearc_core__analytics__Availability_output": {
        "type": "object",
        "properties": {
          "tracking": {
            "type": "boolean"
          },
          "conversions": {
            "type": "boolean"
          },
          "campaigns": {
            "type": "boolean"
          },
          "sequences": {
            "type": "boolean"
          },
          "segments": {
            "type": "boolean"
          }
        },
        "required": [
          "tracking",
          "conversions",
          "campaigns",
          "sequences",
          "segments"
        ],
        "x-rust-source": "crates/core/src/analytics.rs:319"
      },
      "runearc_core__analytics__Filters_output": {
        "type": "object",
        "properties": {
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "step_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subscriber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "type",
          "source_id",
          "step_id",
          "provider",
          "subscriber"
        ],
        "x-rust-source": "crates/core/src/analytics.rs:413"
      },
      "runearc_core__analytics__Interval_output": {
        "anyOf": [
          {
            "const": "hour",
            "type": "string"
          },
          {
            "const": "day",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/analytics.rs:73"
      },
      "runearc_core__analytics__Metrics_output": {
        "type": "object",
        "properties": {
          "sent": {
            "type": "integer"
          },
          "delivered": {
            "type": "integer"
          },
          "bounced": {
            "type": "integer"
          },
          "complained": {
            "type": "integer"
          },
          "opened": {
            "type": "integer"
          },
          "clicked": {
            "type": "integer"
          },
          "unsubscribed": {
            "type": "integer"
          },
          "conversions": {
            "type": "integer"
          },
          "revenue_cents": {
            "type": "integer"
          }
        },
        "required": [
          "sent",
          "delivered",
          "bounced",
          "complained",
          "opened",
          "clicked",
          "unsubscribed",
          "conversions",
          "revenue_cents"
        ],
        "x-rust-source": "crates/core/src/analytics.rs:23"
      },
      "runearc_core__analytics__Range_output": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "interval": {
            "$ref": "#/components/schemas/runearc_core__analytics__Interval_output"
          }
        },
        "required": [
          "from",
          "to",
          "interval"
        ],
        "x-rust-source": "crates/core/src/analytics.rs:406"
      },
      "runearc_core__analytics__Rates_output": {
        "type": "object",
        "properties": {
          "delivery": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "bounce": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "complaint": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "open": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "click": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "unsubscribe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "delivery",
          "bounce",
          "complaint",
          "open",
          "click",
          "unsubscribe"
        ],
        "x-rust-source": "crates/core/src/analytics.rs:62"
      },
      "runearc_core__analytics__Row_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "step_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "provider": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "source_id",
              "step_id",
              "provider",
              "label"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__analytics__Metrics_output"
          }
        ],
        "x-rust-source": "crates/core/src/analytics.rs:429"
      },
      "runearc_core__analytics__SeriesPoint_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "t": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "t"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__analytics__Metrics_output"
          }
        ],
        "x-rust-source": "crates/core/src/analytics.rs:422"
      },
      "runearc_core__apple_auth__AppleLogin_input": {
        "type": "object",
        "properties": {
          "identity_token": {
            "type": "string"
          },
          "authorization_code": {
            "type": "string"
          },
          "nonce": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "identity_token",
          "authorization_code",
          "nonce"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/apple_auth.rs:35"
      },
      "runearc_core__audience__AudienceList_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "member_count": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "member_count",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/audience.rs:358"
      },
      "runearc_core__audience__ContactField_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "key",
          "label",
          "kind",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/audience.rs:40"
      },
      "runearc_core__audience__Tag_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "contact_count": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "contact_count",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/audience.rs:271"
      },
      "runearc_core__audience_bulk__BulkAction_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "const": "tag"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "action",
              "tags"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "const": "add_to_list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "action",
              "list_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "const": "unsubscribe"
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "const": "delete"
              }
            },
            "required": [
              "action"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/audience_bulk.rs:59"
      },
      "runearc_core__audience_bulk__BulkOperation_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`queued`, `running`, `done` or `failed`."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "`None` for a filter selection."
          },
          "processed": {
            "type": "integer"
          },
          "succeeded": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "failures": {
            "description": "The first 100 failures: `[{\"target\",\"code\",\"message\"}]`."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "action",
          "status",
          "total",
          "processed",
          "succeeded",
          "failed",
          "failures",
          "created_at",
          "finished_at"
        ],
        "x-rust-source": "crates/core/src/audience_bulk.rs:85"
      },
      "runearc_core__audience_bulk__BulkRequest_input": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "selection": {
                "$ref": "#/components/schemas/runearc_core__audience_bulk__Selection_input"
              }
            },
            "required": [
              "selection"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__audience_bulk__BulkAction_input"
          }
        ],
        "x-rust-source": "crates/core/src/audience_bulk.rs:78"
      },
      "runearc_core__audience_bulk__SelectionFilter_input": {
        "type": "object",
        "properties": {
          "q": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-rust-source": "crates/core/src/audience_bulk.rs:38"
      },
      "runearc_core__audience_bulk__Selection_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "ids"
              },
              "ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "type",
              "ids"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "emails"
              },
              "emails": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "type",
              "emails"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "query"
              },
              "filter": {
                "$ref": "#/components/schemas/runearc_core__audience_bulk__SelectionFilter_input"
              }
            },
            "required": [
              "type",
              "filter"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/audience_bulk.rs:30"
      },
      "runearc_core__audience_import__ImportError_output": {
        "type": "object",
        "properties": {
          "row_number": {
            "type": "integer"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "row_number",
          "email",
          "code",
          "message"
        ],
        "x-rust-source": "crates/core/src/audience_import.rs:108"
      },
      "runearc_core__audience_import__ImportMapping_input": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The CSV column holding the address."
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Contact field key to CSV column."
          }
        },
        "required": [
          "email"
        ],
        "x-rust-source": "crates/core/src/audience_import.rs:54"
      },
      "runearc_core__audience_import__ImportPreview_output": {
        "type": "object",
        "properties": {
          "import": {
            "$ref": "#/components/schemas/runearc_core__audience_import__Import_output"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sample": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "suggested_mapping": {
            "$ref": "#/components/schemas/runearc_core__audience_import__SuggestedMapping_output"
          }
        },
        "required": [
          "import",
          "columns",
          "sample",
          "suggested_mapping"
        ],
        "x-rust-source": "crates/core/src/audience_import.rs:100"
      },
      "runearc_core__audience_import__ImportStart_input": {
        "type": "object",
        "properties": {
          "mapping": {
            "$ref": "#/components/schemas/runearc_core__audience_import__ImportMapping_input"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "mapping"
        ],
        "x-rust-source": "crates/core/src/audience_import.rs:67"
      },
      "runearc_core__audience_import__Import_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`uploaded`, `queued`, `running`, `done`, `failed` or `canceled`."
          },
          "total_rows": {
            "type": "integer"
          },
          "processed_rows": {
            "type": "integer"
          },
          "created_count": {
            "type": "integer"
          },
          "updated_count": {
            "type": "integer"
          },
          "skipped_count": {
            "type": "integer"
          },
          "error_count": {
            "type": "integer"
          },
          "failure": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "filename",
          "status",
          "total_rows",
          "processed_rows",
          "created_count",
          "updated_count",
          "skipped_count",
          "error_count",
          "failure",
          "created_at",
          "started_at",
          "finished_at"
        ],
        "x-rust-source": "crates/core/src/audience_import.rs:79"
      },
      "runearc_core__audience_import__SuggestedMapping_output": {
        "type": "object",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "email",
          "first_name",
          "last_name"
        ],
        "x-rust-source": "crates/core/src/audience_import.rs:47"
      },
      "runearc_core__audit__AuditEvent_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "actor_type": {
            "type": "string",
            "description": "`user`, `api_key` or `system`."
          },
          "actor_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "actor_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The user's email, or the key's name and prefix."
          },
          "actor_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The acting user's display name; `null` for keys, Runearc, or users with no name."
          },
          "action": {
            "type": "string"
          },
          "target_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "target_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "target_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "actor_type",
          "actor_id",
          "actor_label",
          "actor_name",
          "action",
          "target_type",
          "target_id",
          "target_label",
          "metadata",
          "ip",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/audit.rs:95"
      },
      "runearc_core__auth__LoginOutcome_output": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/runearc_core__auth__LoginSession_output"
          },
          {
            "$ref": "#/components/schemas/runearc_core__mfa__MfaChallenge_output"
          }
        ],
        "x-rust-source": "crates/core/src/auth.rs:145"
      },
      "runearc_core__auth__LoginSession_output": {
        "type": "object",
        "properties": {
          "session_token": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "user": {
            "$ref": "#/components/schemas/runearc_core__auth__User_output"
          },
          "org": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__orgs__Org_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "The user's first workspace. `None` for someone whose first sign in is to accept an invitation: they join that workspace when they accept, and get no personal workspace of their own."
          },
          "new_account": {
            "type": "boolean"
          }
        },
        "required": [
          "session_token",
          "expires_at",
          "user",
          "org",
          "new_account"
        ],
        "x-rust-source": "crates/core/src/auth.rs:131"
      },
      "runearc_core__auth__Me_output": {
        "type": "object",
        "properties": {
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__auth__User_output"
              },
              {
                "type": "null"
              }
            ]
          },
          "org": {
            "$ref": "#/components/schemas/runearc_core__orgs__Org_output"
          },
          "shared_domain": {
            "type": "string",
            "description": "The workspace's shared domain for new inboxes: `{name}.{shared domain}` once it has a name (see [`crate::shared_names`]), else `{code}.{shared domain}`."
          },
          "shared_code_domain": {
            "type": "string",
            "description": "`{org.shared_code}.{shared domain}`: the private domain that never changes and holds the catch-all. Equals `shared_domain` until the workspace claims a name."
          },
          "sandbox": {
            "type": "boolean",
            "description": "True while the workspace has no verified domain: mail from its shared addresses may only go to its members and test recipients."
          },
          "plan": {
            "$ref": "#/components/schemas/runearc_core__plans__Plan_output",
            "description": "The org's plan and its limits."
          },
          "usage": {
            "$ref": "#/components/schemas/runearc_core__plans__Usage_output",
            "description": "What the org has used against them."
          },
          "stats": {
            "$ref": "#/components/schemas/runearc_core__workspace_stats__WorkspaceStats_output",
            "description": "What the workspace holds and did today."
          },
          "workspace_role": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__permissions__WorkspaceRole_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session user's role in this workspace; `None` for API keys."
          },
          "member_role": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__permissions__MemberRole_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "The member role that applies: `admin` for owners, admins and full access keys, the member's role for workspace `member`s, `None` for billing members and limited keys."
          },
          "inbox_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The inboxes the caller is limited to; `None` for every inbox."
          },
          "workspace_permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "workspace.billing",
                "workspace.members",
                "workspace.audit",
                "workspace.settings",
                "audience.manage",
                "domain.manage",
                "domain.view",
                "inbox.manage",
                "inbox.read",
                "inbox.reply",
                "key.manage",
                "webhook.manage",
                "sending.send",
                "logs.view"
              ]
            },
            "description": "Workspace permissions (`workspace.billing`, `workspace.members`, `workspace.audit`, `workspace.settings`). Empty for API keys."
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "workspace.billing",
                "workspace.members",
                "workspace.audit",
                "workspace.settings",
                "audience.manage",
                "domain.manage",
                "domain.view",
                "inbox.manage",
                "inbox.read",
                "inbox.reply",
                "key.manage",
                "webhook.manage",
                "sending.send",
                "logs.view"
              ]
            },
            "description": "What the caller may do in the workspace (`inbox.read`, ...)."
          },
          "auth": {
            "type": "string",
            "description": "`session` or `api_key`."
          },
          "key_prefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform_admin": {
            "type": "boolean",
            "description": "True only for a platform admin's session (`RUNEARC_ADMIN_EMAILS`); left out otherwise."
          }
        },
        "required": [
          "user",
          "org",
          "shared_domain",
          "shared_code_domain",
          "sandbox",
          "plan",
          "usage",
          "stats",
          "workspace_role",
          "member_role",
          "inbox_ids",
          "workspace_permissions",
          "permissions",
          "auth"
        ],
        "x-rust-source": "crates/core/src/auth.rs:171"
      },
      "runearc_core__auth__User_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional display name; `null` until the user sets one."
          }
        },
        "required": [
          "id",
          "email",
          "name"
        ],
        "x-rust-source": "crates/core/src/auth.rs:114"
      },
      "runearc_core__auth__Workspace_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "plan": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "description": "The user's role: `owner`, `admin`, `member` or `billing`."
          },
          "joined_at": {
            "type": "string",
            "format": "date-time"
          },
          "current": {
            "type": "boolean",
            "description": "The workspace this request works in."
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "plan",
          "role",
          "joined_at",
          "current"
        ],
        "x-rust-source": "crates/core/src/auth.rs:213"
      },
      "runearc_core__badge__BadgePatch_input": {
        "type": "object",
        "properties": {
          "show_sent_via_badge": {
            "type": "boolean"
          }
        },
        "required": [
          "show_sent_via_badge"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/badge.rs:188"
      },
      "runearc_core__badge__BadgeSettings_output": {
        "type": "object",
        "properties": {
          "show_sent_via_badge": {
            "type": "boolean",
            "description": "Whether this workspace's mail carries \"Sent via Runearc\" now."
          },
          "can_change": {
            "type": "boolean",
            "description": "False on the free plan, which always shows it."
          },
          "plan": {
            "type": "string"
          }
        },
        "required": [
          "show_sent_via_badge",
          "can_change",
          "plan"
        ],
        "x-rust-source": "crates/core/src/badge.rs:177"
      },
      "runearc_core__billing__BillingConnection_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_event_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "webhook_path": {
            "type": "string",
            "description": "`/v1/hooks/billing/{provider}/{token}`; prefix with the API origin."
          }
        },
        "required": [
          "id",
          "org_id",
          "provider",
          "created_at",
          "last_event_at",
          "webhook_path"
        ],
        "x-rust-source": "crates/core/src/billing/mod.rs:290"
      },
      "runearc_core__billing__BillingEventRow_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "provider_event_id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_cents": {
            "type": "integer"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "provider_event_id",
          "kind",
          "email",
          "amount_cents",
          "currency",
          "status",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/billing/mod.rs:320"
      },
      "runearc_core__billing__BillingOutcome_output": {
        "type": "object",
        "properties": {
          "processed": {
            "type": "integer",
            "minimum": 0
          },
          "unmatched": {
            "type": "integer",
            "minimum": 0
          },
          "duplicates": {
            "type": "integer",
            "minimum": 0
          },
          "ignored": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "processed",
          "unmatched",
          "duplicates",
          "ignored"
        ],
        "x-rust-source": "crates/core/src/billing/mod.rs:312"
      },
      "runearc_core__billing__CreatedBillingConnection_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "secret": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Set only when Runearc generated the secret; shown once."
              }
            },
            "required": [
              "secret"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__billing__BillingConnection_output"
          }
        ],
        "x-rust-source": "crates/core/src/billing/mod.rs:304"
      },
      "runearc_core__billing__ProviderInfo_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "x-rust-source": "crates/core/src/billing/mod.rs:263"
      },
      "runearc_core__campaigns__Audience_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "list"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "segment"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "tag"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/campaigns.rs:45"
      },
      "runearc_core__campaigns__CampaignPatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "preheader": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "from_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "document": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "audience": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__campaigns__Audience_input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/campaigns.rs:61"
      },
      "runearc_core__campaigns__Campaign_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "preheader": {
            "type": "string"
          },
          "from_address": {
            "type": "string"
          },
          "reply_to": {
            "type": "string"
          },
          "document": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "audience": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "status": {
            "type": "string"
          },
          "scheduled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "recipients_total": {
            "type": "integer"
          },
          "sent_count": {
            "type": "integer"
          },
          "suppressed_count": {
            "type": "integer"
          },
          "deferred_count": {
            "type": "integer"
          },
          "unsubscribed_count": {
            "type": "integer"
          },
          "failed_count": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "name",
          "subject",
          "preheader",
          "from_address",
          "reply_to",
          "document",
          "audience",
          "source",
          "status",
          "scheduled_at",
          "started_at",
          "finished_at",
          "recipients_total",
          "sent_count",
          "suppressed_count",
          "deferred_count",
          "unsubscribed_count",
          "failed_count",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/campaigns.rs:18"
      },
      "runearc_core__campaigns__StartingPoint_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "blank"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "design"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "slug"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "copy"
              },
              "campaign_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "campaign_id"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/campaigns.rs:53"
      },
      "runearc_core__contact_events__ContactEvent_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "contact_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "properties": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "source": {
            "type": "string"
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "processed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "org_id",
          "contact_id",
          "name",
          "properties",
          "source",
          "idempotency_key",
          "occurred_at",
          "created_at",
          "processed_at"
        ],
        "x-rust-source": "crates/core/src/contact_events.rs:255"
      },
      "runearc_core__contact_events__EventDefinition_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "properties": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "auto": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "properties",
          "auto",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/contact_events.rs:44"
      },
      "runearc_core__contact_events__EventPage_output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__contact_events__ContactEvent_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/contact_events.rs:288"
      },
      "runearc_core__contact_events__NewEventDefinition_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "properties": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/contact_events.rs:56"
      },
      "runearc_core__contact_events__NewEvent_input": {
        "type": "object",
        "properties": {
          "contact_email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "properties": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "occurred_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "contact_email",
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/contact_events.rs:239"
      },
      "runearc_core__contact_events__TrackedEvent_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "duplicate": {
                "type": "boolean"
              }
            },
            "required": [
              "duplicate"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__contact_events__ContactEvent_output"
          }
        ],
        "x-rust-source": "crates/core/src/contact_events.rs:271"
      },
      "runearc_core__contacts__ContactCounts_output": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer"
          },
          "active": {
            "type": "integer"
          },
          "unsubscribed": {
            "type": "integer"
          },
          "bounced": {
            "type": "integer"
          },
          "complained": {
            "type": "integer"
          }
        },
        "required": [
          "total",
          "active",
          "unsubscribed",
          "bounced",
          "complained"
        ],
        "x-rust-source": "crates/core/src/contacts.rs:81"
      },
      "runearc_core__contacts__ContactPatch_input": {
        "type": "object",
        "properties": {
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_cents": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "description": "Arbitrary JSON value (serde_json::Value in the source)."
            }
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/contacts.rs:60"
      },
      "runearc_core__contacts__Contact_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_cents": {
            "type": "integer"
          },
          "fields": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "unsubscribed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "org_id",
          "email",
          "first_name",
          "last_name",
          "status",
          "source",
          "revenue_cents",
          "fields",
          "tags",
          "list_ids",
          "created_at",
          "updated_at",
          "unsubscribed_at"
        ],
        "x-rust-source": "crates/core/src/contacts.rs:17"
      },
      "runearc_core__contacts__NewContact_input": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_cents": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "description": "Arbitrary JSON value (serde_json::Value in the source)."
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/contacts.rs:44"
      },
      "runearc_core__conversations__Assignee_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "email"
        ],
        "x-rust-source": "crates/core/src/conversations.rs:36"
      },
      "runearc_core__conversations__ConversationUpdate_input": {
        "type": "object",
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee_user_id": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "snoozed_until": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/conversations.rs:228"
      },
      "runearc_core__conversations__Conversation_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The thread id."
          },
          "inbox": {
            "$ref": "#/components/schemas/runearc_core__conversations__InboxRef_output"
          },
          "subject": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`open` or `closed`. A snoozed conversation is `open` with `snoozed_until` in the future."
          },
          "snoozed_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__conversations__Assignee_output"
              },
              {
                "type": "null"
              }
            ]
          },
          "unread": {
            "type": "boolean",
            "description": "For the signed in user; always false for API keys."
          },
          "message_count": {
            "type": "integer"
          },
          "last_message_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_inbound_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_from": {
            "type": "string",
            "description": "Sender of the newest message."
          },
          "last_direction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`in` when the newest message was received, `out` when it was sent."
          },
          "last_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "First recipient of the newest message, for \"To: …\" on sent mail."
          },
          "last_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest message's status: `received`, or for sent mail `queued`, `delivered`, `deferred`, `bounced` and so on."
          }
        },
        "required": [
          "id",
          "inbox",
          "subject",
          "snippet",
          "status",
          "snoozed_until",
          "assignee",
          "unread",
          "message_count",
          "last_message_at",
          "last_inbound_at",
          "last_from",
          "last_direction",
          "last_to",
          "last_status"
        ],
        "x-rust-source": "crates/core/src/conversations.rs:43"
      },
      "runearc_core__conversations__Counts_output": {
        "type": "object",
        "properties": {
          "open": {
            "type": "integer",
            "description": "Open, not snoozed."
          },
          "assigned_to_me": {
            "type": "integer"
          },
          "unassigned": {
            "type": "integer"
          },
          "drafts": {
            "type": "integer",
            "description": "Drafts in every readable inbox."
          },
          "snoozed": {
            "type": "integer"
          },
          "spam": {
            "type": "integer"
          },
          "received_month": {
            "type": "integer"
          },
          "sent_month": {
            "type": "integer"
          },
          "done": {
            "type": "integer",
            "description": "Conversations marked done, and every conversation."
          },
          "all": {
            "type": "integer"
          },
          "month_start": {
            "type": "string",
            "format": "date-time",
            "description": "Where `*_month` starts: the first of the current month, 00:00 UTC."
          },
          "by_inbox": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__conversations__InboxCount_output"
            }
          }
        },
        "required": [
          "open",
          "assigned_to_me",
          "unassigned",
          "drafts",
          "snoozed",
          "spam",
          "received_month",
          "sent_month",
          "done",
          "all",
          "month_start",
          "by_inbox"
        ],
        "x-rust-source": "crates/core/src/conversations.rs:169"
      },
      "runearc_core__conversations__InboxCount_output": {
        "type": "object",
        "properties": {
          "inbox_id": {
            "type": "string"
          },
          "open": {
            "type": "integer"
          },
          "unread": {
            "type": "integer",
            "description": "Open conversations unread by the caller."
          },
          "drafts": {
            "type": "integer"
          },
          "snoozed": {
            "type": "integer",
            "description": "Open conversations snoozed until later (the Snoozed folder)."
          },
          "spam": {
            "type": "integer",
            "description": "Open conversations where everything that came in was spam (the Spam folder, without what was marked done)."
          },
          "received_month": {
            "type": "integer",
            "description": "Messages received that were not spam, since `month_start` and in all."
          },
          "received_total": {
            "type": "integer"
          },
          "sent_month": {
            "type": "integer",
            "description": "Messages sent from the inbox (dashboard, mail apps, and `/v1/emails` sends recorded in its Sent), since `month_start` and in all."
          },
          "sent_total": {
            "type": "integer"
          },
          "spam_month": {
            "type": "integer",
            "description": "Messages received that were scored as spam, since `month_start` and in all."
          },
          "spam_total": {
            "type": "integer"
          },
          "done": {
            "type": "integer",
            "description": "Conversations marked done (the Done folder)."
          },
          "all": {
            "type": "integer",
            "description": "Every conversation, whatever its state (the All mail folder)."
          }
        },
        "required": [
          "inbox_id",
          "open",
          "unread",
          "drafts",
          "snoozed",
          "spam",
          "received_month",
          "received_total",
          "sent_month",
          "sent_total",
          "spam_month",
          "spam_total",
          "done",
          "all"
        ],
        "x-rust-source": "crates/core/src/conversations.rs:189"
      },
      "runearc_core__conversations__InboxRef_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "address": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "address"
        ],
        "x-rust-source": "crates/core/src/conversations.rs:30"
      },
      "runearc_core__deliverability__Check_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable id, such as `spf`, `dkim`, `fcrdns`, `list_unsubscribe`."
          },
          "title": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/runearc_core__deliverability__Status_output"
          },
          "summary": {
            "type": "string",
            "description": "What we found, in plain English."
          },
          "fix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The exact fix, when there is something to fix."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__deliverability__Detail_output"
            }
          },
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__deliverability__Link_output"
            }
          },
          "penalty": {
            "type": "number",
            "description": "Points this check took off the score (0 when it passed)."
          }
        },
        "required": [
          "id",
          "title",
          "status",
          "summary",
          "penalty"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:139"
      },
      "runearc_core__deliverability__DeliverabilityCheck_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "address": {
            "type": "string",
            "description": "`test-...@check.runearc.com`."
          },
          "status": {
            "type": "string",
            "description": "`waiting` (no message yet), `analyzing` (the message arrived, the report is being written), `ready` (see `report`) or `expired` (no message within the hour)."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "The address stops taking mail at this time."
          },
          "received_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "delete_after": {
            "type": "string",
            "format": "date-time",
            "description": "The check and its report are deleted at this time."
          },
          "report": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__deliverability__Report_output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "address",
          "status",
          "created_at",
          "expires_at",
          "received_at",
          "delete_after",
          "report"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:47"
      },
      "runearc_core__deliverability__Detail_output": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A short explanation of the row, when it needs one."
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__deliverability__Status_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "The row's own status (a DKIM signature, a blocklist, an rspamd symbol)."
          }
        },
        "required": [
          "label",
          "value"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:98"
      },
      "runearc_core__deliverability__Link_output": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "url"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:132"
      },
      "runearc_core__deliverability__MessageFacts_output": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "The header From address."
          },
          "mail_from": {
            "type": "string",
            "description": "The envelope sender (MAIL FROM); empty for the null sender."
          },
          "subject": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 0
          },
          "ip": {
            "type": "string",
            "description": "The connecting client."
          },
          "helo": {
            "type": "string"
          },
          "tls": {
            "type": "boolean",
            "description": "The message came over TLS (STARTTLS)."
          }
        },
        "required": [
          "from",
          "mail_from",
          "subject",
          "size_bytes",
          "ip",
          "helo",
          "tls"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:228"
      },
      "runearc_core__deliverability__Report_output": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0,
            "description": "Bumped when the shape changes in a way readers must know about."
          },
          "score": {
            "type": "number",
            "description": "0 to 10, one decimal."
          },
          "grade": {
            "type": "string",
            "description": "`excellent`, `good`, `needs_work` or `poor`."
          },
          "summary": {
            "type": "string",
            "description": "A short summary for the top of the page."
          },
          "message": {
            "$ref": "#/components/schemas/runearc_core__deliverability__MessageFacts_output"
          },
          "sent_with_runearc": {
            "type": "boolean",
            "description": "The message looks like it was sent through Runearc. Said honestly on the page; it changes nothing in the score."
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__deliverability__Section_output"
            }
          },
          "analyzed_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "version",
          "score",
          "grade",
          "summary",
          "message",
          "sent_with_runearc",
          "sections",
          "analyzed_at"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:244"
      },
      "runearc_core__deliverability__Section_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "`authentication`, `infrastructure`, `blocklists`, `spam`, `bulk_senders`, `content`."
          },
          "title": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/runearc_core__deliverability__Status_output",
            "description": "The worst status of its checks."
          },
          "summary": {
            "type": "string",
            "description": "One sentence about the section as a whole."
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__deliverability__Check_output"
            }
          }
        },
        "required": [
          "id",
          "title",
          "status",
          "summary",
          "checks"
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:202"
      },
      "runearc_core__deliverability__Status_output": {
        "anyOf": [
          {
            "const": "skip",
            "type": "string"
          },
          {
            "const": "info",
            "type": "string"
          },
          {
            "const": "pass",
            "type": "string"
          },
          {
            "const": "warn",
            "type": "string"
          },
          {
            "const": "fail",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/deliverability.rs:79"
      },
      "runearc_core__domain_connect__DomainConnectOutcome_output": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "`applied`, `cancelled` or `failed`."
          },
          "provider_name": {
            "type": "string"
          },
          "return_to": {
            "type": "string",
            "description": "The dashboard path the flow started from."
          },
          "next_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The next approval (the `mail.` subdomain of a pair). Redirect there."
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
            },
            "description": "The domains of the run, after a verify for the one just applied."
          },
          "message": {
            "type": "string"
          },
          "fix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "status",
          "provider_name",
          "return_to",
          "next_url",
          "domains",
          "message",
          "fix"
        ],
        "x-rust-source": "crates/core/src/domain_connect.rs:159"
      },
      "runearc_core__domain_connect__DomainConnectStart_output": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "provider_name": {
            "type": "string"
          },
          "steps": {
            "type": "integer",
            "minimum": 0,
            "description": "Approvals the person will see, one per domain."
          }
        },
        "required": [
          "url",
          "provider_name",
          "steps"
        ],
        "x-rust-source": "crates/core/src/domain_connect.rs:150"
      },
      "runearc_core__domain_connect__DomainConnectStatus_output": {
        "type": "object",
        "properties": {
          "domain_id": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "zone": {
            "type": "string",
            "description": "The zone at the DNS host and the host under it (`rowkit.app`, `mail`)."
          },
          "host": {
            "type": "string"
          },
          "provider_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "For the button: \"Set up on Vercel\"."
          },
          "supported": {
            "type": "boolean",
            "description": "The DNS host offers the redirect and approve flow."
          },
          "template_onboarded": {
            "type": "boolean",
            "description": "The DNS host has our template."
          },
          "available": {
            "type": "boolean",
            "description": "A link can be made now: supported, onboarded (or forced in development), signed."
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why not, in words, when `available` is false."
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every domain one approval run sets up: this one and its `mail.` pair."
          },
          "manual": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Records the host will not write, to add by hand (an existing DMARC to merge)."
          }
        },
        "required": [
          "domain_id",
          "domain",
          "zone",
          "host",
          "provider_id",
          "provider_name",
          "supported",
          "template_onboarded",
          "available",
          "reason",
          "domains",
          "manual"
        ],
        "x-rust-source": "crates/core/src/domain_connect.rs:125"
      },
      "runearc_core__domain_layout__DomainLayout_output": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__domain_layout__LayoutItem_output"
            }
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/domain_layout.rs:26"
      },
      "runearc_core__domain_layout__LayoutItem_input": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "domains"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/domain_layout.rs:18"
      },
      "runearc_core__domain_layout__LayoutItem_output": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "domains",
          "name"
        ],
        "x-rust-source": "crates/core/src/domain_layout.rs:18"
      },
      "runearc_core__domains__AddedDomain_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "existing_mx": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/runearc_core__domains__ExistingMx_output"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "existing_mx"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
          }
        ],
        "x-rust-source": "crates/core/src/domains.rs:93"
      },
      "runearc_core__domains__AutoConfigured_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "written": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__domains__WrittenRecord_output"
                }
              }
            },
            "required": [
              "written"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
          }
        ],
        "x-rust-source": "crates/core/src/domains.rs:109"
      },
      "runearc_core__domains__DomainRecord_output": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "priority": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "required": {
            "type": "boolean",
            "description": "MX, SPF and DKIM are required for `verified`; DMARC and the return path are recommended."
          },
          "status": {
            "type": "string",
            "description": "`unchecked`, `ok`, `missing` or `wrong`."
          },
          "fix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What to do, in words a human can follow. `None` when the record is fine."
          },
          "last_checked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "name",
          "type",
          "value",
          "priority",
          "required",
          "status",
          "fix",
          "last_checked_at"
        ],
        "x-rust-source": "crates/core/src/domains.rs:34"
      },
      "runearc_core__domains__Domain_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parent_domain_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set on a `mail.<root>` subdomain that setup created for receiving: the id of the root domain it pairs with, which sends. The pair counts as one domain against the plan's limit."
          },
          "status": {
            "type": "string",
            "description": "Compatibility alias for sending readiness: `pending`, `verified` or `failing`."
          },
          "sending_status": {
            "type": "string",
            "description": "`pending`, `ready` or `failing`. Requires sending DNS and SES identity success."
          },
          "receiving_status": {
            "type": "string",
            "description": "`disabled`, `pending`, `ready` or `failing`. Depends only on inbound MX."
          },
          "ses_identity_status": {
            "type": "string",
            "description": "SES identity verification: `not_started`, `pending`, `verified`, `failed`, or `temporary_failure`."
          },
          "ses_dkim_status": {
            "type": "string"
          },
          "ses_mail_from_status": {
            "type": "string"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "DNS host from NS records: `vercel`, `cloudflare`, `route53`, `godaddy`, `namecheap`, `google` or `other`. `None` when it could not be detected yet."
          },
          "can_auto_configure": {
            "type": "boolean",
            "description": "True when `auto-configure` can write the records at this provider."
          },
          "dkim_selector": {
            "type": "string"
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_checked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__domains__DomainRecord_output"
            }
          },
          "next_step": {
            "type": "string",
            "description": "The one thing to do next."
          }
        },
        "required": [
          "id",
          "org_id",
          "name",
          "parent_domain_id",
          "status",
          "sending_status",
          "receiving_status",
          "ses_identity_status",
          "ses_dkim_status",
          "ses_mail_from_status",
          "provider",
          "can_auto_configure",
          "dkim_selector",
          "verified_at",
          "last_checked_at",
          "created_at",
          "records",
          "next_step"
        ],
        "x-rust-source": "crates/core/src/domains.rs:51"
      },
      "runearc_core__domains__ExistingMx_output": {
        "type": "object",
        "properties": {
          "hosts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suggestion": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "hosts",
          "suggestion",
          "message"
        ],
        "x-rust-source": "crates/core/src/domains.rs:86"
      },
      "runearc_core__domains__WrittenRecord_output": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "action": {
            "type": "string",
            "description": "`created`, `updated` or `unchanged`."
          }
        },
        "required": [
          "name",
          "type",
          "action"
        ],
        "x-rust-source": "crates/core/src/domains.rs:100"
      },
      "runearc_core__drafts__DraftInput_input": {
        "type": "object",
        "properties": {
          "inbox_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_to_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "to": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "cc": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "bcc": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/drafts.rs:104"
      },
      "runearc_core__drafts__Draft_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inbox": {
            "$ref": "#/components/schemas/runearc_core__conversations__InboxRef_output"
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The thread a reply draft continues."
          },
          "reply_to_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The message a reply draft answers."
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__conversations__Assignee_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who wrote it; `None` for a draft saved with an API key."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "inbox",
          "thread_id",
          "reply_to_message_id",
          "to",
          "cc",
          "bcc",
          "subject",
          "text",
          "html",
          "author",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/drafts.rs:31"
      },
      "runearc_core__email_design__RenderedEmail_output": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "subject",
          "html",
          "text"
        ],
        "x-rust-source": "crates/core/src/email_design/mod.rs:26"
      },
      "runearc_core__email_design__brand__Align_input": {
        "anyOf": [
          {
            "const": "left",
            "type": "string"
          },
          {
            "const": "center",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/email_design/brand.rs:41"
      },
      "runearc_core__email_design__brand__Align_output": {
        "anyOf": [
          {
            "const": "left",
            "type": "string"
          },
          {
            "const": "center",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/email_design/brand.rs:41"
      },
      "runearc_core__email_design__brand__Brand_input": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string"
          },
          "font": {
            "$ref": "#/components/schemas/runearc_core__email_design__brand__Font_input"
          },
          "align": {
            "$ref": "#/components/schemas/runearc_core__email_design__brand__Align_input"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "header_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "footer_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Physical postal address, required by CAN-SPAM for marketing mail."
          }
        },
        "required": [
          "color",
          "font",
          "align"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/email_design/brand.rs:65"
      },
      "runearc_core__email_design__brand__Brand_output": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string"
          },
          "font": {
            "$ref": "#/components/schemas/runearc_core__email_design__brand__Font_output"
          },
          "align": {
            "$ref": "#/components/schemas/runearc_core__email_design__brand__Align_output"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "header_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "footer_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Physical postal address, required by CAN-SPAM for marketing mail."
          }
        },
        "required": [
          "color",
          "font",
          "align",
          "logo_url",
          "header_text",
          "footer_text",
          "address"
        ],
        "x-rust-source": "crates/core/src/email_design/brand.rs:65"
      },
      "runearc_core__email_design__brand__Font_input": {
        "anyOf": [
          {
            "const": "sans",
            "type": "string"
          },
          {
            "const": "serif",
            "type": "string"
          },
          {
            "const": "mono",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/email_design/brand.rs:10"
      },
      "runearc_core__email_design__brand__Font_output": {
        "anyOf": [
          {
            "const": "sans",
            "type": "string"
          },
          {
            "const": "serif",
            "type": "string"
          },
          {
            "const": "mono",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/email_design/brand.rs:10"
      },
      "runearc_core__email_design__doc__Block_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "heading"
              },
              "text": {
                "type": "string"
              },
              "level": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "type",
              "text",
              "level"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "text"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "button"
              },
              "label": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "label",
              "url"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "image"
              },
              "src": {
                "type": "string"
              },
              "alt": {
                "type": "string"
              },
              "href": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "src",
              "alt"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "divider"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "footer"
              },
              "unsubscribe": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "unsubscribe"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "rows"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "array",
                  "prefixItems": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "minItems": 2,
                  "maxItems": 2
                }
              }
            },
            "required": [
              "type",
              "rows"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "code"
              },
              "code": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "code"
            ],
            "additionalProperties": false
          }
        ],
        "x-rust-source": "crates/core/src/email_design/doc.rs:20"
      },
      "runearc_core__email_design__doc__Block_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "heading"
              },
              "text": {
                "type": "string"
              },
              "level": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "type",
              "text",
              "level"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "text"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "button"
              },
              "label": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "label",
              "url"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "image"
              },
              "src": {
                "type": "string"
              },
              "alt": {
                "type": "string"
              },
              "href": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "src",
              "alt",
              "href"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "divider"
              }
            },
            "required": [
              "type"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "footer"
              },
              "unsubscribe": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "unsubscribe"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "rows"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "array",
                  "prefixItems": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "minItems": 2,
                  "maxItems": 2
                }
              }
            },
            "required": [
              "type",
              "rows"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "code"
              },
              "code": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "code"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/email_design/doc.rs:20"
      },
      "runearc_core__email_design__doc__Document_input": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "style": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Style_input"
          },
          "subject": {
            "type": "string"
          },
          "preheader": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__email_design__doc__Block_input"
            }
          }
        },
        "required": [
          "version",
          "style",
          "subject",
          "blocks"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/email_design/doc.rs:54"
      },
      "runearc_core__email_design__doc__Document_output": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "style": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Style_output"
          },
          "subject": {
            "type": "string"
          },
          "preheader": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__email_design__doc__Block_output"
            }
          }
        },
        "required": [
          "version",
          "style",
          "subject",
          "preheader",
          "blocks"
        ],
        "x-rust-source": "crates/core/src/email_design/doc.rs:54"
      },
      "runearc_core__email_design__doc__Style_input": {
        "anyOf": [
          {
            "const": "designed",
            "type": "string"
          },
          {
            "const": "plain",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/email_design/doc.rs:13"
      },
      "runearc_core__email_design__doc__Style_output": {
        "anyOf": [
          {
            "const": "designed",
            "type": "string"
          },
          {
            "const": "plain",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/email_design/doc.rs:13"
      },
      "runearc_core__email_design__vars__Vars_input": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        },
        "x-rust-source": "crates/core/src/email_design/vars.rs:7"
      },
      "runearc_core__emails__BatchItemError_output": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "fix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "index",
          "code",
          "message",
          "fix"
        ],
        "x-rust-source": "crates/core/src/emails.rs:202"
      },
      "runearc_core__emails__EmailAttachmentInput_input": {
        "type": "object",
        "properties": {
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Base64 (standard alphabet, padding optional)."
          },
          "content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Derived from the filename when absent, as Resend does."
          },
          "content_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Makes the attachment an inline image, referenced as `cid:<content_id>`."
          },
          "path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Resend's remote file URL. Not supported: Runearc does not fetch URLs."
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/emails.rs:44"
      },
      "runearc_core__emails__EmailAttachment_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "content_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "size_bytes": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "filename",
          "content_type",
          "content_id",
          "size_bytes"
        ],
        "x-rust-source": "crates/core/src/emails.rs:164"
      },
      "runearc_core__emails__EmailDetail_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "object": {
                "type": "string",
                "description": "Always `email`, as Resend."
              },
              "last_event": {
                "type": "string",
                "description": "Resend's name for the latest status."
              },
              "html": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "headers": {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              "attachments": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__emails__EmailAttachment_output"
                }
              },
              "recipients": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__emails__EmailRecipient_output"
                }
              }
            },
            "required": [
              "object",
              "last_event",
              "html",
              "text",
              "headers",
              "attachments",
              "recipients"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__emails__Email_output"
          }
        ],
        "x-rust-source": "crates/core/src/emails.rs:174"
      },
      "runearc_core__emails__EmailRecipient_output": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "description": "`to`, `cc` or `bcc`."
          },
          "status": {
            "type": "string"
          },
          "response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receiving server's answer, such as `550 5.1.1 no such user`."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "address",
          "kind",
          "status",
          "response",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/emails.rs:153"
      },
      "runearc_core__emails__EmailRequest_input": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "`\"Name <addr>\"` or `addr`."
          },
          "to": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cc": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "bcc": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_to": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "headers": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__emails__EmailAttachmentInput_input"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__emails__Tag_input"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When to send: ISO 8601 with an offset or `in 10 minutes`, at most [`MAX_SCHEDULE_DAYS`] ahead. See [`parse_scheduled_at`]."
          },
          "template": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ],
            "description": "Resend fields Runearc does not support yet; refused with a fix rather than silently ignored."
          },
          "react": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "topic_id": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "From the `Idempotency-Key` header. Not part of the request fingerprint."
          }
        },
        "required": [
          "from"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/emails.rs:71"
      },
      "runearc_core__emails__Email_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "domain_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "from": {
            "type": "string"
          },
          "from_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reply_to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`scheduled`, `queued`, `sent`, `delivered`, `deferred`, `bounced`, `failed`, `complained` or `canceled`."
          },
          "tags": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "size_bytes": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "When a scheduled email is (or was) due; `null` for emails sent at once."
          }
        },
        "required": [
          "id",
          "domain_id",
          "from",
          "from_name",
          "to",
          "cc",
          "bcc",
          "reply_to",
          "subject",
          "status",
          "tags",
          "size_bytes",
          "created_at",
          "scheduled_at"
        ],
        "x-rust-source": "crates/core/src/emails.rs:125"
      },
      "runearc_core__emails__SenderAddress_output": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "`noreply@acme.com` for a sender recorded at setup, `*@acme.com` for any address on a verified domain."
          },
          "domain": {
            "type": "string"
          },
          "domain_id": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "kind": {
            "type": "string",
            "description": "`sender` (recorded at setup) or `domain` (any address on it)."
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "domain",
          "domain_id",
          "verified",
          "kind",
          "display_name"
        ],
        "x-rust-source": "crates/core/src/emails.rs:233"
      },
      "runearc_core__emails__Tag_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/emails.rs:63"
      },
      "runearc_core__embed_config__Brand_input": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string"
          },
          "radius": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "color",
          "radius"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:58"
      },
      "runearc_core__embed_config__Brand_output": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string"
          },
          "radius": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "color",
          "radius"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:58"
      },
      "runearc_core__embed_config__FieldKind_input": {
        "anyOf": [
          {
            "const": "email",
            "type": "string"
          },
          {
            "const": "text",
            "type": "string"
          },
          {
            "const": "textarea",
            "type": "string"
          },
          {
            "const": "select",
            "type": "string"
          },
          {
            "const": "checkbox",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:18"
      },
      "runearc_core__embed_config__FieldKind_output": {
        "anyOf": [
          {
            "const": "email",
            "type": "string"
          },
          {
            "const": "text",
            "type": "string"
          },
          {
            "const": "textarea",
            "type": "string"
          },
          {
            "const": "select",
            "type": "string"
          },
          {
            "const": "checkbox",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:18"
      },
      "runearc_core__embed_config__FormConfig_input": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__FormField_input"
            }
          },
          "button_label": {
            "type": "string"
          },
          "success": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Success_input"
          },
          "template": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Template_input"
          },
          "brand": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Brand_input"
          }
        },
        "required": [
          "version",
          "fields",
          "button_label",
          "success",
          "template",
          "brand"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:74"
      },
      "runearc_core__embed_config__FormConfig_output": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__FormField_output"
            }
          },
          "button_label": {
            "type": "string"
          },
          "success": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Success_output"
          },
          "template": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Template_output"
          },
          "brand": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Brand_output"
          }
        },
        "required": [
          "version",
          "fields",
          "button_label",
          "success",
          "template",
          "brand"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:74"
      },
      "runearc_core__embed_config__FormField_input": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/runearc_core__embed_config__FieldKind_input"
          },
          "required": {
            "type": "boolean"
          },
          "placeholder": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "key",
          "label",
          "type"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:28"
      },
      "runearc_core__embed_config__FormField_output": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/runearc_core__embed_config__FieldKind_output"
          },
          "required": {
            "type": "boolean"
          },
          "placeholder": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "key",
          "label",
          "type",
          "required",
          "placeholder",
          "options"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:28"
      },
      "runearc_core__embed_config__FormTemplate_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__FormConfig_output"
          }
        },
        "required": [
          "id",
          "name",
          "config"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:354"
      },
      "runearc_core__embed_config__Frequency_input": {
        "type": "object",
        "properties": {
          "days_between": {
            "type": "integer",
            "minimum": 0
          },
          "hide_after_conversion": {
            "type": "boolean"
          }
        },
        "required": [
          "days_between",
          "hide_after_conversion"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:254"
      },
      "runearc_core__embed_config__Frequency_output": {
        "type": "object",
        "properties": {
          "days_between": {
            "type": "integer",
            "minimum": 0
          },
          "hide_after_conversion": {
            "type": "boolean"
          }
        },
        "required": [
          "days_between",
          "hide_after_conversion"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:254"
      },
      "runearc_core__embed_config__PopupConfig_input": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "heading": {
            "type": "string"
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "position": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Position_input"
          },
          "trigger": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Trigger_input"
          },
          "targeting": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Targeting_input"
          },
          "frequency": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Frequency_input"
          }
        },
        "required": [
          "version",
          "heading",
          "position",
          "trigger",
          "frequency"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:261"
      },
      "runearc_core__embed_config__PopupConfig_output": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "heading": {
            "type": "string"
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "position": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Position_output"
          },
          "trigger": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Trigger_output"
          },
          "targeting": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Targeting_output"
          },
          "frequency": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Frequency_output"
          }
        },
        "required": [
          "version",
          "heading",
          "body",
          "position",
          "trigger",
          "targeting",
          "frequency"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:261"
      },
      "runearc_core__embed_config__Position_input": {
        "anyOf": [
          {
            "const": "center",
            "type": "string"
          },
          {
            "const": "bottom_right",
            "type": "string"
          },
          {
            "const": "bottom_left",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:212"
      },
      "runearc_core__embed_config__Position_output": {
        "anyOf": [
          {
            "const": "center",
            "type": "string"
          },
          {
            "const": "bottom_right",
            "type": "string"
          },
          {
            "const": "bottom_left",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:212"
      },
      "runearc_core__embed_config__Success_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "message"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "message"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "redirect"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "url"
            ],
            "additionalProperties": false
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:43"
      },
      "runearc_core__embed_config__Success_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "message"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "message"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "redirect"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "url"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:43"
      },
      "runearc_core__embed_config__Targeting_input": {
        "type": "object",
        "properties": {
          "include": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__UrlRule_input"
            }
          },
          "exclude": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__UrlRule_input"
            }
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:245"
      },
      "runearc_core__embed_config__Targeting_output": {
        "type": "object",
        "properties": {
          "include": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__UrlRule_output"
            }
          },
          "exclude": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__embed_config__UrlRule_output"
            }
          }
        },
        "required": [
          "include",
          "exclude"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:245"
      },
      "runearc_core__embed_config__Template_input": {
        "anyOf": [
          {
            "const": "minimal",
            "type": "string"
          },
          {
            "const": "card",
            "type": "string"
          },
          {
            "const": "dark",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:50"
      },
      "runearc_core__embed_config__Template_output": {
        "anyOf": [
          {
            "const": "minimal",
            "type": "string"
          },
          {
            "const": "card",
            "type": "string"
          },
          {
            "const": "dark",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:50"
      },
      "runearc_core__embed_config__Trigger_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "time"
              },
              "seconds": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "kind",
              "seconds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "scroll"
              },
              "percent": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "kind",
              "percent"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "exit_intent"
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": false
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:220"
      },
      "runearc_core__embed_config__Trigger_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "time"
              },
              "seconds": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "kind",
              "seconds"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "scroll"
              },
              "percent": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "kind",
              "percent"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "exit_intent"
              }
            },
            "required": [
              "kind"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:220"
      },
      "runearc_core__embed_config__UrlMatch_input": {
        "anyOf": [
          {
            "const": "equals",
            "type": "string"
          },
          {
            "const": "starts_with",
            "type": "string"
          },
          {
            "const": "ends_with",
            "type": "string"
          },
          {
            "const": "contains",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:228"
      },
      "runearc_core__embed_config__UrlMatch_output": {
        "anyOf": [
          {
            "const": "equals",
            "type": "string"
          },
          {
            "const": "starts_with",
            "type": "string"
          },
          {
            "const": "ends_with",
            "type": "string"
          },
          {
            "const": "contains",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:228"
      },
      "runearc_core__embed_config__UrlRule_input": {
        "type": "object",
        "properties": {
          "match": {
            "$ref": "#/components/schemas/runearc_core__embed_config__UrlMatch_input"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "match",
          "value"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/embed_config.rs:237"
      },
      "runearc_core__embed_config__UrlRule_output": {
        "type": "object",
        "properties": {
          "match": {
            "$ref": "#/components/schemas/runearc_core__embed_config__UrlMatch_output"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "match",
          "value"
        ],
        "x-rust-source": "crates/core/src/embed_config.rs:237"
      },
      "runearc_core__event_conditions__Condition_input": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Dotted path into the event properties: `plan`, `order.total`."
          },
          "op": {
            "$ref": "#/components/schemas/runearc_core__event_conditions__Op_input"
          },
          "value": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          }
        },
        "required": [
          "path",
          "op"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/event_conditions.rs:21"
      },
      "runearc_core__event_conditions__Condition_output": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Dotted path into the event properties: `plan`, `order.total`."
          },
          "op": {
            "$ref": "#/components/schemas/runearc_core__event_conditions__Op_output"
          },
          "value": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          }
        },
        "required": [
          "path",
          "op",
          "value"
        ],
        "x-rust-source": "crates/core/src/event_conditions.rs:21"
      },
      "runearc_core__event_conditions__Op_input": {
        "anyOf": [
          {
            "const": "eq",
            "type": "string"
          },
          {
            "const": "neq",
            "type": "string"
          },
          {
            "const": "gt",
            "type": "string"
          },
          {
            "const": "gte",
            "type": "string"
          },
          {
            "const": "lt",
            "type": "string"
          },
          {
            "const": "lte",
            "type": "string"
          },
          {
            "const": "contains",
            "type": "string"
          },
          {
            "const": "exists",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/event_conditions.rs:8"
      },
      "runearc_core__event_conditions__Op_output": {
        "anyOf": [
          {
            "const": "eq",
            "type": "string"
          },
          {
            "const": "neq",
            "type": "string"
          },
          {
            "const": "gt",
            "type": "string"
          },
          {
            "const": "gte",
            "type": "string"
          },
          {
            "const": "lt",
            "type": "string"
          },
          {
            "const": "lte",
            "type": "string"
          },
          {
            "const": "contains",
            "type": "string"
          },
          {
            "const": "exists",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/event_conditions.rs:8"
      },
      "runearc_core__form_submit__ConfirmedForm_output": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "form_name": {
            "type": "string"
          },
          "success": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Success_output"
          }
        },
        "required": [
          "status",
          "form_name",
          "success"
        ],
        "x-rust-source": "crates/core/src/form_submit.rs:318"
      },
      "runearc_core__form_submit__PublicForm_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__FormConfig_output"
          }
        },
        "required": [
          "id",
          "name",
          "config"
        ],
        "x-rust-source": "crates/core/src/form_submit.rs:67"
      },
      "runearc_core__form_submit__SubmitOutcome_output": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "\"subscribed\" (also for spam and suppressed, which must look the same) or \"pending_confirmation\"."
          },
          "success": {
            "$ref": "#/components/schemas/runearc_core__embed_config__Success_output"
          },
          "submission_id": {
            "type": "string",
            "description": "Addendum A11: the `form_submissions` row written for this call."
          },
          "contact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Addendum A11: the active contact this submit created or updated. None for honeypot hits, suppressed addresses and pending double opt-ins (no contact exists yet)."
          },
          "pending_confirmation": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "success",
          "submission_id",
          "contact_id",
          "pending_confirmation"
        ],
        "x-rust-source": "crates/core/src/form_submit.rs:54"
      },
      "runearc_core__forms__FormPatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__embed_config__FormConfig_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "double_opt_in": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "allowed_origins": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/forms.rs:52"
      },
      "runearc_core__forms__FormSubmission_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "form_id": {
            "type": "string"
          },
          "popup_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "type": "string"
          },
          "contact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "source_kind": {
            "type": "string"
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "form_id",
          "popup_id",
          "email",
          "contact_id",
          "status",
          "source_kind",
          "source_id",
          "origin",
          "page_url",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/forms.rs:63"
      },
      "runearc_core__forms__Form_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__FormConfig_output"
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "double_opt_in": {
            "type": "boolean"
          },
          "allowed_origins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "name",
          "status",
          "config",
          "list_ids",
          "tags",
          "double_opt_in",
          "allowed_origins",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/forms.rs:21"
      },
      "runearc_core__forms__NewForm_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__FormConfig_input"
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "double_opt_in": {
            "type": "boolean"
          },
          "allowed_origins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "config"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/forms.rs:37"
      },
      "runearc_core__forwarding__Forward_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inbox_id": {
            "type": "string"
          },
          "forward_to": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`pending` (confirmation sent), `active` or `disabled`."
          },
          "verify_sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "inbox_id",
          "forward_to",
          "status",
          "verify_sent_at",
          "verified_at",
          "created_by",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/forwarding.rs:53"
      },
      "runearc_core__forwarding__VerifiedForward_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inbox_address": {
            "type": "string"
          },
          "forward_to": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "inbox_address",
          "forward_to",
          "status",
          "verified_at"
        ],
        "x-rust-source": "crates/core/src/forwarding.rs:70"
      },
      "runearc_core__goals__EmailConversions_output": {
        "type": "object",
        "properties": {
          "email_id": {
            "type": "string"
          },
          "conversions": {
            "type": "integer"
          }
        },
        "required": [
          "email_id",
          "conversions"
        ],
        "x-rust-source": "crates/core/src/goals.rs:80"
      },
      "runearc_core__goals__GoalPatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "conditions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__event_conditions__Condition_input"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "window_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "value_property": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/goals.rs:44"
      },
      "runearc_core__goals__GoalStats_output": {
        "type": "object",
        "properties": {
          "conversions": {
            "type": "integer"
          },
          "contacts": {
            "type": "integer"
          },
          "attributed": {
            "type": "integer"
          },
          "revenue_cents": {
            "type": "integer"
          },
          "top_emails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__goals__EmailConversions_output"
            }
          }
        },
        "required": [
          "conversions",
          "contacts",
          "attributed",
          "revenue_cents",
          "top_emails"
        ],
        "x-rust-source": "crates/core/src/goals.rs:86"
      },
      "runearc_core__goals__Goal_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "event_name": {
            "type": "string"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__event_conditions__Condition_output"
            }
          },
          "window_days": {
            "type": "integer"
          },
          "value_property": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "event_name",
          "conditions",
          "window_days",
          "value_property",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/goals.rs:15"
      },
      "runearc_core__goals__NewGoal_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "event_name": {
            "type": "string"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__event_conditions__Condition_input"
            }
          },
          "window_days": {
            "type": "integer"
          },
          "value_property": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "event_name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/goals.rs:27"
      },
      "runearc_core__inboxes__Inbox_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "local_part": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "catch_all": {
            "type": "boolean",
            "description": "The workspace's catch-all: local part `*` on its shared domain, receiving mail for any address there that is not an inbox. It cannot send."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "address",
          "local_part",
          "domain",
          "display_name",
          "catch_all",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/inboxes.rs:9"
      },
      "runearc_core__invitations__Accepted_output": {
        "type": "object",
        "properties": {
          "org": {
            "$ref": "#/components/schemas/runearc_core__orgs__Org_output"
          },
          "workspace_role": {
            "type": "string"
          },
          "member_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "inbox_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "org",
          "workspace_role",
          "member_role",
          "inbox_ids"
        ],
        "x-rust-source": "crates/core/src/invitations.rs:88"
      },
      "runearc_core__invitations__InboxRef_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "address": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "address"
        ],
        "x-rust-source": "crates/core/src/invitations.rs:75"
      },
      "runearc_core__invitations__InvitationLookup_output": {
        "type": "object",
        "properties": {
          "workspace": {
            "$ref": "#/components/schemas/runearc_core__invitations__WorkspaceRef_output"
          },
          "invited_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__auth__User_output"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "type": "string"
          },
          "workspace_role": {
            "type": "string"
          },
          "member_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The member role for a `member` invitation; `null` otherwise."
          },
          "inboxes": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__invitations__InboxRef_output"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The inboxes a `member` will be limited to (deleted ones left out); `null` for every inbox."
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "workspace",
          "invited_by",
          "email",
          "workspace_role",
          "member_role",
          "inboxes",
          "expires_at"
        ],
        "x-rust-source": "crates/core/src/invitations.rs:61"
      },
      "runearc_core__invitations__Invitation_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The invitee's display name when they already have an account and set one."
          },
          "workspace_role": {
            "type": "string"
          },
          "member_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The member role for a `member` invitation; `null` otherwise."
          },
          "inbox_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The inboxes a `member` will be limited to; `null` for every inbox."
          },
          "invited_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__auth__User_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "The inviting user; `null` once that user is deleted."
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "description": "`pending`, `accepted`, `revoked` or `expired`."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "workspace_role",
          "member_role",
          "inbox_ids",
          "invited_by",
          "expires_at",
          "status",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/invitations.rs:40"
      },
      "runearc_core__invitations__NewInvitation_input": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "workspace_role": {
            "type": "string"
          },
          "member_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Members only: `admin`, `developer`, `support` or `viewer` (default `viewer`)."
          },
          "inbox_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Members only: the inboxes they are limited to; absent, null or empty for every inbox."
          }
        },
        "required": [
          "email",
          "workspace_role"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/invitations.rs:28"
      },
      "runearc_core__invitations__WorkspaceRef_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "x-rust-source": "crates/core/src/invitations.rs:81"
      },
      "runearc_core__keys__ApiKey_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "scope": {
            "type": "string",
            "description": "`org` or `inbox:<id>`; see `permissions`."
          },
          "permissions": {
            "type": "string",
            "description": "`full`, `sending` or `inbox`."
          },
          "domain_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one domain a sending key may send from, when limited."
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "name",
          "prefix",
          "scope",
          "permissions",
          "domain_id",
          "last_used_at",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/keys.rs:60"
      },
      "runearc_core__landing_pages__LandingPage_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "form_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__page_blocks__PageBlock_output"
            }
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "org_id",
          "slug",
          "name",
          "template",
          "status",
          "title",
          "description",
          "form_id",
          "blocks",
          "published_at",
          "created_at",
          "updated_at",
          "url"
        ],
        "x-rust-source": "crates/core/src/landing_pages.rs:17"
      },
      "runearc_core__landing_pages__NewPage_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "type": "string"
          },
          "form_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/landing_pages.rs:49"
      },
      "runearc_core__landing_pages__PagePatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "form_id": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "`Some(None)` clears the form."
          },
          "blocks": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__page_blocks__PageBlock_input"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/landing_pages.rs:65"
      },
      "runearc_core__landing_pages__PageSummary_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          },
          "leads": {
            "type": "integer"
          },
          "conv_per_view": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "status",
          "views",
          "leads",
          "conv_per_view",
          "updated_at",
          "url"
        ],
        "x-rust-source": "crates/core/src/landing_pages.rs:35"
      },
      "runearc_core__mail_access__AppPassword_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "username": {
            "type": "string",
            "description": "The inbox address, the username in mail apps."
          },
          "inbox_id": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/runearc_core__mail_access__CredentialUser_output"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "username",
          "inbox_id",
          "user",
          "created_at",
          "last_used_at"
        ],
        "x-rust-source": "crates/core/src/mail_access.rs:80"
      },
      "runearc_core__mail_access__CreatedAppPassword_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "password": {
                "type": "string",
                "description": "`abcd-efgh-ijkl-mnop`."
              }
            },
            "required": [
              "password"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__mail_access__AppPassword_output"
          },
          {
            "$ref": "#/components/schemas/runearc_core__mail_access__MailServers_output"
          }
        ],
        "x-rust-source": "crates/core/src/mail_access.rs:93"
      },
      "runearc_core__mail_access__CredentialUser_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "email"
        ],
        "x-rust-source": "crates/core/src/mail_access.rs:73"
      },
      "runearc_core__mail_access__MailPorts_output": {
        "type": "object",
        "properties": {
          "imap": {
            "type": "integer",
            "minimum": 0
          },
          "imap_starttls": {
            "type": "integer",
            "minimum": 0
          },
          "smtp": {
            "type": "integer",
            "minimum": 0
          },
          "submission": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "imap",
          "imap_starttls",
          "smtp",
          "submission"
        ],
        "x-rust-source": "crates/core/src/mail_access.rs:40"
      },
      "runearc_core__mail_access__MailServers_output": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string",
            "description": "IMAP host (implicit TLS on `ports.imap`, STARTTLS on `ports.imap_starttls`)."
          },
          "smtp_host": {
            "type": "string"
          },
          "ports": {
            "$ref": "#/components/schemas/runearc_core__mail_access__MailPorts_output"
          }
        },
        "required": [
          "host",
          "smtp_host",
          "ports"
        ],
        "x-rust-source": "crates/core/src/mail_access.rs:32"
      },
      "runearc_core__members__MemberPatch_input": {
        "type": "object",
        "properties": {
          "workspace_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "member_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`admin`, `developer`, `support` or `viewer`; members only."
          },
          "inbox_ids": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Absent: unchanged. `null` or `[]`: every inbox. A list: only those inboxes."
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/members.rs:39"
      },
      "runearc_core__members__Member_output": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/runearc_core__auth__User_output"
          },
          "workspace_role": {
            "type": "string"
          },
          "member_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The member role of a workspace `member`; `null` for owners, admins (who can do everything) and billing members."
          },
          "inbox_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The inboxes a `member` is limited to; `null` for every inbox."
          },
          "joined_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "user",
          "workspace_role",
          "member_role",
          "inbox_ids",
          "joined_at",
          "last_seen_at"
        ],
        "x-rust-source": "crates/core/src/members.rs:24"
      },
      "runearc_core__messages__Message_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "inbox_id": {
            "type": "string"
          },
          "thread_id": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          },
          "rfc_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "in_reply_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "references": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "delivered_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Inbound: the envelope recipients the message was received for, as given (lowercased, `+tags` kept). The catch-all keeps the original address here."
          },
          "subject": {
            "type": "string"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "size_bytes": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "spam": {
            "type": "boolean"
          },
          "auth_results": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "email_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Outbound: the `/v1/emails` email this message records in its inbox's Sent (sent once, as that email); `null` for mail sent from the inbox itself."
          }
        },
        "required": [
          "id",
          "org_id",
          "inbox_id",
          "thread_id",
          "direction",
          "rfc_message_id",
          "in_reply_to",
          "references",
          "from",
          "to",
          "cc",
          "delivered_to",
          "subject",
          "text",
          "html",
          "size_bytes",
          "status",
          "spam",
          "auth_results",
          "created_at",
          "email_id"
        ],
        "x-rust-source": "crates/core/src/messages.rs:12"
      },
      "runearc_core__messages__Page_runearc_api_Message__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__messages__Message_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/messages.rs:87"
      },
      "runearc_core__messages__Page_runearc_api__audit_AuditEvent__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__audit__AuditEvent_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/messages.rs:87"
      },
      "runearc_core__messages__Page_runearc_api__contacts_Contact__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__contacts__Contact_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/messages.rs:87"
      },
      "runearc_core__messages__Page_runearc_api__conversations_Conversation__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__conversations__Conversation_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/messages.rs:87"
      },
      "runearc_core__messages__Page_runearc_api__drafts_Draft__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__drafts__Draft_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/messages.rs:87"
      },
      "runearc_core__messages__Page_runearc_api__emails_Email__output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__emails__Email_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/messages.rs:87"
      },
      "runearc_core__messages__ThreadWithMessages_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "messages": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__messages__Message_output"
                }
              }
            },
            "required": [
              "messages"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__messages__Thread_output"
          }
        ],
        "x-rust-source": "crates/core/src/messages.rs:80"
      },
      "runearc_core__messages__Thread_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "inbox_id": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "last_message_at": {
            "type": "string",
            "format": "date-time"
          },
          "message_count": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "description": "`open` or `closed` (conversations, phase C)."
          },
          "assignee_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "snoozed_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_inbound_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "org_id",
          "inbox_id",
          "subject",
          "last_message_at",
          "message_count",
          "created_at",
          "status",
          "assignee_user_id",
          "snoozed_until",
          "last_inbound_at"
        ],
        "x-rust-source": "crates/core/src/messages.rs:64"
      },
      "runearc_core__mfa__MfaChallenge_output": {
        "type": "object",
        "properties": {
          "mfa_required": {
            "type": "boolean"
          },
          "mfa_token": {
            "type": "string",
            "description": "Single use, five minutes. Send it with a code to `POST /v1/auth/mfa/verify`."
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "new_account": {
            "type": "boolean"
          }
        },
        "required": [
          "mfa_required",
          "mfa_token",
          "expires_at",
          "new_account"
        ],
        "x-rust-source": "crates/core/src/mfa.rs:181"
      },
      "runearc_core__mfa__MfaEnrolment_output": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string",
            "description": "Base32 secret, for typing into an authenticator app."
          },
          "otpauth_uri": {
            "type": "string",
            "description": "`otpauth://` URI for a QR code."
          }
        },
        "required": [
          "secret",
          "otpauth_uri"
        ],
        "x-rust-source": "crates/core/src/mfa.rs:166"
      },
      "runearc_core__mfa__MfaStatus_output": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "enabled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "recovery_codes_remaining": {
            "type": "integer",
            "description": "Unused recovery codes left (0 when MFA is off)."
          }
        },
        "required": [
          "enabled",
          "enabled_at",
          "recovery_codes_remaining"
        ],
        "x-rust-source": "crates/core/src/mfa.rs:157"
      },
      "runearc_core__mfa__RecoveryCodes_output": {
        "type": "object",
        "properties": {
          "recovery_codes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "recovery_codes"
        ],
        "x-rust-source": "crates/core/src/mfa.rs:175"
      },
      "runearc_core__mobile__DeliveryMode_input": {
        "anyOf": [
          {
            "const": "all",
            "type": "string"
          },
          {
            "const": "assigned",
            "type": "string"
          },
          {
            "const": "custom",
            "type": "string"
          },
          {
            "const": "none",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:21"
      },
      "runearc_core__mobile__DeliveryMode_output": {
        "anyOf": [
          {
            "const": "all",
            "type": "string"
          },
          {
            "const": "assigned",
            "type": "string"
          },
          {
            "const": "custom",
            "type": "string"
          },
          {
            "const": "none",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:21"
      },
      "runearc_core__mobile__MobileActivityDestination_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "domain"
              },
              "domain_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "domain_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "conversation"
              },
              "inbox_id": {
                "type": "string"
              },
              "conversation_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "inbox_id",
              "conversation_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "email"
              },
              "email_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "email_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "workspace"
              },
              "workspace_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "workspace_id"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:126"
      },
      "runearc_core__mobile__MobileActivityItem_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/runearc_core__mobile__MobileActivityKind_output"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "severity": {
            "$ref": "#/components/schemas/runearc_core__mobile__MobileActivitySeverity_output"
          },
          "destination": {
            "$ref": "#/components/schemas/runearc_core__mobile__MobileActivityDestination_output"
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "summary",
          "time",
          "severity",
          "destination"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:84"
      },
      "runearc_core__mobile__MobileActivityKind_output": {
        "anyOf": [
          {
            "const": "domain.failing",
            "type": "string"
          },
          {
            "const": "domain.recovered",
            "type": "string"
          },
          {
            "const": "message.failed",
            "type": "string"
          },
          {
            "const": "message.bounced",
            "type": "string"
          },
          {
            "const": "message.complained",
            "type": "string"
          },
          {
            "const": "conversation.assigned",
            "type": "string"
          },
          {
            "const": "sending.paused",
            "type": "string"
          },
          {
            "const": "sending.resumed",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:97"
      },
      "runearc_core__mobile__MobileActivityPage_output": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__mobile__MobileActivityItem_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "critical_unresolved": {
            "type": "integer"
          }
        },
        "required": [
          "items",
          "next_cursor",
          "critical_unresolved"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:77"
      },
      "runearc_core__mobile__MobileActivitySeverity_output": {
        "anyOf": [
          {
            "const": "info",
            "type": "string"
          },
          {
            "const": "warning",
            "type": "string"
          },
          {
            "const": "critical",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:118"
      },
      "runearc_core__mobile__MobileBadge_output": {
        "type": "object",
        "properties": {
          "unread": {
            "type": "integer"
          }
        },
        "required": [
          "unread"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:57"
      },
      "runearc_core__mobile__MobileDevice_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "installation_id": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "bundle_id": {
            "type": "string"
          },
          "app_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "disabled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "user_id",
          "installation_id",
          "platform",
          "environment",
          "bundle_id",
          "app_version",
          "locale",
          "disabled_at",
          "last_seen_at",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:39"
      },
      "runearc_core__mobile__MobileWorkspaceSummary_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "can_read_mail": {
            "type": "boolean"
          },
          "readable_domains": {
            "type": "integer"
          },
          "readable_inboxes": {
            "type": "integer"
          },
          "unread": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "role",
          "can_read_mail",
          "readable_domains",
          "readable_inboxes",
          "unread"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:63"
      },
      "runearc_core__mobile__NotificationPreferencesPatch_input": {
        "type": "object",
        "properties": {
          "mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__mobile__DeliveryMode_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "inbox_ids": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__mobile__PreviewLevel_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "new_mail": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "assigned": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "failures": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "badge": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "sound": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "quiet_start": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "quiet_end": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "timezone": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-rust-source": "crates/core/src/mobile.rs:292"
      },
      "runearc_core__mobile__NotificationPreferences_output": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "mode": {
            "$ref": "#/components/schemas/runearc_core__mobile__DeliveryMode_output"
          },
          "inbox_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "preview": {
            "$ref": "#/components/schemas/runearc_core__mobile__PreviewLevel_output"
          },
          "new_mail": {
            "type": "boolean"
          },
          "assigned": {
            "type": "boolean"
          },
          "failures": {
            "type": "boolean"
          },
          "badge": {
            "type": "boolean"
          },
          "sound": {
            "type": "boolean"
          },
          "quiet_start": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?$"
              },
              {
                "type": "null"
              }
            ]
          },
          "quiet_end": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?$"
              },
              {
                "type": "null"
              }
            ]
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "user_id",
          "org_id",
          "mode",
          "inbox_ids",
          "preview",
          "new_mail",
          "assigned",
          "failures",
          "badge",
          "sound",
          "quiet_start",
          "quiet_end",
          "timezone",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:272"
      },
      "runearc_core__mobile__PreviewLevel_input": {
        "anyOf": [
          {
            "const": "generic",
            "type": "string"
          },
          {
            "const": "subject",
            "type": "string"
          },
          {
            "const": "full",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:31"
      },
      "runearc_core__mobile__PreviewLevel_output": {
        "anyOf": [
          {
            "const": "generic",
            "type": "string"
          },
          {
            "const": "subject",
            "type": "string"
          },
          {
            "const": "full",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/mobile.rs:31"
      },
      "runearc_core__mobile__RegisterMobileDevice_input": {
        "type": "object",
        "properties": {
          "installation_id": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "bundle_id": {
            "type": "string"
          },
          "app_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "installation_id",
          "token",
          "environment",
          "bundle_id"
        ],
        "x-rust-source": "crates/core/src/mobile.rs:262"
      },
      "runearc_core__onboarding__SiteImport_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "requested_url": {
            "type": "string"
          },
          "final_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "requested_url",
          "final_url",
          "status",
          "error_code",
          "name",
          "description",
          "logo_url",
          "color",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/onboarding.rs:18"
      },
      "runearc_core__onboarding__WelcomeAudience_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "new_contacts"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "list_id"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/onboarding.rs:134"
      },
      "runearc_core__onboarding__WelcomeAudience_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "new_contacts"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "list_id"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/onboarding.rs:134"
      },
      "runearc_core__onboarding__WelcomeDraft_output": {
        "type": "object",
        "properties": {
          "sequence_id": {
            "type": "string"
          },
          "import_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "active": {
            "type": "boolean"
          },
          "style": {
            "$ref": "#/components/schemas/runearc_core__email_design__doc__Style_output"
          },
          "audience": {
            "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeAudience_output"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__onboarding__WelcomeStep_output"
            }
          },
          "address_required": {
            "type": "boolean",
            "description": "True until the workspace has a postal address; Turn on is refused while true."
          }
        },
        "required": [
          "sequence_id",
          "import_id",
          "active",
          "style",
          "audience",
          "steps",
          "address_required"
        ],
        "x-rust-source": "crates/core/src/onboarding.rs:150"
      },
      "runearc_core__onboarding__WelcomeStep_output": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer",
            "description": "Index among the emails (0 to 3), not plan 09's step index (delays count there)."
          },
          "delay_seconds": {
            "type": "integer"
          },
          "subject": {
            "type": "string"
          }
        },
        "required": [
          "position",
          "delay_seconds",
          "subject"
        ],
        "x-rust-source": "crates/core/src/onboarding.rs:142"
      },
      "runearc_core__orgs__Org_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "shared_code": {
            "type": "string",
            "description": "Random, permanent code naming the workspace's private shared domain, `{shared_code}.{shared domain}` (`k7m3qz.runearc.email`). Set by the database (migration 0017), never chosen by a user, never changed. Readable names live in [`crate::shared_names`]; the code domain keeps the catch-all."
          },
          "shared_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The readable name the workspace claimed: it receives at `{shared_name}.{shared domain}` and new shared inboxes go there. `None` keeps `{shared_code}.{shared domain}`. See [`crate::shared_names`]."
          },
          "plan": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`active`, or `paused`: sending is refused (see [`crate::sending_pause`])."
          },
          "paused_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "When sending was paused; `None` while it is not."
          },
          "paused_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why sending is paused, as one sentence; `None` while it is not."
          },
          "pause_stats": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ],
            "description": "The numbers behind an automatic pause (`rule`, `sent`, `hard_bounces`, `complaints`, `rate`, `limit`, `window_hours`, `min_sent`)."
          },
          "sending_resumed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last time a platform admin resumed sending."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "shared_code",
          "shared_name",
          "plan",
          "status",
          "paused_at",
          "paused_reason",
          "pause_stats",
          "sending_resumed_at",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/orgs.rs:7"
      },
      "runearc_core__page_blocks__BlockKind_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "hero"
              },
              "headline": {
                "type": "string"
              },
              "subhead": {
                "type": "string"
              },
              "cta_label": {
                "type": "string"
              },
              "cta_href": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "headline",
              "subhead",
              "cta_label",
              "cta_href"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "features"
              },
              "title": {
                "type": "string"
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__page_blocks__FeatureItem_input"
                }
              }
            },
            "required": [
              "type",
              "title",
              "items"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "signup"
              },
              "headline": {
                "type": "string"
              },
              "subhead": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "headline",
              "subhead"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "cta"
              },
              "headline": {
                "type": "string"
              },
              "button_label": {
                "type": "string"
              },
              "button_href": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "headline",
              "button_label",
              "button_href"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "footer"
              },
              "text": {
                "type": "string"
              },
              "links": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__page_blocks__FooterLink_input"
                }
              }
            },
            "required": [
              "type",
              "text",
              "links"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:24"
      },
      "runearc_core__page_blocks__BlockKind_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "hero"
              },
              "headline": {
                "type": "string"
              },
              "subhead": {
                "type": "string"
              },
              "cta_label": {
                "type": "string"
              },
              "cta_href": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "headline",
              "subhead",
              "cta_label",
              "cta_href"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "features"
              },
              "title": {
                "type": "string"
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__page_blocks__FeatureItem_output"
                }
              }
            },
            "required": [
              "type",
              "title",
              "items"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "signup"
              },
              "headline": {
                "type": "string"
              },
              "subhead": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "headline",
              "subhead"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "cta"
              },
              "headline": {
                "type": "string"
              },
              "button_label": {
                "type": "string"
              },
              "button_href": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "headline",
              "button_label",
              "button_href"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "footer"
              },
              "text": {
                "type": "string"
              },
              "links": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__page_blocks__FooterLink_output"
                }
              }
            },
            "required": [
              "type",
              "text",
              "links"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:24"
      },
      "runearc_core__page_blocks__FeatureItem_input": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "body"
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:51"
      },
      "runearc_core__page_blocks__FeatureItem_output": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "body"
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:51"
      },
      "runearc_core__page_blocks__FooterLink_input": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "href": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "href"
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:57"
      },
      "runearc_core__page_blocks__FooterLink_output": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "href": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "href"
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:57"
      },
      "runearc_core__page_blocks__PageBlock_input": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__page_blocks__BlockKind_input"
          }
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:16"
      },
      "runearc_core__page_blocks__PageBlock_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__page_blocks__BlockKind_output"
          }
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:16"
      },
      "runearc_core__page_blocks__PageTemplate_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description"
        ],
        "x-rust-source": "crates/core/src/page_blocks.rs:63"
      },
      "runearc_core__page_domain__PageDomain_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "cname_target": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "home_page_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "hostname",
          "cname_target",
          "verified",
          "verified_at",
          "home_page_id"
        ],
        "x-rust-source": "crates/core/src/page_domain.rs:12"
      },
      "runearc_core__page_public__PageLeadOutcome_output": {
        "type": "object",
        "properties": {
          "lead_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "pending_confirmation": {
            "type": "boolean"
          }
        },
        "required": [
          "lead_id",
          "pending_confirmation"
        ],
        "x-rust-source": "crates/core/src/page_public.rs:24"
      },
      "runearc_core__page_public__PublicPage_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__page_blocks__PageBlock_output"
            }
          },
          "form": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__form_submit__PublicForm_output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "title",
          "description",
          "blocks",
          "form"
        ],
        "x-rust-source": "crates/core/src/page_public.rs:14"
      },
      "runearc_core__permissions__MemberRole_output": {
        "anyOf": [
          {
            "const": "viewer",
            "type": "string"
          },
          {
            "const": "support",
            "type": "string"
          },
          {
            "const": "developer",
            "type": "string"
          },
          {
            "const": "admin",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/permissions.rs:161"
      },
      "runearc_core__permissions__WorkspaceRole_output": {
        "anyOf": [
          {
            "const": "owner",
            "type": "string"
          },
          {
            "const": "admin",
            "type": "string"
          },
          {
            "const": "member",
            "type": "string"
          },
          {
            "const": "billing",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/permissions.rs:103"
      },
      "runearc_core__plans__Plan_output": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The value stored in `orgs.plan`: `free`, `pro`, `scale` or `enterprise`."
          },
          "inboxes": {
            "type": "integer",
            "minimum": 0,
            "description": "Inboxes included."
          },
          "monthly_emails": {
            "type": "integer",
            "minimum": 0,
            "description": "Sent recipients included per calendar month (UTC)."
          },
          "domains": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Custom domains; `None` is unlimited."
          },
          "price_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Monthly price in US cents; `None` is custom (talk to us)."
          },
          "extra_inbox_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Price of each inbox past `inboxes`, in cents a month; `None` when there is no overage."
          },
          "extra_1k_emails_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Price of each 1,000 emails past `monthly_emails`, in cents; `None` when there is no overage."
          }
        },
        "required": [
          "name",
          "inboxes",
          "monthly_emails",
          "domains",
          "price_cents",
          "extra_inbox_cents",
          "extra_1k_emails_cents"
        ],
        "x-rust-source": "crates/core/src/plans.rs:12"
      },
      "runearc_core__plans__Usage_output": {
        "type": "object",
        "properties": {
          "inboxes": {
            "type": "integer"
          },
          "emails_this_month": {
            "type": "integer",
            "description": "Sent recipients since the first of this month (UTC). Received mail does not count."
          },
          "domains": {
            "type": "integer",
            "description": "Custom domains as the plan counts them: a `mail.<root>` subdomain paired with its root by setup counts once, with the root."
          }
        },
        "required": [
          "inboxes",
          "emails_this_month",
          "domains"
        ],
        "x-rust-source": "crates/core/src/plans.rs:85"
      },
      "runearc_core__popups__NewPopup_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "form_id": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__PopupConfig_input"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "form_id",
          "config"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/popups.rs:33"
      },
      "runearc_core__popups__PopupPatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "form_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__embed_config__PopupConfig_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/popups.rs:42"
      },
      "runearc_core__popups__PopupStats_output": {
        "type": "object",
        "properties": {
          "impressions": {
            "type": "integer"
          },
          "dismissals": {
            "type": "integer"
          },
          "conversions": {
            "type": "integer"
          },
          "conversion_rate": {
            "type": "number",
            "description": "conversions / impressions, 0 with no impressions, rounded to 4 places."
          }
        },
        "required": [
          "impressions",
          "dismissals",
          "conversions",
          "conversion_rate"
        ],
        "x-rust-source": "crates/core/src/popups.rs:50"
      },
      "runearc_core__popups__Popup_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "form_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__PopupConfig_output"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "form_id",
          "name",
          "status",
          "config",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/popups.rs:20"
      },
      "runearc_core__popups__PublicPopup_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/runearc_core__embed_config__PopupConfig_output"
          },
          "form": {
            "$ref": "#/components/schemas/runearc_core__form_submit__PublicForm_output"
          }
        },
        "required": [
          "id",
          "config",
          "form"
        ],
        "x-rust-source": "crates/core/src/popups.rs:59"
      },
      "runearc_core__retention__RetentionPatch_input": {
        "type": "object",
        "properties": {
          "retention_days": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "audit_retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/retention.rs:49"
      },
      "runearc_core__retention__RetentionSettings_output": {
        "type": "object",
        "properties": {
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Days mail is kept; `None` keeps it until deleted."
          },
          "audit_retention_days": {
            "type": "integer",
            "description": "Days audit log entries are kept."
          }
        },
        "required": [
          "retention_days",
          "audit_retention_days"
        ],
        "x-rust-source": "crates/core/src/retention.rs:38"
      },
      "runearc_core__segments__NewSegment_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "filter": {
            "$ref": "#/components/schemas/runearc_core__segments__filter__Filter_input"
          }
        },
        "required": [
          "name",
          "filter"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/segments/mod.rs:42"
      },
      "runearc_core__segments__SegmentContact_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "email",
          "first_name",
          "last_name",
          "status",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/segments/mod.rs:58"
      },
      "runearc_core__segments__SegmentPatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "filter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__segments__filter__Filter_input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/segments/mod.rs:51"
      },
      "runearc_core__segments__SegmentPreview_output": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "sample": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__segments__SegmentContact_output"
            }
          }
        },
        "required": [
          "count",
          "sample"
        ],
        "x-rust-source": "crates/core/src/segments/mod.rs:68"
      },
      "runearc_core__segments__Segment_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "filter": {
            "$ref": "#/components/schemas/runearc_core__segments__filter__Filter_output"
          },
          "builtin": {
            "type": "boolean",
            "description": "A quick filter defined in code: read-only."
          },
          "last_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cached by the last count; `None` until the segment was counted."
          },
          "last_counted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "filter",
          "builtin",
          "last_count",
          "last_counted_at",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/segments/mod.rs:26"
      },
      "runearc_core__segments__filter__Action_input": {
        "anyOf": [
          {
            "const": "sent",
            "type": "string"
          },
          {
            "const": "opened",
            "type": "string"
          },
          {
            "const": "clicked",
            "type": "string"
          },
          {
            "const": "engaged",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:39"
      },
      "runearc_core__segments__filter__Action_output": {
        "anyOf": [
          {
            "const": "sent",
            "type": "string"
          },
          {
            "const": "opened",
            "type": "string"
          },
          {
            "const": "clicked",
            "type": "string"
          },
          {
            "const": "engaged",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:39"
      },
      "runearc_core__segments__filter__DateOp_input": {
        "anyOf": [
          {
            "const": "before",
            "type": "string"
          },
          {
            "const": "after",
            "type": "string"
          },
          {
            "const": "within_last_days",
            "type": "string"
          },
          {
            "const": "older_than_days",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:49"
      },
      "runearc_core__segments__filter__DateOp_output": {
        "anyOf": [
          {
            "const": "before",
            "type": "string"
          },
          {
            "const": "after",
            "type": "string"
          },
          {
            "const": "within_last_days",
            "type": "string"
          },
          {
            "const": "older_than_days",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:49"
      },
      "runearc_core__segments__filter__FieldOp_input": {
        "anyOf": [
          {
            "const": "eq",
            "type": "string"
          },
          {
            "const": "ne",
            "type": "string"
          },
          {
            "const": "contains",
            "type": "string"
          },
          {
            "const": "starts_with",
            "type": "string"
          },
          {
            "const": "gt",
            "type": "string"
          },
          {
            "const": "gte",
            "type": "string"
          },
          {
            "const": "lt",
            "type": "string"
          },
          {
            "const": "lte",
            "type": "string"
          },
          {
            "const": "is_set",
            "type": "string"
          },
          {
            "const": "is_not_set",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:24"
      },
      "runearc_core__segments__filter__FieldOp_output": {
        "anyOf": [
          {
            "const": "eq",
            "type": "string"
          },
          {
            "const": "ne",
            "type": "string"
          },
          {
            "const": "contains",
            "type": "string"
          },
          {
            "const": "starts_with",
            "type": "string"
          },
          {
            "const": "gt",
            "type": "string"
          },
          {
            "const": "gte",
            "type": "string"
          },
          {
            "const": "lt",
            "type": "string"
          },
          {
            "const": "lte",
            "type": "string"
          },
          {
            "const": "is_set",
            "type": "string"
          },
          {
            "const": "is_not_set",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:24"
      },
      "runearc_core__segments__filter__Filter_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "group"
              },
              "op": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__GroupOp_input"
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__segments__filter__Filter_input"
                }
              }
            },
            "required": [
              "type",
              "op",
              "children"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "field"
              },
              "field": {
                "type": "string"
              },
              "op": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__FieldOp_input"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "field",
              "op"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "tag"
              },
              "tag": {
                "type": "string"
              },
              "has": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "tag"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "list"
              },
              "list_id": {
                "type": "string"
              },
              "member": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "list_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "status"
              },
              "is": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "type",
              "is"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "engagement"
              },
              "action": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__Action_input"
              },
              "within_days": {
                "type": "integer",
                "minimum": 0
              },
              "min_count": {
                "type": "integer",
                "minimum": 0
              },
              "negate": {
                "type": "boolean",
                "description": "True means \"fewer than `min_count` such actions\"."
              }
            },
            "required": [
              "type",
              "action",
              "within_days"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "event"
              },
              "name": {
                "type": "string"
              },
              "within_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "min_count": {
                "type": "integer",
                "minimum": 0
              },
              "negate": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "date"
              },
              "field": {
                "type": "string"
              },
              "op": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__DateOp_input"
              },
              "days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "date": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "field",
              "op"
            ],
            "additionalProperties": false
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:89"
      },
      "runearc_core__segments__filter__Filter_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "group"
              },
              "op": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__GroupOp_output"
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__segments__filter__Filter_output"
                }
              }
            },
            "required": [
              "type",
              "op",
              "children"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "field"
              },
              "field": {
                "type": "string"
              },
              "op": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__FieldOp_output"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "field",
              "op",
              "value"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "tag"
              },
              "tag": {
                "type": "string"
              },
              "has": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "tag",
              "has"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "list"
              },
              "list_id": {
                "type": "string"
              },
              "member": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "list_id",
              "member"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "status"
              },
              "is": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "type",
              "is"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "engagement"
              },
              "action": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__Action_output"
              },
              "within_days": {
                "type": "integer",
                "minimum": 0
              },
              "min_count": {
                "type": "integer",
                "minimum": 0
              },
              "negate": {
                "type": "boolean",
                "description": "True means \"fewer than `min_count` such actions\"."
              }
            },
            "required": [
              "type",
              "action",
              "within_days",
              "min_count",
              "negate"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "event"
              },
              "name": {
                "type": "string"
              },
              "within_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "min_count": {
                "type": "integer",
                "minimum": 0
              },
              "negate": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "name",
              "within_days",
              "min_count",
              "negate"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "date"
              },
              "field": {
                "type": "string"
              },
              "op": {
                "$ref": "#/components/schemas/runearc_core__segments__filter__DateOp_output"
              },
              "days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "date": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "field",
              "op",
              "days",
              "date"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:89"
      },
      "runearc_core__segments__filter__GroupOp_input": {
        "anyOf": [
          {
            "const": "and",
            "type": "string"
          },
          {
            "const": "or",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:17"
      },
      "runearc_core__segments__filter__GroupOp_output": {
        "anyOf": [
          {
            "const": "and",
            "type": "string"
          },
          {
            "const": "or",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/segments/filter.rs:17"
      },
      "runearc_core__sending__AttachmentInput_input": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Defaults to `application/octet-stream`."
          },
          "content": {
            "type": "string",
            "description": "Base64 (standard alphabet, padding optional)."
          }
        },
        "required": [
          "filename",
          "content"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/sending.rs:295"
      },
      "runearc_core__sending__ReplyRequest_input": {
        "type": "object",
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_all": {
            "type": "boolean",
            "description": "Also copy everyone else on the original message."
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sending__AttachmentInput_input"
            }
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/sending.rs:335"
      },
      "runearc_core__sending__SendRequest_input": {
        "type": "object",
        "properties": {
          "to": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cc": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "bcc": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "type": "string"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_to": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sending__AttachmentInput_input"
            }
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "From the `Idempotency-Key` header. Not part of the request fingerprint."
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/sending.rs:308"
      },
      "runearc_core__sending__Suppression_output": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "address",
          "reason",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/sending.rs:368"
      },
      "runearc_core__sending_pause__PausedWorkspace_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "plan": {
            "type": "string"
          },
          "paused_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "paused_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "pause_stats": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The owner's email, the person to talk to."
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "plan",
          "paused_at",
          "paused_reason",
          "pause_stats",
          "owner_email"
        ],
        "x-rust-source": "crates/core/src/sending_pause.rs:215"
      },
      "runearc_core__sequences__Check_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "has_tag"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "tag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "in_list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "list_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "field_equals"
              },
              "field": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "field",
              "value"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "event_since_enroll"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:94"
      },
      "runearc_core__sequences__Check_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "has_tag"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "tag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "in_list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "list_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "field_equals"
              },
              "field": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "field",
              "value"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "event_since_enroll"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:94"
      },
      "runearc_core__sequences__Enrollment_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sequence_id": {
            "type": "string"
          },
          "contact_id": {
            "type": "string"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "current_position": {
            "type": "integer"
          },
          "next_run_at": {
            "type": "string",
            "format": "date-time"
          },
          "exit_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enrolled_at": {
            "type": "string",
            "format": "date-time"
          },
          "ended_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "runs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sequences__StepRun_output"
            }
          }
        },
        "required": [
          "id",
          "sequence_id",
          "contact_id",
          "contact_email",
          "status",
          "current_position",
          "next_run_at",
          "exit_reason",
          "last_error",
          "enrolled_at",
          "ended_at",
          "runs"
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:299"
      },
      "runearc_core__sequences__Sequence_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trigger": {
            "$ref": "#/components/schemas/runearc_core__sequences__Trigger_output"
          },
          "from_addr": {
            "type": "string"
          },
          "style": {
            "type": "string"
          },
          "goal_event": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "allow_reenroll": {
            "type": "boolean"
          },
          "reenroll_after_days": {
            "type": "integer"
          },
          "starter_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "activated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__sequences__StepConfig_output"
            }
          },
          "enrolled": {
            "type": "integer"
          },
          "active": {
            "type": "integer"
          },
          "completed": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "org_id",
          "name",
          "status",
          "trigger",
          "from_addr",
          "style",
          "goal_event",
          "allow_reenroll",
          "reenroll_after_days",
          "starter_key",
          "created_at",
          "updated_at",
          "activated_at",
          "steps",
          "enrolled",
          "active",
          "completed"
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:268"
      },
      "runearc_core__sequences__StepConfig_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "email"
              },
              "subject": {
                "type": "string"
              },
              "preview": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "doc": {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              }
            },
            "required": [
              "kind",
              "subject",
              "preview",
              "doc"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "delay"
              },
              "minutes": {
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "minutes"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "condition"
              },
              "check": {
                "$ref": "#/components/schemas/runearc_core__sequences__Check_output"
              },
              "on_true": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "on_false": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "check",
              "on_true",
              "on_false"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "exit"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "reason"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:113"
      },
      "runearc_core__sequences__StepRun_output": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "email_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "position",
          "kind",
          "outcome",
          "email_id",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:290"
      },
      "runearc_core__sequences__Trigger_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "list_added"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "list_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "tag_added"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "tag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "event"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "manual"
              }
            },
            "required": [
              "kind"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:24"
      },
      "runearc_core__sequences__Trigger_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "list_added"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "list_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "tag_added"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "tag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "event"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "manual"
              }
            },
            "required": [
              "kind"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:24"
      },
      "runearc_core__sequences__Wire_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "email"
              },
              "subject": {
                "type": "string"
              },
              "preview": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "doc": {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              }
            },
            "required": [
              "kind",
              "subject",
              "doc"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "delay"
              },
              "minutes": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "days": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hours": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "condition"
              },
              "check": {
                "$ref": "#/components/schemas/runearc_core__sequences__Check_input"
              },
              "on_true": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "on_false": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "check"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "exit"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sequences/mod.rs:148"
      },
      "runearc_core__sequences__starters__StarterInfo_output": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "steps": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "key",
          "name",
          "description",
          "steps"
        ],
        "x-rust-source": "crates/core/src/sequences/starters.rs:7"
      },
      "runearc_core__sequences__store__NewSequence_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "trigger": {
            "$ref": "#/components/schemas/runearc_core__sequences__Trigger_input"
          },
          "from_addr": {
            "type": "string"
          },
          "style": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "goal_event": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "allow_reenroll": {
            "type": "boolean"
          },
          "reenroll_after_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "trigger"
        ],
        "x-rust-source": "crates/core/src/sequences/store.rs:7"
      },
      "runearc_core__sequences__store__SequencePatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__sequences__Trigger_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "from_addr": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "style": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "goal_event": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "allow_reenroll": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "reenroll_after_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-rust-source": "crates/core/src/sequences/store.rs:19"
      },
      "runearc_core__setup__Analysis_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "available": {
                "type": "boolean",
                "description": "False when another workspace already added the domain (or its `mail.` subdomain). Nothing about that workspace is revealed."
              }
            },
            "required": [
              "available"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_dns__analyze__DomainAnalysis_output"
          }
        ],
        "x-rust-source": "crates/core/src/setup.rs:20"
      },
      "runearc_core__setup__Sender_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "domain_id": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "domain_id",
          "address",
          "display_name",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/setup.rs:48"
      },
      "runearc_core__setup__SendingKey_output": {
        "type": "object",
        "properties": {
          "key": {
            "$ref": "#/components/schemas/runearc_core__keys__ApiKey_output"
          },
          "secret": {
            "type": "string",
            "description": "Shown once; Runearc stores only a hash."
          }
        },
        "required": [
          "key",
          "secret"
        ],
        "x-rust-source": "crates/core/src/setup.rs:57"
      },
      "runearc_core__setup__SetupAddress_input": {
        "type": "object",
        "properties": {
          "local_part": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/runearc_dns__analyze__AddressKind_input"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "local_part",
          "kind"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/setup.rs:30"
      },
      "runearc_core__setup__SetupDomain_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "purpose": {
                "type": "string",
                "description": "`sending` (the root in subdomain and sending_only modes: no MX), `receiving` (`mail.<root>` in subdomain mode: MX plus its own SPF and DKIM), or `sending_and_receiving` (the root in root mode)."
              }
            },
            "required": [
              "purpose"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__domains__Domain_output"
          }
        ],
        "x-rust-source": "crates/core/src/setup.rs:65"
      },
      "runearc_core__setup__SetupRequest_input": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string"
          },
          "mode": {
            "$ref": "#/components/schemas/runearc_dns__analyze__SetupMode_input"
          },
          "addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__setup__SetupAddress_input"
            }
          }
        },
        "required": [
          "domain",
          "mode"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/setup.rs:39"
      },
      "runearc_core__setup__SetupResult_output": {
        "type": "object",
        "properties": {
          "domain": {
            "$ref": "#/components/schemas/runearc_core__domains__Domain_output",
            "description": "The domain that was pasted (the root). Senders and the sending key live on it."
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__setup__SetupDomain_output"
            },
            "description": "Every domain written, root first, each with its own records: one in root and sending_only modes, two in subdomain mode (root, then `mail.<root>`)."
          },
          "inboxes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__inboxes__Inbox_output"
            }
          },
          "senders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__setup__Sender_output"
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__domains__DomainRecord_output"
            },
            "description": "Every record of every domain in `domains`, in the same order."
          },
          "next_step": {
            "type": "string"
          },
          "sending_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__setup__SendingKey_output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "domain",
          "domains",
          "inboxes",
          "senders",
          "records",
          "next_step"
        ],
        "x-rust-source": "crates/core/src/setup.rs:75"
      },
      "runearc_core__shell__Dismissals_output": {
        "type": "object",
        "properties": {
          "notices": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "notices"
        ],
        "x-rust-source": "crates/core/src/shell.rs:17"
      },
      "runearc_core__shell__PostalAddress_input": {
        "type": "object",
        "properties": {
          "line1": {
            "type": "string"
          },
          "line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 (two ASCII letters), stored upper case."
          }
        },
        "required": [
          "line1",
          "city",
          "region",
          "postal_code",
          "country"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/shell.rs:25"
      },
      "runearc_core__shell__PostalAddress_output": {
        "type": "object",
        "properties": {
          "line1": {
            "type": "string"
          },
          "line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 (two ASCII letters), stored upper case."
          }
        },
        "required": [
          "line1",
          "line2",
          "city",
          "region",
          "postal_code",
          "country"
        ],
        "x-rust-source": "crates/core/src/shell.rs:25"
      },
      "runearc_core__status__Component_output": {
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/runearc_core__status__State_output"
          },
          "detail": {
            "type": "string",
            "description": "One plain sentence about what was measured."
          }
        },
        "required": [
          "state",
          "detail"
        ],
        "x-rust-source": "crates/core/src/status.rs:44"
      },
      "runearc_core__status__Components_output": {
        "type": "object",
        "properties": {
          "api": {
            "$ref": "#/components/schemas/runearc_core__status__Component_output"
          },
          "database": {
            "$ref": "#/components/schemas/runearc_core__status__Component_output"
          },
          "inbound_smtp": {
            "$ref": "#/components/schemas/runearc_core__status__Component_output"
          },
          "outbound": {
            "$ref": "#/components/schemas/runearc_core__status__Component_output"
          }
        },
        "required": [
          "api",
          "database",
          "inbound_smtp",
          "outbound"
        ],
        "x-rust-source": "crates/core/src/status.rs:51"
      },
      "runearc_core__status__State_output": {
        "anyOf": [
          {
            "const": "ok",
            "type": "string"
          },
          {
            "const": "degraded",
            "type": "string"
          },
          {
            "const": "down",
            "type": "string"
          },
          {
            "const": "unknown",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/status.rs:36"
      },
      "runearc_core__status__StatusReport_output": {
        "type": "object",
        "properties": {
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "components": {
            "$ref": "#/components/schemas/runearc_core__status__Components_output"
          }
        },
        "required": [
          "generated_at",
          "components"
        ],
        "x-rust-source": "crates/core/src/status.rs:59"
      },
      "runearc_core__subscriptions__BillingRedirect_output": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "changed": {
            "type": "boolean"
          }
        },
        "required": [
          "url",
          "changed"
        ],
        "x-rust-source": "crates/core/src/subscriptions.rs:160"
      },
      "runearc_core__subscriptions__BillingStatus_output": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "description": "`orgs.plan`: free, pro, scale or enterprise."
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Dodo's status of the subscription, `None` before the first purchase."
          },
          "next_billing_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_at_period_end": {
            "type": "boolean",
            "description": "True when the customer cancelled: the plan ends at `next_billing_at`."
          },
          "checkout_available": {
            "type": "boolean",
            "description": "Checkout is configured on this deployment."
          },
          "portal_available": {
            "type": "boolean",
            "description": "The workspace has a Dodo customer, so the portal can open."
          },
          "can_manage": {
            "type": "boolean",
            "description": "The caller may buy, change or cancel (owners and the billing role)."
          },
          "test_mode": {
            "type": "boolean",
            "description": "Dodo is in test mode: no real card is charged."
          }
        },
        "required": [
          "plan",
          "status",
          "next_billing_at",
          "cancel_at_period_end",
          "checkout_available",
          "portal_available",
          "can_manage",
          "test_mode"
        ],
        "x-rust-source": "crates/core/src/subscriptions.rs:140"
      },
      "runearc_core__subscriptions__PlanWebhookOutcome_output": {
        "type": "object",
        "properties": {
          "duplicate": {
            "type": "boolean",
            "description": "Already handled under this `webhook-id`."
          },
          "applied": {
            "type": "boolean",
            "description": "The event changed a subscription Runearc knows."
          },
          "plan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The workspace's plan after the event, when it was applied."
          }
        },
        "required": [
          "duplicate",
          "applied",
          "plan"
        ],
        "x-rust-source": "crates/core/src/subscriptions.rs:167"
      },
      "runearc_core__suppressions__SuppressionCounts_output": {
        "type": "object",
        "properties": {
          "hard_bounce": {
            "type": "integer"
          },
          "complaint": {
            "type": "integer"
          },
          "manual": {
            "type": "integer"
          },
          "unsubscribed": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "hard_bounce",
          "complaint",
          "manual",
          "unsubscribed",
          "total"
        ],
        "x-rust-source": "crates/core/src/suppressions.rs:45"
      },
      "runearc_core__suppressions__SuppressionEntry_output": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "description": "`hard_bounce`, `complaint`, `manual` or `unsubscribed`."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "address",
          "reason",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/suppressions.rs:22"
      },
      "runearc_core__suppressions__SuppressionPage_output": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__suppressions__SuppressionEntry_output"
            }
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ],
        "x-rust-source": "crates/core/src/suppressions.rs:30"
      },
      "runearc_core__sync_rules__NewSyncRule_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "event_name": {
            "type": "string"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__event_conditions__Condition_input"
            }
          },
          "action": {
            "$ref": "#/components/schemas/runearc_core__sync_rules__SyncAction_input"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "event_name",
          "action"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/sync_rules.rs:37"
      },
      "runearc_core__sync_rules__SyncAction_input": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "add_tag"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "tag"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "remove_tag"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "tag"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "set_field"
              },
              "key": {
                "type": "string"
              },
              "value": {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              }
            },
            "required": [
              "type",
              "key",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "add_to_list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "list_id"
            ],
            "additionalProperties": false
          }
        ],
        "x-rust-source": "crates/core/src/sync_rules.rs:16"
      },
      "runearc_core__sync_rules__SyncAction_output": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "add_tag"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "tag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "remove_tag"
              },
              "tag": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "tag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "set_field"
              },
              "key": {
                "type": "string"
              },
              "value": {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              }
            },
            "required": [
              "type",
              "key",
              "value"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "add_to_list"
              },
              "list_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "list_id"
            ]
          }
        ],
        "x-rust-source": "crates/core/src/sync_rules.rs:16"
      },
      "runearc_core__sync_rules__SyncRulePatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "conditions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__event_conditions__Condition_input"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_core__sync_rules__SyncAction_input"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/sync_rules.rs:52"
      },
      "runearc_core__sync_rules__SyncRule_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "event_name": {
            "type": "string"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__event_conditions__Condition_output"
            }
          },
          "action": {
            "$ref": "#/components/schemas/runearc_core__sync_rules__SyncAction_output"
          },
          "enabled": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "event_name",
          "conditions",
          "action",
          "enabled",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/sync_rules.rs:24"
      },
      "runearc_core__template_starters__Starter_output": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_core__templates__TemplateVariable_output"
            }
          },
          "document": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          }
        },
        "required": [
          "slug",
          "name",
          "description",
          "category",
          "subject",
          "variables",
          "document"
        ],
        "x-rust-source": "crates/core/src/template_starters.rs:11"
      },
      "runearc_core__templates__NewTemplate_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "document": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "variables": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateVariable_input"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "from_starter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/templates.rs:308"
      },
      "runearc_core__templates__Preview_output": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "subject",
          "html",
          "text"
        ],
        "x-rust-source": "crates/core/src/templates.rs:745"
      },
      "runearc_core__templates__TemplateDetail_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "draft": {
                "$ref": "#/components/schemas/runearc_core__templates__TemplateVersion_output"
              },
              "published": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/runearc_core__templates__TemplateVersion_output"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "has_unpublished_changes": {
                "type": "boolean"
              }
            },
            "required": [
              "draft",
              "published",
              "has_unpublished_changes"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__templates__Template_output"
          }
        ],
        "x-rust-source": "crates/core/src/templates.rs:298"
      },
      "runearc_core__templates__TemplatePatch_input": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "document": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "variables": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/runearc_core__templates__TemplateVariable_input"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "preview_variables": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/templates.rs:320"
      },
      "runearc_core__templates__TemplateVariable_input": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "default": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "x-rust-source": "crates/core/src/templates.rs:27"
      },
      "runearc_core__templates__TemplateVariable_output": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "default": {
            "anyOf": [
              {
                "description": "Arbitrary JSON value (serde_json::Value in the source)."
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "required",
          "description"
        ],
        "x-rust-source": "crates/core/src/templates.rs:27"
      },
      "runearc_core__templates__TemplateVersion_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "template_id": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "document": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "variables": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "preview_variables": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "template_id",
          "version",
          "status",
          "subject",
          "document",
          "variables",
          "preview_variables",
          "created_at",
          "updated_at",
          "published_at"
        ],
        "x-rust-source": "crates/core/src/templates.rs:283"
      },
      "runearc_core__templates__Template_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "starter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "published_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "slug",
          "name",
          "description",
          "starter",
          "published_version_id",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/templates.rs:270"
      },
      "runearc_core__templates__VersionChoice_input": {
        "anyOf": [
          {
            "const": "draft",
            "type": "string"
          },
          {
            "const": "published",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/core/src/templates.rs:753"
      },
      "runearc_core__tracking__domain__TrackingDomain_output": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "cname_target": {
            "type": "string",
            "description": "What the CNAME must point at."
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "hostname",
          "status",
          "cname_target",
          "verified_at"
        ],
        "x-rust-source": "crates/core/src/tracking/domain.rs:12"
      },
      "runearc_core__tracking__events__TrackingCounts_output": {
        "type": "object",
        "properties": {
          "opens": {
            "type": "integer"
          },
          "unique_opens": {
            "type": "integer"
          },
          "clicks": {
            "type": "integer"
          },
          "unique_clickers": {
            "type": "integer"
          },
          "unsubscribes": {
            "type": "integer"
          },
          "flagged_opens": {
            "type": "integer"
          },
          "flagged_clicks": {
            "type": "integer"
          }
        },
        "required": [
          "opens",
          "unique_opens",
          "clicks",
          "unique_clickers",
          "unsubscribes",
          "flagged_opens",
          "flagged_clicks"
        ],
        "x-rust-source": "crates/core/src/tracking/events.rs:214"
      },
      "runearc_core__tracking__events__TrackingEvent_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "message_id": {
            "type": "string"
          },
          "contact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "recipient": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_bot": {
            "type": "boolean"
          },
          "bot_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "message_id",
          "contact_id",
          "recipient",
          "kind",
          "url",
          "is_bot",
          "bot_reason",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/tracking/events.rs:225"
      },
      "runearc_core__tracking__settings__FrequencyCap_input": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "hours": {
            "type": "integer"
          }
        },
        "required": [
          "count",
          "hours"
        ],
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/tracking/settings.rs:54"
      },
      "runearc_core__tracking__settings__TrackingSettingsBody_input": {
        "type": "object",
        "properties": {
          "track_opens": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "track_clicks": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "unsubscribe_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "strict_bot_filter": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "frequency_cap": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/runearc_core__tracking__settings__FrequencyCap_input"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "x-rust-source": "crates/core/src/tracking/settings.rs:43"
      },
      "runearc_core__tracking__settings__TrackingSettings_output": {
        "type": "object",
        "properties": {
          "track_opens": {
            "type": "boolean"
          },
          "track_clicks": {
            "type": "boolean"
          },
          "unsubscribe_enabled": {
            "type": "boolean"
          },
          "strict_bot_filter": {
            "type": "boolean"
          },
          "frequency_cap_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "frequency_cap_hours": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "track_opens",
          "track_clicks",
          "unsubscribe_enabled",
          "strict_bot_filter",
          "frequency_cap_count",
          "frequency_cap_hours"
        ],
        "x-rust-source": "crates/core/src/tracking/settings.rs:7"
      },
      "runearc_core__waitlist__WaitlistEntry_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "use_case": {
            "type": "string"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "invited_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "company",
          "use_case",
          "note",
          "source",
          "status",
          "created_at",
          "invited_at"
        ],
        "x-rust-source": "crates/core/src/waitlist.rs:47"
      },
      "runearc_core__webhooks__CreatedWebhook_output": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "secret": {
                "type": "string",
                "description": "`whsec_<base64 of 32 random bytes>`; verify signatures with it."
              }
            },
            "required": [
              "secret"
            ]
          },
          {
            "$ref": "#/components/schemas/runearc_core__webhooks__Webhook_output"
          }
        ],
        "x-rust-source": "crates/core/src/webhooks.rs:46"
      },
      "runearc_core__webhooks__Delivery_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "webhook_id": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          },
          "replay_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attempt": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "response_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "response_body_snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "webhook_id",
          "event_id",
          "replay_of",
          "attempt",
          "status",
          "response_code",
          "response_body_snippet",
          "next_attempt_at",
          "created_at",
          "updated_at"
        ],
        "x-rust-source": "crates/core/src/webhooks.rs:54"
      },
      "runearc_core__webhooks__Event_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "data": {
            "description": "Arbitrary JSON value (serde_json::Value in the source)."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "type",
          "data",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/webhooks.rs:73"
      },
      "runearc_core__webhooks__Waited_output": {
        "type": "object",
        "properties": {
          "message": {
            "$ref": "#/components/schemas/runearc_core__messages__Message_output"
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "message",
          "codes",
          "links"
        ],
        "x-rust-source": "crates/core/src/webhooks.rs:118"
      },
      "runearc_core__webhooks__Webhook_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "event_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Empty means every event type."
          },
          "inbox_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`None` means every inbox in the workspace."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "org_id",
          "url",
          "event_types",
          "inbox_id",
          "created_at"
        ],
        "x-rust-source": "crates/core/src/webhooks.rs:31"
      },
      "runearc_core__workspace_data__DeletedWorkspace_output": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "users_deleted": {
            "type": "integer",
            "minimum": 0,
            "description": "Members deleted with the workspace (they belonged to no other one)."
          },
          "blobs_deleted": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "id",
          "slug",
          "users_deleted",
          "blobs_deleted"
        ],
        "x-rust-source": "crates/core/src/workspace_data.rs:122"
      },
      "runearc_core__workspace_stats__WorkspaceStats_output": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "integer"
          },
          "domains_verified": {
            "type": "integer"
          },
          "inboxes": {
            "type": "integer",
            "description": "Inboxes, without the catch-all."
          },
          "open_threads": {
            "type": "integer",
            "description": "Threads in the workspace."
          },
          "sent_today": {
            "type": "integer",
            "description": "Messages sent and received since midnight (database time, as `usage_daily`). Sent counts inbox messages and `/v1/emails` sends, one per email (an email's copy in its inbox's Sent is not counted again)."
          },
          "received_today": {
            "type": "integer"
          }
        },
        "required": [
          "domains",
          "domains_verified",
          "inboxes",
          "open_threads",
          "sent_today",
          "received_today"
        ],
        "x-rust-source": "crates/core/src/workspace_stats.rs:8"
      },
      "runearc_dns__analyze__AddressKind_input": {
        "anyOf": [
          {
            "const": "inbox",
            "type": "string"
          },
          {
            "const": "sender",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:149"
      },
      "runearc_dns__analyze__AddressKind_output": {
        "anyOf": [
          {
            "const": "inbox",
            "type": "string"
          },
          {
            "const": "sender",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:149"
      },
      "runearc_dns__analyze__DomainAnalysis_output": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string"
          },
          "dns_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "vercel | cloudflare | route53 | godaddy | namecheap | google | other. `None` when the lookup failed or timed out (see `notes`)."
          },
          "can_auto_configure": {
            "type": "boolean"
          },
          "existing_mail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_dns__analyze__ExistingMail_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "`None` when the MX lookup failed or timed out (see `notes`)."
          },
          "existing_spf": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "existing_dmarc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "recommended_mode": {
            "$ref": "#/components/schemas/runearc_dns__analyze__SetupMode_output"
          },
          "modes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_dns__analyze__ModeOption_output"
            }
          },
          "suggested_addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/runearc_dns__analyze__SuggestedAddress_output"
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Lookups that failed or timed out, in words. Empty when everything was checked."
          },
          "domain_connect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/runearc_dns__domain_connect__DomainConnect_output"
              },
              {
                "type": "null"
              }
            ],
            "description": "The DNS host's Domain Connect support (one click setup). `None` when the zone has no `_domainconnect` record, or the lookup failed."
          }
        },
        "required": [
          "domain",
          "dns_provider",
          "can_auto_configure",
          "existing_mail",
          "existing_spf",
          "existing_dmarc",
          "recommended_mode",
          "modes",
          "suggested_addresses",
          "notes",
          "domain_connect"
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:19"
      },
      "runearc_dns__analyze__ExistingMail_output": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/runearc_dns__analyze__MailProvider_output"
          },
          "mx": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "MX hosts, lowest priority first. A null MX (\"0 .\") is left out."
          }
        },
        "required": [
          "provider",
          "mx"
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:41"
      },
      "runearc_dns__analyze__MailProvider_output": {
        "anyOf": [
          {
            "const": "none",
            "type": "string"
          },
          {
            "const": "google_workspace",
            "type": "string"
          },
          {
            "const": "microsoft_365",
            "type": "string"
          },
          {
            "const": "zoho",
            "type": "string"
          },
          {
            "const": "fastmail",
            "type": "string"
          },
          {
            "const": "proton",
            "type": "string"
          },
          {
            "const": "runearc",
            "type": "string"
          },
          {
            "const": "other",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:49"
      },
      "runearc_dns__analyze__ModeOption_output": {
        "type": "object",
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/runearc_dns__analyze__SetupMode_output"
          },
          "receive_on": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "warning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "mode",
          "receive_on",
          "warning"
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:141"
      },
      "runearc_dns__analyze__SetupMode_input": {
        "anyOf": [
          {
            "const": "root",
            "type": "string"
          },
          {
            "const": "subdomain",
            "type": "string"
          },
          {
            "const": "sending_only",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:131"
      },
      "runearc_dns__analyze__SetupMode_output": {
        "anyOf": [
          {
            "const": "root",
            "type": "string"
          },
          {
            "const": "subdomain",
            "type": "string"
          },
          {
            "const": "sending_only",
            "type": "string"
          }
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:131"
      },
      "runearc_dns__analyze__SuggestedAddress_output": {
        "type": "object",
        "properties": {
          "local_part": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/runearc_dns__analyze__AddressKind_output"
          },
          "purpose": {
            "type": "string"
          }
        },
        "required": [
          "local_part",
          "kind",
          "purpose"
        ],
        "x-rust-source": "crates/dns/src/analyze.rs:155"
      },
      "runearc_dns__domain_connect__DomainConnect_output": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string",
            "description": "`vercel.com`, `cloudflare.com`, ..."
          },
          "provider_name": {
            "type": "string",
            "description": "For buttons: `Vercel`, `Cloudflare`."
          },
          "supported": {
            "type": "boolean",
            "description": "The host offers the synchronous (redirect and approve) flow."
          },
          "template_onboarded": {
            "type": "boolean",
            "description": "The host has our template (`runearc.com/mail`), so an apply link works."
          }
        },
        "required": [
          "provider_id",
          "provider_name",
          "supported",
          "template_onboarded"
        ],
        "x-rust-source": "crates/dns/src/domain_connect.rs:57"
      },
      "runearc_dns__mta_sts__MtaStsRecords_output": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string"
          },
          "policy_host": {
            "type": "string",
            "description": "`mta-sts.<domain>`: an A/AAAA record to the server that runs Caddy."
          },
          "sts_name": {
            "type": "string",
            "description": "`_mta-sts.<domain>` TXT."
          },
          "sts_value": {
            "type": "string"
          },
          "tls_rpt_name": {
            "type": "string",
            "description": "`_smtp._tls.<domain>` TXT."
          },
          "tls_rpt_value": {
            "type": "string"
          }
        },
        "required": [
          "domain",
          "policy_host",
          "sts_name",
          "sts_value",
          "tls_rpt_name",
          "tls_rpt_value"
        ],
        "x-rust-source": "crates/dns/src/mta_sts.rs:140"
      },
      "runearc_dns__plan__Mx_output": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "host",
          "priority"
        ],
        "x-rust-source": "crates/dns/src/plan.rs:57"
      }
    }
  },
  "tags": [
    {
      "name": "account",
      "description": "Account operations"
    },
    {
      "name": "admin",
      "description": "Admin operations"
    },
    {
      "name": "ai",
      "description": "Ai operations"
    },
    {
      "name": "analytics",
      "description": "Analytics operations"
    },
    {
      "name": "app_passwords",
      "description": "App passwords operations"
    },
    {
      "name": "audience",
      "description": "Audience operations"
    },
    {
      "name": "audience_import",
      "description": "Audience import operations"
    },
    {
      "name": "audit",
      "description": "Audit operations"
    },
    {
      "name": "auth",
      "description": "Auth operations"
    },
    {
      "name": "billing",
      "description": "Billing operations"
    },
    {
      "name": "campaigns",
      "description": "Campaigns operations"
    },
    {
      "name": "contact_events",
      "description": "Contact events operations"
    },
    {
      "name": "contacts",
      "description": "Contacts operations"
    },
    {
      "name": "conversations",
      "description": "Conversations operations"
    },
    {
      "name": "domain_connect",
      "description": "Domain connect operations"
    },
    {
      "name": "domains",
      "description": "Domains operations"
    },
    {
      "name": "drafts",
      "description": "Drafts operations"
    },
    {
      "name": "email_design",
      "description": "Email design operations"
    },
    {
      "name": "emails",
      "description": "Emails operations"
    },
    {
      "name": "events",
      "description": "Events operations"
    },
    {
      "name": "forms",
      "description": "Forms operations"
    },
    {
      "name": "forwards",
      "description": "Forwards operations"
    },
    {
      "name": "members",
      "description": "Members operations"
    },
    {
      "name": "mobile",
      "description": "Mobile operations"
    },
    {
      "name": "onboarding",
      "description": "Onboarding operations"
    },
    {
      "name": "pages",
      "description": "Pages operations"
    },
    {
      "name": "plan_billing",
      "description": "Plan billing operations"
    },
    {
      "name": "popups",
      "description": "Popups operations"
    },
    {
      "name": "runearc_api",
      "description": "Runearc api operations"
    },
    {
      "name": "segments",
      "description": "Segments operations"
    },
    {
      "name": "sending",
      "description": "Sending operations"
    },
    {
      "name": "sequences",
      "description": "Sequences operations"
    },
    {
      "name": "setup",
      "description": "Setup operations"
    },
    {
      "name": "shell",
      "description": "Shell operations"
    },
    {
      "name": "templates",
      "description": "Templates operations"
    },
    {
      "name": "tools",
      "description": "Tools operations"
    },
    {
      "name": "tracking",
      "description": "Tracking operations"
    },
    {
      "name": "waitlist",
      "description": "Waitlist operations"
    },
    {
      "name": "workspace",
      "description": "Workspace operations"
    }
  ],
  "x-source-sha256": "9e5bec8a983f61ffa6871eb30312b06b937edaf30ab42f249c5f71cc9741f964"
}
