{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simpleeasytransactions-com/json-schema/simpleeasytransactions-com-wallet-recovery-bundle-schema.json",
  "title": "WalletRecoveryBundle",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/simpleeasytransactions-com-openapi.json#/components/schemas/WalletRecoveryBundle",
  "type": "object",
  "properties": {
    "object": {
      "const": "wallet_recovery_bundle"
    },
    "wallet": {
      "type": "string",
      "description": "The self-custody wallet (swl_…)."
    },
    "custody": {
      "const": "self"
    },
    "state": {
      "enum": [
        "pending_acceptance",
        "active",
        "frozen",
        "closed"
      ]
    },
    "livemode": {
      "type": "boolean"
    },
    "chain": {
      "type": "string",
      "description": "SET's network name for the wallet."
    },
    "providerChain": {
      "type": "string",
      "description": "The provider's chain value (staging uses the provider's test networks)."
    },
    "caip2": {
      "anyOf": [
        {
          "type": "string",
          "description": "The chain's CAIP-2 id; null where SET states none."
        },
        {
          "type": "null"
        }
      ]
    },
    "chainId": {
      "anyOf": [
        {
          "type": "integer",
          "description": "The EVM chain id; null off EVM."
        },
        {
          "type": "null"
        }
      ]
    },
    "address": {
      "anyOf": [
        {
          "type": "string",
          "description": "Shown only while the wallet is active (its owners' setup read back as accepted)."
        },
        {
          "type": "null"
        }
      ]
    },
    "model": {
      "type": "object",
      "properties": {
        "type": {
          "const": "provider_server_wallet"
        },
        "smartContract": {
          "const": false,
          "description": "Not a Safe or other smart-contract wallet: no Safe (EIP-712) transaction exists for it."
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "smartContract",
        "note"
      ]
    },
    "provider": {
      "type": "object",
      "properties": {
        "appId": {
          "anyOf": [
            {
              "type": "string",
              "description": "The wallet provider's app id for SET."
            },
            {
              "type": "null"
            }
          ]
        },
        "walletId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "ownerQuorumId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "policyId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "appId",
        "walletId",
        "ownerQuorumId",
        "policyId"
      ]
    },
    "owners": {
      "type": "object",
      "properties": {
        "threshold": {
          "type": "integer",
          "minimum": 1
        },
        "members": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "member": {
                "type": "string",
                "description": "pmb_…"
              },
              "acceptedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "member",
              "acceptedAt"
            ]
          }
        },
        "publicKeys": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "A P-256 public key (base64 SPKI) the business holds the private half of."
          },
          "description": "Public halves only."
        }
      },
      "required": [
        "threshold",
        "members",
        "publicKeys"
      ]
    },
    "limits": {
      "type": "object",
      "properties": {
        "assets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "perPayment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "perDay": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "assets",
        "perPayment",
        "perDay"
      ]
    },
    "recovery": {
      "type": "object",
      "properties": {
        "moveFunds": {
          "type": "string"
        },
        "exportPrivateKey": {
          "type": "object",
          "properties": {
            "how": {
              "type": "string"
            },
            "availableThroughSet": {
              "type": "boolean"
            }
          },
          "required": [
            "how",
            "availableThroughSet"
          ]
        },
        "dependsOnSet": {
          "type": "string",
          "description": "What still needs SET: the provider app's credentials, which SET holds. SET relays; it cannot authorize."
        }
      },
      "required": [
        "moveFunds",
        "exportPrivateKey",
        "dependsOnSet"
      ]
    },
    "secrets": {
      "type": "string",
      "description": "Always says there are none: the bundle holds no private key, seed phrase, app secret, session or signature."
    },
    "sandbox": {
      "type": "boolean"
    }
  },
  "required": [
    "object",
    "wallet",
    "custody",
    "state",
    "livemode",
    "chain",
    "providerChain",
    "caip2",
    "chainId",
    "address",
    "model",
    "provider",
    "owners",
    "limits",
    "recovery",
    "secrets"
  ]
}