summary refs log tree commit diff
path: root/assets
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-30 13:34:27 +1100
committerGitHub <noreply@github.com>2023-01-30 13:34:27 +1100
commit4906d9a78a17729949fa5e32d221b66f1d5b0f3f (patch)
treeef852b1f5f3e88a449428eeb7e10a43f92c7216c /assets
parentImplement WebAuthn (#967) (diff)
downloadserver-4906d9a78a17729949fa5e32d221b66f1d5b0f3f.tar.xz
read-states/ack-bulk (#969)
Diffstat (limited to 'assets')
-rw-r--r--assets/openapi.json107
-rw-r--r--assets/schemas.json37
2 files changed, 144 insertions, 0 deletions
diff --git a/assets/openapi.json b/assets/openapi.json
index 0eafe6cb..7cb270b1 100644
--- a/assets/openapi.json
+++ b/assets/openapi.json
@@ -2316,6 +2316,41 @@
                     "days"
                 ]
             },
+            "AckBulkSchema": {
+                "type": "object",
+                "properties": {
+                    "read_states": {
+                        "type": "array",
+                        "items": [
+                            {
+                                "type": "object",
+                                "properties": {
+                                    "channel_id": {
+                                        "type": "string"
+                                    },
+                                    "message_id": {
+                                        "type": "string"
+                                    },
+                                    "read_state_type": {
+                                        "type": "integer"
+                                    }
+                                },
+                                "additionalProperties": false,
+                                "required": [
+                                    "channel_id",
+                                    "message_id",
+                                    "read_state_type"
+                                ]
+                            }
+                        ],
+                        "minItems": 1,
+                        "maxItems": 1
+                    }
+                },
+                "required": [
+                    "read_states"
+                ]
+            },
             "TransportMakeRequestResponse": {
                 "type": "object",
                 "properties": {
@@ -7030,6 +7065,78 @@
                     "read-states"
                 ]
             }
+        },
+        "/users/@me/mfa/webauthn/credentials/": {
+            "get": {
+                "security": [
+                    {
+                        "bearer": true
+                    }
+                ],
+                "tags": [
+                    "users"
+                ]
+            },
+            "post": {
+                "security": [
+                    {
+                        "bearer": true
+                    }
+                ],
+                "requestBody": {
+                    "required": true,
+                    "content": {
+                        "application/json": {
+                            "schema": {
+                                "$ref": "#/components/schemas/WebAuthnPostSchema"
+                            }
+                        }
+                    }
+                },
+                "tags": [
+                    "users"
+                ]
+            }
+        },
+        "/users/@me/mfa/webauthn/credentials/{key_id}/": {
+            "delete": {
+                "security": [
+                    {
+                        "bearer": true
+                    }
+                ],
+                "parameters": [
+                    {
+                        "name": "key_id",
+                        "in": "path",
+                        "required": true,
+                        "schema": {
+                            "type": "string"
+                        },
+                        "description": "key_id"
+                    }
+                ],
+                "tags": [
+                    "users"
+                ]
+            }
+        },
+        "/auth/mfa/webauthn/": {
+            "post": {
+                "requestBody": {
+                    "required": true,
+                    "content": {
+                        "application/json": {
+                            "schema": {
+                                "$ref": "#/components/schemas/WebAuthnTotpSchema"
+                            }
+                        }
+                    }
+                },
+                "tags": [
+                    "auth"
+                ]
+            }
         }
     }
 }
\ No newline at end of file
diff --git a/assets/schemas.json b/assets/schemas.json
index c840b261..f40bcd79 100644
--- a/assets/schemas.json
+++ b/assets/schemas.json
@@ -1,4 +1,41 @@
 {
+    "AckBulkSchema": {
+        "type": "object",
+        "properties": {
+            "read_states": {
+                "type": "array",
+                "items": [
+                    {
+                        "type": "object",
+                        "properties": {
+                            "channel_id": {
+                                "type": "string"
+                            },
+                            "message_id": {
+                                "type": "string"
+                            },
+                            "read_state_type": {
+                                "type": "integer"
+                            }
+                        },
+                        "additionalProperties": false,
+                        "required": [
+                            "channel_id",
+                            "message_id",
+                            "read_state_type"
+                        ]
+                    }
+                ],
+                "minItems": 1,
+                "maxItems": 1
+            }
+        },
+        "additionalProperties": false,
+        "required": [
+            "read_states"
+        ],
+        "$schema": "http://json-schema.org/draft-07/schema#"
+    },
     "TransportMakeRequestResponse": {
         "type": "object",
         "properties": {