From 261a4d671f56dfd395bc4585d8040d0c975ec4ed Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 2 Jul 2026 16:05:06 +0530 Subject: [PATCH] (feat): expose bearer and mode auth schemes in SDK specs --- src/Appwrite/Platform/Tasks/Specs.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index e7f5167611..978e57b9ae 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -153,6 +153,11 @@ class Specs extends Action 'description' => 'Your secret JSON Web Token', 'in' => 'header', ], + 'Bearer' => [ + 'type' => 'http', + 'scheme' => 'bearer', + 'description' => 'The OAuth access token to authenticate with', + ], 'Locale' => [ 'type' => 'apiKey', 'name' => 'X-Appwrite-Locale', @@ -165,6 +170,12 @@ class Specs extends Action 'description' => 'The user session to authenticate with', 'in' => 'header', ], + 'Mode' => [ + 'type' => 'apiKey', + 'name' => 'X-Appwrite-Mode', + 'description' => '', + 'in' => 'header', + ], 'DevKey' => [ 'type' => 'apiKey', 'name' => 'X-Appwrite-Dev-Key', @@ -234,6 +245,11 @@ class Specs extends Action 'description' => 'Your secret JSON Web Token', 'in' => 'header', ], + 'Bearer' => [ + 'type' => 'http', + 'scheme' => 'bearer', + 'description' => 'The OAuth access token to authenticate with', + ], 'Locale' => [ 'type' => 'apiKey', 'name' => 'X-Appwrite-Locale', @@ -246,6 +262,12 @@ class Specs extends Action 'description' => 'The user session to authenticate with', 'in' => 'header', ], + 'Mode' => [ + 'type' => 'apiKey', + 'name' => 'X-Appwrite-Mode', + 'description' => '', + 'in' => 'header', + ], 'ForwardedUserAgent' => [ 'type' => 'apiKey', 'name' => 'X-Forwarded-User-Agent', @@ -321,6 +343,11 @@ class Specs extends Action 'description' => 'Your secret JSON Web Token', 'in' => 'header', ], + 'Bearer' => [ + 'type' => 'http', + 'scheme' => 'bearer', + 'description' => 'The OAuth access token to authenticate with', + ], 'Locale' => [ 'type' => 'apiKey', 'name' => 'X-Appwrite-Locale',