{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kryptos-io/json-schema/kryptos-io-get-v1-integrations-response-schema.json",
  "title": "GetV1IntegrationsResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kryptos-io-api-openapi-generated.yml#/components/schemas/GetV1IntegrationsResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "workspaceId": {
      "type": "string"
    },
    "providerId": {
      "type": "string"
    },
    "primaryPortfolioId": {
      "type": "string"
    },
    "alias": {
      "type": "string"
    },
    "accountStatus": {
      "type": "string"
    },
    "credentialKind": {
      "type": "string"
    },
    "syncEnabled": {
      "type": "boolean"
    },
    "isCustomWallet": {
      "type": "boolean"
    },
    "provider": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "publicName": {
          "type": "string"
        },
        "logo": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "lastSyncId": {
      "type": "string"
    },
    "lastSyncedAt": {
      "type": "string",
      "format": "date-time"
    },
    "latestSync": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "syncKind": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "progressPercent": {
          "type": "integer"
        },
        "recordsProcessed": {
          "type": "integer"
        },
        "recordsFailed": {
          "type": "integer"
        },
        "limitReached": {
          "type": "boolean"
        },
        "completedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "txnCounts": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "byType": {
          "type": "object",
          "properties": {
            "trade": {
              "type": "integer"
            },
            "deposit": {
              "type": "integer"
            }
          }
        }
      }
    },
    "netValue": {
      "type": "integer"
    },
    "baseCurrency": {
      "type": "string"
    },
    "metadataUpdatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "hasMissingBalance": {
      "type": "boolean"
    },
    "canResync": {
      "type": "boolean"
    },
    "assetLogos": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "assetCount": {
      "type": "integer"
    },
    "txnCount": {
      "type": "integer"
    },
    "credentials": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "deletedAt": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}