{
  "/health": {
    "description": null,
    "args": {},
    "returns": "dict"
  },
  "/job/create": {
    "description": null,
    "args": {
      "create_request": {
        "type": {
          "type": "model",
          "name": "JobCreate",
          "schema": {
            "properties": {
              "dataset_name": {
                "title": "Dataset Name",
                "type": "string"
              },
              "user_code_id": {
                "format": "uuid",
                "title": "User Code Id",
                "type": "string"
              },
              "runtime_id": {
                "format": "uuid",
                "title": "Runtime Id",
                "type": "string"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Name"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Description"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              },
              "custom_function_id": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Custom Function Id"
              }
            },
            "required": [
              "dataset_name",
              "user_code_id",
              "runtime_id"
            ],
            "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",
              "job_in_progress",
              "rejected",
              "shared"
            ],
            "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"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "runtime_id": {
            "format": "uuid",
            "title": "Runtime Id",
            "type": "string"
          },
          "user_code_id": {
            "format": "uuid",
            "title": "User Code Id",
            "type": "string"
          },
          "custom_function_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Custom Function Id"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "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"
          }
        },
        "required": [
          "dataset_name",
          "runtime_id",
          "user_code_id"
        ],
        "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",
              "job_in_progress",
              "rejected",
              "shared"
            ],
            "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"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "runtime_id": {
            "format": "uuid",
            "title": "Runtime Id",
            "type": "string"
          },
          "user_code_id": {
            "format": "uuid",
            "title": "User Code Id",
            "type": "string"
          },
          "custom_function_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Custom Function Id"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "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"
          }
        },
        "required": [
          "dataset_name",
          "runtime_id",
          "user_code_id"
        ],
        "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"
              },
              "dataset_name": {
                "title": "Dataset Name",
                "type": "string"
              },
              "runtime_id": {
                "format": "uuid",
                "title": "Runtime Id",
                "type": "string"
              },
              "user_code_id": {
                "format": "uuid",
                "title": "User Code Id",
                "type": "string"
              },
              "custom_function_id": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Custom Function Id"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Description"
              },
              "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"
              }
            },
            "required": [
              "dataset_name",
              "runtime_id",
              "user_code_id"
            ],
            "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",
              "job_in_progress",
              "rejected",
              "shared"
            ],
            "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",
                  "job_in_progress",
                  "rejected",
                  "shared"
                ],
                "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",
              "job_in_progress",
              "rejected",
              "shared"
            ],
            "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"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "runtime_id": {
            "format": "uuid",
            "title": "Runtime Id",
            "type": "string"
          },
          "user_code_id": {
            "format": "uuid",
            "title": "User Code Id",
            "type": "string"
          },
          "custom_function_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Custom Function Id"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "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"
          }
        },
        "required": [
          "dataset_name",
          "runtime_id",
          "user_code_id"
        ],
        "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": {
            "$defs": {
              "DockerMount": {
                "properties": {
                  "source": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "format": "path",
                        "type": "string"
                      }
                    ],
                    "title": "Source"
                  },
                  "target": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "format": "path",
                        "type": "string"
                      }
                    ],
                    "title": "Target"
                  },
                  "mode": {
                    "default": "ro",
                    "enum": [
                      "ro",
                      "rw"
                    ],
                    "title": "Mode",
                    "type": "string"
                  }
                },
                "required": [
                  "source",
                  "target"
                ],
                "title": "DockerMount",
                "type": "object"
              },
              "DockerRuntimeConfig": {
                "properties": {
                  "cmd": {
                    "default": [
                      "python"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "title": "Cmd",
                    "type": "array"
                  },
                  "dockerfile": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "format": "path",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Dockerfile"
                  },
                  "entrypoint_script": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "format": "path",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Entrypoint Script"
                  },
                  "dockerfile_content": {
                    "title": "Dockerfile Content",
                    "type": "string"
                  },
                  "image_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Image Name"
                  },
                  "app_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "App Name"
                  },
                  "extra_mounts": {
                    "items": {
                      "$ref": "#/$defs/DockerMount"
                    },
                    "title": "Extra Mounts",
                    "type": "array"
                  }
                },
                "required": [
                  "dockerfile_content"
                ],
                "title": "DockerRuntimeConfig",
                "type": "object"
              },
              "KubernetesRuntimeConfig": {
                "properties": {
                  "cmd": {
                    "items": {
                      "type": "string"
                    },
                    "title": "Cmd",
                    "type": "array"
                  },
                  "image": {
                    "title": "Image",
                    "type": "string"
                  },
                  "namespace": {
                    "default": "syft-rds",
                    "title": "Namespace",
                    "type": "string"
                  },
                  "num_workers": {
                    "default": 1,
                    "title": "Num Workers",
                    "type": "integer"
                  }
                },
                "required": [
                  "image"
                ],
                "title": "KubernetesRuntimeConfig",
                "type": "object"
              },
              "PythonRuntimeConfig": {
                "properties": {
                  "cmd": {
                    "items": {
                      "type": "string"
                    },
                    "title": "Cmd",
                    "type": "array"
                  },
                  "version": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Version"
                  },
                  "requirements_file": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "format": "path",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Requirements File"
                  }
                },
                "title": "PythonRuntimeConfig",
                "type": "object"
              },
              "RuntimeKind": {
                "enum": [
                  "python",
                  "docker",
                  "kubernetes"
                ],
                "title": "RuntimeKind",
                "type": "string"
              }
            },
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Name"
              },
              "kind": {
                "$ref": "#/$defs/RuntimeKind"
              },
              "config": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PythonRuntimeConfig"
                  },
                  {
                    "$ref": "#/$defs/DockerRuntimeConfig"
                  },
                  {
                    "$ref": "#/$defs/KubernetesRuntimeConfig"
                  }
                ],
                "title": "Config"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Description"
              }
            },
            "required": [
              "kind"
            ],
            "title": "RuntimeCreate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "Runtime",
      "schema": {
        "$defs": {
          "DockerMount": {
            "properties": {
              "source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Source"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Target"
              },
              "mode": {
                "default": "ro",
                "enum": [
                  "ro",
                  "rw"
                ],
                "title": "Mode",
                "type": "string"
              }
            },
            "required": [
              "source",
              "target"
            ],
            "title": "DockerMount",
            "type": "object"
          },
          "DockerRuntimeConfig": {
            "properties": {
              "cmd": {
                "default": [
                  "python"
                ],
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "dockerfile": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Dockerfile"
              },
              "entrypoint_script": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Entrypoint Script"
              },
              "dockerfile_content": {
                "title": "Dockerfile Content",
                "type": "string"
              },
              "image_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Image Name"
              },
              "app_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "App Name"
              },
              "extra_mounts": {
                "items": {
                  "$ref": "#/$defs/DockerMount"
                },
                "title": "Extra Mounts",
                "type": "array"
              }
            },
            "required": [
              "dockerfile_content"
            ],
            "title": "DockerRuntimeConfig",
            "type": "object"
          },
          "KubernetesRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "image": {
                "title": "Image",
                "type": "string"
              },
              "namespace": {
                "default": "syft-rds",
                "title": "Namespace",
                "type": "string"
              },
              "num_workers": {
                "default": 1,
                "title": "Num Workers",
                "type": "integer"
              }
            },
            "required": [
              "image"
            ],
            "title": "KubernetesRuntimeConfig",
            "type": "object"
          },
          "PythonRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Version"
              },
              "requirements_file": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Requirements File"
              }
            },
            "title": "PythonRuntimeConfig",
            "type": "object"
          },
          "RuntimeKind": {
            "enum": [
              "python",
              "docker",
              "kubernetes"
            ],
            "title": "RuntimeKind",
            "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": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name"
          },
          "kind": {
            "$ref": "#/$defs/RuntimeKind"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/$defs/PythonRuntimeConfig"
              },
              {
                "$ref": "#/$defs/DockerRuntimeConfig"
              },
              {
                "$ref": "#/$defs/KubernetesRuntimeConfig"
              }
            ],
            "title": "Config"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          }
        },
        "required": [
          "kind"
        ],
        "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": {
        "$defs": {
          "DockerMount": {
            "properties": {
              "source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Source"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Target"
              },
              "mode": {
                "default": "ro",
                "enum": [
                  "ro",
                  "rw"
                ],
                "title": "Mode",
                "type": "string"
              }
            },
            "required": [
              "source",
              "target"
            ],
            "title": "DockerMount",
            "type": "object"
          },
          "DockerRuntimeConfig": {
            "properties": {
              "cmd": {
                "default": [
                  "python"
                ],
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "dockerfile": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Dockerfile"
              },
              "entrypoint_script": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Entrypoint Script"
              },
              "dockerfile_content": {
                "title": "Dockerfile Content",
                "type": "string"
              },
              "image_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Image Name"
              },
              "app_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "App Name"
              },
              "extra_mounts": {
                "items": {
                  "$ref": "#/$defs/DockerMount"
                },
                "title": "Extra Mounts",
                "type": "array"
              }
            },
            "required": [
              "dockerfile_content"
            ],
            "title": "DockerRuntimeConfig",
            "type": "object"
          },
          "KubernetesRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "image": {
                "title": "Image",
                "type": "string"
              },
              "namespace": {
                "default": "syft-rds",
                "title": "Namespace",
                "type": "string"
              },
              "num_workers": {
                "default": 1,
                "title": "Num Workers",
                "type": "integer"
              }
            },
            "required": [
              "image"
            ],
            "title": "KubernetesRuntimeConfig",
            "type": "object"
          },
          "PythonRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Version"
              },
              "requirements_file": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Requirements File"
              }
            },
            "title": "PythonRuntimeConfig",
            "type": "object"
          },
          "RuntimeKind": {
            "enum": [
              "python",
              "docker",
              "kubernetes"
            ],
            "title": "RuntimeKind",
            "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": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name"
          },
          "kind": {
            "$ref": "#/$defs/RuntimeKind"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/$defs/PythonRuntimeConfig"
              },
              {
                "$ref": "#/$defs/DockerRuntimeConfig"
              },
              {
                "$ref": "#/$defs/KubernetesRuntimeConfig"
              }
            ],
            "title": "Config"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          }
        },
        "required": [
          "kind"
        ],
        "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": {
          "DockerMount": {
            "properties": {
              "source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Source"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Target"
              },
              "mode": {
                "default": "ro",
                "enum": [
                  "ro",
                  "rw"
                ],
                "title": "Mode",
                "type": "string"
              }
            },
            "required": [
              "source",
              "target"
            ],
            "title": "DockerMount",
            "type": "object"
          },
          "DockerRuntimeConfig": {
            "properties": {
              "cmd": {
                "default": [
                  "python"
                ],
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "dockerfile": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Dockerfile"
              },
              "entrypoint_script": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Entrypoint Script"
              },
              "dockerfile_content": {
                "title": "Dockerfile Content",
                "type": "string"
              },
              "image_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Image Name"
              },
              "app_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "App Name"
              },
              "extra_mounts": {
                "items": {
                  "$ref": "#/$defs/DockerMount"
                },
                "title": "Extra Mounts",
                "type": "array"
              }
            },
            "required": [
              "dockerfile_content"
            ],
            "title": "DockerRuntimeConfig",
            "type": "object"
          },
          "KubernetesRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "image": {
                "title": "Image",
                "type": "string"
              },
              "namespace": {
                "default": "syft-rds",
                "title": "Namespace",
                "type": "string"
              },
              "num_workers": {
                "default": 1,
                "title": "Num Workers",
                "type": "integer"
              }
            },
            "required": [
              "image"
            ],
            "title": "KubernetesRuntimeConfig",
            "type": "object"
          },
          "PythonRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Version"
              },
              "requirements_file": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Requirements File"
              }
            },
            "title": "PythonRuntimeConfig",
            "type": "object"
          },
          "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": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Name"
              },
              "kind": {
                "$ref": "#/$defs/RuntimeKind"
              },
              "config": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/PythonRuntimeConfig"
                  },
                  {
                    "$ref": "#/$defs/DockerRuntimeConfig"
                  },
                  {
                    "$ref": "#/$defs/KubernetesRuntimeConfig"
                  }
                ],
                "title": "Config"
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "title": "Tags",
                "type": "array"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Description"
              }
            },
            "required": [
              "kind"
            ],
            "title": "Runtime",
            "type": "object"
          },
          "RuntimeKind": {
            "enum": [
              "python",
              "docker",
              "kubernetes"
            ],
            "title": "RuntimeKind",
            "type": "string"
          }
        },
        "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": {
        "$defs": {
          "DockerMount": {
            "properties": {
              "source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Source"
              },
              "target": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  }
                ],
                "title": "Target"
              },
              "mode": {
                "default": "ro",
                "enum": [
                  "ro",
                  "rw"
                ],
                "title": "Mode",
                "type": "string"
              }
            },
            "required": [
              "source",
              "target"
            ],
            "title": "DockerMount",
            "type": "object"
          },
          "DockerRuntimeConfig": {
            "properties": {
              "cmd": {
                "default": [
                  "python"
                ],
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "dockerfile": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Dockerfile"
              },
              "entrypoint_script": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Entrypoint Script"
              },
              "dockerfile_content": {
                "title": "Dockerfile Content",
                "type": "string"
              },
              "image_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Image Name"
              },
              "app_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "App Name"
              },
              "extra_mounts": {
                "items": {
                  "$ref": "#/$defs/DockerMount"
                },
                "title": "Extra Mounts",
                "type": "array"
              }
            },
            "required": [
              "dockerfile_content"
            ],
            "title": "DockerRuntimeConfig",
            "type": "object"
          },
          "KubernetesRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "image": {
                "title": "Image",
                "type": "string"
              },
              "namespace": {
                "default": "syft-rds",
                "title": "Namespace",
                "type": "string"
              },
              "num_workers": {
                "default": 1,
                "title": "Num Workers",
                "type": "integer"
              }
            },
            "required": [
              "image"
            ],
            "title": "KubernetesRuntimeConfig",
            "type": "object"
          },
          "PythonRuntimeConfig": {
            "properties": {
              "cmd": {
                "items": {
                  "type": "string"
                },
                "title": "Cmd",
                "type": "array"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Version"
              },
              "requirements_file": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "format": "path",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Requirements File"
              }
            },
            "title": "PythonRuntimeConfig",
            "type": "object"
          },
          "RuntimeKind": {
            "enum": [
              "python",
              "docker",
              "kubernetes"
            ],
            "title": "RuntimeKind",
            "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": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name"
          },
          "kind": {
            "$ref": "#/$defs/RuntimeKind"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/$defs/PythonRuntimeConfig"
              },
              {
                "$ref": "#/$defs/DockerRuntimeConfig"
              },
              {
                "$ref": "#/$defs/KubernetesRuntimeConfig"
              }
            ],
            "title": "Config"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          }
        },
        "required": [
          "kind"
        ],
        "title": "Runtime",
        "type": "object"
      }
    }
  },
  "/custom_function/create": {
    "description": null,
    "args": {
      "create_request": {
        "type": {
          "type": "model",
          "name": "CustomFunctionCreate",
          "schema": {
            "properties": {
              "name": {
                "title": "Name",
                "type": "string"
              },
              "files_zipped": {
                "anyOf": [
                  {
                    "format": "binary",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Files Zipped"
              },
              "entrypoint": {
                "title": "Entrypoint",
                "type": "string"
              },
              "readme_filename": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Readme Filename"
              }
            },
            "required": [
              "name",
              "entrypoint"
            ],
            "title": "CustomFunctionCreate",
            "type": "object"
          }
        },
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "CustomFunction",
      "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"
          },
          "dir_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dir Url"
          },
          "entrypoint": {
            "title": "Entrypoint",
            "type": "string"
          },
          "input_params_filename": {
            "default": "user_params.json",
            "title": "Input Params Filename",
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Summary"
          },
          "readme_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Readme Filename"
          }
        },
        "required": [
          "name",
          "entrypoint"
        ],
        "title": "CustomFunction",
        "type": "object"
      }
    }
  },
  "/custom_function/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": "CustomFunction",
      "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"
          },
          "dir_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dir Url"
          },
          "entrypoint": {
            "title": "Entrypoint",
            "type": "string"
          },
          "input_params_filename": {
            "default": "user_params.json",
            "title": "Input Params Filename",
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Summary"
          },
          "readme_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Readme Filename"
          }
        },
        "required": [
          "name",
          "entrypoint"
        ],
        "title": "CustomFunction",
        "type": "object"
      }
    }
  },
  "/custom_function/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[CustomFunction]",
      "schema": {
        "$defs": {
          "CustomFunction": {
            "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"
              },
              "entrypoint": {
                "title": "Entrypoint",
                "type": "string"
              },
              "input_params_filename": {
                "default": "user_params.json",
                "title": "Input Params Filename",
                "type": "string"
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Summary"
              },
              "readme_filename": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Readme Filename"
              }
            },
            "required": [
              "name",
              "entrypoint"
            ],
            "title": "CustomFunction",
            "type": "object"
          }
        },
        "properties": {
          "items": {
            "items": {
              "$ref": "#/$defs/CustomFunction"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ItemList[CustomFunction]",
        "type": "object"
      }
    }
  },
  "/custom_function/update": {
    "description": null,
    "args": {
      "update_request": {
        "type": "any",
        "required": true
      },
      "app": {
        "type": "syftevents",
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "CustomFunction",
      "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"
          },
          "dir_url": {
            "anyOf": [
              {
                "description": "A SyftBox URL",
                "format": "uri",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dir Url"
          },
          "entrypoint": {
            "title": "Entrypoint",
            "type": "string"
          },
          "input_params_filename": {
            "default": "user_params.json",
            "title": "Input Params Filename",
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Summary"
          },
          "readme_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Readme Filename"
          }
        },
        "required": [
          "name",
          "entrypoint"
        ],
        "title": "CustomFunction",
        "type": "object"
      }
    }
  }
}