{
  "/health": {
    "description": null,
    "args": {},
    "returns": "dict"
  },
  "/job/create": {
    "description": null,
    "args": {
      "create_request": {
        "type": {
          "type": "model",
          "name": "JobCreate",
          "schema": {
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Name"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Description"
              },
              "user_code_id": {
                "format": "uuid",
                "title": "User Code Id",
                "type": "string"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              },
              "dataset_name": {
                "title": "Dataset Name",
                "type": "string"
              },
              "enclave": {
                "default": "",
                "title": "Enclave",
                "type": "string"
              }
            },
            "required": [
              "user_code_id",
              "dataset_name"
            ],
            "title": "JobCreate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Job",
      "schema": {
        "$defs": {
          "JobErrorKind": {
            "enum": [
              "no_error",
              "timeout",
              "cancelled",
              "execution_failed",
              "failed_code_review",
              "failed_output_review"
            ],
            "title": "JobErrorKind",
            "type": "string"
          },
          "JobStatus": {
            "enum": [
              "pending_code_review",
              "job_run_failed",
              "job_run_finished",
              "rejected",
              "shared",
              "approved"
            ],
            "title": "JobStatus",
            "type": "string"
          }
        },
        "additionalProperties": false,
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "user_code_id": {
            "format": "uuid",
            "title": "User Code Id",
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "user_metadata": {
            "additionalProperties": true,
            "default": {},
            "title": "User Metadata",
            "type": "object"
          },
          "status": {
            "$ref": "#/$defs/JobStatus",
            "default": "pending_code_review"
          },
          "error": {
            "$ref": "#/$defs/JobErrorKind",
            "default": "no_error"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error Message"
          },
          "output_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Output Url"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "enclave": {
            "default": "",
            "title": "Enclave",
            "type": "string"
          }
        },
        "required": [
          "user_code_id",
          "dataset_name"
        ],
        "title": "Job",
        "type": "object"
      }
    }
  },
  "/job/get_one": {
    "description": null,
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "GetOneRequest",
          "schema": {
            "properties": {
              "uid": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Uid"
              },
              "filters": {
                "additionalProperties": true,
                "title": "Filters",
                "type": "object"
              }
            },
            "title": "GetOneRequest",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Job",
      "schema": {
        "$defs": {
          "JobErrorKind": {
            "enum": [
              "no_error",
              "timeout",
              "cancelled",
              "execution_failed",
              "failed_code_review",
              "failed_output_review"
            ],
            "title": "JobErrorKind",
            "type": "string"
          },
          "JobStatus": {
            "enum": [
              "pending_code_review",
              "job_run_failed",
              "job_run_finished",
              "rejected",
              "shared",
              "approved"
            ],
            "title": "JobStatus",
            "type": "string"
          }
        },
        "additionalProperties": false,
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "user_code_id": {
            "format": "uuid",
            "title": "User Code Id",
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "user_metadata": {
            "additionalProperties": true,
            "default": {},
            "title": "User Metadata",
            "type": "object"
          },
          "status": {
            "$ref": "#/$defs/JobStatus",
            "default": "pending_code_review"
          },
          "error": {
            "$ref": "#/$defs/JobErrorKind",
            "default": "no_error"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error Message"
          },
          "output_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Output Url"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "enclave": {
            "default": "",
            "title": "Enclave",
            "type": "string"
          }
        },
        "required": [
          "user_code_id",
          "dataset_name"
        ],
        "title": "Job",
        "type": "object"
      }
    }
  },
  "/job/get_all": {
    "description": null,
    "args": {
      "req": {
        "type": {
          "type": "model",
          "name": "GetAllRequest",
          "schema": {
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Limit"
              },
              "offset": {
                "default": 0,
                "title": "Offset",
                "type": "integer"
              },
              "filters": {
                "additionalProperties": true,
                "title": "Filters",
                "type": "object"
              },
              "order_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": "created_at",
                "title": "Order By"
              },
              "sort_order": {
                "default": "desc",
                "enum": [
                  "desc",
                  "asc"
                ],
                "title": "Sort Order",
                "type": "string"
              }
            },
            "title": "GetAllRequest",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "ItemList[Job]",
      "schema": {
        "$defs": {
          "Job": {
            "additionalProperties": false,
            "properties": {
              "uid": {
                "format": "uuid",
                "title": "Uid",
                "type": "string"
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Created By"
              },
              "created_at": {
                "format": "date-time",
                "title": "Created At",
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "title": "Updated At",
                "type": "string"
              },
              "client_id": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Client Id"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Description"
              },
              "user_code_id": {
                "format": "uuid",
                "title": "User Code Id",
                "type": "string"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              },
              "user_metadata": {
                "additionalProperties": true,
                "default": {},
                "title": "User Metadata",
                "type": "object"
              },
              "status": {
                "$ref": "#/$defs/JobStatus",
                "default": "pending_code_review"
              },
              "error": {
                "$ref": "#/$defs/JobErrorKind",
                "default": "no_error"
              },
              "error_message": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Error Message"
              },
              "output_url": {
                "anyOf": [
                  {
                    "description": "A SyftBox URL",
                    "format": "uri",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Output Url"
              },
              "dataset_name": {
                "title": "Dataset Name",
                "type": "string"
              },
              "enclave": {
                "default": "",
                "title": "Enclave",
                "type": "string"
              }
            },
            "required": [
              "user_code_id",
              "dataset_name"
            ],
            "title": "Job",
            "type": "object"
          },
          "JobErrorKind": {
            "enum": [
              "no_error",
              "timeout",
              "cancelled",
              "execution_failed",
              "failed_code_review",
              "failed_output_review"
            ],
            "title": "JobErrorKind",
            "type": "string"
          },
          "JobStatus": {
            "enum": [
              "pending_code_review",
              "job_run_failed",
              "job_run_finished",
              "rejected",
              "shared",
              "approved"
            ],
            "title": "JobStatus",
            "type": "string"
          }
        },
        "properties": {
          "items": {
            "items": {
              "$ref": "#/$defs/Job"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ItemList[Job]",
        "type": "object"
      }
    }
  },
  "/job/update": {
    "description": null,
    "args": {
      "update_request": {
        "type": {
          "type": "model",
          "name": "JobUpdate",
          "schema": {
            "$defs": {
              "JobErrorKind": {
                "enum": [
                  "no_error",
                  "timeout",
                  "cancelled",
                  "execution_failed",
                  "failed_code_review",
                  "failed_output_review"
                ],
                "title": "JobErrorKind",
                "type": "string"
              },
              "JobStatus": {
                "enum": [
                  "pending_code_review",
                  "job_run_failed",
                  "job_run_finished",
                  "rejected",
                  "shared",
                  "approved"
                ],
                "title": "JobStatus",
                "type": "string"
              }
            },
            "properties": {
              "uid": {
                "format": "uuid",
                "title": "Uid",
                "type": "string"
              },
              "status": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/JobStatus"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "error": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/JobErrorKind"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "error_message": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Error Message"
              }
            },
            "required": [
              "uid"
            ],
            "title": "JobUpdate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Job",
      "schema": {
        "$defs": {
          "JobErrorKind": {
            "enum": [
              "no_error",
              "timeout",
              "cancelled",
              "execution_failed",
              "failed_code_review",
              "failed_output_review"
            ],
            "title": "JobErrorKind",
            "type": "string"
          },
          "JobStatus": {
            "enum": [
              "pending_code_review",
              "job_run_failed",
              "job_run_finished",
              "rejected",
              "shared",
              "approved"
            ],
            "title": "JobStatus",
            "type": "string"
          }
        },
        "additionalProperties": false,
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "user_code_id": {
            "format": "uuid",
            "title": "User Code Id",
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "user_metadata": {
            "additionalProperties": true,
            "default": {},
            "title": "User Metadata",
            "type": "object"
          },
          "status": {
            "$ref": "#/$defs/JobStatus",
            "default": "pending_code_review"
          },
          "error": {
            "$ref": "#/$defs/JobErrorKind",
            "default": "no_error"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error Message"
          },
          "output_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Output Url"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "enclave": {
            "default": "",
            "title": "Enclave",
            "type": "string"
          }
        },
        "required": [
          "user_code_id",
          "dataset_name"
        ],
        "title": "Job",
        "type": "object"
      }
    }
  },
  "/user_code/create": {
    "description": null,
    "args": {
      "create_request": {
        "type": {
          "type": "model",
          "name": "UserCodeCreate",
          "schema": {
            "$defs": {
              "UserCodeType": {
                "enum": [
                  "file",
                  "folder"
                ],
                "title": "UserCodeType",
                "type": "string"
              }
            },
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Name"
              },
              "files_zipped": {
                "anyOf": [
                  {
                    "format": "binary",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Files Zipped"
              },
              "code_type": {
                "$ref": "#/$defs/UserCodeType"
              },
              "entrypoint": {
                "title": "Entrypoint",
                "type": "string"
              }
            },
            "required": [
              "code_type",
              "entrypoint"
            ],
            "title": "UserCodeCreate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "UserCode",
      "schema": {
        "$defs": {
          "UserCodeType": {
            "enum": [
              "file",
              "folder"
            ],
            "title": "UserCodeType",
            "type": "string"
          }
        },
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "dir_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dir Url"
          },
          "code_type": {
            "$ref": "#/$defs/UserCodeType"
          },
          "entrypoint": {
            "title": "Entrypoint",
            "type": "string"
          }
        },
        "required": [
          "name",
          "code_type",
          "entrypoint"
        ],
        "title": "UserCode",
        "type": "object"
      }
    }
  },
  "/user_code/get_one": {
    "description": null,
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "GetOneRequest",
          "schema": {
            "properties": {
              "uid": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Uid"
              },
              "filters": {
                "additionalProperties": true,
                "title": "Filters",
                "type": "object"
              }
            },
            "title": "GetOneRequest",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "UserCode",
      "schema": {
        "$defs": {
          "UserCodeType": {
            "enum": [
              "file",
              "folder"
            ],
            "title": "UserCodeType",
            "type": "string"
          }
        },
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "dir_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dir Url"
          },
          "code_type": {
            "$ref": "#/$defs/UserCodeType"
          },
          "entrypoint": {
            "title": "Entrypoint",
            "type": "string"
          }
        },
        "required": [
          "name",
          "code_type",
          "entrypoint"
        ],
        "title": "UserCode",
        "type": "object"
      }
    }
  },
  "/user_code/get_all": {
    "description": null,
    "args": {
      "req": {
        "type": {
          "type": "model",
          "name": "GetAllRequest",
          "schema": {
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Limit"
              },
              "offset": {
                "default": 0,
                "title": "Offset",
                "type": "integer"
              },
              "filters": {
                "additionalProperties": true,
                "title": "Filters",
                "type": "object"
              },
              "order_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": "created_at",
                "title": "Order By"
              },
              "sort_order": {
                "default": "desc",
                "enum": [
                  "desc",
                  "asc"
                ],
                "title": "Sort Order",
                "type": "string"
              }
            },
            "title": "GetAllRequest",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "ItemList[UserCode]",
      "schema": {
        "$defs": {
          "UserCode": {
            "properties": {
              "uid": {
                "format": "uuid",
                "title": "Uid",
                "type": "string"
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Created By"
              },
              "created_at": {
                "format": "date-time",
                "title": "Created At",
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "title": "Updated At",
                "type": "string"
              },
              "client_id": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Client Id"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "dir_url": {
                "anyOf": [
                  {
                    "description": "A SyftBox URL",
                    "format": "uri",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Dir Url"
              },
              "code_type": {
                "$ref": "#/$defs/UserCodeType"
              },
              "entrypoint": {
                "title": "Entrypoint",
                "type": "string"
              }
            },
            "required": [
              "name",
              "code_type",
              "entrypoint"
            ],
            "title": "UserCode",
            "type": "object"
          },
          "UserCodeType": {
            "enum": [
              "file",
              "folder"
            ],
            "title": "UserCodeType",
            "type": "string"
          }
        },
        "properties": {
          "items": {
            "items": {
              "$ref": "#/$defs/UserCode"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ItemList[UserCode]",
        "type": "object"
      }
    }
  },
  "/user_code/update": {
    "description": null,
    "args": {
      "update_request": {
        "type": {
          "type": "model",
          "name": "UserCodeUpdate",
          "schema": {
            "properties": {
              "uid": {
                "format": "uuid",
                "title": "Uid",
                "type": "string"
              }
            },
            "required": [
              "uid"
            ],
            "title": "UserCodeUpdate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "UserCode",
      "schema": {
        "$defs": {
          "UserCodeType": {
            "enum": [
              "file",
              "folder"
            ],
            "title": "UserCodeType",
            "type": "string"
          }
        },
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "dir_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dir Url"
          },
          "code_type": {
            "$ref": "#/$defs/UserCodeType"
          },
          "entrypoint": {
            "title": "Entrypoint",
            "type": "string"
          }
        },
        "required": [
          "name",
          "code_type",
          "entrypoint"
        ],
        "title": "UserCode",
        "type": "object"
      }
    }
  },
  "/runtime/create": {
    "description": null,
    "args": {
      "create_request": {
        "type": {
          "type": "model",
          "name": "RuntimeCreate",
          "schema": {
            "properties": {
              "name": {
                "title": "Name",
                "type": "string"
              },
              "description": {
                "title": "Description",
                "type": "string"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              }
            },
            "required": [
              "name",
              "description"
            ],
            "title": "RuntimeCreate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Runtime",
      "schema": {
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "name",
          "description"
        ],
        "title": "Runtime",
        "type": "object"
      }
    }
  },
  "/runtime/get_one": {
    "description": null,
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "GetOneRequest",
          "schema": {
            "properties": {
              "uid": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Uid"
              },
              "filters": {
                "additionalProperties": true,
                "title": "Filters",
                "type": "object"
              }
            },
            "title": "GetOneRequest",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Runtime",
      "schema": {
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "name",
          "description"
        ],
        "title": "Runtime",
        "type": "object"
      }
    }
  },
  "/runtime/get_all": {
    "description": null,
    "args": {
      "req": {
        "type": {
          "type": "model",
          "name": "GetAllRequest",
          "schema": {
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Limit"
              },
              "offset": {
                "default": 0,
                "title": "Offset",
                "type": "integer"
              },
              "filters": {
                "additionalProperties": true,
                "title": "Filters",
                "type": "object"
              },
              "order_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": "created_at",
                "title": "Order By"
              },
              "sort_order": {
                "default": "desc",
                "enum": [
                  "desc",
                  "asc"
                ],
                "title": "Sort Order",
                "type": "string"
              }
            },
            "title": "GetAllRequest",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "ItemList[Runtime]",
      "schema": {
        "$defs": {
          "Runtime": {
            "properties": {
              "uid": {
                "format": "uuid",
                "title": "Uid",
                "type": "string"
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Created By"
              },
              "created_at": {
                "format": "date-time",
                "title": "Created At",
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "title": "Updated At",
                "type": "string"
              },
              "client_id": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Client Id"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "description": {
                "title": "Description",
                "type": "string"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              }
            },
            "required": [
              "name",
              "description"
            ],
            "title": "Runtime",
            "type": "object"
          }
        },
        "properties": {
          "items": {
            "items": {
              "$ref": "#/$defs/Runtime"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ItemList[Runtime]",
        "type": "object"
      }
    }
  },
  "/runtime/update": {
    "description": null,
    "args": {
      "update_request": {
        "type": {
          "type": "model",
          "name": "RuntimeUpdate",
          "schema": {
            "properties": {
              "uid": {
                "format": "uuid",
                "title": "Uid",
                "type": "string"
              }
            },
            "required": [
              "uid"
            ],
            "title": "RuntimeUpdate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Runtime",
      "schema": {
        "properties": {
          "uid": {
            "format": "uuid",
            "title": "Uid",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "client_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Client Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "name",
          "description"
        ],
        "title": "Runtime",
        "type": "object"
      }
    }
  }
}