{
  "openapi": "3.0.0",
  "info": {
    "title": "Era API",
    "description": "Era's public REST API: your accounts, balances, transactions, categories, tags and automation rules.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://forge.era.app/api"
    }
  ],
  "paths": {
    "/banking/transactions/tags": {
      "put": {
        "tags": [
          "Tags",
          "Banking"
        ],
        "summary": "Tag or untag transactions",
        "description": "Puts one tag on a list of transactions, or takes it off them, in one call: operation says which. Both are safe to repeat — tagging a transaction that already carries the tag, or untagging one that doesn't, changes nothing. The response lists the transactions you named, each with the tags it now carries; on a plan that only shows recent history, a transaction older than that is still changed but left out of the list. It needs banking:write rather than banking:read, but it changes only Era's copies of those transactions: the ones at your bank stay as they were.",
        "operationId": "AssignTransactionTags",
        "requestBody": {
          "x-name": "AssignTransactionTagsEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsAssignTransactionTagsEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsAssignTransactionTagsEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "An empty list, more than 100 ids, no tagKey, an operation other than assign or remove, or a key or id carrying a null character. Nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "One of the transactions is not yours, or does not exist — the API does not distinguish the two — and nothing is changed. A key without banking:write gets a 403 too.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No tag of yours has that tagKey, or you've deleted it. Nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "One of the transactions is still pending. A pending transaction can't be changed until it posts, so nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side, or the request was cancelled before it finished — this endpoint answers 500 for both and does not distinguish them. Either way it may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/transactions/bulk": {
      "put": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Change up to 100 at once",
        "description": "The same four overrides, applied to a list of transactions in one call. Every id in the list gets the same changes — there is no per-transaction variation. It needs banking:write rather than banking:read, but it changes only Era's copies of those transactions: the ones at your bank stay as they were.",
        "operationId": "BulkUpdateTransactions",
        "requestBody": {
          "x-name": "BulkUpdateTransactionsEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsBulkUpdateTransactionsEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsBulkUpdateTransactionsEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "An empty list, more than 100 ids, or a field both set and cleared in the same call. Nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The transaction is not yours, or does not exist. The API does not distinguish the two, and nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Something else changed the same transaction while you were writing. Read it again and send the change again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side, or the request was cancelled before it finished — this endpoint answers 500 for both and does not distinguish them. Either way it may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/accounts/summary": {
      "get": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Account summary",
        "description": "Totals across the accounts you can see: totalAssets, totalLiabilities, and netWorthHint, which is the first minus the second. The totals and the accounts list cover live accounts only unless you pass simulationModes. includedSimulationModes states which modes they cover on every response, and simulationExcludedAccountCount counts the visible accounts left out because of their mode. totalHiddenCount is a different count: the accounts your plan or your own visibility setting hides, in any mode, and never the ones simulationModes left out.",
        "operationId": "GetAccountSummary",
        "parameters": [
          {
            "name": "SimulationModes",
            "in": "query",
            "style": "form",
            "explode": true,
            "description": "The kinds of account to total: live for real money, paper for a broker's practice account, scenario for a hypothetical one. Repeat the parameter to ask for more than one, as in simulationModes=live&simulationModes=paper. Leave it out for live accounts only. An empty or unknown value is refused with a 400 that lists the allowed ones.",
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsGetAccountSummaryEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "simulationModes has a value that isn't a simulation mode, and an empty value counts as one.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/accounts/{accountId}/balance": {
      "get": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Account balance",
        "description": "One account's balance, with the credit fields filled in when the account is a liability. The path takes that account's accountGroupKey — the same value /banking/accounts returns for it. The key is not checked for shape before the lookup, so a malformed key and an unknown one answer the same way.",
        "operationId": "GetBalance",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The account's accountGroupKey, as /banking/accounts returns it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsGetBalanceEndpointResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No account of yours has that key. A malformed key reaches the lookup like any other and answers 404 the same way, so do not read this as a validation failure. An account you have hidden still answers 200, with its balance fields null.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/analytics/cash-flow-summary": {
      "get": {
        "tags": [
          "Banking",
          "Analytics",
          "Banking"
        ],
        "summary": "Cash flow",
        "description": "Money in and money out over one period: income, expense, and net, which is the first minus the second, with the categories behind each side — incomeCategories and expenseCategories, largest first, each with its amount, its share of that side's total, and how many transactions it holds. Transfers between your accounts, pending charges, and transactions you've hidden or that sit on accounts you've hidden or your plan's account limit leaves out are left out; excludedAccountCount counts those accounts. income and expense count every category on their side, including any topN leaves off the list, so the categories you get back can add up to less than their side's total; each percentOfTotal is a share of that full total. The period you asked for comes back with its start, end and a readable label; a window comes back with its key in period.window and the time zone that decided today in period.timeZone. When incomePercentOfTotalUnavailable or expensePercentOfTotalUnavailable is true, that side's percentOfTotal values are 0 because the share couldn't be worked out, not because the category is 0% of it — read them as missing. Each category and subcategory also carries displayOrder, its place in your own category list counting from 0, so sorting by it shows them in the order you keep them; it's null for uncategorized money, for a category your list doesn't show, and for every category when your category list couldn't be read. Defaults to this month.",
        "operationId": "GetCashFlowSummary",
        "parameters": [
          {
            "name": "Period",
            "in": "query",
            "description": "The period to summarize: this_week, this_month, last_month, last_7_days, last_30_days, last_90_days, this_year, last_year, all_time, or custom with periodStart and periodEnd. Defaults to this_month. A name it doesn't recognize is read as this_month, though the response echoes the name you sent.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "PeriodStart",
            "in": "query",
            "description": "The first day of a custom range, written yyyy-MM-dd. Sending it makes the range custom whatever period says. Leave out periodEnd and the range runs to today, unless period is custom, which needs both dates and answers 400 without them.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "PeriodEnd",
            "in": "query",
            "description": "The last day of a custom range, written yyyy-MM-dd and not before periodStart. It needs periodStart.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "AccountGroupKey",
            "in": "query",
            "description": "Narrow the summary to one account, by its accountGroupKey. A key that isn't one of your accounts matches nothing, so every total comes back zero.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "TopN",
            "in": "query",
            "description": "How many categories to return on each side, from 1 to 50. Defaults to 10.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "maximum": 50.0,
              "minimum": 1.0
            }
          },
          {
            "name": "IncludeSubcategories",
            "in": "query",
            "description": "Give each category a children list that breaks it down by subcategory. Defaults to false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Window",
            "in": "query",
            "description": "A span of dates counted back from your own today, in your time zone, sent instead of period: last_7_days, last_30_days, last_90_days, week_to_date, month_to_date, last_month, all_time, last_6_months, last_12_months, year_to_date, last_60_days, trailing_6_months, trailing_12_months. last_7_days is the 7 dates ending today; last_30_days is the 30 dates ending today; last_90_days is the 90 dates ending today; week_to_date runs from the Monday on or before today through today; month_to_date runs from the first of this month through today; last_month is the whole calendar month before this one; all_time has no first date and runs through today; last_6_months runs from the first of the month 5 months before this one through today, so this month so far is the last of its 6 months; last_12_months runs from the first of the month 11 months before this one through today, so this month so far is the last of its 12 months; year_to_date runs from 1 January of this year through today; last_60_days is the 60 dates ending today; trailing_6_months runs from the date 6 months before tomorrow through today, or from that month's last date when it has no such day; trailing_12_months runs from the date 12 months before tomorrow through today, or from that month's last date when it has no such day. last_month leaves this month out, while last_6_months and last_12_months count this month so far as their last month. trailing_6_months and trailing_12_months are not calendar months: each starts on the date that many months before tomorrow, so its first month is a part month unless today is the last date of this month. year_to_date counts on today's date in the time zone the window names, so it is not the period this_year, which counts on the UTC date: the two cover different dates whenever those dates differ. It can't be sent with period, periodStart or periodEnd.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsGetCashFlowSummaryEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "period is custom without both dates, periodEnd came without periodStart, a date isn't written yyyy-MM-dd, periodStart is after periodEnd, topN is outside 1 to 50, window isn't one of its keys, or window came with period, periodStart or periodEnd.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/accounts": {
      "get": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Accounts",
        "description": "Every account you can see, across every connected institution, with the count of the ones left out beside them: excludedAccountCount, split into tierExcludedAccountCount for the accounts fed by a connected data source, investment accounts aside, that your plan's limit leaves out, holdingsTierExcludedAccountCount for the investment accounts your plan's investment-holdings-sources allowance leaves out, and userExcludedAccountCount for the ones you can show again on any plan: the ones you've hidden, and any manual account still hidden from before manual accounts stopped counting against the limit. accountLimit is how many accounts fed by a connected data source your plan shows at once, across all your connections; manual accounts and investment accounts don't count against it. holdingsLimit is how many investment accounts your plan shows at once, across all your connections. accountLimitLift names the cheapest plan with room for every account counting against accountLimit that you haven't hidden, and it's null when that limit leaves nothing out. Each account carries its accountGroupKey — the value the balance endpoint takes in its path — and the connectionId it belongs to, so this is the call to make first. Takes connectionId to narrow to a single connection (the counts narrow with it; accountLimit, holdingsLimit and accountLimitLift don't), includeExcluded to bring in the accounts your plan leaves out and the ones you've hidden, and includeSevered to bring in the accounts of connections you disconnected. Each account's archive says whether it's archived and why; archiving changes how an account is listed, never a balance or a count.",
        "operationId": "ListAccounts",
        "parameters": [
          {
            "name": "ConnectionId",
            "in": "query",
            "description": "Narrow the list to one connection's accounts.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "IncludeExcluded",
            "in": "query",
            "description": "Include the accounts your plan leaves out and the ones you've hidden, with their balances withheld. Each row's visibility says which: tierExcluded or userExcluded, and visible for the ones you can see; connectionSevered rows come only with includeSevered. The balance endpoint spells these differently, so don't share one parser between them. excludedAccountCount still comes back when this is true, and those accounts are already in the list, so don't add the two. Defaults to false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "IncludeSevered",
            "in": "query",
            "description": "Also include the accounts of connections you disconnected, each with visibility connectionSevered. Showing such an account doesn't bring it back; reconnecting does. Its archive reads effective true unless you chose to keep the account. It keeps its last balance, with its as-of time, only if it was visible before you disconnected; otherwise its balances are withheld. These accounts are never in excludedAccountCount or the plan counts. Accounts of a connection your institution ended are not included. Defaults to false.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsListAccountsEndpointResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side, or the request was cancelled before it finished — this endpoint answers 500 for both and does not distinguish them. Either way it may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/categories": {
      "get": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Categories",
        "description": "The whole category taxonomy: every set of categories, with its sub-categories nested inside. The taxonomy is shared, not per-account.",
        "operationId": "ListCategories",
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncubatorOSBankingHandlersListCategoriesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      },
      "post": {
        "tags": [
          "Categories",
          "Banking"
        ],
        "summary": "Add a category",
        "description": "A user-defined category under an existing parent. It needs banking:write rather than banking:read, but it changes only your categories in Era: nothing at your bank changes.",
        "operationId": "CreateCategory",
        "requestBody": {
          "x-name": "CreateCategoryEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsCreateCategoryEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncubatorOSBankingHandlersManageUserCategoriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Your plan's custom-category allowance is used up. The response body carries the limit you reached.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "A category with that slug already exists under the same parent, or another request created it first.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/recurring": {
      "get": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Recurring charges",
        "description": "The charges, bills and income that repeat in your transactions, largest estimatedAmount first. The list holds the recurring patterns Era has detected in your transactions, each with confidence system, and beside them the recent transactions your bank's data flags as recurring, a subscription, a bill payment or income for a merchant Era has not detected, grouped by merchant and currency, each group with confidence provider. Each item has chargeId, the merchant, and direction, which is outflow where the money leaves your accounts and inflow where it arrives. The chargeId stays the same until the charge is listed under a different pattern or merchant name, as when Era first detects a pattern for a charge your bank's data had flagged. Its estimatedAmount is the typical amount each time, never negative whichever way the money moves, and its amountRange is the smallest and largest amount paid, which is null when every payment was the same. Its frequency is Era's estimate of how often it repeats, and its nextExpected is the date the next payment is expected, worked out from the latest payment and the frequency, which is null when the frequency is irregular or no payment date is known. A nextExpected date that has passed does not by itself mean the payment is overdue. The status is on_schedule while the latest payment is within the longest gap the frequency allows, and late once that gap has passed on your own calendar date in your time zone, which can also mean you have stopped the payment. The status is null when the frequency is irregular or no payment date is known. The accountName is the account the latest payment was made from or into, which is null when that account has no name, and the category is null when there is none. The lastSeen is the date of the latest payment, and each item also has a type and a confidence. type is subscription, bill or income where Era's detection or your bank's data says which. A charge Era detected that leaves your accounts is also a bill or a subscription when its category is one, such as utilities, rent or entertainment and subscriptions, and type is recurring where none of these says which, so direction is what says whether the money comes in or goes out. Pending charges are left out. Send direction to list only what you pay or only what you receive.",
        "operationId": "ListRecurringCharges",
        "parameters": [
          {
            "name": "Direction",
            "in": "query",
            "description": "The direction to list: outflow for charges and bills, inflow for income, in exactly that letter case. Leave it out to list both.",
            "schema": {
              "nullable": true,
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersManualTransactionDirection"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsListRecurringChargesEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "direction is not outflow or inflow. Nothing is looked up.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/transactions": {
      "get": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Transactions",
        "description": "Your transactions, a page at a time, wrapped in an envelope with the paging counts beside them. Takes page and pageSize (100 is the ceiling), plus optional filters for account, date range, applied rules, and assigned tags.",
        "operationId": "ListTransactions",
        "parameters": [
          {
            "name": "AccountId",
            "in": "query",
            "description": "Narrow to one account's transactions, by its accountGroupKey.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "FromDate",
            "in": "query",
            "description": "Only transactions on or after this date.",
            "schema": {
              "type": "string",
              "format": "date",
              "nullable": true
            }
          },
          {
            "name": "ToDate",
            "in": "query",
            "description": "Only transactions on or before this date.",
            "schema": {
              "type": "string",
              "format": "date",
              "nullable": true
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "Page number, 1-indexed. Defaults to 1.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Rows per page. Defaults to 50, clamped to 100.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "maximum": 100.0
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Field to sort by: transactionDate, amount, description, category, or merchantName.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "asc or desc. Defaults to descending.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "CategoryKeys",
            "in": "query",
            "style": "form",
            "explode": true,
            "description": "Only transactions in these categories, by their fcat_ keys. Takes a list, not a single key, and a transaction matches if its effective category is any one of them. Send the literal \"uncategorized\" to select the transactions that have no category at all.",
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Full-text search across merchant, description, category label, account name and account mask — case-insensitive substring, plus close-spelling matches on those same fields. It searches the amount too: a plain number matches the amount rounded to two decimals, and a monetary literal such as $1,234.56 matches that figure in cents. Written without a minus sign, a literal matches a charge and a credit of the same size.",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "RuleIds",
            "in": "query",
            "style": "form",
            "explode": true,
            "description": "Only transactions an automation rule touched, by the rule's key. Takes a list; a transaction matches if any one of those rules was applied to it.",
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "TagKeys",
            "in": "query",
            "style": "form",
            "explode": true,
            "description": "Only transactions carrying one of these tags, by tag key. Takes a list; a transaction matches if any one of the tags is assigned to it.",
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "ReviewStatuses",
            "in": "query",
            "style": "form",
            "explode": true,
            "description": "needs_review, reviewed, or flagged — spelled exactly like that, in snake_case. Takes a list; a transaction matches if its review status is any one of them.",
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "IncludeChildren",
            "in": "query",
            "description": "With a category filter set, also include transactions in the subcategories of every key you passed. Defaults to false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "IncludePending",
            "in": "query",
            "description": "Also return pending charges — authorization holds — dated within the last 7 days, counted as UTC calendar dates with today included, each marked isPending. Older unsettled authorizations are never returned. Defaults to false, and nothing is remembered between calls: every request decides for itself. Pending rows are read-only.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsListTransactionsEndpointResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/transactions/{id}": {
      "put": {
        "tags": [
          "Banking",
          "Banking"
        ],
        "summary": "Change one transaction",
        "description": "Four things on a transaction are yours to override: its category, the merchant name, a note of your own, and its review status. Send only the ones you're changing — anything you leave out stays as it is. The id in the path is the transaction's utgr_ key. It needs banking:write rather than banking:read, but it changes only Era's copy of the transaction: the one at your bank stays as it was.",
        "operationId": "UpdateTransaction",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The transaction's utgr_ key.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "x-name": "UpdateTransactionEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsUpdateTransactionEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsUpdateTransactionEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "A field was both set and cleared in the same call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The transaction is not yours, or does not exist. The API does not distinguish the two, and nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Returned only when the id path segment is empty. A transaction that is not yours, or does not exist, returns 403.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Something else changed the same transaction while you were writing. Read it again and send the change again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side, or the request was cancelled before it finished — this endpoint answers 500 for both and does not distinguish them. Either way it may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/tags": {
      "post": {
        "tags": [
          "Tags",
          "Banking"
        ],
        "summary": "Create a tag",
        "description": "A new tag, canonicalized to lowercase. It needs banking:write rather than banking:read, but it changes only your tags in Era: nothing at your bank changes. System tags can't be created through the API; user and auto tags can.",
        "operationId": "CreateTag",
        "requestBody": {
          "x-name": "CreateTagEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsCreateTagEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsCreateTagEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side, or the request was cancelled before it finished — this endpoint answers 500 for both and does not distinguish them. Either way it may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      },
      "get": {
        "tags": [
          "Tags",
          "Banking"
        ],
        "summary": "Tags",
        "description": "Every tag on your account, as one list. No paging — one response returns all of them.",
        "operationId": "ListTags",
        "parameters": [
          {
            "name": "TagType",
            "in": "query",
            "description": "Filter by tag origin: user, system, or auto.",
            "schema": {
              "nullable": true,
              "$ref": "#/components/schemas/IncubatorOSBankingRulesTagType"
            }
          },
          {
            "name": "IncludeDeleted",
            "in": "query",
            "description": "Include deleted tags. Defaults to false.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsListTagsEndpointResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side, or the request was cancelled before it finished — this endpoint answers 500 for both and does not distinguish them. Either way it may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/rules": {
      "post": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Create a rule",
        "description": "A new automation rule: conditions that pick out transactions, and what happens to each one they match. It runs on every new transaction from then on, and on the ones you already have too if you ask. It needs banking:write rather than banking:read, but it changes only your rules and transactions in Era: nothing at your bank changes.",
        "operationId": "CreateRule",
        "requestBody": {
          "x-name": "CreateRuleEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsCreateRuleEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsCreateRuleEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "The rule doesn't hold together: no name, no filters or actions, a filter or action that's malformed, a category or tag that doesn't exist, a pattern rule missing its pattern, or a reserved group. Nothing is created.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Your plan's allowance for pattern rules is used up. Rules that match one transaction at a time aren't counted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The rule's actions would add a tag that its own conditions — or another rule's — react to, so rules would keep setting off each other. Nothing is created.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      },
      "get": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Rules",
        "description": "Every automation rule on your account — the ones you made and the ones Era set up for you from its rule library — each with its conditions (filters), what it does (actions), whether it's switched on, and its version. No paging: one response returns all of them. Switched-off rules are left out unless you ask for them.",
        "operationId": "ListRules",
        "parameters": [
          {
            "name": "IncludeInactive",
            "in": "query",
            "description": "Also return the rules that are switched off. Defaults to false.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsListRulesEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "includeInactive isn't true or false.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/rules/{ruleId}": {
      "delete": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Delete a rule",
        "description": "Deletes a rule for good. To stop a rule without losing it, disable it instead. The ruleId in the path is the id the rules list returns, and version must be the one you last read. Rules from Era's library can't be deleted, only disabled. It needs banking:write rather than banking:read, but it changes only your rules and transactions in Era: nothing at your bank changes. With revert_retroactively, the delete and undoing what the rule did to your existing transactions are recorded together, so the undo can't be lost once the delete succeeds: the response says in_progress, the undo runs in the background, and the activity log records how it ends.",
        "operationId": "DeleteRule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "description": "The rule's key: the id the rules list returns for it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "description": "The rule's version as you last read it. It must match the rule's current version, or the call is refused with a 409 — so leaving it out doesn't skip the check, it fails it.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "revert_retroactively",
            "in": "query",
            "description": "Also undo what the rule already did to your transactions — the categories, tags and other changes it applied. Defaults to false, which leaves those changes in place.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsDeleteRuleEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "version or revert_retroactively isn't a valid value, or the query names a parameter this call doesn't take.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No rule of yours has that key.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The rule comes from Era's library, which can't be deleted — disable it instead. A key without banking:write gets a 403 too.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The version you sent isn't the rule's current one — something else changed it since you read it. Read the rule again and send the change again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      },
      "put": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Change a rule",
        "description": "Replaces a rule's definition with the one you send, so send every field you want to keep — not only the ones you're changing. The ruleId in the path is the id the rules list returns, and version must be the one you last read. On a rule from Era's library, only userOverrides can change: send everything else back as the list returned it. It needs banking:write rather than banking:read, but it changes only your rules and transactions in Era: nothing at your bank changes.",
        "operationId": "UpdateRule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "description": "The rule's key: the id the rules list returns for it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "x-name": "UpdateRuleEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsUpdateRuleEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsUpdateRuleEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "The new definition doesn't hold together, for any of the reasons create refuses one — or it changes the filters, actions or group of a rule from Era's library. Nothing is changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No rule of yours has that key.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The rule comes from Era's library and the update changes its name, description, priority, dates or applicationScope. A key without banking:write gets a 403 too.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The version you sent isn't the rule's current one — something else changed it since you read it. Read the rule again and send the change again. A 409 also means the new actions would set off rules that keep triggering each other.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/rules/{ruleId}/disable": {
      "post": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Turn a rule off",
        "description": "Switches a rule off, so it stops running on new transactions. It keeps its definition, and what it already did stays unless you ask for it back with revert_retroactively. Turning off a rule that's already off leaves it off. It needs banking:write rather than banking:read, but it changes only your rules and transactions in Era: nothing at your bank changes.",
        "operationId": "DisableRule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "description": "The rule's key: the id the rules list returns for it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "description": "The rule's version as you last read it. Leave it out to skip the check; send it, and the call is refused with a 409 if the rule changed since.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "revert_retroactively",
            "in": "query",
            "description": "Also undo what the rule already did to your transactions — the categories, tags and other changes it applied. Defaults to false, which leaves those changes in place.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsSetRuleActiveEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "version or revert_retroactively isn't a valid value, or the query names a parameter this call doesn't take.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No rule of yours has that key.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The version you sent isn't the rule's current one — something else changed it since you read it. Read the rule again and send the change again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/rules/{ruleId}/enable": {
      "post": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Turn a rule on",
        "description": "Switches a rule back on, so it runs on new transactions again. Turning on a rule that's already on changes nothing. Rules from Era's library can be switched on and off like your own. It needs banking:write rather than banking:read, but it changes only your rules and transactions in Era: nothing at your bank changes.",
        "operationId": "EnableRule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "description": "The rule's key: the id the rules list returns for it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "description": "The rule's version as you last read it. Leave it out to skip the check; send it, and the call is refused with a 409 if the rule changed since.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsSetRuleActiveEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "version isn't a whole number, or the query names a parameter this call doesn't take.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No rule of yours has that key.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The version you sent isn't the rule's current one — something else changed it since you read it. Read the rule again and send the change again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    },
    "/banking/rules/preview": {
      "post": {
        "tags": [
          "Rules",
          "Banking"
        ],
        "summary": "Preview a rule",
        "description": "Tries a rule's conditions against your recent transactions — the last 90 days, for a transaction rule, and at most 5,000 of them — and reports what they'd match, without saving anything: how many matched out of how many were checked, up to 50 of the matching keys, and up to 10 samples with merchant, amount and date. Nothing is written, so banking:read is enough.",
        "operationId": "PreviewRule",
        "requestBody": {
          "x-name": "PreviewRuleEndpointRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubAPIModelsPreviewRuleEndpointRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubAPIModelsPreviewRuleEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "The conditions don't hold together: none at all, one that's malformed, a category that doesn't exist, or a pattern preview missing its pattern.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours. The response says when your next request frees up; limits roll, so that moment frees one request, not your whole allowance. A refused call spends nothing. When the daily budget or the burst cap refused you, the response also names that limit, what it allows, and the cheapest plan that raises or removes it, or says you're already on the highest plan.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Your plan's daily budget. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "What's left of your daily budget. Never below zero. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When your daily budget next frees one request, as a Unix timestamp in seconds. It isn't when the whole budget refills: the budget rolls, so requests come back one at a time. Sent only on plans that publish one, and never on a 429 from any other limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Every 429 carries Retry-After: wait that many seconds, then retry. A 429 that also carries the X-RateLimit-* headers was refused by the free plan's daily budget. A 429 without them was refused by another limit, such as the per-minute burst cap. Retry-After can be anything from one second to 24 hours.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.com/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "You've used up your daily budget of 100 requests. Your next request frees up at 2026-09-16T09:00:00Z. The Organize plan removes it."
                }
              }
            }
          },
          "500": {
            "description": "Something failed on Era's side. The request may or may not have taken effect — read the resource back before retrying a write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-era-visibility": "public"
      }
    }
  },
  "components": {
    "schemas": {
      "MicrosoftAspNetCoreMvcProblemDetails": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ForgePrimitivesFiltersTransactionFilter": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "merchant_match": "#/components/schemas/ForgePrimitivesFiltersMerchantFilter",
            "description_match": "#/components/schemas/ForgePrimitivesFiltersDescriptionFilter",
            "amount_range": "#/components/schemas/ForgePrimitivesFiltersAmountRangeFilter",
            "account_scope": "#/components/schemas/ForgePrimitivesFiltersAccountScopeFilter",
            "and": "#/components/schemas/ForgePrimitivesFiltersAndFilter",
            "or": "#/components/schemas/ForgePrimitivesFiltersOrFilter",
            "not": "#/components/schemas/ForgePrimitivesFiltersNotFilter",
            "category": "#/components/schemas/ForgePrimitivesFiltersCategoryFilter",
            "tag": "#/components/schemas/ForgePrimitivesFiltersTagFilter",
            "transaction_type": "#/components/schemas/ForgePrimitivesFiltersTransactionTypeFilter",
            "date_temporal": "#/components/schemas/ForgePrimitivesFiltersDateTemporalFilter",
            "rule_was_applied": "#/components/schemas/ForgePrimitivesFiltersRuleWasAppliedFilter",
            "account_type": "#/components/schemas/ForgePrimitivesFiltersAccountTypeFilter"
          }
        },
        "description": "Abstract base for the composable transaction filter algebra. Evaluates transaction data\nacross rules, trackers, budgets, and scenario projections.",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersMerchantFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersDescriptionFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersAmountRangeFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersAccountScopeFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersAndFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersOrFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersNotFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersCategoryFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTagFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionTypeFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersDateTemporalFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersRuleWasAppliedFilter"
          },
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersAccountTypeFilter"
          }
        ]
      },
      "ForgePrimitivesFiltersMerchantFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions whose merchant name satisfies a pattern with the specified Mode.",
            "additionalProperties": false,
            "required": [
              "pattern"
            ],
            "properties": {
              "pattern": {
                "type": "string",
                "description": "Gets the merchant name pattern to match against."
              },
              "mode": {
                "description": "Gets the match strategy for comparing the pattern against the transaction merchant name.",
                "$ref": "#/components/schemas/ForgePrimitivesFiltersMatchMode"
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersMatchMode": {
        "type": "string",
        "description": "Specifies how a pattern is matched against transaction data.",
        "x-enumNames": [
          "Contains",
          "Exact",
          "StartsWith",
          "EndsWith",
          "Trigram",
          "WordBoundary"
        ],
        "enum": [
          "contains",
          "exact",
          "startsWith",
          "endsWith",
          "trigram",
          "wordBoundary"
        ]
      },
      "ForgePrimitivesFiltersDescriptionFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions whose description satisfies a pattern with the specified Mode.",
            "additionalProperties": false,
            "required": [
              "pattern"
            ],
            "properties": {
              "pattern": {
                "type": "string",
                "description": "Gets the description pattern to match against."
              },
              "mode": {
                "description": "Gets the match strategy for comparing the pattern against the transaction description.",
                "$ref": "#/components/schemas/ForgePrimitivesFiltersMatchMode"
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersAmountRangeFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions whose absolute amount falls within the specified range.",
            "additionalProperties": false,
            "properties": {
              "min": {
                "description": "Gets the minimum absolute amount (inclusive). Null means no lower bound.",
                "nullable": true,
                "$ref": "#/components/schemas/ForgePrimitivesMoney"
              },
              "max": {
                "description": "Gets the maximum absolute amount (inclusive). Null means no upper bound.",
                "nullable": true,
                "$ref": "#/components/schemas/ForgePrimitivesMoney"
              }
            }
          }
        ]
      },
      "ForgePrimitivesMoney": {
        "type": "object",
        "description": "Represents a monetary value with currency, using decimal for precise arithmetic.",
        "example": "var price = new Money(99.99m, currency);\nvar tax = price * taxRate;\nvar total = price + tax;",
        "additionalProperties": false,
        "required": [
          "amount",
          "currency"
        ],
        "properties": {
          "amount": {
            "type": "number",
            "description": "Gets the monetary amount in major units of its currency (for example pounds rather than pence).\nRequired in JSON.",
            "format": "decimal"
          },
          "currency": {
            "description": "Gets the currency of this monetary value, as its ISO 4217 code; a code is read in any letter case.\nRequired in JSON: a body without it is refused, never bound to a default currency.",
            "$ref": "#/components/schemas/ForgePrimitivesCurrency"
          },
          "isZero": {
            "type": "boolean",
            "readOnly": true,
            "description": "Gets a value indicating whether this Money value is zero. Computed from the amount; read-only."
          },
          "isPositive": {
            "type": "boolean",
            "readOnly": true,
            "description": "Gets a value indicating whether this Money value is positive. Computed from the amount; read-only."
          },
          "isNegative": {
            "type": "boolean",
            "readOnly": true,
            "description": "Gets a value indicating whether this Money value is negative. Computed from the amount; read-only."
          }
        }
      },
      "ForgePrimitivesCurrency": {
        "type": "string",
        "description": "An ISO 4217 currency code for monetary values, or one of the markers Unknown and Multi, which are\nnot currencies. On the REST wire a member is written as its name in capitals (GBP, UNKNOWN) and\nread in any letter case.",
        "x-enumNames": [
          "USD",
          "EUR",
          "GBP",
          "JPY",
          "CAD",
          "AUD",
          "CHF",
          "CNY",
          "HKD",
          "NZD",
          "SEK",
          "KRW",
          "SGD",
          "NOK",
          "MXN",
          "INR",
          "BRL",
          "ZAR",
          "UAH",
          "PLN",
          "DKK",
          "CZK",
          "HUF",
          "RON",
          "BGN",
          "BHD",
          "QAR",
          "AED",
          "TRY",
          "THB",
          "MYR",
          "PHP",
          "BTC",
          "ETH",
          "USDT",
          "USDC",
          "BNB",
          "XRP",
          "ADA",
          "SOL",
          "DOGE",
          "SHIB",
          "Unknown",
          "Multi",
          "ALL",
          "DZD",
          "ARS",
          "BSD",
          "BDT",
          "AMD",
          "BBD",
          "BMD",
          "BTN",
          "BOB",
          "BWP",
          "BZD",
          "SBD",
          "BND",
          "MMK",
          "BIF",
          "KHR",
          "CVE",
          "KYD",
          "LKR",
          "CLP",
          "COP",
          "KMF",
          "CRC",
          "CUP",
          "DOP",
          "SVC",
          "ETB",
          "ERN",
          "FKP",
          "FJD",
          "DJF",
          "GMD",
          "GIP",
          "GTQ",
          "GNF",
          "GYD",
          "HTG",
          "HNL",
          "ISK",
          "IDR",
          "IRR",
          "IQD",
          "ILS",
          "JMD",
          "KZT",
          "JOD",
          "KES",
          "KPW",
          "KWD",
          "KGS",
          "LAK",
          "LBP",
          "LSL",
          "LRD",
          "LYD",
          "MOP",
          "MWK",
          "MVR",
          "MUR",
          "MNT",
          "MDL",
          "MAD",
          "OMR",
          "NAD",
          "NPR",
          "XCG",
          "AWG",
          "VUV",
          "NIO",
          "NGN",
          "PKR",
          "PAB",
          "PGK",
          "PYG",
          "PEN",
          "RUB",
          "RWF",
          "SHP",
          "SAR",
          "SCR",
          "VND",
          "SOS",
          "SSP",
          "SZL",
          "SYP",
          "TOP",
          "TTD",
          "TND",
          "UGX",
          "MKD",
          "EGP",
          "TZS",
          "UYU",
          "UZS",
          "WST",
          "YER",
          "TWD",
          "ZWG",
          "SLE",
          "VED",
          "VES",
          "MRU",
          "STN",
          "BYN",
          "TMT",
          "GHS",
          "SDG",
          "RSD",
          "MZN",
          "AZN",
          "XAF",
          "XCD",
          "XOF",
          "XPF",
          "ZMW",
          "SRD",
          "MGA",
          "AFN",
          "TJS",
          "AOA",
          "CDF",
          "BAM",
          "GEL"
        ],
        "enum": [
          "USD",
          "EUR",
          "GBP",
          "JPY",
          "CAD",
          "AUD",
          "CHF",
          "CNY",
          "HKD",
          "NZD",
          "SEK",
          "KRW",
          "SGD",
          "NOK",
          "MXN",
          "INR",
          "BRL",
          "ZAR",
          "UAH",
          "PLN",
          "DKK",
          "CZK",
          "HUF",
          "RON",
          "BGN",
          "BHD",
          "QAR",
          "AED",
          "TRY",
          "THB",
          "MYR",
          "PHP",
          "BTC",
          "ETH",
          "USDT",
          "USDC",
          "BNB",
          "XRP",
          "ADA",
          "SOL",
          "DOGE",
          "SHIB",
          "UNKNOWN",
          "MULTI",
          "ALL",
          "DZD",
          "ARS",
          "BSD",
          "BDT",
          "AMD",
          "BBD",
          "BMD",
          "BTN",
          "BOB",
          "BWP",
          "BZD",
          "SBD",
          "BND",
          "MMK",
          "BIF",
          "KHR",
          "CVE",
          "KYD",
          "LKR",
          "CLP",
          "COP",
          "KMF",
          "CRC",
          "CUP",
          "DOP",
          "SVC",
          "ETB",
          "ERN",
          "FKP",
          "FJD",
          "DJF",
          "GMD",
          "GIP",
          "GTQ",
          "GNF",
          "GYD",
          "HTG",
          "HNL",
          "ISK",
          "IDR",
          "IRR",
          "IQD",
          "ILS",
          "JMD",
          "KZT",
          "JOD",
          "KES",
          "KPW",
          "KWD",
          "KGS",
          "LAK",
          "LBP",
          "LSL",
          "LRD",
          "LYD",
          "MOP",
          "MWK",
          "MVR",
          "MUR",
          "MNT",
          "MDL",
          "MAD",
          "OMR",
          "NAD",
          "NPR",
          "XCG",
          "AWG",
          "VUV",
          "NIO",
          "NGN",
          "PKR",
          "PAB",
          "PGK",
          "PYG",
          "PEN",
          "RUB",
          "RWF",
          "SHP",
          "SAR",
          "SCR",
          "VND",
          "SOS",
          "SSP",
          "SZL",
          "SYP",
          "TOP",
          "TTD",
          "TND",
          "UGX",
          "MKD",
          "EGP",
          "TZS",
          "UYU",
          "UZS",
          "WST",
          "YER",
          "TWD",
          "ZWG",
          "SLE",
          "VED",
          "VES",
          "MRU",
          "STN",
          "BYN",
          "TMT",
          "GHS",
          "SDG",
          "RSD",
          "MZN",
          "AZN",
          "XAF",
          "XCD",
          "XOF",
          "XPF",
          "ZMW",
          "SRD",
          "MGA",
          "AFN",
          "TJS",
          "AOA",
          "CDF",
          "BAM",
          "GEL"
        ]
      },
      "ForgePrimitivesFiltersAccountScopeFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Restricts filter application to transactions belonging to specific account groups.",
            "additionalProperties": false,
            "required": [
              "accountGroupKeys"
            ],
            "properties": {
              "accountGroupKeys": {
                "type": "array",
                "description": "Gets the account group keys (uagr_*) this filter applies to. Empty means all accounts.",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersAndFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Compound filter that requires ALL child filters to match (logical AND).",
            "additionalProperties": false,
            "required": [
              "filters"
            ],
            "properties": {
              "filters": {
                "type": "array",
                "description": "Gets the child filters, all of which must match for this filter to match.",
                "items": {
                  "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
                }
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersOrFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Compound filter that requires ANY child filter to match (logical OR).",
            "additionalProperties": false,
            "required": [
              "filters"
            ],
            "properties": {
              "filters": {
                "type": "array",
                "description": "Gets the child filters, at least one of which must match for this filter to match.",
                "items": {
                  "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
                }
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersNotFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Negation filter that inverts the result of the wrapped inner filter (logical NOT).",
            "additionalProperties": false,
            "required": [
              "inner"
            ],
            "properties": {
              "inner": {
                "description": "Gets the inner filter whose result is negated.",
                "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersCategoryFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions assigned to a specific category, optionally including child categories.",
            "additionalProperties": false,
            "required": [
              "categoryKey"
            ],
            "properties": {
              "categoryKey": {
                "type": "string",
                "description": "Gets the fcat_* key of the category to match, or UncategorizedSentinel to match\nthe uncategorized (null-category) bucket."
              },
              "includeChildren": {
                "type": "boolean",
                "description": "Gets whether to include child categories in the match."
              },
              "categoryDisplayName": {
                "type": "string",
                "description": "Gets the optional human-readable display name for the category.\nUsed by rule summarizers to produce readable summaries\ninstead of raw fcat_* keys. Null for legacy filters created before this property was added.",
                "nullable": true
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersTagFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions that have a specific tag assigned.",
            "additionalProperties": false,
            "required": [
              "tagKey"
            ],
            "properties": {
              "tagKey": {
                "type": "string",
                "description": "Gets the ftag_* projection key of the tag to match."
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersTransactionTypeFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions by their transaction type flags (income, expense, bill pay, etc.).\nMultiple flags can be combined to match any of the specified types.",
            "additionalProperties": false,
            "properties": {
              "flags": {
                "description": "Gets the transaction type flags to match against. The filter matches if any of the\nspecified flags are set on the transaction.",
                "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionTypeFlags"
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersTransactionTypeFlags": {
        "type": "string",
        "description": "Flags enum representing transaction type classifications.\nMultiple flags can be combined for compound matching.",
        "x-enumFlags": true,
        "x-enumNames": [
          "None",
          "Income",
          "Expense",
          "BillPay",
          "DirectDeposit",
          "Fee",
          "Recurring",
          "Subscription"
        ],
        "enum": [
          "none",
          "income",
          "expense",
          "billPay",
          "directDeposit",
          "fee",
          "recurring",
          "subscription"
        ]
      },
      "ForgePrimitivesFiltersDateTemporalFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions by temporal date properties: day of week, month, or date range.",
            "additionalProperties": false,
            "properties": {
              "mode": {
                "description": "Gets the temporal matching mode.",
                "$ref": "#/components/schemas/ForgePrimitivesFiltersDateTemporalMode"
              },
              "daysOfWeek": {
                "type": "array",
                "description": "Gets the days of week to match when Mode is DayOfWeek.",
                "items": {
                  "$ref": "#/components/schemas/SystemDayOfWeek"
                }
              },
              "months": {
                "type": "array",
                "description": "Gets the months (1-12) to match when Mode is Month.",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "from": {
                "type": "string",
                "description": "Gets the inclusive start date when Mode is DateRange. Null means no lower bound.",
                "format": "date",
                "nullable": true
              },
              "to": {
                "type": "string",
                "description": "Gets the inclusive end date when Mode is DateRange. Null means no upper bound.",
                "format": "date",
                "nullable": true
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersDateTemporalMode": {
        "type": "string",
        "description": "Temporal matching mode for DateTemporalFilter.",
        "x-enumNames": [
          "None",
          "DayOfWeek",
          "Month",
          "DateRange"
        ],
        "enum": [
          "none",
          "day_of_week",
          "month",
          "date_range"
        ]
      },
      "SystemDayOfWeek": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
        ],
        "enum": [
          "sunday",
          "monday",
          "tuesday",
          "wednesday",
          "thursday",
          "friday",
          "saturday"
        ]
      },
      "ForgePrimitivesFiltersRuleWasAppliedFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions that have been previously matched by a specific rule.\nEnables rule chaining — a rule can filter on whether another rule has already been applied.",
            "additionalProperties": false,
            "required": [
              "ruleKey"
            ],
            "properties": {
              "ruleKey": {
                "type": "string",
                "description": "Gets the rule key (rule_*) to check for prior application."
              }
            }
          }
        ]
      },
      "ForgePrimitivesFiltersAccountTypeFilter": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
          },
          {
            "type": "object",
            "description": "Matches transactions by their account's AccountType. The filter passes when the\ntransaction's account type is contained in AllowedTypes.",
            "additionalProperties": false,
            "required": [
              "allowedTypes"
            ],
            "properties": {
              "allowedTypes": {
                "type": "array",
                "description": "Gets the set of account types that are allowed to pass this filter.\nEmpty means no restriction (all account types pass).",
                "items": {
                  "$ref": "#/components/schemas/ForgePrimitivesAccountType"
                }
              }
            }
          }
        ]
      },
      "ForgePrimitivesAccountType": {
        "type": "string",
        "description": "Financial account types.",
        "x-enumNames": [
          "Unknown",
          "Checking",
          "Savings",
          "MoneyMarket",
          "Cd",
          "CreditCard",
          "LineOfCredit",
          "Brokerage",
          "IraTraditional",
          "IraRoth",
          "Retirement401k",
          "Hsa",
          "Pension",
          "Mortgage",
          "AutoLoan",
          "StudentLoan",
          "PersonalLoan",
          "Crypto",
          "RealEstate",
          "ManualAsset",
          "ManualLiability"
        ],
        "enum": [
          "unknown",
          "checking",
          "savings",
          "moneyMarket",
          "cd",
          "creditCard",
          "lineOfCredit",
          "brokerage",
          "iraTraditional",
          "iraRoth",
          "retirement401k",
          "hsa",
          "pension",
          "mortgage",
          "autoLoan",
          "studentLoan",
          "personalLoan",
          "crypto",
          "realEstate",
          "manualAsset",
          "manualLiability"
        ]
      },
      "ForgePrimitivesMeterGateContext": {
        "type": "object",
        "description": "The catalog-facing facts a meter-gated denial carries so a presenting client can derive the\nlifting tier without re-resolving the caller's entitlement state: the caller's current tier slot,\nthe denied meter key, and the meter value the caller needs a tier's limit to clear.",
        "additionalProperties": false,
        "properties": {
          "currentTierSlot": {
            "type": "string",
            "description": "The caller's current effective tier slot for the product."
          },
          "meterKey": {
            "type": "string",
            "description": "The denied meter key (a MeterKeys constant)."
          },
          "requiredMeterValue": {
            "type": "integer",
            "description": "The meter value the caller needs a tier's limit to clear,\n            interpreted per the meter's polarity.",
            "format": "int64"
          }
        }
      },
      "IncubatorOSBankingTypesAccountSimulationMode": {
        "type": "string",
        "description": "Whether an account holds real money, a provider-simulated (paper) portfolio, or a scenario-modelled\nportfolio.",
        "x-enumNames": [
          "Live",
          "Paper",
          "Scenario"
        ],
        "enum": [
          "live",
          "paper",
          "scenario"
        ]
      },
      "HubAPIModelsAssignTransactionTagsEndpointResponse": {
        "type": "object",
        "description": "Response after assigning or removing a tag on transactions (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "transactions"
        ],
        "properties": {
          "transactions": {
            "type": "array",
            "description": "The affected transactions, enriched with their current applied tags.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsTransactionDto"
            }
          },
          "lineItemEnrichmentTruncated": {
            "type": "boolean",
            "description": "Whether the post-mutation echo's line-item enrichment hit its per-page row cap. When\ntrue, an unknown subset of Transactions carries an empty\nLineItems and both derived scalars null\ndespite having stored line rows — otherwise exactly the shape of a transaction the source\nnever itemised, which is why the flag travels with the list."
          }
        }
      },
      "IncubatorOSBankingHandlersModelsTransactionDto": {
        "type": "object",
        "description": "Transaction DTO shared across all transports.",
        "additionalProperties": false,
        "required": [
          "id",
          "accountGroupKey",
          "amount",
          "currencyCode",
          "description",
          "transactionDate",
          "isPending"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The globally unique transaction identifier."
          },
          "accountGroupKey": {
            "type": "string",
            "description": "The account group projection key (uagr_*) this transaction belongs to."
          },
          "amount": {
            "type": "number",
            "description": "The transaction amount (negative = debit, positive = credit).",
            "format": "decimal"
          },
          "currencyCode": {
            "type": "string",
            "description": "The currency code."
          },
          "description": {
            "type": "string",
            "description": "The transaction description."
          },
          "transactionDate": {
            "type": "string",
            "description": "The transaction date.",
            "format": "date"
          },
          "isPending": {
            "type": "boolean",
            "description": "Whether the transaction is pending (unsettled authorization)."
          },
          "merchantName": {
            "type": "string",
            "description": "The merchant name, if identified.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "The transaction category display name.",
            "nullable": true
          },
          "categoryKey": {
            "type": "string",
            "description": "The fcat_* projection key for the transaction category.\nUsed by clients for category mutations and Select widget values.",
            "nullable": true
          },
          "postedDate": {
            "type": "string",
            "description": "The date the transaction posted.",
            "format": "date",
            "nullable": true
          },
          "isCashOutflow": {
            "type": "boolean",
            "description": "Whether this transaction represents a cash outflow (debit).",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "description": "The display name of the account this transaction belongs to.",
            "nullable": true
          },
          "appliedRules": {
            "type": "array",
            "description": "All rules that have been applied to this transaction group.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsAppliedRuleDto"
            }
          },
          "appliedTags": {
            "type": "array",
            "description": "All tags that have been assigned to this transaction group.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsAppliedTagDto"
            }
          },
          "scope": {
            "type": "string",
            "description": "The visibility scope of this transaction group.",
            "nullable": true
          },
          "reviewStatus": {
            "type": "string",
            "description": "The review status of this transaction group, if any.",
            "nullable": true
          },
          "transferLink": {
            "description": "Transfer link data when this transaction is part of a detected transfer pair.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsTransferLinkDto"
          },
          "originalDescription": {
            "type": "string",
            "description": "The raw bank statement description exactly as received from the provider.",
            "nullable": true
          },
          "lineItems": {
            "type": "array",
            "description": "The stored itemisation of this transaction — one entry per line the source reported,\nordered by LineOrdinal. Empty for a transaction that carries no\nitemisation, which is every ordinary bank transaction — unless the page that\nproduced this DTO reported its line-item enrichment truncated, in which case empty also\ncovers \"withheld\" (see the remarks).",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsLineItemDto"
            }
          },
          "itemisedTotal": {
            "type": "number",
            "description": "The signed sum of LineItems in CurrencyCode, or\nnull when it cannot be stated honestly.",
            "format": "decimal",
            "nullable": true
          },
          "unitemisedRemainder": {
            "type": "number",
            "description": "The part of this transaction's magnitude that the itemisation does not account for —\nMath.Abs(Amount) - ItemisedTotal — or null under the same\nconditions that make ItemisedTotal null.",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsAppliedRuleDto": {
        "type": "object",
        "description": "A rule that was applied to a transaction group.",
        "additionalProperties": false,
        "required": [
          "ruleKey",
          "ruleName"
        ],
        "properties": {
          "ruleKey": {
            "type": "string",
            "description": "The rule projection key (rule_*), matching rule_key from manage_rules."
          },
          "ruleName": {
            "type": "string",
            "description": "The display name of the rule. Always populated; deleted and orphan rules are excluded at query time."
          }
        }
      },
      "IncubatorOSBankingHandlersModelsAppliedTagDto": {
        "type": "object",
        "description": "A tag that was assigned to a transaction group.",
        "additionalProperties": false,
        "required": [
          "tagKey",
          "tagName"
        ],
        "properties": {
          "tagKey": {
            "type": "string",
            "description": "The projection key of the tag (ftag_*)."
          },
          "tagName": {
            "type": "string",
            "description": "The display name of the tag. Always populated; deleted and orphan tags are excluded at query time."
          }
        }
      },
      "IncubatorOSBankingHandlersModelsTransferLinkDto": {
        "type": "object",
        "description": "Transfer link data for a transaction that is part of a detected transfer pair.",
        "additionalProperties": false,
        "required": [
          "linkedTransactionId",
          "counterpartAccountGroupKey",
          "counterpartAccountName",
          "confidence",
          "detectionTier",
          "status"
        ],
        "properties": {
          "linkedTransactionId": {
            "type": "string",
            "description": "The projection key of the linked (counterpart) transaction."
          },
          "counterpartAccountGroupKey": {
            "type": "string",
            "description": "The account group projection key (uagr_*) of the counterpart transaction."
          },
          "counterpartAccountName": {
            "type": "string",
            "description": "The display name of the counterpart account."
          },
          "confidence": {
            "type": "number",
            "description": "The confidence score of the transfer detection (0.0-1.0).",
            "format": "double"
          },
          "detectionTier": {
            "type": "integer",
            "description": "The detection tier that produced this link (1 = exact match, 3 = near match).",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "description": "The status of the transfer link."
          },
          "counterpartDescription": {
            "type": "string",
            "description": "The effective description of the counterpart transaction.",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsLineItemDto": {
        "type": "object",
        "description": "One line inside a transaction's itemisation — a thing bought, or a charge or credit the source\napplied to the order as a whole.",
        "additionalProperties": false,
        "required": [
          "lineOrdinal",
          "kind",
          "description",
          "lineAmount",
          "currencyCode"
        ],
        "properties": {
          "lineOrdinal": {
            "type": "integer",
            "description": "This line's zero-based position within the itemisation, as the source delivered it.",
            "format": "int32"
          },
          "kind": {
            "type": "string",
            "description": "What this line represents, as a stable snake_case token. Values:\n\"unknown\", \"product\", \"tax\", \"shipping\", \"delivery_fee\",\n\"discount\", \"fee\"."
          },
          "description": {
            "type": "string",
            "description": "The human-readable description of this line (e.g. \"Coffee beans, 2 lb\")."
          },
          "lineAmount": {
            "type": "number",
            "description": "The total for this line as an unsigned magnitude, in CurrencyCode.",
            "format": "decimal"
          },
          "currencyCode": {
            "type": "string",
            "description": "The ISO 4217 currency code of LineAmount."
          },
          "unitAmount": {
            "type": "number",
            "description": "The price of a single unit as an unsigned magnitude, expressed in\nCurrencyCode, or null when the source reports only a line\ntotal.",
            "format": "decimal",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "description": "How many units this line covers, or null when the source does not itemise\nquantity.",
            "format": "decimal",
            "nullable": true
          },
          "sku": {
            "type": "string",
            "description": "The retailer's stock-keeping unit, or null when the source supplied none.\nDescriptive data — never an identity.",
            "nullable": true
          },
          "upc": {
            "type": "string",
            "description": "The universal product code, or null when the source supplied none.\nDescriptive data — never an identity.",
            "nullable": true
          },
          "imageUrl": {
            "type": "string",
            "description": "The source's product photo for this line as an absolute http or https URL, or\nnull when the source supplied none.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "The category of this line as a display string (e.g. \"Cables & adapters\", \"Household\"),\nor null when nothing has categorised it.",
            "nullable": true
          }
        }
      },
      "HubAPIModelsAssignTransactionTagsEndpointRequest": {
        "type": "object",
        "description": "Request to assign or remove a tag on one or more transactions (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "tagKey",
          "transactionIds",
          "operation"
        ],
        "properties": {
          "operation": {
            "description": "assign to put the tag on, remove to take it off.",
            "$ref": "#/components/schemas/HubAPIModelsAssignTagsOperation"
          },
          "tagKey": {
            "type": "string",
            "description": "The tag's tagKey, as the tags list returns it. It must be one of your tags, and not one you've deleted.",
            "minLength": 1
          },
          "transactionIds": {
            "type": "array",
            "description": "The utgr_ keys of the transactions to tag or untag. At least one, and no more than 100. Over 100 is refused rather than trimmed: you get a 400 and nothing changes at all.",
            "maxItems": 100,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "HubAPIModelsAssignTagsOperation": {
        "type": "string",
        "description": "The tag-assignment operation to perform on the supplied transactions.",
        "x-enumNames": [
          "Assign",
          "Remove"
        ],
        "enum": [
          "assign",
          "remove"
        ]
      },
      "HubAPIModelsBulkUpdateTransactionsEndpointResponse": {
        "type": "object",
        "description": "Response after bulk updating transactions (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "transactions"
        ],
        "properties": {
          "transactions": {
            "type": "array",
            "description": "The updated transactions.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsTransactionDto"
            }
          },
          "lineItemEnrichmentTruncated": {
            "type": "boolean",
            "description": "Whether the post-mutation echo's line-item enrichment hit its per-page row cap. When\ntrue, an unknown subset of Transactions carries an empty\nLineItems and both derived scalars null\ndespite having stored line rows."
          }
        }
      },
      "HubAPIModelsBulkUpdateTransactionsEndpointRequest": {
        "type": "object",
        "description": "Request to bulk update transactions (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "transactionIds"
        ],
        "properties": {
          "transactionIds": {
            "type": "array",
            "description": "The utgr_ keys of the transactions to change. At least one, and no more than 100. Over 100 is refused rather than trimmed — unlike the list endpoint's page size, which clamps, you get a 400 and nothing changes at all.",
            "maxItems": 100,
            "items": {
              "type": "string"
            }
          },
          "categoryKey": {
            "type": "string",
            "description": "The fcat_ key of the category to assign. Leave it out and each transaction keeps the category it has.",
            "nullable": true
          },
          "merchantName": {
            "type": "string",
            "description": "A merchant name of your own, up to 1000 characters. Leave it out and the current name stays.",
            "maxLength": 1000,
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A note of your own on these transactions, up to 5000 characters. Leave it out and the current note stays.",
            "maxLength": 5000,
            "nullable": true
          },
          "clearCategory": {
            "type": "boolean",
            "description": "Drops your category override, so Era's own categorization takes over again. Defaults to false."
          },
          "clearMerchantName": {
            "type": "boolean",
            "description": "Drops your merchant-name override, so the name your bank sent comes back. Defaults to false."
          },
          "clearDescription": {
            "type": "boolean",
            "description": "Drops your description override, so the description your bank sent comes back. Defaults to false."
          },
          "reviewStatus": {
            "description": "Mark them needs_review, reviewed, or flagged.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesReviewStatus"
          },
          "clearReviewStatus": {
            "type": "boolean",
            "description": "Drops your review-status override. Defaults to false."
          }
        }
      },
      "IncubatorOSBankingRulesReviewStatus": {
        "type": "string",
        "description": "Review status values for SetReviewStatusAction.",
        "x-enumNames": [
          "NeedsReview",
          "Reviewed",
          "Flagged"
        ],
        "enum": [
          "needs_review",
          "reviewed",
          "flagged"
        ]
      },
      "IncubatorOSBankingHandlersManualTransactionDirection": {
        "type": "string",
        "description": "Direction of money movement: for a manually created transaction, and for a recurring item the\nrecurring read serves (Direction).",
        "x-enumNames": [
          "Outflow",
          "Inflow"
        ],
        "enum": [
          "outflow",
          "inflow"
        ]
      },
      "HubAPIModelsGetAccountSummaryEndpointResponse": {
        "type": "object",
        "description": "Response containing an account summary for the agency home dashboard's accounts card\n(endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "userId",
          "accounts",
          "totalVisibleCount",
          "totalHiddenCount",
          "totalAssets",
          "totalLiabilities",
          "netWorthHint",
          "includedSimulationModes",
          "simulationExcludedAccountCount",
          "computedAt"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "description": "The authenticated user's Forge ID."
          },
          "accounts": {
            "type": "array",
            "description": "The user's visible accounts with server-computed asset/liability classification.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsAccountSummaryItemResult"
            }
          },
          "totalVisibleCount": {
            "type": "integer",
            "description": "The number of accounts in accounts: your visible accounts in the included simulation modes. Visible accounts a mode left out are counted in simulationExcludedAccountCount, not here.",
            "format": "int32"
          },
          "totalHiddenCount": {
            "type": "integer",
            "description": "How many of your accounts the summary leaves out because one of your plan's allowances or your own\nvisibility setting excludes them. It is tierExcludedAccountCount plus holdingsTierExcludedAccountCount\nplus userExcludedAccountCount.",
            "format": "int32"
          },
          "totalAssets": {
            "type": "number",
            "description": "The sum of current balances across visible asset accounts.",
            "format": "decimal"
          },
          "totalLiabilities": {
            "type": "number",
            "description": "The sum of current balances across visible liability accounts.",
            "format": "decimal"
          },
          "netWorthHint": {
            "type": "number",
            "description": "A net-worth hint computed as TotalAssets minus TotalLiabilities.",
            "format": "decimal"
          },
          "includedSimulationModes": {
            "type": "array",
            "description": "The simulation modes the accounts, totals and net-worth hint cover: live, paper and scenario, in that\norder. It is live alone unless the request named others, and it is stated on every response so the\ntotals are never read as covering more than they do.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountSimulationMode"
            }
          },
          "simulationExcludedAccountCount": {
            "type": "integer",
            "description": "How many of your accounts the summary leaves out because their simulation mode isn't in\nincludedSimulationModes. Counts only accounts you can see; totalHiddenCount counts the accounts your\nplan or your own visibility setting hides, and never includes these.",
            "format": "int32"
          },
          "computedAt": {
            "type": "string",
            "description": "The instant the summary was computed.",
            "format": "date-time"
          },
          "tierExcludedAccountCount": {
            "type": "integer",
            "description": "How many of the left-out accounts your plan's live-data-source allowance excludes: accounts fed by a\nconnected data source that aren't investment accounts, never a manual account. A plan with a higher\nallowance brings them back. Null when Era couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "userExcludedAccountCount": {
            "type": "integer",
            "description": "How many of the left-out accounts you can bring back with no plan change: the ones you hid yourself, and\nany manual account still hidden from before manual accounts stopped counting against your plan's\nallowance. Showing them again brings them back, on any plan. Null when Era couldn't read your plan on\nthis call.",
            "format": "int32",
            "nullable": true
          },
          "accountLimit": {
            "type": "integer",
            "description": "How many accounts fed by a connected data source your plan shows at once. Manual accounts and investment\naccounts don't count against it: investment accounts count against holdingsLimit. Null when your plan has\nno limit, or when tierExcludedAccountCount is also null because Era couldn't read your plan on this call.",
            "format": "int64",
            "nullable": true
          },
          "accountLimitLift": {
            "type": "string",
            "description": "The name of the cheapest plan with a higher limit than yours that fits every account counting against\naccountLimit that you haven't hidden, as Era's pricing names it. Null when your plan's live-data-source\nallowance leaves nothing out, when no plan has more room, or when accountLimit is null.",
            "nullable": true
          },
          "holdingsTierExcludedAccountCount": {
            "type": "integer",
            "description": "How many of the left-out accounts your plan's investment-holdings-sources allowance excludes: investment\naccounts, which count against an allowance of their own and never against accountLimit. An HSA and a\nmanual account are never among them. A plan with a higher holdings allowance brings them back. Null when\nEra couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "holdingsLimit": {
            "type": "integer",
            "description": "How many investment accounts your plan shows at once. 0 means your plan includes none. Null when your\nplan has no limit, when Era couldn't state the allowance, or when holdingsTierExcludedAccountCount is\nalso null because Era couldn't read your plan on this call.",
            "format": "int64",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsAccountSummaryItemResult": {
        "type": "object",
        "description": "A single visible account row for the account-summary card, projected from the shared\nAccountDto with a server-computed IsAsset classification.",
        "additionalProperties": false,
        "required": [
          "accountGroupKey",
          "displayName",
          "accountType",
          "universalAccountType",
          "currentBalance",
          "availableBalance",
          "currencyCode",
          "balanceAsOf",
          "institutionName",
          "visibility",
          "isAsset",
          "isBalanceBackfillEnabled"
        ],
        "properties": {
          "accountGroupKey": {
            "type": "string",
            "description": "The account group projection key (uagr_*)."
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the account."
          },
          "accountType": {
            "type": "string",
            "description": "The core account type."
          },
          "universalAccountType": {
            "type": "string",
            "description": "The universal account type used to classify the account as asset or liability."
          },
          "currentBalance": {
            "type": "number",
            "description": "The current balance the account holds as stated, so a stated zero reads 0. Only visible accounts\nare items, so null here means no balance has been reported: either the provider stated no current\nbalance (that reads null, not 0) or this kind of account publishes no balance at all. The\naccount's row in the account list says which, through its supportsBalances. A null balance adds\nnothing to the totals.",
            "format": "decimal",
            "nullable": true
          },
          "availableBalance": {
            "type": "number",
            "description": "The available balance, or null when not reported.",
            "format": "decimal",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "description": "The ISO 4217 currency code."
          },
          "balanceAsOf": {
            "type": "string",
            "description": "The stated instant this account group's balance figures are true as of: it dates the figures the\nstatement that last dated the group stated, its Current figure when that statement carried one,\notherwise the available or credit figures it carried. It is the group's own\nBalanceAsOf, a provider- or user-stated valid time, capped at the instant Forge recorded\nthat statement (the sync that fetched it, or the user's submission of a manual balance): a\nstatement dated later than that is dated at the recording instant instead. That cap is an honest\nceiling, not a claim of provider or user freshness. A group whose as-of was last written before\nvalid-time stamping keeps that earlier value, which the cap does not bound, until a later sync\nor balance statement rewrites it.\nA manual balance that names only a date is the balance at the close of that UTC day, so\nit is dated at the next day's 00:00Z — or, for a day that has not yet closed, at the user's\nsubmission instant (the recording-instant cap above).\nA MethodFi liability is dated by Method's data_as_of: the date the figures were\ncurrent at the lender, which for a credit-bureau snapshot is the lender's last report to the\nbureau and can be weeks old. It is never the time Forge fetched or processed them. A liability\nwhose last capture carried no data_as_of stays null until its next\nMethod Update is captured.\nnull is the honest answer whenever no stated valid time is available: the\naccount's provider states no usable as-of (none at all, e.g. Plaid, or one at or before the\nUnix epoch), the group's latest sync to write its figures stated none of them (current,\navailable, credit limit or available credit), whether or not an earlier sync stated one, a\nmanual account has never had a balance stated, the account's figures are obfuscated (see\nVisibility), or its provider publishes no balance surface at all. Never infer\nstaleness or a connection fault from a null value alone.",
            "format": "date-time",
            "nullable": true
          },
          "institutionName": {
            "type": "string",
            "description": "The name of the financial institution, or null when not reported.",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "The per-account visibility status as a snake_case wire string (visible, tier_excluded, user_excluded)."
          },
          "isAsset": {
            "type": "boolean",
            "description": "Whether this account is an asset (as opposed to a liability), computed server-side through the\ncanonical AccountClassificationExtensions resolver. Both taxonomies are consulted: the\nuniversal type decides for aggregator-sourced accounts, and the core type distinguishes a\nmanually tracked debt from a manually tracked asset, which the universal taxonomy collapses\nonto a single member."
          },
          "isBalanceBackfillEnabled": {
            "type": "boolean",
            "description": "Whether transaction-derived balance backfill is enabled for this account group."
          },
          "simulationMode": {
            "description": "Whether this account group holds real money, a provider-simulated (paper) portfolio, or a\nscenario-modelled one.",
            "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountSimulationMode"
          }
        }
      },
      "HubAPIModelsGetBalanceEndpointResponse": {
        "type": "object",
        "description": "Response containing balance information.",
        "additionalProperties": false,
        "required": [
          "accountGroupKey"
        ],
        "properties": {
          "accountGroupKey": {
            "type": "string",
            "description": "The account group projection key (uagr_*)."
          },
          "currentBalance": {
            "type": "number",
            "description": "The current balance amount the account holds as stated, so a stated zero reads 0. Null when\nvisibility is tier_excluded or user_excluded (the balance is withheld and every balance field is\nnull) or connection_severed (no balance is read for a severed account). Null when visibility is\nnull, which is how this endpoint serves a visible account: no balance has been reported, either\nbecause the provider stated no current balance (that reads null, not 0) or because this kind of\naccount publishes no balance at all; the account's row in the account list says which, through\nits supportsBalances.",
            "format": "decimal",
            "nullable": true
          },
          "availableBalance": {
            "type": "number",
            "description": "The available balance amount.",
            "format": "decimal",
            "nullable": true
          },
          "creditLimit": {
            "type": "number",
            "description": "The credit limit for credit accounts.",
            "format": "decimal",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "description": "The currency code.",
            "nullable": true
          },
          "availableCredit": {
            "type": "number",
            "description": "The available credit for credit accounts.",
            "format": "decimal",
            "nullable": true
          },
          "asOf": {
            "type": "string",
            "description": "The stated instant this account group's balance figures are true as of: it dates the figures the\nstatement that last dated the group stated, its Current figure when that statement carried one,\notherwise the available or credit figures it carried. It is the group's own\nBalanceAsOf, a provider- or user-stated valid time, capped at the instant Forge recorded\nthat statement (the sync that fetched it, or the user's submission of a manual balance): a\nstatement dated later than that is dated at the recording instant instead. That cap is an honest\nceiling, not a claim of provider or user freshness. A group whose as-of was last written before\nvalid-time stamping keeps that earlier value, which the cap does not bound, until a later sync\nor balance statement rewrites it.\nA manual balance that names only a date is the balance at the close of that UTC day, so\nit is dated at the next day's 00:00Z — or, for a day that has not yet closed, at the user's\nsubmission instant (the recording-instant cap above).\nA MethodFi liability is dated by Method's data_as_of: the date the figures were\ncurrent at the lender, which for a credit-bureau snapshot is the lender's last report to the\nbureau and can be weeks old. It is never the time Forge fetched or processed them. A liability\nwhose last capture carried no data_as_of stays null until its next\nMethod Update is captured.\nnull is the honest answer whenever no stated valid time is available: the\naccount's provider states no usable as-of (none at all, e.g. Plaid, or one at or before the\nUnix epoch), the group's latest sync to write its figures stated none of them (current,\navailable, credit limit or available credit), whether or not an earlier sync stated one, a\nmanual account has never had a balance stated, the account's figures are obfuscated (see\nVisibility), or its provider publishes no balance surface at all. Never infer\nstaleness or a connection fault from a null value alone.",
            "format": "date-time",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "The visibility status of this account.",
            "nullable": true
          },
          "simulationMode": {
            "description": "Whether this account holds real money (live), a broker's practice portfolio (paper) or a\nhypothetical one (scenario), taken from the account group. Null when the account's connection\nwas severed: the mode is not read on that path, and stating live for an account whose mode was\nnever read would be false. Never masked on a tier- or user-excluded account — it describes the\naccount's shape, not a figure.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountSimulationMode"
          },
          "accountLimit": {
            "type": "integer",
            "description": "How many accounts fed by a connected data source your plan shows at once, across all your connections —\nthe limit that leaves out such an account whose visibility is tier_excluded. Manual accounts and\ninvestment accounts don't count against it: an investment account has an allowance of its own. Null when\nyour plan has no limit, when Era couldn't read your plan on this call, or when the account's connection was\nsevered.",
            "format": "int64",
            "nullable": true
          },
          "accountLimitLift": {
            "type": "string",
            "description": "Set only when visibility is tier_excluded and this account counts against accountLimit: the name of the\ncheapest plan with room for every such account that you haven't hidden, as Era's pricing names it. Null\nfor a visible, user_excluded or connection_severed account, for a manual account (you show it again on\nany plan), for an investment account (accountLimit doesn't leave it out), when no plan has more room, or\nwhen accountLimit is null.",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsGetCashFlowSummaryEndpointResponse": {
        "type": "object",
        "description": "Money in and money out over one period, with the categories behind each side. income, expense and net\ncover every category; incomeCategories and expenseCategories are trimmed to topN, so they can add up to less.",
        "additionalProperties": false,
        "required": [
          "period",
          "income",
          "expense",
          "net",
          "incomeCategories",
          "expenseCategories",
          "excludedAccountCount",
          "incomePercentOfTotalUnavailable",
          "expensePercentOfTotalUnavailable"
        ],
        "properties": {
          "period": {
            "description": "Resolved and echoed-back time period.",
            "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsCashFlowSummaryPeriodDto"
          },
          "income": {
            "description": "Total income in the period (positive value).",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "expense": {
            "description": "Total expense in the period (positive value).",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "net": {
            "description": "Net cash flow: income − expense.",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "incomeCategories": {
            "type": "array",
            "description": "Income category slices sorted by amount descending.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsCashFlowCategorySliceDto"
            }
          },
          "expenseCategories": {
            "type": "array",
            "description": "Expense category slices sorted by amount descending.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsCashFlowCategorySliceDto"
            }
          },
          "excludedAccountCount": {
            "type": "integer",
            "description": "Number of accounts excluded from this summary by tier or user rules.",
            "format": "int32"
          },
          "excludedAccountNote": {
            "type": "string",
            "description": "Human-readable note about excluded accounts; null when none excluded.",
            "nullable": true
          },
          "incomePercentOfTotalUnavailable": {
            "type": "boolean",
            "description": "true when the income shares could not be computed, so every percentOfTotal under\nIncomeCategories is 0 because the income denominator was unstated, NOT because the\nslice is 0% of the period's income. Render those percentages as unavailable rather than as zero, and\nnever rank or compare them. Stated per direction because the two directions carry separate\ndenominators: one can be unstated while the other is not."
          },
          "expensePercentOfTotalUnavailable": {
            "type": "boolean",
            "description": "true when the expense shares could not be computed, so every percentOfTotal under\nExpenseCategories is 0 because the expense denominator was unstated. The sibling of\nIncomePercentOfTotalUnavailable, on the other direction's separate denominator."
          }
        }
      },
      "IncubatorOSBankingHandlersModelsCashFlowSummaryPeriodDto": {
        "type": "object",
        "description": "Echoed-back period for a cash-flow summary response.",
        "additionalProperties": false,
        "required": [
          "period",
          "start",
          "end",
          "label"
        ],
        "properties": {
          "period": {
            "type": "string",
            "description": "The period identifier (snake_case, e.g., \"this_month\"): the period the request named, or the window's key when\nit named a window (see Window)."
          },
          "start": {
            "type": "string",
            "description": "Inclusive first date the summary covers (ISO 8601 date string), always present. It is the\nresolved range start verbatim: the requested start for every period that names one, and for\nall_time — which names none — 0001-01-01, the resolver's \"no lower bound\" sentinel\n(see IsOpenLowerBound). Read it as \"the summary covers everything up to\nEnd\", not as a date any transaction is near; size a window from it only after\nchecking it against that sentinel."
          },
          "end": {
            "type": "string",
            "description": "Resolved end date (ISO 8601 date string)."
          },
          "label": {
            "type": "string",
            "description": "Human-readable label (e.g., \"June 2025\")."
          },
          "window": {
            "type": "string",
            "description": "The reporting window's key (for example last_7_days) when the request named a window, whose dates\nStart and End are; null when it named a period.",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "description": "The IANA time zone that decided which date today was for Window: the viewer's own, or UTC\nwhen they have none or it names no usable zone. null when the request named a period.",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsCashFlowCategorySliceDto": {
        "type": "object",
        "description": "One category slice of a cash-flow summary direction (incomeCategories or expenseCategories).",
        "additionalProperties": false,
        "required": [
          "label",
          "amount",
          "percentOfTotal",
          "transactionCount"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "Category display name."
          },
          "categoryKey": {
            "type": "string",
            "description": "The fcat_* category projection key; the uncategorized sentinel for uncategorized money.",
            "nullable": true
          },
          "amount": {
            "description": "The category's amount on this side.",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "percentOfTotal": {
            "type": "number",
            "description": "Percentage of the period's total for THIS slice's own direction and denomination (0–100), summed before\nthe topN cut, so a trimmed response carries percentages adding up to less than 100. Income and\nexpense slices are shares of separate totals and must not be summed together. Children divide by the\nsame total as their parent.",
            "format": "decimal"
          },
          "transactionCount": {
            "type": "integer",
            "description": "Number of transactions in this category.",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "description": "The category's place in your own category list, 0 first: each top-level category in the order you keep\nthem, followed by its own subcategories in theirs. Sort ascending to show categories as you entered them.\nnull for uncategorized money, for a category your list doesn't show, and for every slice when\nyour category list could not be read for this response. A category with money in two currencies appears\nonce per currency, and both slices carry the same value.",
            "format": "int32",
            "nullable": true
          },
          "children": {
            "type": "array",
            "description": "Subcategory breakdown. Populated when includeSubcategories=true and the category has subcategories.",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsCashFlowSubcategorySliceDto"
            }
          }
        }
      },
      "IncubatorOSBankingHandlersModelsCashFlowSubcategorySliceDto": {
        "type": "object",
        "description": "One subcategory slice under a CashFlowCategorySliceDto.",
        "additionalProperties": false,
        "required": [
          "label",
          "amount",
          "percentOfTotal",
          "transactionCount"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "Subcategory display name."
          },
          "categoryKey": {
            "type": "string",
            "description": "The subcategory's fcat_* category projection key.",
            "nullable": true
          },
          "amount": {
            "description": "The subcategory's amount on this side.",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "percentOfTotal": {
            "type": "number",
            "description": "Percentage of the period's total for this slice's direction and denomination (0–100): the same total its\nparent divides by, not a share of the parent.",
            "format": "decimal"
          },
          "transactionCount": {
            "type": "integer",
            "description": "Number of transactions in this subcategory.",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "description": "The subcategory's place in your own category list, on the same scale as its parent's\nDisplayOrder, and null on the same terms.",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "HubAPIModelsListAccountsEndpointResponse": {
        "type": "object",
        "description": "Response containing a list of banking accounts.",
        "additionalProperties": false,
        "required": [
          "accounts"
        ],
        "properties": {
          "accounts": {
            "type": "array",
            "description": "The user's banking accounts.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsAccountDto"
            }
          },
          "excludedAccountCount": {
            "type": "integer",
            "description": "How many of your accounts this list leaves out because one of your plan's allowances or your own\nvisibility setting excludes them — on the connection you filtered to, if any. Reported whether or not\nyou asked for excluded accounts; it is tierExcludedAccountCount plus holdingsTierExcludedAccountCount plus\nuserExcludedAccountCount.",
            "format": "int32"
          },
          "tierExcludedAccountCount": {
            "type": "integer",
            "description": "How many of those left-out accounts your plan's live-data-source allowance excludes: accounts fed by a\nconnected data source that aren't investment accounts, never a manual account. A plan with a higher\nallowance brings them back. Null when Era couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "userExcludedAccountCount": {
            "type": "integer",
            "description": "How many of those left-out accounts you can bring back with no plan change: the ones you hid yourself,\nand any manual account still hidden from before manual accounts stopped counting against your plan's\nallowance. Showing them again brings them back, on any plan. Null when Era couldn't read your plan on\nthis call.",
            "format": "int32",
            "nullable": true
          },
          "accountLimit": {
            "type": "integer",
            "description": "How many accounts fed by a connected data source your plan shows at once, across all your connections —\nit doesn't narrow with connectionId. Manual accounts and investment accounts don't count against it:\ninvestment accounts count against holdingsLimit. Null when your plan has no limit, or when\ntierExcludedAccountCount is also null because Era couldn't read your plan on this call.",
            "format": "int64",
            "nullable": true
          },
          "accountLimitLift": {
            "type": "string",
            "description": "The name of the cheapest plan with a higher limit than yours that fits every account counting against\naccountLimit that you haven't hidden, as Era's pricing names it. Null when your plan's live-data-source\nallowance leaves nothing out, when no plan has more room, or when accountLimit is null.",
            "nullable": true
          },
          "holdingsTierExcludedAccountCount": {
            "type": "integer",
            "description": "How many of those left-out accounts your plan's investment-holdings-sources allowance excludes:\ninvestment accounts, which count against an allowance of their own and never against accountLimit. An\nHSA and a manual account are never among them. A plan with a higher holdings allowance brings them back.\nNull when Era couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "holdingsLimit": {
            "type": "integer",
            "description": "How many investment accounts your plan shows at once, across all your connections — it doesn't narrow\nwith connectionId. 0 means your plan includes none. Null when your plan has no limit, when Era couldn't\nstate the allowance, or when holdingsTierExcludedAccountCount is also null because Era couldn't read your\nplan on this call.",
            "format": "int64",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsAccountDto": {
        "type": "object",
        "description": "Banking account DTO shared across all transports.",
        "additionalProperties": false,
        "required": [
          "accountGroupKey",
          "connectionId",
          "name",
          "accountType",
          "universalAccountType",
          "currencyCode"
        ],
        "properties": {
          "accountGroupKey": {
            "type": "string",
            "description": "The account group projection key (uagr_*)."
          },
          "connectionId": {
            "type": "string",
            "description": "The connection ID this account belongs to."
          },
          "providerId": {
            "type": "string",
            "description": "The provider that supplied the account projection, such as mx or manual."
          },
          "name": {
            "type": "string",
            "description": "The display name of the account."
          },
          "accountType": {
            "type": "string",
            "description": "The account type."
          },
          "universalAccountType": {
            "type": "string",
            "description": "The detailed account type."
          },
          "currentBalance": {
            "type": "number",
            "description": "The current balance amount the account group holds as stated, so a stated zero reads 0.\nNull has three meanings, told apart by the fields beside it. Withheld: the visibility is\ntier-excluded or user-excluded, or connection-severed for an account that was not visible before\nits connection was severed, and obfuscation nullifies every balance field rather than\nreturning a stale or misleading figure. No balance surface: the account is visible and\nsupportsBalances is false, because its providers publish no balance at all. Not reported: the\naccount is visible and supportsBalances is not false, and the group holds no stated current\nbalance; that reads null, not 0.",
            "format": "decimal",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "description": "The currency code."
          },
          "accountMask": {
            "type": "string",
            "description": "The masked account number.",
            "nullable": true
          },
          "availableBalance": {
            "type": "number",
            "description": "The available balance, if different from current.",
            "format": "decimal",
            "nullable": true
          },
          "balanceAsOf": {
            "type": "string",
            "description": "The stated instant this account group's balance figures are true as of: it dates the figures the\nstatement that last dated the group stated, its Current figure when that statement carried one,\notherwise the available or credit figures it carried. It is the group's own\nBalanceAsOf, a provider- or user-stated valid time, capped at the instant Forge recorded\nthat statement (the sync that fetched it, or the user's submission of a manual balance): a\nstatement dated later than that is dated at the recording instant instead. That cap is an honest\nceiling, not a claim of provider or user freshness. A group whose as-of was last written before\nvalid-time stamping keeps that earlier value, which the cap does not bound, until a later sync\nor balance statement rewrites it.\nA manual balance that names only a date is the balance at the close of that UTC day, so\nit is dated at the next day's 00:00Z — or, for a day that has not yet closed, at the user's\nsubmission instant (the recording-instant cap above).\nA MethodFi liability is dated by Method's data_as_of: the date the figures were\ncurrent at the lender, which for a credit-bureau snapshot is the lender's last report to the\nbureau and can be weeks old. It is never the time Forge fetched or processed them. A liability\nwhose last capture carried no data_as_of stays null until its next\nMethod Update is captured.\nnull is the honest answer whenever no stated valid time is available: the\naccount's provider states no usable as-of (none at all, e.g. Plaid, or one at or before the\nUnix epoch), the group's latest sync to write its figures stated none of them (current,\navailable, credit limit or available credit), whether or not an earlier sync stated one, a\nmanual account has never had a balance stated, the account's figures are obfuscated (see\nVisibility), or its provider publishes no balance surface at all. Never infer\nstaleness or a connection fault from a null value alone.",
            "format": "date-time",
            "nullable": true
          },
          "institutionName": {
            "type": "string",
            "description": "The name of the financial institution.",
            "nullable": true
          },
          "creditLimit": {
            "type": "number",
            "description": "The credit limit for credit accounts.",
            "format": "decimal",
            "nullable": true
          },
          "availableCredit": {
            "type": "number",
            "description": "The available credit for credit accounts.",
            "format": "decimal",
            "nullable": true
          },
          "visibility": {
            "description": "The visibility status of this account (Visible, TierExcluded, UserExcluded, or ConnectionSevered).",
            "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountVisibilityStatus"
          },
          "isBalanceBackfillEnabled": {
            "type": "boolean",
            "description": "Gets a value indicating whether transaction-derived balance backfill is enabled for this account group."
          },
          "nameLayered": {
            "description": "Gets the layered projection of the account display name. The effective value (top of the\nUser/Agent/Enriched/Provider stack) and the sourced value (bottom of the stack, typically\nthe institution-supplied name) are reported together with their producing actor so that\nclients can render override/provenance UI in a single round-trip.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsLayeredStringSnapshot"
          },
          "apr": {
            "type": "number",
            "description": "The annual percentage rate carried on the account, expressed as a whole percentage\n(19.99 means 19.99%).",
            "format": "decimal",
            "nullable": true
          },
          "nextPaymentDueDate": {
            "type": "string",
            "description": "The calendar date the next payment on this account falls due.",
            "format": "date",
            "nullable": true
          },
          "nextPaymentMinimumAmount": {
            "type": "number",
            "description": "The minimum amount due on the next payment, in the account's CurrencyCode\nmajor units (the same unit as CurrentBalance).",
            "format": "decimal",
            "nullable": true
          },
          "supportsTransactions": {
            "type": "boolean",
            "description": "Whether this account — the whole account group the row describes — has any member whose provider\nexposes a transaction stream at all.",
            "nullable": true
          },
          "supportsBalances": {
            "type": "boolean",
            "description": "Whether this account — the whole account group the row describes — has any member whose provider\nreports an account balance at all.",
            "nullable": true
          },
          "simulationMode": {
            "description": "Whether this account group holds real money, a provider-simulated (paper) portfolio, or a\nscenario-modelled one.",
            "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountSimulationMode"
          },
          "archive": {
            "description": "Whether this account is shown as archived, what decided it (the person's own intent or the\nconnection's archive verdict) and, when the verdict archives it, by which rule.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountArchiveSnapshot"
          }
        }
      },
      "IncubatorOSBankingTypesAccountVisibilityStatus": {
        "type": "string",
        "description": "Per-account visibility status indicator on AccountDto.",
        "x-enumNames": [
          "Visible",
          "TierExcluded",
          "UserExcluded",
          "ConnectionSevered"
        ],
        "enum": [
          "visible",
          "tierExcluded",
          "userExcluded",
          "connectionSevered"
        ]
      },
      "IncubatorOSBankingHandlersModelsLayeredStringSnapshot": {
        "type": "object",
        "description": "Generic projection of a layered string value across the Orleans, NATS, and HTTP boundaries.",
        "additionalProperties": false,
        "required": [
          "effectiveValue",
          "effectiveActor",
          "sourcedActor"
        ],
        "properties": {
          "effectiveValue": {
            "type": "string",
            "description": "The currently effective (resolved) value at the top of the assignment stack."
          },
          "effectiveActor": {
            "type": "string",
            "description": "The source layer that produced the effective value. Wire form: one of\n            \"provider\", \"enriched\", \"agent\", \"circle_agent\", \"user\"."
          },
          "sourcedValue": {
            "type": "string",
            "description": "The sourced (bottom-of-stack) value, typically the Provider layer when present.\n            Null when no sourced value is recorded.",
            "nullable": true
          },
          "sourcedActor": {
            "type": "string",
            "description": "The source layer that produced the sourced value. Same wire form as\n            EffectiveActor."
          }
        }
      },
      "IncubatorOSBankingTypesAccountArchiveSnapshot": {
        "type": "object",
        "description": "The server's one answer to \"is this account archived, and why\", composed for one instant by\nAccountArchiveResolver.Resolve from the person's archive intent and the connection's archive verdict.",
        "additionalProperties": false,
        "required": [
          "effective",
          "source",
          "userValue",
          "reason"
        ],
        "properties": {
          "effective": {
            "type": "boolean",
            "description": "Whether the account is shown as archived: the person's own value when Source is\nUser, true when it is\nVerdict, and false when it is\nNone."
          },
          "source": {
            "description": "What decided Effective: the person's intent, the connection's verdict, or nothing.",
            "$ref": "#/components/schemas/IncubatorOSBankingTypesAccountArchiveSource"
          },
          "userValue": {
            "type": "boolean",
            "description": "The person's own choice: true for Archive, false for Keep, and\nnull when they have made none. Non-null exactly when Source is\nUser.",
            "nullable": true
          },
          "reason": {
            "description": "The rule by which the connection's verdict archives the account at the instant of the read, or\nnull when the verdict does not archive it then (or there is no verdict).",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingTypesConnectionArchiveReason"
          }
        }
      },
      "IncubatorOSBankingTypesAccountArchiveSource": {
        "type": "string",
        "description": "What decided whether an account is archived, on an AccountArchiveSnapshot.",
        "x-enumNames": [
          "None",
          "User",
          "Verdict"
        ],
        "enum": [
          "none",
          "user",
          "verdict"
        ]
      },
      "IncubatorOSBankingTypesConnectionArchiveReason": {
        "type": "string",
        "description": "The rule that archives a connection, or that will archive it once its age clock is reached, on a\nConnectionArchiveVerdict.",
        "x-enumNames": [
          "None",
          "Unrecoverable",
          "OperatorAssisted",
          "SeveredByUser",
          "StaleByAge"
        ],
        "enum": [
          "none",
          "unrecoverable",
          "operatorAssisted",
          "severedByUser",
          "staleByAge"
        ]
      },
      "IncubatorOSBankingHandlersListCategoriesResponse": {
        "type": "object",
        "description": "Response containing the hierarchical category tree.",
        "additionalProperties": false,
        "required": [
          "packs"
        ],
        "properties": {
          "packs": {
            "type": "array",
            "description": "The category packs with their categories.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersCategoryPackDto"
            }
          },
          "meterLimit": {
            "type": "integer",
            "description": "The user's entitlement meter limit for custom categories.\nZero for unauthenticated requests or tiers that do not support custom categories.",
            "format": "int64"
          },
          "canCreateCustomCategories": {
            "type": "boolean",
            "description": "Whether the user can create custom categories (has a non-zero meter limit).\nDerived from the custom-categories meter limit, not from tier checks."
          }
        }
      },
      "IncubatorOSBankingHandlersCategoryPackDto": {
        "type": "object",
        "description": "DTO for a category pack.",
        "additionalProperties": false,
        "required": [
          "projectionKey",
          "packSlug",
          "packName",
          "categories"
        ],
        "properties": {
          "projectionKey": {
            "type": "string",
            "description": "The pack projection key (cpak_*)."
          },
          "packSlug": {
            "type": "string",
            "description": "The pack slug (e.g., \"forge-universal-v1\")."
          },
          "packName": {
            "type": "string",
            "description": "The human-readable pack name."
          },
          "version": {
            "type": "integer",
            "description": "The pack version.",
            "format": "int32"
          },
          "isDefault": {
            "type": "boolean",
            "description": "Whether this pack is the default for new users."
          },
          "categories": {
            "type": "array",
            "description": "Top-level categories with their children.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersCategoryDto"
            }
          }
        }
      },
      "IncubatorOSBankingHandlersCategoryDto": {
        "type": "object",
        "description": "DTO for a category in the hierarchy.",
        "additionalProperties": false,
        "required": [
          "projectionKey",
          "categoryName",
          "spendingType",
          "assignmentEligibility",
          "children"
        ],
        "properties": {
          "projectionKey": {
            "type": "string",
            "description": "The category projection key (fcat_*)."
          },
          "categoryName": {
            "type": "string",
            "description": "The category display name."
          },
          "description": {
            "type": "string",
            "description": "The category description.",
            "nullable": true
          },
          "iconName": {
            "type": "string",
            "description": "The icon name for UI display.",
            "nullable": true
          },
          "spendingType": {
            "description": "The spending type classification.",
            "$ref": "#/components/schemas/IncubatorOSBankingCategoriesSpendingType"
          },
          "assignmentEligibility": {
            "description": "Whether this category can be auto-assigned by AI.",
            "$ref": "#/components/schemas/IncubatorOSBankingCategoriesCategoryAssignmentEligibility"
          },
          "isTopLevel": {
            "type": "boolean",
            "description": "Whether this is a top-level category."
          },
          "displayOrder": {
            "type": "integer",
            "description": "The display order within its sibling group.",
            "format": "int32"
          },
          "children": {
            "type": "array",
            "description": "Child categories (subcategories). Empty for leaf nodes.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersCategoryDto"
            }
          },
          "origin": {
            "type": "string",
            "description": "The origin of this category: \"system\" or \"user\".",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "The visibility: \"visible\" or \"hidden\".",
            "nullable": true
          },
          "isCustomised": {
            "type": "boolean",
            "description": "Whether this category has been customised by the user (renamed, icon changed, etc.)."
          },
          "systemSourceKey": {
            "type": "string",
            "description": "The original system category key for mutations (null for user-created and unmutated system categories).",
            "nullable": true
          },
          "transactionCount": {
            "type": "integer",
            "description": "The number of visible transactions assigned to this category.\nFor parent categories, this counts the parent's full self-and-descendant transaction population.\nZero for categories with no transactions.",
            "format": "int32"
          }
        }
      },
      "IncubatorOSBankingCategoriesSpendingType": {
        "type": "string",
        "description": "Spending classification for category-level budgeting and analytics.",
        "x-enumNames": [
          "Necessary",
          "Discretionary",
          "Income",
          "Savings",
          "Transfer",
          "Other"
        ],
        "enum": [
          "necessary",
          "discretionary",
          "income",
          "savings",
          "transfer",
          "other"
        ]
      },
      "IncubatorOSBankingCategoriesCategoryAssignmentEligibility": {
        "type": "string",
        "description": "Controls whether a category can be auto-assigned by the AI agent.",
        "x-enumNames": [
          "AgentEligible",
          "ManualOnly"
        ],
        "enum": [
          "agentEligible",
          "manualOnly"
        ]
      },
      "HubAPIModelsListRecurringChargesEndpointResponse": {
        "type": "object",
        "description": "Response listing the caller's recurring charges, bills and income (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "description": "The recurring items, largest estimated amount first.",
            "items": {
              "$ref": "#/components/schemas/HubAPIModelsRecurringChargeDto"
            }
          }
        }
      },
      "HubAPIModelsRecurringChargeDto": {
        "type": "object",
        "description": "One recurring charge, bill or income source.",
        "additionalProperties": false,
        "required": [
          "direction",
          "merchant",
          "estimatedAmount",
          "frequency",
          "lastSeen",
          "type",
          "confidence"
        ],
        "properties": {
          "chargeId": {
            "type": "string",
            "description": "The charge's id, the same on every read until the charge is listed under a different pattern or merchant name (as\nwhen Era first detects a pattern for a charge the bank's data had flagged), different for two people with the same\nmerchant, and present for an item read from the bank's data as for a pattern Era detected itself. It is opaque:\ncompare it, and do not read anything into its text.",
            "nullable": true
          },
          "direction": {
            "type": "string",
            "description": "outflow where the money leaves your accounts and inflow where it arrives. For an item read from the\nbank's data it is the way most of the merchant's transactions move money, and a tie reads as outflow."
          },
          "accountName": {
            "type": "string",
            "description": "The name of the account the latest payment was made from or into; null when that account has no name.",
            "nullable": true
          },
          "amountRange": {
            "description": "The smallest and largest amount the payments have been; null when every payment was the same amount.",
            "nullable": true,
            "$ref": "#/components/schemas/HubAPIModelsRecurringChargeAmountRangeDto"
          },
          "nextExpected": {
            "type": "string",
            "description": "The date the next payment is expected, worked out from the latest payment and the frequency; null when the\nfrequency is irregular, which has no cadence to count from, or when no payment date is known. The date can already have passed while the\nstatus is on_schedule, which means the payment has not been seen yet but is still within the gap\nthe frequency allows.",
            "format": "date",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "on_schedule while the latest payment is within the longest gap its frequency allows, even when\nnextExpected has passed, and late once that gap has passed on your own calendar date in your time\nzone, which can also mean you have stopped the payment; null when the frequency is irregular or no payment date\nis known.",
            "nullable": true
          },
          "merchant": {
            "type": "string",
            "description": "The merchant or source the recurrence is with."
          },
          "estimatedAmount": {
            "description": "The typical amount each time, always a positive figure whichever way the money moves.",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "frequency": {
            "type": "string",
            "description": "Era's estimate of how often it repeats, such as weekly, monthly or quarterly."
          },
          "category": {
            "type": "string",
            "description": "The category's current display name; null when the item has none.",
            "nullable": true
          },
          "lastSeen": {
            "type": "string",
            "description": "The date of the latest payment, for an item read from the bank's data and for a pattern Era detected itself\nalike.",
            "format": "date"
          },
          "type": {
            "type": "string",
            "description": "subscription, bill or income where Era's detection or the bank's data says which. A charge\nEra detected that leaves your accounts is also a bill or a subscription when its category is one,\nand the type is recurring where none of these says which."
          },
          "confidence": {
            "type": "string",
            "description": "Where the item came from: system for a pattern Era detected itself, provider for\ntransactions the bank's data marks as recurring."
          }
        }
      },
      "HubAPIModelsRecurringChargeAmountRangeDto": {
        "type": "object",
        "description": "The smallest and the largest amount a recurring charge has been, in the charge's currency.",
        "additionalProperties": false,
        "required": [
          "min",
          "max"
        ],
        "properties": {
          "min": {
            "description": "The smallest amount a payment of the charge has been.",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          },
          "max": {
            "description": "The largest amount a payment of the charge has been.",
            "$ref": "#/components/schemas/ForgePrimitivesMoney"
          }
        }
      },
      "HubAPIModelsListTransactionsEndpointResponse": {
        "type": "object",
        "description": "Response containing a paginated list of transactions.",
        "additionalProperties": false,
        "required": [
          "transactions",
          "pagination"
        ],
        "properties": {
          "transactions": {
            "type": "array",
            "description": "The transactions.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsTransactionDto"
            }
          },
          "pagination": {
            "description": "Pagination information.",
            "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsPaginationDto"
          },
          "historyWindowApplied": {
            "type": "boolean",
            "description": "Whether the caller's free-tier history-window floor actually hid a matching row: true\nonly when a transaction matching every other filter on this request exists with an effective\ndate older than HistoryWindowFloorDate — never merely because a floor was resolved or\nthe requested range reached below it."
          },
          "historyWindowFloorDate": {
            "type": "string",
            "description": "The resolved UTC history-window floor for this caller when HistoryWindowApplied\nis true; null otherwise — including whenever the caller's\ntier has no window.",
            "format": "date",
            "nullable": true
          },
          "historyWindowHiddenCount": {
            "type": "integer",
            "description": "The number of transactions matching every other filter on this request that the free-tier\nhistory-window floor hid: a non-negative count on the happy path (with\nHistoryWindowApplied derived as count > 0), or null when\nthe count is unavailable — the caller's tier has no window (paid), the request never reached below\nthe floor, or the count probe faulted and degraded to the boolean existence fallback.\nnull is distinct from 0.",
            "format": "int32",
            "nullable": true
          },
          "historyWindowEarliestDate": {
            "type": "string",
            "description": "The earliest date at which activity matching THIS request's own filters actually exists — how far\nthe caller's history really goes, as distinct from how far HistoryWindowFloorDate\nlets them see. Populated only when HistoryWindowApplied is true;\nnull otherwise — the caller's tier has no window (paid), the request never\nreached below the floor, or the probe faulted and degraded to the boolean existence fallback.",
            "format": "date",
            "nullable": true
          },
          "historyWindowDegraded": {
            "type": "boolean",
            "description": "Whether the floor this read clamped against was resolved in a degraded fail-closed state —\nlive entitlement resolution faulted and the floor fell back to the free-tier window rather than the\ncaller's confirmed one. false on every confirmed resolution, including the\nunlimited (paid) no-floor case."
          },
          "lineItemEnrichmentTruncated": {
            "type": "boolean",
            "description": "Whether line-item enrichment hit its per-page row cap on this read. When\ntrue, an unknown subset of Transactions carries an empty\nLineItems and both derived scalars null\ndespite having stored line rows."
          },
          "tierExcludedAccountCount": {
            "type": "integer",
            "description": "How many of your accounts fed by a connected data source your plan's live-data-source allowance leaves\nout of this read — just the account you filtered to, if you did. A manual account and an investment\naccount are never one of them: holdingsTierExcludedAccountCount counts the investment accounts.\nTheir transactions aren't in the response, so a short page with this above zero is your plan's limit,\nnot a quiet account. Null when Era couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "userExcludedAccountCount": {
            "type": "integer",
            "description": "How many hidden accounts this read leaves out that you can bring back with no plan change — just the\naccount you filtered to, if you did: the ones you hid yourself, and any manual account still hidden from\nbefore manual accounts stopped counting against your plan's allowance. Showing them again brings their\ntransactions back, on any plan. Null when Era couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "holdingsTierExcludedAccountCount": {
            "type": "integer",
            "description": "How many of your investment accounts your plan's investment-holdings-sources allowance leaves out of\nthis read — just the account you filtered to, if you did. An HSA and a manual account are never one of\nthem. Their transactions aren't in the response. Null when Era couldn't read your plan on this call.",
            "format": "int32",
            "nullable": true
          },
          "holdingsLimit": {
            "type": "integer",
            "description": "How many investment accounts your plan shows at once, across all your accounts — it doesn't narrow with\naccountId. 0 means your plan includes none. Null when your plan has no limit, when Era couldn't state the\nallowance, or when holdingsTierExcludedAccountCount is also null because Era couldn't read your plan on\nthis call.",
            "format": "int64",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingHandlersModelsPaginationDto": {
        "type": "object",
        "description": "Pagination information shared across all transports.",
        "additionalProperties": false,
        "required": [
          "currentPage",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "properties": {
          "currentPage": {
            "type": "integer",
            "description": "Current page number (1-based).",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Number of items per page.",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "description": "Total number of items.",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages.",
            "format": "int32"
          }
        }
      },
      "HubAPIModelsUpdateTransactionEndpointResponse": {
        "type": "object",
        "description": "Response after updating a single transaction (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "transaction"
        ],
        "properties": {
          "transaction": {
            "description": "The updated transaction.",
            "$ref": "#/components/schemas/IncubatorOSBankingHandlersModelsTransactionDto"
          },
          "lineItemEnrichmentTruncated": {
            "type": "boolean",
            "description": "Whether the post-mutation echo's line-item enrichment hit its per-page row cap, in which case\nTransaction may carry an empty LineItems and both\nderived scalars null despite having stored line rows."
          }
        }
      },
      "HubAPIModelsUpdateTransactionEndpointRequest": {
        "type": "object",
        "description": "Request to update a single transaction (endpoint-specific).",
        "additionalProperties": false,
        "properties": {
          "categoryKey": {
            "type": "string",
            "description": "The fcat_ key of the category to assign. Leave it out and the transaction keeps the category it has.",
            "nullable": true
          },
          "merchantName": {
            "type": "string",
            "description": "A merchant name of your own, up to 1000 characters. Leave it out and the current name stays.",
            "maxLength": 1000,
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A note of your own on this transaction, up to 5000 characters. Leave it out and the current note stays.",
            "maxLength": 5000,
            "nullable": true
          },
          "clearCategory": {
            "type": "boolean",
            "description": "Drops your category override, so Era's own categorization takes over again. Defaults to false."
          },
          "clearMerchantName": {
            "type": "boolean",
            "description": "Drops your merchant-name override, so the name your bank sent comes back. Defaults to false."
          },
          "clearDescription": {
            "type": "boolean",
            "description": "Drops your description override, so the description your bank sent comes back. Defaults to false."
          },
          "reviewStatus": {
            "description": "Mark it needs_review, reviewed, or flagged.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesReviewStatus"
          },
          "clearReviewStatus": {
            "type": "boolean",
            "description": "Drops your review-status override. Defaults to false."
          }
        }
      },
      "HubAPIModelsCreateTagEndpointResponse": {
        "type": "object",
        "description": "Response after creating a tag (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "description": "The created tag.",
            "$ref": "#/components/schemas/HubAPIModelsTagEndpointDto"
          }
        }
      },
      "HubAPIModelsTagEndpointDto": {
        "type": "object",
        "description": "Full tag representation for REST endpoint responses.",
        "additionalProperties": false,
        "required": [
          "tagKey",
          "name",
          "displayName",
          "tagType",
          "actor",
          "version",
          "createdAt",
          "updatedAt",
          "transactionCount"
        ],
        "properties": {
          "tagKey": {
            "type": "string",
            "description": "Gets the projection key (ftag_{hash}).",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "description": "Gets the canonical tag name.",
            "minLength": 1
          },
          "displayName": {
            "type": "string",
            "description": "Gets the display name.",
            "minLength": 1
          },
          "tagType": {
            "description": "Gets the tag type.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesTagType"
          },
          "actor": {
            "type": "string",
            "description": "Gets the actor that created this tag (string representation of ActorReference).",
            "minLength": 1
          },
          "color": {
            "type": "string",
            "description": "Gets the optional color (hex code).",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "description": "Gets the optional icon name.",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "description": "Gets the concurrency version.",
            "format": "int64"
          },
          "createdAt": {
            "type": "string",
            "description": "Gets when the tag was created.",
            "format": "date-time",
            "minLength": 1
          },
          "updatedAt": {
            "type": "string",
            "description": "Gets when the tag was last updated.",
            "format": "date-time",
            "minLength": 1
          },
          "transactionCount": {
            "type": "integer",
            "description": "Gets the number of transaction groups this tag is assigned to (active tag_assigned edges).",
            "format": "int32"
          }
        }
      },
      "IncubatorOSBankingRulesTagType": {
        "type": "string",
        "description": "Distinguishes between tag origin types for display, filtering, and access control.",
        "x-enumNames": [
          "User",
          "System",
          "Auto"
        ],
        "enum": [
          "user",
          "system",
          "auto"
        ]
      },
      "HubAPIModelsCreateTagEndpointRequest": {
        "type": "object",
        "description": "Request to create a new tag (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The tag's canonical name.",
            "maxLength": 50,
            "minLength": 1
          },
          "displayName": {
            "type": "string",
            "description": "Optional display name. Defaults to the canonical name.",
            "maxLength": 50,
            "nullable": true
          },
          "tagType": {
            "description": "user or auto. Defaults to user. system is refused — it is reserved for tags Era creates itself.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesTagType"
          },
          "color": {
            "type": "string",
            "description": "Optional hex color for display.",
            "maxLength": 32,
            "nullable": true
          },
          "icon": {
            "type": "string",
            "description": "Optional icon name.",
            "maxLength": 128,
            "nullable": true
          }
        }
      },
      "HubAPIModelsListTagsEndpointResponse": {
        "type": "object",
        "description": "Response containing a list of tags (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "tags"
        ],
        "properties": {
          "tags": {
            "type": "array",
            "description": "The tags.",
            "items": {
              "$ref": "#/components/schemas/HubAPIModelsTagEndpointDto"
            }
          }
        }
      },
      "HubAPIModelsCreateRuleEndpointResponse": {
        "type": "object",
        "description": "Response after creating a rule (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "rule"
        ],
        "properties": {
          "rule": {
            "description": "The created rule.",
            "$ref": "#/components/schemas/HubAPIModelsRuleEndpointDto"
          },
          "retroactiveStatus": {
            "description": "Retroactive operation status, or null if no retroactive operation was requested.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingServicesRetroactiveOperationStatus"
          },
          "affectedTransactionCount": {
            "type": "integer",
            "description": "Number of transaction groups affected by retroactive application.",
            "format": "int32"
          }
        }
      },
      "HubAPIModelsRuleEndpointDto": {
        "type": "object",
        "description": "Full rule representation for REST endpoint responses.",
        "additionalProperties": false,
        "required": [
          "id",
          "ruleName",
          "filters",
          "actions",
          "actor"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Gets the unique rule identifier."
          },
          "ruleName": {
            "type": "string",
            "description": "Gets the human-readable rule name."
          },
          "description": {
            "type": "string",
            "description": "Gets the optional description.",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "Gets the evaluation priority.",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "description": "Gets whether the rule is active."
          },
          "version": {
            "type": "integer",
            "description": "Gets the concurrency version.",
            "format": "int64"
          },
          "filters": {
            "type": "array",
            "description": "Gets the rule conditions.",
            "items": {
              "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
            }
          },
          "actions": {
            "type": "array",
            "description": "Gets the rule action.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
            }
          },
          "createdAt": {
            "type": "string",
            "description": "Gets when the rule was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "Gets when the rule was last updated.",
            "format": "date-time"
          },
          "actor": {
            "type": "string",
            "description": "Gets the actor that created this rule (string representation of ActorReference)."
          },
          "appliesFrom": {
            "type": "string",
            "description": "Gets the earliest date this rule applies from (inclusive). Null means no lower bound.",
            "format": "date",
            "nullable": true
          },
          "appliesTo": {
            "type": "string",
            "description": "Gets the latest date this rule applies to (inclusive). Null means no upper bound.",
            "format": "date",
            "nullable": true
          },
          "humanReadableSummary": {
            "type": "string",
            "description": "Gets the human-readable summary of this rule's logic.",
            "nullable": true
          },
          "applicationScope": {
            "description": "Gets the application scope controlling whether this rule runs prospectively, retroactively, or both.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleApplicationScope"
          },
          "matchedTransactionCount": {
            "type": "integer",
            "description": "Gets the number of transaction groups this rule has matched (active rule_applied edges).",
            "format": "int32"
          },
          "ruleScope": {
            "description": "Gets the rule scope: Transaction or Pattern.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleScope"
          },
          "source": {
            "description": "Gets the rule source: User or Library.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleSource"
          },
          "triggerMode": {
            "description": "Gets the trigger mode for pattern rules.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleTriggerMode"
          },
          "patternSpec": {
            "description": "Gets the pattern specification for pattern-scope rules. Null for transaction rules.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          "windowDays": {
            "type": "integer",
            "description": "Gets the lookback window in days for pattern evaluation.",
            "format": "int32",
            "nullable": true
          },
          "configVersion": {
            "type": "integer",
            "description": "Gets the configuration version.",
            "format": "int32"
          },
          "userOverrides": {
            "description": "Gets the strongly-typed user overrides for library rule parameters. Null for user-created rules or when no overrides are set.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpecOverrides"
          },
          "lastEvaluatedAt": {
            "type": "string",
            "description": "Gets when the rule was last evaluated by the pattern evaluation orchestrator. Null if never evaluated.",
            "format": "date-time",
            "nullable": true
          },
          "group": {
            "description": "Gets the rule's group for UI categorization: for a library rule, the group its definition belongs\nto; for a custom rule, the group the user assigned. Null for a custom rule with no assigned group.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesLibraryRuleGroup"
          },
          "libraryRuleId": {
            "type": "string",
            "description": "Gets the canonical library rule ID prefix (e.g., sys_transfer_detection).\nNull for user-created rules.",
            "nullable": true
          }
        }
      },
      "IncubatorOSBankingRulesRuleAction": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "set_category": "#/components/schemas/IncubatorOSBankingRulesSetCategoryAction",
            "add_tag": "#/components/schemas/IncubatorOSBankingRulesAddTagAction",
            "rename_merchant": "#/components/schemas/IncubatorOSBankingRulesRenameMerchantAction",
            "hide_transaction": "#/components/schemas/IncubatorOSBankingRulesHideTransactionAction",
            "set_review_status": "#/components/schemas/IncubatorOSBankingRulesSetReviewStatusAction",
            "update_description": "#/components/schemas/IncubatorOSBankingRulesUpdateDescriptionAction",
            "remove_tag": "#/components/schemas/IncubatorOSBankingRulesRemoveTagAction",
            "mark_transfer": "#/components/schemas/IncubatorOSBankingRulesMarkTransferAction"
          }
        },
        "description": "Abstract base for rule actions that are executed when a rule's conditions match.",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesSetCategoryAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesAddTagAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRenameMerchantAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesHideTransactionAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesSetReviewStatusAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesUpdateDescriptionAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRemoveTagAction"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesMarkTransferAction"
          }
        ]
      },
      "IncubatorOSBankingRulesSetCategoryAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that assigns a category to matched transaction groups via the Agent layer.",
            "additionalProperties": false,
            "required": [
              "categoryKey",
              "categoryDisplayName"
            ],
            "properties": {
              "categoryKey": {
                "type": "string",
                "description": "Gets the fcat_* key of the category to assign.",
                "minLength": 1
              },
              "categoryDisplayName": {
                "type": "string",
                "description": "Gets the display name of the category for human-readable representation."
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesAddTagAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that assigns a tag to matched transaction groups.",
            "additionalProperties": false,
            "required": [
              "tagKey",
              "tagDisplayName"
            ],
            "properties": {
              "tagKey": {
                "type": "string",
                "description": "Gets the tag projection key (ftag_*) to assign.",
                "minLength": 1
              },
              "tagDisplayName": {
                "type": "string",
                "description": "Gets the display name of the tag for human-readable representation."
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesRenameMerchantAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that renames the merchant display name on matched transaction groups.",
            "additionalProperties": false,
            "required": [
              "displayName"
            ],
            "properties": {
              "displayName": {
                "type": "string",
                "description": "Gets the display name to assign as the merchant name.",
                "minLength": 1
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesHideTransactionAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that hides matched transaction groups by setting their visibility to\nPrimitiveVisibility.UserExcluded. Hidden transactions are excluded from user-facing\nlists but remain in the database for audit and reconciliation.",
            "additionalProperties": false
          }
        ]
      },
      "IncubatorOSBankingRulesSetReviewStatusAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that sets a review status on matched transaction groups.",
            "additionalProperties": false,
            "required": [
              "status"
            ],
            "properties": {
              "status": {
                "description": "Gets the review status to assign.",
                "$ref": "#/components/schemas/IncubatorOSBankingRulesReviewStatus"
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesUpdateDescriptionAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that updates the description on matched transaction groups.",
            "additionalProperties": false,
            "required": [
              "description"
            ],
            "properties": {
              "description": {
                "type": "string",
                "description": "Gets the description text to set on the transaction group.",
                "minLength": 1
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesRemoveTagAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that removes a tag from matched transaction groups.",
            "additionalProperties": false,
            "required": [
              "tagKey",
              "tagDisplayName"
            ],
            "properties": {
              "tagKey": {
                "type": "string",
                "description": "Gets the tag projection key (ftag_*) to remove.",
                "minLength": 1
              },
              "tagDisplayName": {
                "type": "string",
                "description": "Gets the display name of the tag for human-readable representation."
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesMarkTransferAction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
          },
          {
            "type": "object",
            "description": "Action that marks matched transaction groups as transfers.",
            "additionalProperties": false,
            "properties": {
              "counterpartAccountGroupKey": {
                "type": "string",
                "description": "Gets the optional counterpart account group key for transfer linking.\nWhen provided, the system can suggest matching the transfer to a specific account.",
                "nullable": true
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesRuleApplicationScope": {
        "type": "string",
        "description": "Controls whether a rule runs during ETL ingestion (prospective), retroactive apply, or both.",
        "x-enumNames": [
          "Prospective",
          "Retroactive",
          "Both"
        ],
        "enum": [
          "prospective",
          "retroactive",
          "both"
        ]
      },
      "IncubatorOSBankingRulesRuleScope": {
        "type": "string",
        "description": "Discriminates between per-transaction rules and cross-transaction pattern rules.",
        "x-enumNames": [
          "Transaction",
          "Pattern"
        ],
        "enum": [
          "transaction",
          "pattern"
        ]
      },
      "IncubatorOSBankingRulesRuleSource": {
        "type": "string",
        "description": "Identifies the origin of a rule: user-created or library-seeded.",
        "x-enumNames": [
          "None",
          "User",
          "Library"
        ],
        "enum": [
          "none",
          "user",
          "library"
        ]
      },
      "IncubatorOSBankingRulesRuleTriggerMode": {
        "type": "string",
        "description": "Controls when a pattern rule is evaluated.",
        "x-enumNames": [
          "OnEachTransaction",
          "OnBatchComplete",
          "OnSchedule",
          "OnDemand"
        ],
        "enum": [
          "onEachTransaction",
          "onBatchComplete",
          "onSchedule",
          "onDemand"
        ]
      },
      "IncubatorOSBankingRulesPatternSpec": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "pair_match": "#/components/schemas/IncubatorOSBankingRulesPairMatchSpec",
            "frequency_threshold": "#/components/schemas/IncubatorOSBankingRulesFrequencyThresholdSpec",
            "recurring_group": "#/components/schemas/IncubatorOSBankingRulesRecurringGroupSpec",
            "statistical_anomaly": "#/components/schemas/IncubatorOSBankingRulesStatisticalAnomalySpec"
          }
        },
        "description": "Abstract base for the pattern specification discriminated union. Each concrete variant defines\nthe algorithm and parameters for a specific pattern detection strategy.",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPairMatchSpec"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesFrequencyThresholdSpec"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRecurringGroupSpec"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesStatisticalAnomalySpec"
          }
        ]
      },
      "IncubatorOSBankingRulesPairMatchSpec": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          {
            "type": "object",
            "description": "Pattern specification for transfer detection via exact-match pair detection.",
            "additionalProperties": false,
            "properties": {
              "amountToleranceFraction": {
                "type": "number",
                "description": "Gets the fractional tolerance for amount matching.\n0.0 = exact match, 0.03 = 3% tolerance. Valid range: [0.0, 0.5].",
                "format": "double"
              },
              "requireDifferentAccounts": {
                "type": "boolean",
                "description": "Gets whether the two transactions must be in different accounts."
              },
              "requireOppositeDirection": {
                "type": "boolean",
                "description": "Gets whether the two transactions must have opposite cash flow direction\n(one inflow, one outflow)."
              },
              "minimumConfidence": {
                "type": "number",
                "description": "Gets the minimum confidence score (0.0-1.0) for a match to be emitted.",
                "format": "double"
              },
              "detectionTier": {
                "type": "integer",
                "description": "Gets the detection tier for priority ordering when multiple pair match rules exist.\nLower tiers have higher priority (Tier 1 exact match wins over Tier 3 near match).",
                "format": "int32"
              },
              "maxPairProximityDays": {
                "type": "integer",
                "description": "Gets the maximum number of days apart two transactions can be to form a pair.\nPairs with EffectiveTransactionDate values further apart than this threshold\nare skipped, even if amounts match. Default: 10 days.",
                "format": "int32"
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesFrequencyThresholdSpec": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          {
            "type": "object",
            "description": "Pattern specification for user-defined frequency threshold detection.\nDetects when a minimum number of matching transactions occur within a time window.",
            "additionalProperties": false,
            "properties": {
              "minOccurrences": {
                "type": "integer",
                "description": "Gets the minimum number of occurrences required to trigger a match. Must be >= 1.",
                "format": "int32"
              },
              "groupBy": {
                "description": "Gets the optional grouping dimension for counting occurrences.\nMerchant groups by merchant name,\nCategory groups by category key,\nnull counts all matching transactions.",
                "nullable": true,
                "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternGroupBy"
              },
              "countingWindowDays": {
                "type": "integer",
                "description": "Gets the optional sub-window width (in days) for counting occurrences. When set, only\ntransactions within a CountingWindowDays-wide sub-window are counted instead of\nthe full lookback range. When null, all windowFacets are counted (existing behavior).",
                "format": "int32",
                "nullable": true
              },
              "windowMode": {
                "description": "Gets the window counting mode that determines how CountingWindowDays is applied.\nDefaults to FixedRecent (count in the most recent sub-window).\nIgnored when CountingWindowDays is null.",
                "$ref": "#/components/schemas/IncubatorOSBankingRulesFrequencyWindowMode"
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesPatternGroupBy": {
        "type": "string",
        "description": "Grouping dimension for pattern rule analysis. Determines how transactions are aggregated\nfor frequency counting (FrequencyThresholdSpec) or statistical distribution\nbuilding (StatisticalAnomalySpec).",
        "x-enumNames": [
          "Merchant",
          "Category"
        ],
        "enum": [
          "merchant",
          "category"
        ]
      },
      "IncubatorOSBankingRulesFrequencyWindowMode": {
        "type": "string",
        "description": "Determines how FrequencyThresholdStrategy counts matching transactions\nwithin the CountingWindowDays sub-window.",
        "x-enumNames": [
          "FixedRecent",
          "SlidingPeak"
        ],
        "enum": [
          "fixed_recent",
          "sliding_peak"
        ]
      },
      "IncubatorOSBankingRulesRecurringGroupSpec": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          {
            "type": "object",
            "description": "Pattern specification for recurring transaction group detection.\nDetects periodic transaction groups by merchant similarity and amount patterns.",
            "additionalProperties": false,
            "properties": {
              "minOccurrences": {
                "type": "integer",
                "description": "Gets the minimum number of occurrences required for recurrence detection. Must be >= 3.",
                "format": "int32"
              },
              "amountToleranceFraction": {
                "type": "number",
                "description": "Gets the amount similarity tolerance as a fraction (0.20 = 20%).\nUsed for rolling tolerance comparison between consecutive occurrences.",
                "format": "decimal"
              },
              "merchantMatchMode": {
                "description": "Gets the merchant matching mode. Trigram for fuzzy matching via\nTrigramSimilarity,\nExact for strict string equality.",
                "$ref": "#/components/schemas/IncubatorOSBankingRulesMerchantMatchMode"
              },
              "maxIntervalCoefficientOfVariation": {
                "type": "number",
                "description": "Gets the maximum coefficient of variation for inter-transaction intervals\nto be considered periodic. Lower values require stricter periodicity (0.30 = 30%).",
                "format": "double"
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesMerchantMatchMode": {
        "type": "string",
        "description": "Merchant matching strategy for recurring group detection (RecurringGroupSpec).\nControls how merchant names are compared when grouping transactions for periodicity analysis.",
        "x-enumNames": [
          "Trigram",
          "Exact"
        ],
        "enum": [
          "trigram",
          "exact"
        ]
      },
      "IncubatorOSBankingRulesStatisticalAnomalySpec": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          {
            "type": "object",
            "description": "Pattern specification for statistical anomaly detection.\nDetects amount anomalies via z-score analysis against historical merchant/category distributions.",
            "additionalProperties": false,
            "properties": {
              "minZScore": {
                "type": "number",
                "description": "Gets the minimum z-score threshold (absolute value) for anomaly detection. Must be > 0.",
                "format": "double"
              },
              "minHistoryCount": {
                "type": "integer",
                "description": "Gets the minimum historical data points required for statistical validity.",
                "format": "int32"
              },
              "groupBy": {
                "description": "Gets the grouping dimension for the historical distribution.\nMerchant groups by merchant name,\nCategory groups by category key.",
                "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternGroupBy"
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesPatternSpecOverrides": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "pair_match": "#/components/schemas/IncubatorOSBankingRulesPairMatchOverrides",
            "frequency_threshold": "#/components/schemas/IncubatorOSBankingRulesFrequencyThresholdOverrides",
            "recurring_group": "#/components/schemas/IncubatorOSBankingRulesRecurringGroupOverrides",
            "statistical_anomaly": "#/components/schemas/IncubatorOSBankingRulesStatisticalAnomalyOverrides"
          }
        },
        "description": "Abstract base for the pattern specification overrides discriminated union. Each concrete variant\nmirrors a PatternSpec subtype and carries only the user-overridable parameters\nas nullable properties.",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPairMatchOverrides"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesFrequencyThresholdOverrides"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRecurringGroupOverrides"
          },
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesStatisticalAnomalyOverrides"
          }
        ]
      },
      "IncubatorOSBankingRulesPairMatchOverrides": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpecOverrides"
          },
          {
            "type": "object",
            "description": "User overrides for PairMatchSpec parameters.",
            "additionalProperties": false,
            "properties": {
              "amountToleranceFraction": {
                "type": "number",
                "description": "Gets the overridden amount tolerance fraction. Valid range: [0.0, 0.5]. Null means no override.",
                "format": "double",
                "nullable": true
              },
              "minimumConfidence": {
                "type": "number",
                "description": "Gets the overridden minimum confidence score. Valid range: [0.0, 1.0]. Null means no override.",
                "format": "double",
                "nullable": true
              },
              "maxPairProximityDays": {
                "type": "integer",
                "description": "Gets the overridden maximum pair proximity in days. Must be >= 1. Null means no override.",
                "format": "int32",
                "nullable": true
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesFrequencyThresholdOverrides": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpecOverrides"
          },
          {
            "type": "object",
            "description": "User overrides for FrequencyThresholdSpec parameters.",
            "additionalProperties": false,
            "properties": {
              "minOccurrences": {
                "type": "integer",
                "description": "Gets the overridden minimum occurrences. Must be >= 1. Null means no override.",
                "format": "int32",
                "nullable": true
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesRecurringGroupOverrides": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpecOverrides"
          },
          {
            "type": "object",
            "description": "User overrides for RecurringGroupSpec parameters.",
            "additionalProperties": false,
            "properties": {
              "amountToleranceFraction": {
                "type": "number",
                "description": "Gets the overridden amount tolerance fraction. Valid range: [0, 1]. Null means no override.",
                "format": "decimal",
                "nullable": true
              },
              "minOccurrences": {
                "type": "integer",
                "description": "Gets the overridden minimum occurrences. Must be >= 3. Null means no override.",
                "format": "int32",
                "nullable": true
              },
              "maxIntervalCoefficientOfVariation": {
                "type": "number",
                "description": "Gets the overridden maximum interval coefficient of variation. Valid range: (0, 1) exclusive. Null means no override.",
                "format": "double",
                "nullable": true
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesStatisticalAnomalyOverrides": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpecOverrides"
          },
          {
            "type": "object",
            "description": "User overrides for StatisticalAnomalySpec parameters.",
            "additionalProperties": false,
            "properties": {
              "minZScore": {
                "type": "number",
                "description": "Gets the overridden minimum z-score threshold. Must be > 0. Null means no override.",
                "format": "double",
                "nullable": true
              },
              "minHistoryCount": {
                "type": "integer",
                "description": "Gets the overridden minimum history count. Must be >= 1. Null means no override.",
                "format": "int32",
                "nullable": true
              }
            }
          }
        ]
      },
      "IncubatorOSBankingRulesLibraryRuleGroup": {
        "type": "string",
        "description": "Classifies a rule into one of six user-facing categories for UI grouping and discoverability.",
        "x-enumNames": [
          "SpendingHabits",
          "ProblemsAndAnomalies",
          "IncomeAndTransfers",
          "SubscriptionsAndRecurring",
          "TaxAndRecordKeeping",
          "CategoryMapping"
        ],
        "enum": [
          "spendingHabits",
          "problemsAndAnomalies",
          "incomeAndTransfers",
          "subscriptionsAndRecurring",
          "taxAndRecordKeeping",
          "categoryMapping"
        ]
      },
      "IncubatorOSBankingServicesRetroactiveOperationStatus": {
        "type": "string",
        "description": "What a request that asked for its rule change to reach existing transactions can say about them when it answers.",
        "x-enumNames": [
          "InProgress"
        ],
        "enum": [
          "in_progress"
        ]
      },
      "HubAPIModelsCreateRuleEndpointRequest": {
        "type": "object",
        "description": "Request to create a new automation rule (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "ruleName",
          "filters",
          "actions"
        ],
        "properties": {
          "ruleName": {
            "type": "string",
            "description": "A name for the rule."
          },
          "description": {
            "type": "string",
            "description": "An optional note on what the rule is for.",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "Where the rule runs among your others: higher runs first, and when two rules would set the same thing on one transaction, the higher one wins. Defaults to zero.",
            "format": "int32"
          },
          "filters": {
            "type": "array",
            "description": "The conditions, as a list of typed filter objects — each names its kind in a type field. A transaction must match every one; nest and, or and not filters to combine them otherwise. At least one. An account_type filter that lists account types works only on a pattern rule; on a transaction rule it's refused with a 400.",
            "items": {
              "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
            }
          },
          "actions": {
            "type": "array",
            "description": "What happens to each transaction the rule matches, as a list of typed action objects: set a category, add or remove a tag, rename the merchant, rewrite the description, set a review status, hide it, or mark it as a transfer. At least one, and no more than one of each kind except the tag actions. Each tag must already exist, and can appear once.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
            }
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the rule starts switched on. Defaults to true."
          },
          "applyRetroactively": {
            "type": "boolean",
            "description": "Also run the rule over the transactions you already have, not only new ones. Only takes effect when the rule starts switched on. Defaults to false."
          },
          "appliesFrom": {
            "type": "string",
            "description": "Only transactions on or after this date.",
            "format": "date",
            "nullable": true
          },
          "appliesTo": {
            "type": "string",
            "description": "Only transactions on or before this date.",
            "format": "date",
            "nullable": true
          },
          "applicationScope": {
            "description": "When the rule runs: prospective for new transactions only, retroactive when it is run over existing ones, or both. Defaults to both.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleApplicationScope"
          },
          "ruleScope": {
            "description": "transaction, the default, matches transactions one at a time. pattern matches a pattern across several — a recurring charge, a pair of transfers — described by patternSpec.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleScope"
          },
          "triggerMode": {
            "description": "For a pattern rule, when to check for the pattern: onEachTransaction, onBatchComplete, onSchedule or onDemand. Defaults to onEachTransaction.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleTriggerMode"
          },
          "patternSpec": {
            "description": "For a pattern rule, the pattern to look for, as a typed object. Required when ruleScope is pattern.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          "windowDays": {
            "type": "integer",
            "description": "For a pattern rule, how many days back to look for the rest of the pattern, between 1 and 365. Required when ruleScope is pattern.",
            "format": "int32",
            "maximum": 365.0,
            "minimum": 1.0,
            "nullable": true
          },
          "windowLookaheadDays": {
            "type": "integer",
            "description": "For a pattern rule, how many days forward to look for the rest of the pattern.",
            "format": "int32",
            "nullable": true
          },
          "windowExcludeTriggerAccount": {
            "type": "boolean",
            "description": "For a pattern rule, leave the account of the transaction that started the check out of the search. Defaults to false."
          },
          "group": {
            "description": "The group to file the rule under: spendingHabits, problemsAndAnomalies, incomeAndTransfers, subscriptionsAndRecurring or taxAndRecordKeeping. Leave it out to file it under none. categoryMapping is reserved for rules Era makes itself, and is refused with a 400.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesLibraryRuleGroup"
          }
        }
      },
      "HubAPIModelsDeleteRuleEndpointResponse": {
        "type": "object",
        "description": "Response after deleting a rule (endpoint-specific).",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether the deletion was successful."
          },
          "retroactiveStatus": {
            "description": "Retroactive operation status, or null if no retroactive operation was requested.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingServicesRetroactiveOperationStatus"
          },
          "affectedTransactionCount": {
            "type": "integer",
            "description": "Number of transaction groups affected by retroactive revert.",
            "format": "int32"
          }
        }
      },
      "HubAPIModelsSetRuleActiveEndpointResponse": {
        "type": "object",
        "description": "Response after enabling or disabling a rule (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "rule"
        ],
        "properties": {
          "rule": {
            "description": "The updated rule.",
            "$ref": "#/components/schemas/HubAPIModelsRuleEndpointDto"
          },
          "retroactiveStatus": {
            "description": "Retroactive operation status, or null if no retroactive operation was requested.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingServicesRetroactiveOperationStatus"
          },
          "affectedTransactionCount": {
            "type": "integer",
            "description": "Number of transaction groups affected by retroactive revert.",
            "format": "int32"
          }
        }
      },
      "HubAPIModelsListRulesEndpointResponse": {
        "type": "object",
        "description": "Response containing a list of rules (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "rules"
        ],
        "properties": {
          "rules": {
            "type": "array",
            "description": "The rules.",
            "items": {
              "$ref": "#/components/schemas/HubAPIModelsRuleEndpointDto"
            }
          }
        }
      },
      "HubAPIModelsPreviewRuleEndpointResponse": {
        "type": "object",
        "description": "Response for a rule preview dry-run (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "matchingGroupKeys",
          "sampleMatches"
        ],
        "properties": {
          "matchCount": {
            "type": "integer",
            "description": "Gets the number of transaction groups that matched the preview filters.",
            "format": "int32"
          },
          "totalEvaluated": {
            "type": "integer",
            "description": "Gets the total number of transaction groups evaluated.",
            "format": "int32"
          },
          "matchingGroupKeys": {
            "type": "array",
            "description": "Gets the matching group keys (capped at 50).",
            "items": {
              "type": "string"
            }
          },
          "sampleMatches": {
            "type": "array",
            "description": "Gets sample matches with summary data (capped at 10).",
            "items": {
              "$ref": "#/components/schemas/HubAPIModelsPreviewMatchSampleDto"
            }
          }
        }
      },
      "HubAPIModelsPreviewMatchSampleDto": {
        "type": "object",
        "description": "A sample match from a rule preview dry-run.",
        "additionalProperties": false,
        "required": [
          "groupKey"
        ],
        "properties": {
          "groupKey": {
            "type": "string",
            "description": "Gets the transaction group's primary member key."
          },
          "detectionReason": {
            "type": "string",
            "description": "Gets the human-readable detection reason for attribution (pattern rule preview).",
            "nullable": true
          },
          "merchantName": {
            "type": "string",
            "description": "Gets the effective merchant name (transaction rule preview).",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Gets the effective amount.",
            "format": "decimal",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "Gets the effective currency code.",
            "nullable": true
          },
          "transactionDate": {
            "type": "string",
            "description": "Gets the effective transaction date.",
            "format": "date",
            "nullable": true
          }
        }
      },
      "HubAPIModelsPreviewRuleEndpointRequest": {
        "type": "object",
        "description": "Request to preview a rule's filter evaluation (endpoint-specific).\nFor transaction rules, evaluates filters against recent transactions (last 90 days).\nFor pattern rules, performs a dry-run evaluation against historical data.",
        "additionalProperties": false,
        "required": [
          "filters"
        ],
        "properties": {
          "filters": {
            "type": "array",
            "description": "The conditions, as a list of typed filter objects — each names its kind in a type field. A transaction must match every one; nest and, or and not filters to combine them otherwise. At least one. An account_type filter that lists account types works only on a pattern rule; on a transaction rule it's refused with a 400.",
            "items": {
              "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
            }
          },
          "ruleScope": {
            "description": "transaction, the default, matches transactions one at a time. pattern matches a pattern across several — a recurring charge, a pair of transfers — described by patternSpec.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleScope"
          },
          "patternSpec": {
            "description": "For a pattern rule, the pattern to look for, as a typed object. Required when ruleScope is pattern.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpec"
          },
          "windowDays": {
            "type": "integer",
            "description": "For a pattern rule, how many days back to look for the rest of the pattern, between 1 and 365. Required when ruleScope is pattern.",
            "format": "int32",
            "maximum": 365.0,
            "minimum": 1.0,
            "nullable": true
          }
        }
      },
      "HubAPIModelsUpdateRuleEndpointResponse": {
        "type": "object",
        "description": "Response after updating a rule (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "rule"
        ],
        "properties": {
          "rule": {
            "description": "The updated rule.",
            "$ref": "#/components/schemas/HubAPIModelsRuleEndpointDto"
          },
          "retroactiveStatus": {
            "description": "Retroactive operation status, or null if no retroactive operation was requested.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingServicesRetroactiveOperationStatus"
          },
          "affectedTransactionCount": {
            "type": "integer",
            "description": "Number of transaction groups affected by retroactive application.",
            "format": "int32"
          }
        }
      },
      "HubAPIModelsUpdateRuleEndpointRequest": {
        "type": "object",
        "description": "Request to update an existing automation rule (endpoint-specific).",
        "additionalProperties": false,
        "required": [
          "ruleName",
          "filters",
          "actions"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "description": "The rule's version as you last read it. It must match the rule's current version, or the call is refused with a 409 — so leaving it out doesn't skip the check, it fails it.",
            "format": "int64"
          },
          "ruleName": {
            "type": "string",
            "description": "A name for the rule."
          },
          "description": {
            "type": "string",
            "description": "An optional note on what the rule is for.",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "Where the rule runs among your others: higher runs first, and when two rules would set the same thing on one transaction, the higher one wins. Defaults to zero.",
            "format": "int32"
          },
          "filters": {
            "type": "array",
            "description": "The conditions, as a list of typed filter objects — each names its kind in a type field. A transaction must match every one; nest and, or and not filters to combine them otherwise. At least one. An account_type filter that lists account types works only on a pattern rule; on a transaction rule it's refused with a 400.",
            "items": {
              "$ref": "#/components/schemas/ForgePrimitivesFiltersTransactionFilter"
            }
          },
          "actions": {
            "type": "array",
            "description": "What happens to each transaction the rule matches, as a list of typed action objects: set a category, add or remove a tag, rename the merchant, rewrite the description, set a review status, hide it, or mark it as a transfer. At least one, and no more than one of each kind except the tag actions. Each tag must already exist, and can appear once.",
            "items": {
              "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleAction"
            }
          },
          "applyRetroactively": {
            "type": "boolean",
            "description": "Re-run the changed rule over the transactions you already have, undoing what the old version did to them first. Defaults to false."
          },
          "appliesFrom": {
            "type": "string",
            "description": "Only transactions on or after this date.",
            "format": "date",
            "nullable": true
          },
          "appliesTo": {
            "type": "string",
            "description": "Only transactions on or before this date.",
            "format": "date",
            "nullable": true
          },
          "applicationScope": {
            "description": "When the rule runs: prospective for new transactions only, retroactive when it is run over existing ones, or both. Defaults to both.",
            "$ref": "#/components/schemas/IncubatorOSBankingRulesRuleApplicationScope"
          },
          "userOverrides": {
            "description": "On a rule from Era's library, your own values for the settings it lets you tune, as a typed object of the same kind as the rule's pattern. Ignored on rules you made.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesPatternSpecOverrides"
          },
          "group": {
            "description": "The group to file the rule under, from the same list create takes. The update replaces the whole definition, so leaving it out clears the rule's group — send its current group to keep it. On a rule from Era's library, leave it out or send the group it already has.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingRulesLibraryRuleGroup"
          }
        }
      },
      "IncubatorOSBankingHandlersManageUserCategoriesResponse": {
        "type": "object",
        "description": "Response from a category mutation operation.",
        "additionalProperties": false,
        "required": [
          "categoryKey",
          "overlayProjectionKey",
          "action"
        ],
        "properties": {
          "categoryKey": {
            "type": "string",
            "description": "Gets the category key that was created or mutated."
          },
          "overlayProjectionKey": {
            "type": "string",
            "description": "Gets the overlay projection key (ucov_*)."
          },
          "action": {
            "description": "Gets the action that was performed.",
            "$ref": "#/components/schemas/IncubatorOSBankingHandlersManageUserCategoriesAction"
          },
          "isQuotaExceeded": {
            "type": "boolean",
            "description": "Gets whether the operation exceeded the entitlement limit."
          },
          "quotaExceededMessage": {
            "type": "string",
            "description": "Gets the quota exceeded reason message. Null unless IsQuotaExceeded is true.",
            "nullable": true
          },
          "createdMappingRuleKeys": {
            "type": "array",
            "description": "Gets the rule_* projection keys of any auto-created mapping rules.\nNull when no mapping rules were created (e.g., for display-only mutations).",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "retroactiveAffectedCount": {
            "type": "integer",
            "description": "Gets the number of transactions this mutation had already changed when it answered. Only a\nReset changes transactions before answering, when it clears overrides\nleft pointing at removed categories.",
            "format": "int32"
          },
          "mergeSourcesHiddenCount": {
            "type": "integer",
            "description": "Gets the number of merge source categories successfully hidden. Only populated for\nMergeCategories. When less than\nMergeSourcesTotalCount, some source categories remain visible (cosmetic;\nmapping rules still route transactions correctly).",
            "format": "int32"
          },
          "mergeSourcesTotalCount": {
            "type": "integer",
            "description": "Gets the total number of merge source categories requested to be hidden. Only populated for\nMergeCategories.",
            "format": "int32"
          },
          "meterGate": {
            "description": "Gets the meter-gate facts for a quota-exceeded denial, so a client derives the lifting tier from\nthe catalog. Null unless IsQuotaExceeded is true.",
            "nullable": true,
            "$ref": "#/components/schemas/ForgePrimitivesMeterGateContext"
          },
          "retroactiveStatus": {
            "description": "Gets the status of the retroactive work this mutation recorded for its mapping rules: applying the rules it\ncreated to existing transactions, or reverting the rules it deleted.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingServicesRetroactiveOperationStatus"
          }
        }
      },
      "IncubatorOSBankingHandlersManageUserCategoriesAction": {
        "type": "string",
        "description": "Discriminated actions for the polymorphic ManageUserCategoriesCommand.",
        "x-enumNames": [
          "Create",
          "Update",
          "Hide",
          "Unhide",
          "Delete",
          "MergeCategories",
          "Reorder",
          "Reset"
        ],
        "enum": [
          "create",
          "update",
          "hide",
          "unhide",
          "delete",
          "mergeCategories",
          "reorder",
          "reset"
        ]
      },
      "HubAPIModelsCreateCategoryEndpointRequest": {
        "type": "object",
        "description": "Request to create a new user-defined category (endpoint wire format).\nMapped to ManageUserCategoriesCommand before handler delegation.",
        "additionalProperties": false,
        "required": [
          "slug",
          "parentCategoryKey",
          "name"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "description": "URL-safe identifier — lowercase letters, numbers, and hyphens, 2 to 50 characters."
          },
          "parentCategoryKey": {
            "type": "string",
            "description": "The fcat_ key of the category this one nests under."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "description": {
            "type": "string",
            "description": "Optional description.",
            "nullable": true
          },
          "iconName": {
            "type": "string",
            "description": "Optional icon name.",
            "nullable": true
          },
          "spendingType": {
            "description": "Optional spending classification.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingCategoriesSpendingType"
          },
          "displayOrder": {
            "type": "integer",
            "description": "Optional sort position among its siblings.",
            "nullable": true
          },
          "assignmentEligibility": {
            "description": "Optional rule for which transactions this category can be assigned to.",
            "nullable": true,
            "$ref": "#/components/schemas/IncubatorOSBankingCategoriesCategoryAssignmentEligibility"
          },
          "sourceSystemKeys": {
            "type": "array",
            "description": "Optional list of existing category keys whose transactions should be routed here going forward.",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "applyRetroactively": {
            "type": "boolean",
            "description": "When true, re-evaluates past transactions against the new routing too. Defaults to false."
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "An Era API key, sent in the X-API-Key header. Keys start with fmk_ and are created in the Era dashboard."
      },
      "ApiKeyBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same Era API key, sent as Authorization: Bearer fmk_…. Send it one way or the other, not both."
      }
    }
  },
  "x-era-rate-limits": {
    "tiers": [
      {
        "slot": "see",
        "dailyLimit": 100,
        "minuteLimit": 10
      },
      {
        "slot": "organize",
        "dailyLimit": null,
        "minuteLimit": 30
      },
      {
        "slot": "automate",
        "dailyLimit": null,
        "minuteLimit": 60
      },
      {
        "slot": "optimize",
        "dailyLimit": null,
        "minuteLimit": 60
      },
      {
        "slot": "operate",
        "dailyLimit": null,
        "minuteLimit": 120
      }
    ]
  },
  "x-era-key-lifetimes": {
    "tiers": [
      {
        "slot": "see",
        "maxDays": 90
      },
      {
        "slot": "organize",
        "maxDays": 365
      },
      {
        "slot": "automate",
        "maxDays": 365
      },
      {
        "slot": "optimize",
        "maxDays": 365
      },
      {
        "slot": "operate",
        "maxDays": 365
      }
    ]
  },
  "x-era-rule-preview": {
    "windowDays": 90,
    "maxCandidates": 5000,
    "maxMatchingKeys": 50,
    "maxSamples": 10
  }
}