{
  "components": {
    "schemas": {
      "Account": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identity"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "ownership": {
            "enum": [
              "personal",
              "shared"
            ],
            "title": "Ownership",
            "type": "string"
          },
          "provider": {
            "enum": [
              "granola",
              "gmail",
              "slack"
            ],
            "title": "Provider",
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "connected",
              "needs_attention",
              "disconnected"
            ],
            "title": "Status",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "updates_wiki": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updates Wiki"
          }
        },
        "required": [
          "account_id",
          "provider",
          "ownership",
          "label",
          "status",
          "created_at",
          "updated_at"
        ],
        "title": "Account",
        "type": "object"
      },
      "AccountAuthorization": {
        "additionalProperties": false,
        "properties": {
          "account": {
            "$ref": "#/components/schemas/Account"
          },
          "connect_url": {
            "title": "Connect Url",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          }
        },
        "required": [
          "account",
          "connect_url",
          "expires_at"
        ],
        "title": "AccountAuthorization",
        "type": "object"
      },
      "Accounts": {
        "additionalProperties": false,
        "properties": {
          "shared_accounts": {
            "items": {
              "$ref": "#/components/schemas/Account"
            },
            "title": "Shared Accounts",
            "type": "array"
          },
          "your_accounts": {
            "items": {
              "$ref": "#/components/schemas/Account"
            },
            "title": "Your Accounts",
            "type": "array"
          }
        },
        "title": "Accounts",
        "type": "object"
      },
      "AuthorizeAccount": {
        "additionalProperties": false,
        "properties": {
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "ownership": {
            "default": "personal",
            "enum": [
              "personal",
              "shared"
            ],
            "title": "Ownership",
            "type": "string"
          },
          "provider": {
            "const": "granola",
            "title": "Provider",
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "title": "AuthorizeAccount",
        "type": "object"
      },
      "BillingPlanChangeRequest": {
        "additionalProperties": false,
        "properties": {
          "plan_id": {
            "title": "Plan Id",
            "type": "string"
          },
          "success_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Success Url"
          }
        },
        "required": [
          "plan_id"
        ],
        "title": "BillingPlanChangeRequest",
        "type": "object"
      },
      "BillingPortalRequest": {
        "additionalProperties": false,
        "properties": {
          "return_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Return Url"
          }
        },
        "title": "BillingPortalRequest",
        "type": "object"
      },
      "BillingPreviewRequest": {
        "additionalProperties": false,
        "properties": {
          "plan_id": {
            "title": "Plan Id",
            "type": "string"
          }
        },
        "required": [
          "plan_id"
        ],
        "title": "BillingPreviewRequest",
        "type": "object"
      },
      "CompleteOrganizationSetup": {
        "additionalProperties": false,
        "properties": {
          "plan_id": {
            "minLength": 1,
            "title": "Plan Id",
            "type": "string"
          }
        },
        "required": [
          "plan_id"
        ],
        "title": "CompleteOrganizationSetup",
        "type": "object"
      },
      "CreateApiKeyRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "title": "Permissions",
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "title": "CreateApiKeyRequest",
        "type": "object"
      },
      "EmailPreference": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "product_updates": {
            "default": true,
            "title": "Product Updates",
            "type": "boolean"
          },
          "provider_contact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Contact Id"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "email",
          "display_name",
          "created_at",
          "updated_at"
        ],
        "title": "EmailPreference",
        "type": "object"
      },
      "HostedApiKey": {
        "additionalProperties": false,
        "properties": {
          "api_key_id": {
            "title": "Api Key Id",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "obfuscated_value": {
            "title": "Obfuscated Value",
            "type": "string"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "title": "Permissions",
            "type": "array"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "api_key_id",
          "name",
          "obfuscated_value",
          "created_at",
          "updated_at"
        ],
        "title": "HostedApiKey",
        "type": "object"
      },
      "HostedApiKeyCreated": {
        "additionalProperties": false,
        "properties": {
          "api_key_id": {
            "title": "Api Key Id",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "obfuscated_value": {
            "title": "Obfuscated Value",
            "type": "string"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "title": "Permissions",
            "type": "array"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "api_key_id",
          "name",
          "obfuscated_value",
          "created_at",
          "updated_at",
          "value"
        ],
        "title": "HostedApiKeyCreated",
        "type": "object"
      },
      "HostedBillingManage": {
        "additionalProperties": false,
        "properties": {
          "allowed": {
            "title": "Allowed",
            "type": "boolean"
          },
          "reason": {
            "$ref": "#/components/schemas/HostedBillingManageReason"
          }
        },
        "required": [
          "allowed",
          "reason"
        ],
        "title": "HostedBillingManage",
        "type": "object"
      },
      "HostedBillingManageReason": {
        "enum": [
          "permission",
          "not_allowed"
        ],
        "title": "HostedBillingManageReason",
        "type": "string"
      },
      "HostedBillingPlan": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HostedPlanAction"
              },
              {
                "type": "null"
              }
            ]
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/HostedPlanFeature"
            },
            "title": "Features",
            "type": "array"
          },
          "group": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group"
          },
          "interval": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "plan_id": {
            "title": "Plan Id",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HostedPlanStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "plan_id",
          "name"
        ],
        "title": "HostedBillingPlan",
        "type": "object"
      },
      "HostedBillingPlanChange": {
        "additionalProperties": false,
        "properties": {
          "redirect_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect Url"
          }
        },
        "title": "HostedBillingPlanChange",
        "type": "object"
      },
      "HostedBillingPortal": {
        "additionalProperties": false,
        "properties": {
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "HostedBillingPortal",
        "type": "object"
      },
      "HostedBillingPreview": {
        "additionalProperties": false,
        "properties": {
          "checkout_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checkout Type"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/HostedBillingPreviewLine"
            },
            "title": "Line Items",
            "type": "array"
          },
          "plan_id": {
            "title": "Plan Id",
            "type": "string"
          },
          "redirect_to_checkout": {
            "default": false,
            "title": "Redirect To Checkout",
            "type": "boolean"
          },
          "subtotal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subtotal"
          },
          "total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "required": [
          "plan_id"
        ],
        "title": "HostedBillingPreview",
        "type": "object"
      },
      "HostedBillingPreviewLine": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Quantity"
          },
          "subtotal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subtotal"
          },
          "total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "required": [
          "name"
        ],
        "title": "HostedBillingPreviewLine",
        "type": "object"
      },
      "HostedBillingState": {
        "additionalProperties": false,
        "properties": {
          "manage": {
            "$ref": "#/components/schemas/HostedBillingManage"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "plans": {
            "items": {
              "$ref": "#/components/schemas/HostedBillingPlan"
            },
            "title": "Plans",
            "type": "array"
          },
          "subscription": {
            "$ref": "#/components/schemas/HostedBillingSubscription"
          },
          "usage": {
            "items": {
              "$ref": "#/components/schemas/HostedBillingUsage"
            },
            "title": "Usage",
            "type": "array"
          }
        },
        "required": [
          "organization_id",
          "manage",
          "subscription",
          "plans"
        ],
        "title": "HostedBillingState",
        "type": "object"
      },
      "HostedBillingSubscription": {
        "additionalProperties": false,
        "properties": {
          "current_period_end": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period End"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "plan_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Id"
          },
          "state": {
            "$ref": "#/components/schemas/HostedSubscriptionState"
          },
          "trial_available": {
            "default": false,
            "title": "Trial Available",
            "type": "boolean"
          },
          "trial_ends_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends At"
          }
        },
        "required": [
          "state"
        ],
        "title": "HostedBillingSubscription",
        "type": "object"
      },
      "HostedBillingUsage": {
        "additionalProperties": false,
        "properties": {
          "feature_id": {
            "title": "Feature Id",
            "type": "string"
          },
          "granted": {
            "title": "Granted",
            "type": "number"
          },
          "next_reset_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Reset At"
          },
          "overage_allowed": {
            "default": false,
            "title": "Overage Allowed",
            "type": "boolean"
          },
          "remaining": {
            "title": "Remaining",
            "type": "number"
          },
          "unlimited": {
            "default": false,
            "title": "Unlimited",
            "type": "boolean"
          },
          "usage": {
            "title": "Usage",
            "type": "number"
          }
        },
        "required": [
          "feature_id",
          "granted",
          "remaining",
          "usage"
        ],
        "title": "HostedBillingUsage",
        "type": "object"
      },
      "HostedDeviceLogin": {
        "additionalProperties": false,
        "properties": {
          "device_code": {
            "title": "Device Code",
            "type": "string"
          },
          "expires_in": {
            "title": "Expires In",
            "type": "number"
          },
          "interval": {
            "default": 5,
            "title": "Interval",
            "type": "number"
          },
          "user_code": {
            "title": "User Code",
            "type": "string"
          },
          "verification_uri": {
            "title": "Verification Uri",
            "type": "string"
          },
          "verification_uri_complete": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verification Uri Complete"
          }
        },
        "required": [
          "device_code",
          "user_code",
          "verification_uri",
          "expires_in"
        ],
        "title": "HostedDeviceLogin",
        "type": "object"
      },
      "HostedGardenRequest": {
        "additionalProperties": false,
        "properties": {
          "guidance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guidance"
          },
          "page": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page"
          }
        },
        "title": "HostedGardenRequest",
        "type": "object"
      },
      "HostedLoginPoll": {
        "additionalProperties": false,
        "properties": {
          "device_code": {
            "title": "Device Code",
            "type": "string"
          }
        },
        "required": [
          "device_code"
        ],
        "title": "HostedLoginPoll",
        "type": "object"
      },
      "HostedLoginRefresh": {
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id"
          },
          "refresh_token": {
            "title": "Refresh Token",
            "type": "string"
          }
        },
        "required": [
          "refresh_token"
        ],
        "title": "HostedLoginRefresh",
        "type": "object"
      },
      "HostedLoginToken": {
        "additionalProperties": false,
        "properties": {
          "access_token": {
            "title": "Access Token",
            "type": "string"
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id"
          },
          "refresh_token": {
            "title": "Refresh Token",
            "type": "string"
          }
        },
        "required": [
          "access_token",
          "refresh_token"
        ],
        "title": "HostedLoginToken",
        "type": "object"
      },
      "HostedPageStatus": {
        "enum": [
          "active",
          "archived"
        ],
        "title": "HostedPageStatus",
        "type": "string"
      },
      "HostedPageSummary": {
        "additionalProperties": false,
        "properties": {
          "page_id": {
            "title": "Page Id",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/HostedPageStatus"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          },
          "wiki_id": {
            "title": "Wiki Id",
            "type": "string"
          }
        },
        "required": [
          "page_id",
          "wiki_id",
          "path",
          "title",
          "status",
          "updated_at"
        ],
        "title": "HostedPageSummary",
        "type": "object"
      },
      "HostedPlanAction": {
        "enum": [
          "activate",
          "upgrade",
          "downgrade",
          "purchase",
          "none"
        ],
        "title": "HostedPlanAction",
        "type": "string"
      },
      "HostedPlanFeature": {
        "additionalProperties": false,
        "properties": {
          "feature_id": {
            "title": "Feature Id",
            "type": "string"
          },
          "included": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included"
          }
        },
        "required": [
          "feature_id"
        ],
        "title": "HostedPlanFeature",
        "type": "object"
      },
      "HostedPlanStatus": {
        "enum": [
          "active",
          "scheduled"
        ],
        "title": "HostedPlanStatus",
        "type": "string"
      },
      "HostedSubscriptionState": {
        "enum": [
          "inactive",
          "legacy_free",
          "trialing",
          "active",
          "ending",
          "past_due"
        ],
        "title": "HostedSubscriptionState",
        "type": "string"
      },
      "HostedTopicDetail": {
        "additionalProperties": false,
        "properties": {
          "pages": {
            "items": {
              "$ref": "#/components/schemas/HostedPageSummary"
            },
            "title": "Pages",
            "type": "array"
          },
          "topic": {
            "title": "Topic",
            "type": "string"
          }
        },
        "required": [
          "topic",
          "pages"
        ],
        "title": "HostedTopicDetail",
        "type": "object"
      },
      "HostedTopicSummary": {
        "additionalProperties": false,
        "properties": {
          "page_count": {
            "title": "Page Count",
            "type": "integer"
          },
          "topic": {
            "title": "Topic",
            "type": "string"
          }
        },
        "required": [
          "topic",
          "page_count"
        ],
        "title": "HostedTopicSummary",
        "type": "object"
      },
      "ImportItem": {
        "additionalProperties": false,
        "properties": {
          "duplicate_source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duplicate Source Id"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "import_id": {
            "title": "Import Id",
            "type": "string"
          },
          "mime_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "original_path": {
            "title": "Original Path",
            "type": "string"
          },
          "sha256": {
            "title": "Sha256",
            "type": "string"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Id"
          },
          "status": {
            "enum": [
              "pending",
              "organized",
              "duplicate",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_label": {
            "title": "Status Label",
            "type": "string"
          },
          "status_state": {
            "enum": [
              "ready",
              "running",
              "failed",
              "unknown"
            ],
            "title": "Status State",
            "type": "string"
          }
        },
        "required": [
          "import_id",
          "original_path",
          "name",
          "status",
          "status_state",
          "status_label",
          "source_id",
          "duplicate_source_id",
          "error",
          "mime_type",
          "size_bytes",
          "sha256"
        ],
        "title": "ImportItem",
        "type": "object"
      },
      "Invitation": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "invitation_id": {
            "title": "Invitation Id",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "state": {
            "default": "pending",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "invitation_id",
          "email",
          "role"
        ],
        "title": "Invitation",
        "type": "object"
      },
      "InviteMember": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "minLength": 1,
            "title": "Email",
            "type": "string"
          },
          "role": {
            "minLength": 1,
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "email",
          "role"
        ],
        "title": "InviteMember",
        "type": "object"
      },
      "Job": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "current_step": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Step"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "kind": {
            "enum": [
              "ingest",
              "garden",
              "learn"
            ],
            "title": "Kind",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_label": {
            "title": "Status Label",
            "type": "string"
          },
          "status_state": {
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "unknown"
            ],
            "title": "Status State",
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "kind",
          "status",
          "title",
          "current_step",
          "summary",
          "error",
          "status_state",
          "status_label",
          "created_at",
          "updated_at",
          "started_at",
          "finished_at"
        ],
        "title": "Job",
        "type": "object"
      },
      "JobEvent": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "level": {
            "enum": [
              "info",
              "warning",
              "error"
            ],
            "title": "Level",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "payload_json": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payload Json"
          },
          "sequence": {
            "title": "Sequence",
            "type": "integer"
          }
        },
        "required": [
          "event_id",
          "job_id",
          "sequence",
          "level",
          "message",
          "created_at"
        ],
        "title": "JobEvent",
        "type": "object"
      },
      "JobImportOutcome": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "original_path": {
            "title": "Original Path",
            "type": "string"
          },
          "source_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Path"
          },
          "status": {
            "enum": [
              "pending",
              "organized",
              "duplicate",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "original_path",
          "status",
          "source_path",
          "error"
        ],
        "title": "JobImportOutcome",
        "type": "object"
      },
      "JobOutcome": {
        "additionalProperties": false,
        "properties": {
          "imports": {
            "items": {
              "$ref": "#/components/schemas/JobImportOutcome"
            },
            "title": "Imports",
            "type": "array"
          },
          "job": {
            "$ref": "#/components/schemas/Job"
          },
          "pages": {
            "items": {
              "$ref": "#/components/schemas/JobPageChange"
            },
            "title": "Pages",
            "type": "array"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/JobSourceChange"
            },
            "title": "Sources",
            "type": "array"
          }
        },
        "required": [
          "job",
          "imports",
          "sources",
          "pages"
        ],
        "title": "JobOutcome",
        "type": "object"
      },
      "JobPageChange": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "enum": [
              "created",
              "updated",
              "removed"
            ],
            "title": "Action",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "action",
          "path",
          "title"
        ],
        "title": "JobPageChange",
        "type": "object"
      },
      "JobSourceChange": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "enum": [
              "added",
              "moved",
              "deleted"
            ],
            "title": "Action",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "previous_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous Path"
          }
        },
        "required": [
          "action",
          "path",
          "previous_path"
        ],
        "title": "JobSourceChange",
        "type": "object"
      },
      "Member": {
        "additionalProperties": false,
        "properties": {
          "avatar_url": {
            "default": "",
            "title": "Avatar Url",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "membership_id": {
            "title": "Membership Id",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "status": {
            "default": "active",
            "title": "Status",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "membership_id",
          "user_id",
          "email",
          "display_name",
          "role"
        ],
        "title": "Member",
        "type": "object"
      },
      "Organization": {
        "additionalProperties": false,
        "properties": {
          "can_manage_billing": {
            "default": false,
            "title": "Can Manage Billing",
            "type": "boolean"
          },
          "can_manage_developers": {
            "default": false,
            "title": "Can Manage Developers",
            "type": "boolean"
          },
          "can_manage_people": {
            "default": false,
            "title": "Can Manage People",
            "type": "boolean"
          },
          "member_quill_status": {
            "anyOf": [
              {
                "enum": [
                  "preparing",
                  "ready",
                  "suspended",
                  "failed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Member Quill Status"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "shared_quill_status": {
            "anyOf": [
              {
                "enum": [
                  "preparing",
                  "ready",
                  "suspended",
                  "failed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shared Quill Status"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "wiki": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Wiki"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "organization_id",
          "name",
          "slug",
          "role"
        ],
        "title": "Organization",
        "type": "object"
      },
      "OrganizationAccess": {
        "additionalProperties": false,
        "properties": {
          "can_manage_billing": {
            "default": false,
            "title": "Can Manage Billing",
            "type": "boolean"
          },
          "can_manage_developers": {
            "default": false,
            "title": "Can Manage Developers",
            "type": "boolean"
          },
          "can_manage_people": {
            "default": false,
            "title": "Can Manage People",
            "type": "boolean"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "organization_id",
          "role"
        ],
        "title": "OrganizationAccess",
        "type": "object"
      },
      "OrganizationCheckout": {
        "additionalProperties": false,
        "properties": {
          "plan_id": {
            "minLength": 1,
            "title": "Plan Id",
            "type": "string"
          },
          "success_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Success Url"
          }
        },
        "required": [
          "plan_id"
        ],
        "title": "OrganizationCheckout",
        "type": "object"
      },
      "OrganizationSetup": {
        "additionalProperties": false,
        "properties": {
          "activated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activated At"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id"
          },
          "requested_name": {
            "title": "Requested Name",
            "type": "string"
          },
          "setup_choice": {
            "enum": [
              "personal",
              "team"
            ],
            "title": "Setup Choice",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "state": {
            "enum": [
              "requested",
              "organization_created",
              "owner_created",
              "product_ready",
              "active"
            ],
            "title": "State",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "setup_choice",
          "requested_name",
          "slug",
          "state",
          "created_at",
          "updated_at"
        ],
        "title": "OrganizationSetup",
        "type": "object"
      },
      "Page": {
        "additionalProperties": false,
        "properties": {
          "body_md": {
            "title": "Body Md",
            "type": "string"
          },
          "file_path": {
            "title": "File Path",
            "type": "string"
          },
          "folder": {
            "title": "Folder",
            "type": "string"
          },
          "frontmatter_json": {
            "additionalProperties": true,
            "title": "Frontmatter Json",
            "type": "object"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "page_id": {
            "title": "Page Id",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_label": {
            "title": "Status Label",
            "type": "string"
          },
          "status_state": {
            "enum": [
              "ready",
              "running",
              "failed",
              "unknown"
            ],
            "title": "Status State",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "page_id",
          "path",
          "title",
          "status",
          "updated_at",
          "folder",
          "name",
          "status_state",
          "status_label",
          "file_path",
          "summary",
          "body_md",
          "frontmatter_json"
        ],
        "title": "Page",
        "type": "object"
      },
      "PageSearchResult": {
        "additionalProperties": false,
        "properties": {
          "excerpt": {
            "title": "Excerpt",
            "type": "string"
          },
          "folder": {
            "title": "Folder",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "page_id": {
            "title": "Page Id",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "rank": {
            "title": "Rank",
            "type": "number"
          },
          "status": {
            "enum": [
              "active",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_label": {
            "title": "Status Label",
            "type": "string"
          },
          "status_state": {
            "enum": [
              "ready",
              "running",
              "failed",
              "unknown"
            ],
            "title": "Status State",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "page_id",
          "path",
          "title",
          "status",
          "updated_at",
          "folder",
          "name",
          "status_state",
          "status_label",
          "summary",
          "rank",
          "excerpt"
        ],
        "title": "PageSearchResult",
        "type": "object"
      },
      "PageSource": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Id"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "original_filename": {
            "title": "Original Filename",
            "type": "string"
          },
          "page_id": {
            "title": "Page Id",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "source_id": {
            "title": "Source Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "page_id",
          "source_id",
          "key",
          "title",
          "job_id",
          "note",
          "path",
          "original_filename",
          "created_at"
        ],
        "title": "PageSource",
        "type": "object"
      },
      "PageSummary": {
        "additionalProperties": false,
        "properties": {
          "folder": {
            "title": "Folder",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "page_id": {
            "title": "Page Id",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_label": {
            "title": "Status Label",
            "type": "string"
          },
          "status_state": {
            "enum": [
              "ready",
              "running",
              "failed",
              "unknown"
            ],
            "title": "Status State",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "page_id",
          "path",
          "title",
          "status",
          "updated_at",
          "folder",
          "name",
          "status_state",
          "status_label"
        ],
        "title": "PageSummary",
        "type": "object"
      },
      "People": {
        "additionalProperties": false,
        "properties": {
          "invitations": {
            "items": {
              "$ref": "#/components/schemas/Invitation"
            },
            "title": "Invitations",
            "type": "array"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/Member"
            },
            "title": "Members",
            "type": "array"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/Role"
            },
            "title": "Roles",
            "type": "array"
          },
          "seats": {
            "$ref": "#/components/schemas/Seats"
          },
          "viewer": {
            "$ref": "#/components/schemas/OrganizationAccess"
          }
        },
        "required": [
          "organization_id",
          "viewer",
          "seats"
        ],
        "title": "People",
        "type": "object"
      },
      "RenameWikiRequest": {
        "additionalProperties": false,
        "properties": {
          "title": {
            "minLength": 1,
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "title": "RenameWikiRequest",
        "type": "object"
      },
      "Role": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "name"
        ],
        "title": "Role",
        "type": "object"
      },
      "Seats": {
        "additionalProperties": false,
        "properties": {
          "active": {
            "title": "Active",
            "type": "integer"
          },
          "blocked": {
            "default": false,
            "title": "Blocked",
            "type": "boolean"
          },
          "granted": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Granted"
          },
          "overage_allowed": {
            "default": false,
            "title": "Overage Allowed",
            "type": "boolean"
          },
          "pending": {
            "default": 0,
            "title": "Pending",
            "type": "integer"
          },
          "unlimited": {
            "default": false,
            "title": "Unlimited",
            "type": "boolean"
          },
          "used": {
            "title": "Used",
            "type": "integer"
          }
        },
        "required": [
          "active",
          "used"
        ],
        "title": "Seats",
        "type": "object"
      },
      "Session": {
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id"
          },
          "organizations": {
            "items": {
              "$ref": "#/components/schemas/Organization"
            },
            "title": "Organizations",
            "type": "array"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "organizations"
        ],
        "title": "Session",
        "type": "object"
      },
      "Source": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "folder": {
            "title": "Folder",
            "type": "string"
          },
          "mime_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "original_filename": {
            "title": "Original Filename",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "sha256": {
            "title": "Sha256",
            "type": "string"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "source_id": {
            "title": "Source Id",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "path",
          "folder",
          "name",
          "original_filename",
          "mime_type",
          "size_bytes",
          "sha256",
          "created_at",
          "updated_at"
        ],
        "title": "Source",
        "type": "object"
      },
      "SourceFolder": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "parent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "source_count": {
            "title": "Source Count",
            "type": "integer"
          }
        },
        "required": [
          "path",
          "name",
          "parent",
          "source_count"
        ],
        "title": "SourceFolder",
        "type": "object"
      },
      "SourceTree": {
        "additionalProperties": false,
        "properties": {
          "folders": {
            "items": {
              "$ref": "#/components/schemas/SourceFolder"
            },
            "title": "Folders",
            "type": "array"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/Source"
            },
            "title": "Sources",
            "type": "array"
          }
        },
        "required": [
          "folders",
          "sources"
        ],
        "title": "SourceTree",
        "type": "object"
      },
      "SourceUploadFile": {
        "additionalProperties": false,
        "properties": {
          "mime_type": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          },
          "path": {
            "maxLength": 1024,
            "minLength": 1,
            "title": "Path",
            "type": "string"
          },
          "sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "title": "Sha256",
            "type": "string"
          },
          "size_bytes": {
            "maximum": 52428800.0,
            "minimum": 1.0,
            "title": "Size Bytes",
            "type": "integer"
          }
        },
        "required": [
          "path",
          "size_bytes",
          "sha256"
        ],
        "title": "SourceUploadFile",
        "type": "object"
      },
      "StartOrganizationSetup": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "setup_choice": {
            "enum": [
              "personal",
              "team"
            ],
            "title": "Setup Choice",
            "type": "string"
          }
        },
        "required": [
          "name",
          "setup_choice"
        ],
        "title": "StartOrganizationSetup",
        "type": "object"
      },
      "UpdateAccountWiki": {
        "additionalProperties": false,
        "properties": {
          "updates_wiki": {
            "title": "Updates Wiki",
            "type": "boolean"
          }
        },
        "required": [
          "updates_wiki"
        ],
        "title": "UpdateAccountWiki",
        "type": "object"
      },
      "UpdateEmailPreference": {
        "additionalProperties": false,
        "properties": {
          "product_updates": {
            "title": "Product Updates",
            "type": "boolean"
          }
        },
        "required": [
          "product_updates"
        ],
        "title": "UpdateEmailPreference",
        "type": "object"
      },
      "UpdateMember": {
        "additionalProperties": false,
        "properties": {
          "role": {
            "minLength": 1,
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "role"
        ],
        "title": "UpdateMember",
        "type": "object"
      },
      "Upload": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "source_count": {
            "title": "Source Count",
            "type": "integer"
          },
          "status": {
            "enum": [
              "uploading",
              "queued",
              "completed",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "status_label": {
            "title": "Status Label",
            "type": "string"
          },
          "status_state": {
            "enum": [
              "ready",
              "running",
              "failed",
              "unknown"
            ],
            "title": "Status State",
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          },
          "upload_id": {
            "title": "Upload Id",
            "type": "string"
          }
        },
        "required": [
          "upload_id",
          "status",
          "status_state",
          "status_label",
          "source_count",
          "summary",
          "error",
          "created_at",
          "updated_at",
          "finished_at"
        ],
        "title": "Upload",
        "type": "object"
      },
      "UploadFilePlan": {
        "additionalProperties": false,
        "properties": {
          "file_id": {
            "title": "File Id",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadTarget"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "file_id",
          "path",
          "target"
        ],
        "title": "UploadFilePlan",
        "type": "object"
      },
      "UploadPlan": {
        "additionalProperties": false,
        "properties": {
          "files": {
            "items": {
              "$ref": "#/components/schemas/UploadFilePlan"
            },
            "title": "Files",
            "type": "array"
          },
          "upload": {
            "$ref": "#/components/schemas/Upload"
          }
        },
        "required": [
          "upload",
          "files"
        ],
        "title": "UploadPlan",
        "type": "object"
      },
      "UploadResult": {
        "additionalProperties": false,
        "properties": {
          "imports": {
            "items": {
              "$ref": "#/components/schemas/ImportItem"
            },
            "title": "Imports",
            "type": "array"
          },
          "job": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Job"
              },
              {
                "type": "null"
              }
            ]
          },
          "upload": {
            "$ref": "#/components/schemas/Upload"
          }
        },
        "required": [
          "upload",
          "imports",
          "job"
        ],
        "title": "UploadResult",
        "type": "object"
      },
      "UploadSourcesRequest": {
        "additionalProperties": false,
        "properties": {
          "files": {
            "items": {
              "$ref": "#/components/schemas/SourceUploadFile"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Files",
            "type": "array"
          },
          "guidance": {
            "anyOf": [
              {
                "maxLength": 4000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guidance"
          }
        },
        "required": [
          "files"
        ],
        "title": "UploadSourcesRequest",
        "type": "object"
      },
      "UploadTarget": {
        "additionalProperties": false,
        "properties": {
          "expires_at": {
            "title": "Expires At",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Headers",
            "type": "object"
          },
          "method": {
            "title": "Method",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "method",
          "url",
          "headers",
          "expires_at"
        ],
        "title": "UploadTarget",
        "type": "object"
      },
      "User": {
        "additionalProperties": false,
        "properties": {
          "avatar_url": {
            "default": "",
            "title": "Avatar Url",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "email",
          "display_name"
        ],
        "title": "User",
        "type": "object"
      },
      "Wiki": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "title": "Wiki",
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "Almanac access token or API key",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Versioned API for hosted Almanac wikis.",
    "title": "Almanac V1 API",
    "version": "0.5.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/auth/device/finish": {
      "post": {
        "operationId": "finish_device_login_v1_auth_device_finish_post",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostedLoginPoll"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedLoginToken"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "security": [],
        "summary": "Finish Device Login",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/auth/device/start": {
      "post": {
        "operationId": "start_device_login_v1_auth_device_start_post",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedDeviceLogin"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "security": [],
        "summary": "Start Device Login",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/auth/token/refresh": {
      "post": {
        "operationId": "refresh_token_v1_auth_token_refresh_post",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostedLoginRefresh"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedLoginToken"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "security": [],
        "summary": "Refresh Token",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/email-preferences": {
      "get": {
        "operationId": "email_preference_v1_email_preferences_get",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreference"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Email Preference",
        "tags": [
          "Account"
        ]
      },
      "patch": {
        "operationId": "update_email_preference_v1_email_preferences_patch",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEmailPreference"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreference"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Update Email Preference",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/organization-setups/{setup_id}": {
      "get": {
        "operationId": "organization_setup_v1_organization_setups__setup_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "setup_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Setup Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSetup"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Organization Setup",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organization-setups/{setup_id}/checkout": {
      "post": {
        "operationId": "checkout_v1_organization_setups__setup_id__checkout_post",
        "parameters": [
          {
            "in": "path",
            "name": "setup_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Setup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationCheckout"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Checkout",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organization-setups/{setup_id}/complete": {
      "post": {
        "operationId": "complete_v1_organization_setups__setup_id__complete_post",
        "parameters": [
          {
            "in": "path",
            "name": "setup_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Setup Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteOrganizationSetup"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSetup"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Complete",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations": {
      "post": {
        "operationId": "create_organization_v1_organizations_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOrganizationSetup"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSetup"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Create Organization",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}": {
      "get": {
        "operationId": "organization_v1_organizations__organization_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Organization",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}/accounts": {
      "get": {
        "operationId": "accounts_v1_organizations__organization_id__accounts_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accounts"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Accounts",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}/accounts/authorize": {
      "post": {
        "operationId": "authorize_v1_organizations__organization_id__accounts_authorize_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorizeAccount"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountAuthorization"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Authorize",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}/accounts/{account_id}": {
      "delete": {
        "operationId": "disconnect_v1_organizations__organization_id__accounts__account_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "title": "Account Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Disconnect",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}/accounts/{account_id}/reauthorize": {
      "post": {
        "operationId": "reauthorize_v1_organizations__organization_id__accounts__account_id__reauthorize_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "title": "Account Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountAuthorization"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Reauthorize",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}/accounts/{account_id}/use": {
      "delete": {
        "operationId": "remove_v1_organizations__organization_id__accounts__account_id__use_delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "title": "Account Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Remove",
        "tags": [
          "Organizations"
        ]
      },
      "post": {
        "operationId": "use_v1_organizations__organization_id__accounts__account_id__use_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "title": "Account Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Use",
        "tags": [
          "Organizations"
        ]
      }
    },
    "/v1/organizations/{organization_id}/accounts/{account_id}/wiki": {
      "patch": {
        "operationId": "set_updates_wiki_v1_organizations__organization_id__accounts__account_id__wiki_patch",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "title": "Account Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAccountWiki"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Set Updates Wiki",
        "tags": [
          "Wikis"
        ]
      }
    },
    "/v1/organizations/{organization_id}/api-keys": {
      "get": {
        "operationId": "api_keys_v1_organizations__organization_id__api_keys_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/HostedApiKey"
                  },
                  "title": "Response Api Keys V1 Organizations  Organization Id  Api Keys Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Api Keys",
        "tags": [
          "API keys"
        ]
      },
      "post": {
        "operationId": "create_api_key_v1_organizations__organization_id__api_keys_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedApiKeyCreated"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Create Api Key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/v1/organizations/{organization_id}/api-keys/{api_key_id}": {
      "delete": {
        "operationId": "delete_api_key_v1_organizations__organization_id__api_keys__api_key_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "api_key_id",
            "required": true,
            "schema": {
              "title": "Api Key Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Delete Api Key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/v1/organizations/{organization_id}/billing": {
      "get": {
        "operationId": "billing_state_v1_organizations__organization_id__billing_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedBillingState"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Billing State",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/organizations/{organization_id}/billing/plan": {
      "post": {
        "operationId": "billing_plan_change_v1_organizations__organization_id__billing_plan_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingPlanChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedBillingPlanChange"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Billing Plan Change",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/organizations/{organization_id}/billing/portal": {
      "post": {
        "operationId": "billing_portal_v1_organizations__organization_id__billing_portal_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingPortalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedBillingPortal"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Billing Portal",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/organizations/{organization_id}/billing/preview": {
      "post": {
        "operationId": "billing_preview_v1_organizations__organization_id__billing_preview_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingPreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedBillingPreview"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Billing Preview",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/organizations/{organization_id}/jobs": {
      "get": {
        "operationId": "jobs_v1_organizations__organization_id__jobs_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Job"
                  },
                  "title": "Response Jobs V1 Organizations  Organization Id  Jobs Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Jobs",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/v1/organizations/{organization_id}/jobs/garden": {
      "post": {
        "operationId": "garden_job_v1_organizations__organization_id__jobs_garden_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostedGardenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Garden Job",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/v1/organizations/{organization_id}/jobs/{job_id}": {
      "get": {
        "operationId": "job_v1_organizations__organization_id__jobs__job_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Job",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/v1/organizations/{organization_id}/jobs/{job_id}/events": {
      "get": {
        "operationId": "job_events_v1_organizations__organization_id__jobs__job_id__events_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_payload",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Payload",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/JobEvent"
                  },
                  "title": "Response Job Events V1 Organizations  Organization Id  Jobs  Job Id  Events Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Job Events",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/v1/organizations/{organization_id}/jobs/{job_id}/outcome": {
      "get": {
        "operationId": "job_outcome_v1_organizations__organization_id__jobs__job_id__outcome_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobOutcome"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Job Outcome",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/v1/organizations/{organization_id}/people": {
      "get": {
        "operationId": "people_v1_organizations__organization_id__people_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/People"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "People",
        "tags": [
          "People"
        ]
      },
      "post": {
        "operationId": "invite_v1_organizations__organization_id__people_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteMember"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invitation"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Invite",
        "tags": [
          "People"
        ]
      }
    },
    "/v1/organizations/{organization_id}/people/invitations/{invitation_id}": {
      "delete": {
        "operationId": "cancel_v1_organizations__organization_id__people_invitations__invitation_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "invitation_id",
            "required": true,
            "schema": {
              "title": "Invitation Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invitation"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Cancel",
        "tags": [
          "People"
        ]
      }
    },
    "/v1/organizations/{organization_id}/people/invitations/{invitation_id}/resend": {
      "post": {
        "operationId": "resend_v1_organizations__organization_id__people_invitations__invitation_id__resend_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "invitation_id",
            "required": true,
            "schema": {
              "title": "Invitation Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invitation"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Resend",
        "tags": [
          "People"
        ]
      }
    },
    "/v1/organizations/{organization_id}/people/members/{membership_id}": {
      "delete": {
        "operationId": "remove_v1_organizations__organization_id__people_members__membership_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "title": "Membership Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Remove",
        "tags": [
          "People"
        ]
      },
      "patch": {
        "operationId": "update_v1_organizations__organization_id__people_members__membership_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "title": "Membership Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMember"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Update",
        "tags": [
          "People"
        ]
      }
    },
    "/v1/organizations/{organization_id}/sources": {
      "get": {
        "operationId": "sources_v1_organizations__organization_id__sources_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Source"
                  },
                  "title": "Response Sources V1 Organizations  Organization Id  Sources Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Sources",
        "tags": [
          "Sources"
        ]
      }
    },
    "/v1/organizations/{organization_id}/sources/search": {
      "get": {
        "operationId": "search_sources_v1_organizations__organization_id__sources_search_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "title": "Q",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Source"
                  },
                  "title": "Response Search Sources V1 Organizations  Organization Id  Sources Search Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Search Sources",
        "tags": [
          "Sources"
        ]
      }
    },
    "/v1/organizations/{organization_id}/sources/tree": {
      "get": {
        "operationId": "source_tree_v1_organizations__organization_id__sources_tree_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceTree"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Source Tree",
        "tags": [
          "Sources"
        ]
      }
    },
    "/v1/organizations/{organization_id}/sources/{source_id}": {
      "get": {
        "operationId": "source_v1_organizations__organization_id__sources__source_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "source_id",
            "required": true,
            "schema": {
              "title": "Source Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Source"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Source",
        "tags": [
          "Sources"
        ]
      }
    },
    "/v1/organizations/{organization_id}/sources/{source_id}/file": {
      "get": {
        "operationId": "source_file_v1_organizations__organization_id__sources__source_id__file_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "source_id",
            "required": true,
            "schema": {
              "title": "Source Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Source File",
        "tags": [
          "Sources"
        ]
      }
    },
    "/v1/organizations/{organization_id}/uploads": {
      "get": {
        "operationId": "uploads_v1_organizations__organization_id__uploads_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Upload"
                  },
                  "title": "Response Uploads V1 Organizations  Organization Id  Uploads Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Uploads",
        "tags": [
          "Uploads"
        ]
      },
      "post": {
        "operationId": "prepare_upload_v1_organizations__organization_id__uploads_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadSourcesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadPlan"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Prepare Upload",
        "tags": [
          "Uploads"
        ]
      }
    },
    "/v1/organizations/{organization_id}/uploads/{upload_id}": {
      "get": {
        "operationId": "upload_v1_organizations__organization_id__uploads__upload_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "upload_id",
            "required": true,
            "schema": {
              "title": "Upload Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Upload",
        "tags": [
          "Uploads"
        ]
      }
    },
    "/v1/organizations/{organization_id}/uploads/{upload_id}/complete": {
      "post": {
        "operationId": "complete_upload_v1_organizations__organization_id__uploads__upload_id__complete_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "upload_id",
            "required": true,
            "schema": {
              "title": "Upload Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Complete Upload",
        "tags": [
          "Uploads"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki": {
      "get": {
        "operationId": "wiki_v1_organizations__organization_id__wiki_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Wiki"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Wiki",
        "tags": [
          "Wikis"
        ]
      },
      "patch": {
        "operationId": "rename_wiki_v1_organizations__organization_id__wiki_patch",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameWikiRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Wiki"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Rename Wiki",
        "tags": [
          "Wikis"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/home": {
      "get": {
        "operationId": "home_v1_organizations__organization_id__wiki_home_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Home",
        "tags": [
          "Pages"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/pages": {
      "get": {
        "operationId": "pages_v1_organizations__organization_id__wiki_pages_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PageSummary"
                  },
                  "title": "Response Pages V1 Organizations  Organization Id  Wiki Pages Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Pages",
        "tags": [
          "Pages"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/pages/{page_path}": {
      "get": {
        "operationId": "page_v1_organizations__organization_id__wiki_pages__page_path__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_path",
            "required": true,
            "schema": {
              "title": "Page Path",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Page",
        "tags": [
          "Pages"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/pages/{page_path}/sources": {
      "get": {
        "operationId": "page_sources_v1_organizations__organization_id__wiki_pages__page_path__sources_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "page_path",
            "required": true,
            "schema": {
              "title": "Page Path",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PageSource"
                  },
                  "title": "Response Page Sources V1 Organizations  Organization Id  Wiki Pages  Page Path  Sources Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Page Sources",
        "tags": [
          "Sources"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/search": {
      "get": {
        "operationId": "search_v1_organizations__organization_id__wiki_search_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "title": "Q",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PageSearchResult"
                  },
                  "title": "Response Search V1 Organizations  Organization Id  Wiki Search Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Search",
        "tags": [
          "Pages"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/topics": {
      "get": {
        "operationId": "topics_v1_organizations__organization_id__wiki_topics_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/HostedTopicSummary"
                  },
                  "title": "Response Topics V1 Organizations  Organization Id  Wiki Topics Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Topics",
        "tags": [
          "Pages"
        ]
      }
    },
    "/v1/organizations/{organization_id}/wiki/topics/{topic}": {
      "get": {
        "operationId": "topic_v1_organizations__organization_id__wiki_topics__topic__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "topic",
            "required": true,
            "schema": {
              "title": "Topic",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedTopicDetail"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Topic",
        "tags": [
          "Pages"
        ]
      }
    },
    "/v1/session": {
      "get": {
        "operationId": "session_v1_session_get",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid request"
          }
        },
        "summary": "Session",
        "tags": [
          "Account"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.usealmanac.com"
    }
  ],
  "tags": [
    {
      "description": "Authentication, the current session, and email preferences.",
      "name": "Account"
    },
    {
      "description": "Organization setup and details.",
      "name": "Organizations"
    },
    {
      "description": "The Wiki attached to each Organization.",
      "name": "Wikis"
    },
    {
      "description": "Wiki pages, search, topics, and provenance.",
      "name": "Pages"
    },
    {
      "description": "Source records, trees, search, and original files.",
      "name": "Sources"
    },
    {
      "description": "Source uploads and upload records.",
      "name": "Uploads"
    },
    {
      "description": "Ingest and Garden jobs, events, and outcomes.",
      "name": "Jobs"
    },
    {
      "description": "Organization-scoped developer keys.",
      "name": "API keys"
    },
    {
      "description": "Organization membership and invitations.",
      "name": "People"
    },
    {
      "description": "Organization plans, usage, and billing portal.",
      "name": "Billing"
    }
  ]
}
