CTZN.network Schemas Video Devlog

DBMethod calls view json-view

ctzn.network/dbmethod-calls-view

List dbmethod calls and their results for a given database.

{
  "id": "ctzn.network/dbmethod-calls-view",
  "title": "DBMethod calls view",
  "description": "List dbmethod calls and their results for a given database.",
  "type": "json-view",
  "parameters": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "array",
    "minItems": 1,
    "additionalItems": false,
    "items": [
      {
        "type": "string"
      },
      {
        "type": "object",
        "properties": {
          "limit": {
            "type": "number"
          },
          "lt": {
            "type": "string"
          }
        }
      }
    ]
  },
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "calls"
    ],
    "properties": {
      "calls": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "seq",
            "key",
            "url",
            "value"
          ],
          "properties": {
            "seq": {
              "type": "number"
            },
            "key": {
              "type": "string"
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "value": {
              "type": "object",
              "required": [
                "database",
                "method",
                "createdAt"
              ],
              "properties": {
                "database": {
                  "type": "object",
                  "required": [
                    "dbUrl",
                    "userId"
                  ],
                  "properties": {
                    "dbUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "userId": {
                      "type": "string",
                      "pattern": ".+@.+"
                    }
                  }
                },
                "method": {
                  "type": "string"
                },
                "args": {
                  "type": "object"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            },
            "result": {
              "type": "object",
              "required": [
                "seq",
                "key",
                "url",
                "value"
              ],
              "properties": {
                "seq": {
                  "type": "number"
                },
                "key": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "value": {
                  "type": "object",
                  "required": [
                    "call",
                    "code",
                    "createdAt"
                  ],
                  "properties": {
                    "call": {
                      "type": "object",
                      "required": [
                        "dbUrl",
                        "authorId"
                      ],
                      "properties": {
                        "dbUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "authorId": {
                          "type": "string",
                          "pattern": ".+@.+"
                        }
                      }
                    },
                    "code": {
                      "type": "string"
                    },
                    "details": {
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Schemas