Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Code 400 when clicking "Cancel" during a LinkedIn Oauth login #2591

Closed
2 tasks done
superseby2 opened this issue Jan 12, 2022 · 11 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
Milestone

Comments

@superseby2
Copy link

👟 Reproduction steps

  • using WebSDK : calling account.createOAuth2Session with success & error callback urls set
  • linkedin login page pops-up
  • click the cancel button

👍 Expected behavior

  • back to the callback url set for error

👎 Actual Behavior

  • We get back to the appwrite server
  • Error 400 is displayed

Param "code" is not optional.

Error ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

Appwrite 0.12

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@superseby2 superseby2 added the bug Something isn't working label Jan 12, 2022
@eldadfux
Copy link
Member

@superseby2 please share the URL of the Appwrite link you were redirected to.

@superseby2
Copy link
Author

superseby2 commented Mar 8, 2022

Bit of an update with some debug

That's the error once I am redirecter by Linkedin

Error 400
Param "code" is not optional.

Error ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Error Trace
file	/usr/src/code/vendor/utopia-php/framework/src/App.php
line	584
function	validate
class	Utopia\App
type	->
args	array(3) { [0]=> string(4) "code" [1]=> array(7) { ["default"]=> string(0) "" ["validator"]=> object(Utopia\Validator\Text)#177 (2) { ["length":protected]=> int(2048) ["allowList":protected]=> array(0) { } } ["description"]=> string(12) "OAuth2 code." ["optional"]=> bool(false) ["injections"]=> array(0) { } ["value"]=> NULL ["order"]=> int(2) } [2]=> string(0) "" }
file	/usr/src/code/vendor/utopia-php/framework/src/App.php
line	694
function	execute
class	Utopia\App
type	->
args	array(2) { [0]=> object(Utopia\Route)#167 (13) { ["method":protected]=> string(3) "GET" ["middleware":protected]=> bool(true) ["path":protected]=> string(57) "/v1/account/sessions/oauth2/callback/:provider/:projectId" ["aliasPath":protected]=> string(0) "" ["aliasParams":protected]=> array(0) { } ["isAlias":protected]=> bool(false) ["desc":protected]=> string(15) "OAuth2 Callback" ["groups":protected]=> array(2) { [0]=> string(3) "api" [1]=> string(7) "account" } ["action":protected]=> object(Closure)#179 (1) { ["parameter"]=> array(6) { ["$projectId"]=> string(10) "" ["$provider"]=> string(10) "" ["$code"]=> string(10) "" ["$state"]=> string(10) "" ["$request"]=> string(10) "" ["$response"]=> string(10) "" } } ["params":protected]=> array(4) { ["projectId"]=> array(7) { ["default"]=> string(0) "" ["validator"]=> object(Utopia\Validator\Text)#175 (2) { ["length":protected]=> int(1024) ["allowList":protected]=> array(0) { } } ["description"]=> string(11) "Project ID." ["optional"]=> bool(false) ["injections"]=> array(0) { } ["value"]=> NULL ["order"]=> int(0) } ["provider"]=> array(7) { ["default"]=> string(0) "" ["validator"]=> object(Utopia\Validator\WhiteList)#176 (3) { ["list":protected]=> array(29) { [0]=> string(6) "amazon" [1]=> string(5) "apple" [2]=> string(9) "bitbucket" [3]=> string(5) "bitly" [4]=> string(3) "box" [5]=> string(7) "discord" [6]=> string(7) "dropbox" [7]=> string(8) "facebook" [8]=> string(6) "github" [9]=> string(6) "gitlab" [10]=> string(6) "google" [11]=> string(8) "linkedin" [12]=> string(9) "microsoft" [13]=> string(6) "notion" [14]=> string(6) "paypal" [15]=> string(13) "paypalSandbox" [16]=> string(10) "salesforce" [17]=> string(5) "slack" [18]=> string(7) "spotify" [19]=> string(10) "tradeshift" [20]=> string(13) "tradeshiftBox" [21]=> string(6) "twitch" [22]=> string(2) "vk" [23]=> string(5) "yahoo" [24]=> string(6) "yammer" [25]=> string(6) "yandex" [26]=> string(9) "wordpress" [27]=> string(6) "stripe" [28]=> string(4) "mock" } ["strict":protected]=> bool(true) ["type":protected]=> string(6) "string" } ["description"]=> string(16) "OAuth2 provider." ["optional"]=> bool(false) ["injections"]=> array(0) { } ["value"]=> NULL ["order"]=> int(1) } ["code"]=> array(7) { ["default"]=> string(0) "" ["validator"]=> object(Utopia\Validator\Text)#177 (2) { ["length":protected]=> int(2048) ["allowList":protected]=> array(0) { } } ["description"]=> string(12) "OAuth2 code." ["optional"]=> bool(false) ["injections"]=> array(0) { } ["value"]=> NULL ["order"]=> int(2) } ["state"]=> array(7) { ["default"]=> string(0) "" ["validator"]=> object(Utopia\Validator\Text)#178 (2) { ["length":protected]=> int(2048) ["allowList":protected]=> array(0) { } } ["description"]=> string(19) "Login state params." ["optional"]=> bool(true) ["injections"]=> array(0) { } ["value"]=> NULL ["order"]=> int(3) } } ["injections":protected]=> array(2) { ["request"]=> array(2) { ["name"]=> string(7) "request" ["order"]=> int(4) } ["response"]=> array(2) { ["name"]=> string(8) "response" ["order"]=> int(5) } } ["labels":protected]=> array(3) { ["error"]=> string(65) "/usr/src/code/app/controllers/api/../../views/general/error.phtml" ["scope"]=> string(6) "public" ["docs"]=> bool(false) } ["order":protected]=> int(40) } [1]=> object(Appwrite\Utopia\Request)#9612 (3) { ["swoole":protected]=> object(Swoole\Http\Request)#6822 (9) { ["fd"]=> int(4877) ["streamId"]=> int(0) ["header"]=> array(17) { ["x-real-ip"]=> string(13) "193.91.105.18" ["x-forwarded-for"]=> string(13) "193.91.105.18" ["x-forwarded-proto"]=> string(5) "https" ["host"]=> string(20) "be.beta.thumbup.tech" ["x-forwarded-host"]=> string(20) "be.beta.thumbup.tech" ["x-forwarded-port"]=> string(3) "443" ["connection"]=> string(5) "close" ["upgrade-insecure-requests"]=> string(1) "1" ["user-agent"]=> string(124) "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36" ["accept"]=> string(135) "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" ["accept-language"]=> string(2) "fr" ["dnt"]=> string(1) "1" ["sec-fetch-site"]=> string(10) "cross-site" ["sec-fetch-mode"]=> string(8) "navigate" ["sec-fetch-dest"]=> string(8) "document" ["referer"]=> string(25) "https://www.linkedin.com/" ["accept-encoding"]=> string(17) "gzip, deflate, br" } ["server"]=> array(11) { ["query_string"]=> string(284) "error=user_cancelled_login&error_description=The+user+cancelled+LinkedIn+login&state=%7B%22success%22%3A%22https%3A%5C%2F%5C%2Fbeta%2Ethumbup%2Etech%5C%2Fapp-techie%22%2C%22failure%22%3A%22https%3A%5C%2F%5C%2Fbe%2Ebeta%2Ethumbup%2Etech%5C%2Fv1%5C%2Fauth%5C%2Foauth2%5C%2Ffailure%22%7D" ["request_method"]=> string(3) "GET" ["request_uri"]=> string(66) "/v1/account/sessions/oauth2/callback/linkedin/61d9932a0eda26b103b0" ["path_info"]=> string(66) "/v1/account/sessions/oauth2/callback/linkedin/61d9932a0eda26b103b0" ["request_time"]=> int(1646734933) ["request_time_float"]=> float(1646734933.972333) ["server_protocol"]=> string(8) "HTTP/1.0" ["server_port"]=> int(80) ["remote_port"]=> int(1041) ["remote_addr"]=> string(10) "172.23.0.1" ["master_time"]=> int(1646734933) } ["cookie"]=> array(8) { ["_ga"]=> string(27) "GA1.2.1594371428.1644989737" ["cookie-alert"]=> string(4) "true" ["version-update-0_12_1"]=> string(4) "true" ["version-update-0_12_3"]=> string(4) "true" ["version-update-0_13_0"]=> string(4) "true" ["_gid"]=> string(26) "GA1.2.492584460.1646661449" ["a_session_console_legacy"]=> string(396) "eyJpZCI6IjYxZDk5MzEzN2ZlYWRiYWNkYzUwIiwic2VjcmV0IjoiMWYzMTc3MGExOGM1NzczYzc1MDc3MGIyOTYzYmFiNTk1YTE5ZjIyNWM3MTU3OGU1ZjZlMDIzMWRlOWEzYWE0MWRhYzE0ZjBkNThmNjI0NGRkMWMxODNkZWQwNWY4ZTllOTBkYjlhOWUyNmMxZDkxOTc0Zjk3ZWNlN2NjN2ZhNDgxMWYzNjAwZGFmNTJmZTM5MDRhMmYwMWM1YTFhODA0NThiNGJkOThmMjk4OWZhMTU5OTllZWMyZWNmZGI3NzQzY2JjZDZkNTU4NjU2NTdlMDU3ZTFlNTMxNTdlODJlMDY5ZWUyMTA5MmE2ZTQzZGJlM2FkNWJjODRmYTA0NjA3OSJ9" ["a_session_console"]=> string(396) "eyJpZCI6IjYxZDk5MzEzN2ZlYWRiYWNkYzUwIiwic2VjcmV0IjoiMWYzMTc3MGExOGM1NzczYzc1MDc3MGIyOTYzYmFiNTk1YTE5ZjIyNWM3MTU3OGU1ZjZlMDIzMWRlOWEzYWE0MWRhYzE0ZjBkNThmNjI0NGRkMWMxODNkZWQwNWY4ZTllOTBkYjlhOWUyNmMxZDkxOTc0Zjk3ZWNlN2NjN2ZhNDgxMWYzNjAwZGFmNTJmZTM5MDRhMmYwMWM1YTFhODA0NThiNGJkOThmMjk4OWZhMTU5OTllZWMyZWNmZGI3NzQzY2JjZDZkNTU4NjU2NTdlMDU3ZTFlNTMxNTdlODJlMDY5ZWUyMTA5MmE2ZTQzZGJlM2FkNWJjODRmYTA0NjA3OSJ9" } ["get"]=> array(3) { ["error"]=> string(20) "user_cancelled_login" ["error_description"]=> string(33) "The user cancelled LinkedIn login" ["state"]=> string(123) "{"success":"https:\/\/beta.thumbup.tech\/app-techie","failure":"https:\/\/be.beta.thumbup.tech\/v1\/auth\/oauth2\/failure"}" } ["files"]=> NULL ["post"]=> NULL ["tmpfiles"]=> NULL } ["payload":protected]=> NULL ["headers":protected]=> NULL } }
file	/usr/src/code/app/http.php
line	249
function	run
class	Utopia\App
type	->
args	array(2) { [0]=> object(Appwrite\Utopia\Request)#9612 (3) { ["swoole":protected]=> object(Swoole\Http\Request)#6822 (9) { ["fd"]=> int(4877) ["streamId"]=> int(0) ["header"]=> array(17) { ["x-real-ip"]=> string(13) "193.91.105.18" ["x-forwarded-for"]=> string(13) "193.91.105.18" ["x-forwarded-proto"]=> string(5) "https" ["host"]=> string(20) "be.beta.thumbup.tech" ["x-forwarded-host"]=> string(20) "be.beta.thumbup.tech" ["x-forwarded-port"]=> string(3) "443" ["connection"]=> string(5) "close" ["upgrade-insecure-requests"]=> string(1) "1" ["user-agent"]=> string(124) "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36" ["accept"]=> string(135) "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" ["accept-language"]=> string(2) "fr" ["dnt"]=> string(1) "1" ["sec-fetch-site"]=> string(10) "cross-site" ["sec-fetch-mode"]=> string(8) "navigate" ["sec-fetch-dest"]=> string(8) "document" ["referer"]=> string(25) "https://www.linkedin.com/" ["accept-encoding"]=> string(17) "gzip, deflate, br" } ["server"]=> array(11) { ["query_string"]=> string(284) "error=user_cancelled_login&error_description=The+user+cancelled+LinkedIn+login&state=%7B%22success%22%3A%22https%3A%5C%2F%5C%2Fbeta%2Ethumbup%2Etech%5C%2Fapp-techie%22%2C%22failure%22%3A%22https%3A%5C%2F%5C%2Fbe%2Ebeta%2Ethumbup%2Etech%5C%2Fv1%5C%2Fauth%5C%2Foauth2%5C%2Ffailure%22%7D" ["request_method"]=> string(3) "GET" ["request_uri"]=> string(66) "/v1/account/sessions/oauth2/callback/linkedin/61d9932a0eda26b103b0" ["path_info"]=> string(66) "/v1/account/sessions/oauth2/callback/linkedin/61d9932a0eda26b103b0" ["request_time"]=> int(1646734933) ["request_time_float"]=> float(1646734933.972333) ["server_protocol"]=> string(8) "HTTP/1.0" ["server_port"]=> int(80) ["remote_port"]=> int(1041) ["remote_addr"]=> string(10) "172.23.0.1" ["master_time"]=> int(1646734933) } ["cookie"]=> array(8) { ["_ga"]=> string(27) "GA1.2.1594371428.1644989737" ["cookie-alert"]=> string(4) "true" ["version-update-0_12_1"]=> string(4) "true" ["version-update-0_12_3"]=> string(4) "true" ["version-update-0_13_0"]=> string(4) "true" ["_gid"]=> string(26) "GA1.2.492584460.1646661449" ["a_session_console_legacy"]=> string(396) "eyJpZCI6IjYxZDk5MzEzN2ZlYWRiYWNkYzUwIiwic2VjcmV0IjoiMWYzMTc3MGExOGM1NzczYzc1MDc3MGIyOTYzYmFiNTk1YTE5ZjIyNWM3MTU3OGU1ZjZlMDIzMWRlOWEzYWE0MWRhYzE0ZjBkNThmNjI0NGRkMWMxODNkZWQwNWY4ZTllOTBkYjlhOWUyNmMxZDkxOTc0Zjk3ZWNlN2NjN2ZhNDgxMWYzNjAwZGFmNTJmZTM5MDRhMmYwMWM1YTFhODA0NThiNGJkOThmMjk4OWZhMTU5OTllZWMyZWNmZGI3NzQzY2JjZDZkNTU4NjU2NTdlMDU3ZTFlNTMxNTdlODJlMDY5ZWUyMTA5MmE2ZTQzZGJlM2FkNWJjODRmYTA0NjA3OSJ9" ["a_session_console"]=> string(396) "eyJpZCI6IjYxZDk5MzEzN2ZlYWRiYWNkYzUwIiwic2VjcmV0IjoiMWYzMTc3MGExOGM1NzczYzc1MDc3MGIyOTYzYmFiNTk1YTE5ZjIyNWM3MTU3OGU1ZjZlMDIzMWRlOWEzYWE0MWRhYzE0ZjBkNThmNjI0NGRkMWMxODNkZWQwNWY4ZTllOTBkYjlhOWUyNmMxZDkxOTc0Zjk3ZWNlN2NjN2ZhNDgxMWYzNjAwZGFmNTJmZTM5MDRhMmYwMWM1YTFhODA0NThiNGJkOThmMjk4OWZhMTU5OTllZWMyZWNmZGI3NzQzY2JjZDZkNTU4NjU2NTdlMDU3ZTFlNTMxNTdlODJlMDY5ZWUyMTA5MmE2ZTQzZGJlM2FkNWJjODRmYTA0NjA3OSJ9" } ["get"]=> array(3) { ["error"]=> string(20) "user_cancelled_login" ["error_description"]=> string(33) "The user cancelled LinkedIn login" ["state"]=> string(123) "{"success":"https:\/\/beta.thumbup.tech\/app-techie","failure":"https:\/\/be.beta.thumbup.tech\/v1\/auth\/oauth2\/failure"}" } ["files"]=> NULL ["post"]=> NULL ["tmpfiles"]=> NULL } ["payload":protected]=> NULL ["headers":protected]=> NULL } [1]=> object(Appwrite\Utopia\Response)#8101 (13) { ["payload":protected]=> array(0) { } ["models":protected]=> array(83) { ["none"]=> object(Appwrite\Utopia\Response\Model\None)#8524 (4) { ["none":protected]=> bool(true) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(0) { } } ["any"]=> object(Appwrite\Utopia\Response\Model\Any)#8306 (4) { ["any":protected]=> bool(true) ["none":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(0) { } } ["error"]=> object(Appwrite\Utopia\Response\Model\Error)#7784 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(4) { ["message"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Error message." ["default"]=> string(0) "" ["example"]=> string(9) "Not found" ["array"]=> bool(false) } ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Error code." ["default"]=> string(0) "" ["example"]=> string(3) "404" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(107) "Error type. You can learn more about all the error types at https://appwrite.io/docs/error-codes#errorTypes" ["default"]=> string(7) "unknown" ["example"]=> string(9) "not_found" ["array"]=> bool(false) } ["version"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Server version number." ["default"]=> string(0) "" ["example"]=> string(3) "1.0" ["array"]=> bool(false) } } } ["errorDev"]=> object(Appwrite\Utopia\Response\Model\ErrorDev)#6686 (4) { ["public":protected]=> bool(false) ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["rules":protected]=> array(7) { ["message"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Error message." ["default"]=> string(0) "" ["example"]=> string(9) "Not found" ["array"]=> bool(false) } ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Error code." ["default"]=> string(0) "" ["example"]=> string(3) "404" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(107) "Error type. You can learn more about all the error types at https://appwrite.io/docs/error-codes#errorTypes" ["default"]=> string(7) "unknown" ["example"]=> string(9) "not_found" ["array"]=> bool(false) } ["version"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Server version number." ["default"]=> string(0) "" ["example"]=> string(3) "1.0" ["array"]=> bool(false) } ["file"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "File path." ["default"]=> string(0) "" ["example"]=> string(49) "/usr/code/vendor/utopia-php/framework/src/App.php" ["array"]=> bool(false) } ["line"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(12) "Line number." ["default"]=> int(0) ["example"]=> int(209) ["array"]=> bool(false) } ["trace"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Error trace." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["documentList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8209 (6) { ["name":protected]=> string(14) "Documents List" ["type":protected]=> string(12) "documentList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(60) "Total number of documents documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["documents"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(8) "document" ["description"]=> string(18) "List of documents." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["collectionList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8463 (6) { ["name":protected]=> string(16) "Collections List" ["type":protected]=> string(14) "collectionList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(62) "Total number of collections documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["collections"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "collection" ["description"]=> string(20) "List of collections." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["indexList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8470 (6) { ["name":protected]=> string(12) "Indexes List" ["type":protected]=> string(9) "indexList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(58) "Total number of indexes documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["indexes"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(5) "index" ["description"]=> string(16) "List of indexes." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["userList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8933 (6) { ["name":protected]=> string(10) "Users List" ["type":protected]=> string(8) "userList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(56) "Total number of users documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["users"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(4) "user" ["description"]=> string(14) "List of users." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["sessionList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8303 (6) { ["name":protected]=> string(13) "Sessions List" ["type":protected]=> string(11) "sessionList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(59) "Total number of sessions documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["sessions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "session" ["description"]=> string(17) "List of sessions." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["logList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8178 (6) { ["name":protected]=> string(9) "Logs List" ["type":protected]=> string(7) "logList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(55) "Total number of logs documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["logs"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(3) "log" ["description"]=> string(13) "List of logs." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["fileList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8732 (6) { ["name":protected]=> string(10) "Files List" ["type":protected]=> string(8) "fileList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(56) "Total number of files documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["files"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(4) "file" ["description"]=> string(14) "List of files." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["bucketList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8112 (6) { ["name":protected]=> string(12) "Buckets List" ["type":protected]=> string(10) "bucketList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(58) "Total number of buckets documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["buckets"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "bucket" ["description"]=> string(16) "List of buckets." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["teamList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8169 (6) { ["name":protected]=> string(10) "Teams List" ["type":protected]=> string(8) "teamList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(56) "Total number of teams documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["teams"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(4) "team" ["description"]=> string(14) "List of teams." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["membershipList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8454 (6) { ["name":protected]=> string(16) "Memberships List" ["type":protected]=> string(14) "membershipList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(62) "Total number of memberships documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["memberships"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "membership" ["description"]=> string(20) "List of memberships." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["functionList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9616 (6) { ["name":protected]=> string(14) "Functions List" ["type":protected]=> string(12) "functionList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(60) "Total number of functions documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["functions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(8) "function" ["description"]=> string(18) "List of functions." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["runtimeList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9610 (6) { ["name":protected]=> string(13) "Runtimes List" ["type":protected]=> string(11) "runtimeList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(59) "Total number of runtimes documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["runtimes"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "runtime" ["description"]=> string(17) "List of runtimes." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["deploymentList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#7147 (6) { ["name":protected]=> string(16) "Deployments List" ["type":protected]=> string(14) "deploymentList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(62) "Total number of deployments documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["deployments"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "deployment" ["description"]=> string(20) "List of deployments." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["executionList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8208 (6) { ["name":protected]=> string(15) "Executions List" ["type":protected]=> string(13) "executionList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(61) "Total number of executions documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["executions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(9) "execution" ["description"]=> string(19) "List of executions." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["buildList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9305 (6) { ["name":protected]=> string(11) "Builds List" ["type":protected]=> string(9) "buildList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(57) "Total number of builds documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["builds"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(5) "build" ["description"]=> string(15) "List of builds." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["projectList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8695 (6) { ["name":protected]=> string(13) "Projects List" ["type":protected]=> string(11) "projectList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(false) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(59) "Total number of projects documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["projects"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "project" ["description"]=> string(17) "List of projects." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["webhookList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9303 (6) { ["name":protected]=> string(13) "Webhooks List" ["type":protected]=> string(11) "webhookList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(false) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(59) "Total number of webhooks documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["webhooks"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "webhook" ["description"]=> string(17) "List of webhooks." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["keyList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9605 (6) { ["name":protected]=> string(13) "API Keys List" ["type":protected]=> string(7) "keyList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(false) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(55) "Total number of keys documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["keys"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(3) "key" ["description"]=> string(13) "List of keys." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["platformList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9492 (6) { ["name":protected]=> string(14) "Platforms List" ["type":protected]=> string(12) "platformList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(false) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(60) "Total number of platforms documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["platforms"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(8) "platform" ["description"]=> string(18) "List of platforms." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["domainList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9617 (6) { ["name":protected]=> string(12) "Domains List" ["type":protected]=> string(10) "domainList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(false) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(58) "Total number of domains documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["domains"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "domain" ["description"]=> string(16) "List of domains." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["countryList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#13141 (6) { ["name":protected]=> string(14) "Countries List" ["type":protected]=> string(11) "countryList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(60) "Total number of countries documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["countries"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "country" ["description"]=> string(18) "List of countries." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["continentList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9577 (6) { ["name":protected]=> string(15) "Continents List" ["type":protected]=> string(13) "continentList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(61) "Total number of continents documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["continents"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(9) "continent" ["description"]=> string(19) "List of continents." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["languageList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#8505 (6) { ["name":protected]=> string(14) "Languages List" ["type":protected]=> string(12) "languageList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(60) "Total number of languages documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["languages"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(8) "language" ["description"]=> string(18) "List of languages." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["currencyList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#13142 (6) { ["name":protected]=> string(15) "Currencies List" ["type":protected]=> string(12) "currencyList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(61) "Total number of currencies documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["currencies"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(8) "currency" ["description"]=> string(19) "List of currencies." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["phoneList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#13060 (6) { ["name":protected]=> string(11) "Phones List" ["type":protected]=> string(9) "phoneList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(57) "Total number of phones documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["phones"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(5) "phone" ["description"]=> string(15) "List of phones." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["metricList"]=> object(Appwrite\Utopia\Response\Model\BaseList)#9615 (6) { ["name":protected]=> string(11) "Metric List" ["type":protected]=> string(10) "metricList" ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(false) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(58) "Total number of metrics documents that matched your query." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["metrics"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "metric" ["description"]=> string(16) "List of metrics." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["collection"]=> object(Appwrite\Utopia\Response\Model\Collection)#6926 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Collection ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["$read"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(28) "Collection read permissions." ["default"]=> string(0) "" ["example"]=> string(8) "role:all" ["array"]=> bool(true) } ["$write"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(29) "Collection write permissions." ["default"]=> string(0) "" ["example"]=> string(18) "user:608f9da25e7e1" ["array"]=> bool(true) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "Collection name." ["default"]=> string(0) "" ["example"]=> string(13) "My Collection" ["array"]=> bool(false) } ["enabled"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(19) "Collection enabled." ["default"]=> bool(true) ["example"]=> bool(false) ["array"]=> bool(false) } ["permission"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(72) "Collection permission model. Possible values: `document` or `collection`" ["default"]=> string(0) "" ["example"]=> string(8) "document" ["array"]=> bool(false) } ["attributes"]=> array(6) { ["require"]=> bool(true) ["type"]=> array(8) { [0]=> string(16) "attributeBoolean" [1]=> string(16) "attributeInteger" [2]=> string(14) "attributeFloat" [3]=> string(14) "attributeEmail" [4]=> string(13) "attributeEnum" [5]=> string(12) "attributeUrl" [6]=> string(11) "attributeIp" [7]=> string(15) "attributeString" } ["description"]=> string(22) "Collection attributes." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8200 (0) { } ["array"]=> bool(true) } ["indexes"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(5) "index" ["description"]=> string(19) "Collection indexes." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8381 (0) { } ["array"]=> bool(true) } } } ["attribute"]=> object(Appwrite\Utopia\Response\Model\Attribute)#8155 (5) { ["conditions"]=> array(0) { } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(5) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } } } ["attributeList"]=> object(Appwrite\Utopia\Response\Model\AttributeList)#9604 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(51) "Total number of attributes in the given collection." ["default"]=> int(0) ["example"]=> int(5) ["array"]=> bool(false) } ["attributes"]=> array(6) { ["require"]=> bool(true) ["type"]=> array(8) { [0]=> string(16) "attributeBoolean" [1]=> string(16) "attributeInteger" [2]=> string(14) "attributeFloat" [3]=> string(14) "attributeEmail" [4]=> string(13) "attributeEnum" [5]=> string(12) "attributeUrl" [6]=> string(11) "attributeIp" [7]=> string(15) "attributeString" } ["description"]=> string(19) "List of attributes." ["default"]=> array(0) { } ["example"]=> string(0) "" ["array"]=> bool(true) } } } ["attributeString"]=> object(Appwrite\Utopia\Response\Model\AttributeString)#6772 (5) { ["conditions"]=> array(1) { ["type"]=> string(6) "string" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["size"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(15) "Attribute size." ["default"]=> int(0) ["example"]=> int(128) ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "string" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> string(7) "default" ["array"]=> bool(false) } } } ["attributeInteger"]=> object(Appwrite\Utopia\Response\Model\AttributeInteger)#9608 (5) { ["conditions"]=> array(1) { ["type"]=> string(7) "integer" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["min"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "integer" ["description"]=> string(43) "Minimum value to enforce for new documents." ["default"]=> NULL ["example"]=> int(1) ["array"]=> bool(false) } ["max"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "integer" ["description"]=> string(43) "Maximum value to enforce for new documents." ["default"]=> NULL ["example"]=> int(10) ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "integer" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> int(10) ["array"]=> bool(false) } } } ["attributeFloat"]=> object(Appwrite\Utopia\Response\Model\AttributeFloat)#9611 (5) { ["conditions"]=> array(1) { ["type"]=> string(6) "double" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["min"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "double" ["description"]=> string(43) "Minimum value to enforce for new documents." ["default"]=> NULL ["example"]=> float(1.5) ["array"]=> bool(false) } ["max"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "double" ["description"]=> string(43) "Maximum value to enforce for new documents." ["default"]=> NULL ["example"]=> float(10.5) ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "double" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> float(2.5) ["array"]=> bool(false) } } } ["attributeBoolean"]=> object(Appwrite\Utopia\Response\Model\AttributeBoolean)#9601 (5) { ["conditions"]=> array(1) { ["type"]=> string(7) "boolean" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(6) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> bool(false) ["array"]=> bool(false) } } } ["attributeEmail"]=> object(Appwrite\Utopia\Response\Model\AttributeEmail)#9600 (5) { ["conditions"]=> array(2) { ["type"]=> string(6) "string" ["format"]=> string(5) "email" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["format"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "String format." ["default"]=> string(5) "email" ["example"]=> string(5) "email" ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "string" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> string(19) "[email protected]" ["array"]=> bool(false) } } } ["attributeEnum"]=> object(Appwrite\Utopia\Response\Model\AttributeEnum)#9596 (5) { ["conditions"]=> array(2) { ["type"]=> string(6) "string" ["format"]=> string(4) "enum" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["elements"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(37) "Array of elements in enumerated type." ["default"]=> NULL ["example"]=> string(7) "element" ["array"]=> bool(true) } ["format"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "String format." ["default"]=> string(4) "enum" ["example"]=> string(4) "enum" ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "string" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> string(7) "element" ["array"]=> bool(false) } } } ["attributeIp"]=> object(Appwrite\Utopia\Response\Model\AttributeIP)#9755 (5) { ["conditions"]=> array(2) { ["type"]=> string(6) "string" ["format"]=> string(2) "ip" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["format"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "String format." ["default"]=> string(2) "ip" ["example"]=> string(2) "ip" ["array"]=> bool(false) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "string" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> string(9) "192.0.2.0" ["array"]=> bool(false) } } } ["attributeUrl"]=> object(Appwrite\Utopia\Response\Model\AttributeURL)#9602 (5) { ["conditions"]=> array(2) { ["type"]=> string(6) "string" ["format"]=> string(3) "url" } ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Attribute Key." ["default"]=> string(0) "" ["example"]=> string(8) "fullName" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Attribute type." ["default"]=> string(0) "" ["example"]=> string(6) "string" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["required"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute required?" ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["array"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Is attribute an array?" ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["format"]=> array(7) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "String format." ["default"]=> string(3) "url" ["example"]=> string(3) "url" ["array"]=> bool(false) ["required"]=> bool(true) } ["default"]=> array(6) { ["require"]=> bool(false) ["type"]=> string(6) "string" ["description"]=> string(88) "Default value for attribute when not provided. Cannot be set when attribute is required." ["default"]=> NULL ["example"]=> string(18) "http:https://example.com" ["array"]=> bool(false) } } } ["index"]=> object(Appwrite\Utopia\Response\Model\Index)#8456 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(5) { ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "Index Key." ["default"]=> string(0) "" ["example"]=> string(6) "index1" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Index type." ["default"]=> string(0) "" ["example"]=> string(7) "primary" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(90) "Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`" ["default"]=> string(0) "" ["example"]=> string(9) "available" ["array"]=> bool(false) } ["attributes"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(17) "Index attributes." ["default"]=> array(0) { } ["example"]=> array(0) { } ["array"]=> bool(true) } ["orders"]=> array(7) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Index orders." ["default"]=> array(0) { } ["example"]=> array(0) { } ["array"]=> bool(true) ["required"]=> bool(false) } } } ["document"]=> object(Appwrite\Utopia\Response\Model\Document)#12897 (4) { ["any":protected]=> bool(true) ["none":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(4) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Document ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["$collection"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Collection ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c15117e" ["array"]=> bool(false) } ["$read"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(26) "Document read permissions." ["default"]=> string(0) "" ["example"]=> string(8) "role:all" ["array"]=> bool(true) } ["$write"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(27) "Document write permissions." ["default"]=> string(0) "" ["example"]=> string(18) "user:608f9da25e7e1" ["array"]=> bool(true) } } } ["log"]=> object(Appwrite\Utopia\Response\Model\Log)#9597 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(21) { ["event"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Event name." ["default"]=> string(0) "" ["example"]=> string(23) "account.sessions.create" ["array"]=> bool(false) } ["userId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "User ID." ["default"]=> string(0) "" ["example"]=> string(13) "610fc2f985ee0" ["array"]=> bool(false) } ["userEmail"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "User Email." ["default"]=> string(0) "" ["example"]=> string(16) "[email protected]" ["array"]=> bool(false) } ["userName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "User Name." ["default"]=> string(0) "" ["example"]=> string(8) "John Doe" ["array"]=> bool(false) } ["mode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(30) "API mode when event triggered." ["default"]=> string(0) "" ["example"]=> string(5) "admin" ["array"]=> bool(false) } ["ip"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(47) "IP session in use when the session was created." ["default"]=> string(0) "" ["example"]=> string(9) "127.0.0.1" ["array"]=> bool(false) } ["time"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(36) "Log creation time in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["osCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(130) "Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json)." ["default"]=> string(0) "" ["example"]=> string(3) "Mac" ["array"]=> bool(false) } ["osName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Operating system name." ["default"]=> string(0) "" ["example"]=> string(3) "Mac" ["array"]=> bool(false) } ["osVersion"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "Operating system version." ["default"]=> string(0) "" ["example"]=> string(3) "Mac" ["array"]=> bool(false) } ["clientType"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Client type." ["default"]=> string(0) "" ["example"]=> string(7) "browser" ["array"]=> bool(false) } ["clientCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(125) "Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json)." ["default"]=> string(0) "" ["example"]=> string(2) "CM" ["array"]=> bool(false) } ["clientName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Client name." ["default"]=> string(0) "" ["example"]=> string(17) "Chrome Mobile iOS" ["array"]=> bool(false) } ["clientVersion"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Client version." ["default"]=> string(0) "" ["example"]=> string(4) "84.0" ["array"]=> bool(false) } ["clientEngine"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Client engine name." ["default"]=> string(0) "" ["example"]=> string(6) "WebKit" ["array"]=> bool(false) } ["clientEngineVersion"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Client engine name." ["default"]=> string(0) "" ["example"]=> string(8) "605.1.15" ["array"]=> bool(false) } ["deviceName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Device name." ["default"]=> string(0) "" ["example"]=> string(10) "smartphone" ["array"]=> bool(false) } ["deviceBrand"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "Device brand name." ["default"]=> string(0) "" ["example"]=> string(6) "Google" ["array"]=> bool(false) } ["deviceModel"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "Device model name." ["default"]=> string(0) "" ["example"]=> string(7) "Nexus 5" ["array"]=> bool(false) } ["countryCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(44) "Country two-character ISO 3166-1 alpha code." ["default"]=> string(0) "" ["example"]=> string(2) "US" ["array"]=> bool(false) } ["countryName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Country name." ["default"]=> string(0) "" ["example"]=> string(13) "United States" ["array"]=> bool(false) } } } ["user"]=> object(Appwrite\Utopia\Response\Model\User)#9603 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "User ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "User name." ["default"]=> string(0) "" ["example"]=> string(8) "John Doe" ["array"]=> bool(false) } ["registration"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(41) "User registration date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(62) "User status. Pass `true` for enabled and `false` for disabled." ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["passwordUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(49) "Unix timestamp of the most recent password update" ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["email"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "User email address." ["default"]=> string(0) "" ["example"]=> string(16) "[email protected]" ["array"]=> bool(false) } ["emailVerification"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(26) "Email verification status." ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["prefs"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(11) "preferences" ["description"]=> string(38) "User preferences as a key-value object" ["default"]=> object(stdClass)#9595 (0) { } ["example"]=> array(2) { ["theme"]=> string(4) "pink" ["timezone"]=> string(3) "UTC" } ["array"]=> bool(false) } } } ["preferences"]=> object(Appwrite\Utopia\Response\Model\Preferences)#8867 (4) { ["any":protected]=> bool(true) ["none":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(0) { } } ["session"]=> object(Appwrite\Utopia\Response\Model\Session)#8172 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(24) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Session ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["userId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "User ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5bb8c16897e" ["array"]=> bool(false) } ["expire"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(42) "Session expiration date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["provider"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(17) "Session Provider." ["default"]=> string(0) "" ["example"]=> string(5) "email" ["array"]=> bool(false) } ["providerUid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "Session Provider User ID." ["default"]=> string(0) "" ["example"]=> string(16) "[email protected]" ["array"]=> bool(false) } ["providerAccessToken"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(30) "Session Provider Access Token." ["default"]=> string(0) "" ["example"]=> string(32) "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3" ["array"]=> bool(false) } ["providerAccessTokenExpiry"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(58) "Date, the Unix timestamp of when the access token expires." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["providerRefreshToken"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(31) "Session Provider Refresh Token." ["default"]=> string(0) "" ["example"]=> string(32) "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3" ["array"]=> bool(false) } ["ip"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(39) "IP in use when the session was created." ["default"]=> string(0) "" ["example"]=> string(9) "127.0.0.1" ["array"]=> bool(false) } ["osCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(130) "Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json)." ["default"]=> string(0) "" ["example"]=> string(3) "Mac" ["array"]=> bool(false) } ["osName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Operating system name." ["default"]=> string(0) "" ["example"]=> string(3) "Mac" ["array"]=> bool(false) } ["osVersion"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "Operating system version." ["default"]=> string(0) "" ["example"]=> string(3) "Mac" ["array"]=> bool(false) } ["clientType"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Client type." ["default"]=> string(0) "" ["example"]=> string(7) "browser" ["array"]=> bool(false) } ["clientCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(125) "Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json)." ["default"]=> string(0) "" ["example"]=> string(2) "CM" ["array"]=> bool(false) } ["clientName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Client name." ["default"]=> string(0) "" ["example"]=> string(17) "Chrome Mobile iOS" ["array"]=> bool(false) } ["clientVersion"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Client version." ["default"]=> string(0) "" ["example"]=> string(4) "84.0" ["array"]=> bool(false) } ["clientEngine"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Client engine name." ["default"]=> string(0) "" ["example"]=> string(6) "WebKit" ["array"]=> bool(false) } ["clientEngineVersion"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Client engine name." ["default"]=> string(0) "" ["example"]=> string(8) "605.1.15" ["array"]=> bool(false) } ["deviceName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Device name." ["default"]=> string(0) "" ["example"]=> string(10) "smartphone" ["array"]=> bool(false) } ["deviceBrand"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "Device brand name." ["default"]=> string(0) "" ["example"]=> string(6) "Google" ["array"]=> bool(false) } ["deviceModel"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "Device model name." ["default"]=> string(0) "" ["example"]=> string(7) "Nexus 5" ["array"]=> bool(false) } ["countryCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(44) "Country two-character ISO 3166-1 alpha code." ["default"]=> string(0) "" ["example"]=> string(2) "US" ["array"]=> bool(false) } ["countryName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Country name." ["default"]=> string(0) "" ["example"]=> string(13) "United States" ["array"]=> bool(false) } ["current"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(46) "Returns true if this the current user session." ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } } } ["token"]=> object(Appwrite\Utopia\Response\Model\Token)#9542 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(4) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(9) "Token ID." ["default"]=> string(0) "" ["example"]=> string(13) "bb8ea5c16897e" ["array"]=> bool(false) } ["userId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "User ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c168bb8" ["array"]=> bool(false) } ["secret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(132) "Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload." ["default"]=> string(0) "" ["example"]=> string(0) "" ["array"]=> bool(false) } ["expire"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(40) "Token expiration date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } } } ["jwt"]=> object(Appwrite\Utopia\Response\Model\JWT)#6630 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(1) { ["jwt"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "JWT encoded string." ["default"]=> NULL ["example"]=> string(155) "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" ["array"]=> bool(false) } } } ["locale"]=> object(Appwrite\Utopia\Response\Model\Locale)#8282 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["ip"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "User IP address." ["default"]=> string(0) "" ["example"]=> string(9) "127.0.0.1" ["array"]=> bool(false) } ["countryCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(90) "Country code in [ISO 3166-1](http:https://en.wikipedia.org/wiki/ISO_3166-1) two-character format" ["default"]=> string(0) "" ["example"]=> string(2) "US" ["array"]=> bool(false) } ["country"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(46) "Country name. This field support localization." ["default"]=> string(0) "" ["example"]=> string(13) "United States" ["array"]=> bool(false) } ["continentCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(186) "Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America." ["default"]=> string(0) "" ["example"]=> string(2) "NA" ["array"]=> bool(false) } ["continent"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(48) "Continent name. This field support localization." ["default"]=> string(0) "" ["example"]=> string(13) "North America" ["array"]=> bool(false) } ["eu"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(46) "True if country is part of the Europian Union." ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["currency"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(91) "Currency code in [ISO 4217-1](http:https://en.wikipedia.org/wiki/ISO_4217) three-character format" ["default"]=> string(0) "" ["example"]=> string(3) "USD" ["array"]=> bool(false) } } } ["file"]=> object(Appwrite\Utopia\Response\Model\File)#9541 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(11) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "File ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["bucketId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "Bucket ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["$read"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "File read permissions." ["default"]=> array(0) { } ["example"]=> string(8) "role:all" ["array"]=> bool(true) } ["$write"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "File write permissions." ["default"]=> array(0) { } ["example"]=> string(18) "user:608f9da25e7e1" ["array"]=> bool(true) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "File name." ["default"]=> string(0) "" ["example"]=> string(8) "Pink.png" ["array"]=> bool(false) } ["dateCreated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(37) "File creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["signature"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "File MD5 signature." ["default"]=> string(0) "" ["example"]=> string(32) "5d529fd02b544198ae075bd57c1762bb" ["array"]=> bool(false) } ["mimeType"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "File mime type." ["default"]=> string(0) "" ["example"]=> string(9) "image/png" ["array"]=> bool(false) } ["sizeOriginal"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(28) "File original size in bytes." ["default"]=> int(0) ["example"]=> int(17890) ["array"]=> bool(false) } ["chunksTotal"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(32) "Total number of chunks available" ["default"]=> int(0) ["example"]=> int(17890) ["array"]=> bool(false) } ["chunksUploaded"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(31) "Total number of chunks uploaded" ["default"]=> int(0) ["example"]=> int(17890) ["array"]=> bool(false) } } } ["bucket"]=> object(Appwrite\Utopia\Response\Model\Bucket)#8165 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(12) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "Bucket ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["$read"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "File read permissions." ["default"]=> array(0) { } ["example"]=> array(1) { [0]=> string(8) "role:all" } ["array"]=> bool(true) } ["$write"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "File write permissions." ["default"]=> array(0) { } ["example"]=> array(1) { [0]=> string(18) "user:608f9da25e7e1" } ["array"]=> bool(true) } ["permission"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(60) "Bucket permission model. Possible values: `bucket` or `file`" ["default"]=> string(0) "" ["example"]=> string(4) "file" ["array"]=> bool(false) } ["dateCreated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(39) "Bucket creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["dateUpdated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(37) "Bucket update date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Bucket name." ["default"]=> string(0) "" ["example"]=> string(9) "Documents" ["array"]=> bool(false) } ["enabled"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(15) "Bucket enabled." ["default"]=> bool(true) ["example"]=> bool(false) ["array"]=> bool(false) } ["maximumFileSize"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(28) "Maximum file size supported." ["default"]=> int(0) ["example"]=> int(100) ["array"]=> bool(false) } ["allowedFileExtensions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Allowed file extensions." ["default"]=> array(0) { } ["example"]=> array(2) { [0]=> string(3) "jpg" [1]=> string(3) "png" } ["array"]=> bool(true) } ["encryption"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(20) "Bucket is encrypted." ["default"]=> bool(true) ["example"]=> bool(false) ["array"]=> bool(false) } ["antivirus"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(26) "Virus scanning is enabled." ["default"]=> bool(true) ["example"]=> bool(false) ["array"]=> bool(false) } } } ["team"]=> object(Appwrite\Utopia\Response\Model\Team)#6198 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(4) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "Team ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "Team name." ["default"]=> string(0) "" ["example"]=> string(3) "VIP" ["array"]=> bool(false) } ["dateCreated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(37) "Team creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["total"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(29) "Total number of team members." ["default"]=> int(0) ["example"]=> int(7) ["array"]=> bool(false) } } } ["membership"]=> object(Appwrite\Utopia\Response\Model\Membership)#9760 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(9) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Membership ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["userId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "User ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["teamId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(8) "Team ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "User name." ["default"]=> string(0) "" ["example"]=> string(3) "VIP" ["array"]=> bool(false) } ["email"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "User email address." ["default"]=> string(0) "" ["example"]=> string(16) "[email protected]" ["array"]=> bool(false) } ["invited"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(67) "Date, the user has been invited to join the team in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["joined"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(78) "Date, the user has accepted the invitation to join the team in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["confirm"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(82) "User confirmation status, true if the user has joined the team or false otherwise." ["default"]=> bool(false) ["example"]=> bool(false) ["array"]=> bool(false) } ["roles"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "User list of roles" ["default"]=> array(0) { } ["example"]=> string(5) "admin" ["array"]=> bool(true) } } } ["function"]=> object(Appwrite\Utopia\Response\Model\Func)#9543 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(14) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Function ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["execute"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Execution permissions." ["default"]=> array(0) { } ["example"]=> string(11) "role:member" ["array"]=> bool(true) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Function name." ["default"]=> string(0) "" ["example"]=> string(11) "My Function" ["array"]=> bool(false) } ["dateCreated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(41) "Function creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["dateUpdated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(39) "Function update date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981257) ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(55) "Function status. Possible values: `disabled`, `enabled`" ["default"]=> string(0) "" ["example"]=> string(7) "enabled" ["array"]=> bool(false) } ["runtime"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(27) "Function execution runtime." ["default"]=> string(0) "" ["example"]=> string(10) "python-3.8" ["array"]=> bool(false) } ["deployment"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(32) "Function's active deployment ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["vars"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(4) "json" ["description"]=> string(31) "Function environment variables." ["default"]=> object(stdClass)#9599 (0) { } ["example"]=> array(1) { ["key"]=> string(5) "value" } ["array"]=> bool(false) } ["events"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Function trigger events." ["default"]=> array(0) { } ["example"]=> string(14) "account.create" ["array"]=> bool(true) } ["schedule"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(43) "Function execution schedult in CRON format." ["default"]=> string(0) "" ["example"]=> string(9) "5 4 * * *" ["array"]=> bool(false) } ["scheduleNext"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(57) "Function next scheduled execution date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981292) ["array"]=> bool(false) } ["schedulePrevious"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(57) "Function next scheduled execution date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981237) ["array"]=> bool(false) } ["timeout"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(38) "Function execution timeout in seconds." ["default"]=> int(15) ["example"]=> int(1592981237) ["array"]=> bool(false) } } } ["runtime"]=> object(Appwrite\Utopia\Response\Model\Runtime)#8180 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Runtime ID." ["default"]=> string(0) "" ["example"]=> string(10) "python-3.8" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Runtime Name." ["default"]=> string(0) "" ["example"]=> string(6) "Python" ["array"]=> bool(false) } ["version"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "Runtime version." ["default"]=> string(0) "" ["example"]=> string(3) "3.8" ["array"]=> bool(false) } ["base"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(44) "Base Docker image used to build the runtime." ["default"]=> string(0) "" ["example"]=> string(17) "python:3.8-alpine" ["array"]=> bool(false) } ["image"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "Image name of Docker Hub." ["default"]=> string(0) "" ["example"]=> string(32) "appwrite\/runtime-for-python:3.8" ["array"]=> bool(false) } ["logo"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Name of the logo image." ["default"]=> string(0) "" ["example"]=> string(10) "python.png" ["array"]=> bool(false) } ["supports"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(32) "List of supported architectures." ["default"]=> string(0) "" ["example"]=> string(5) "amd64" ["array"]=> bool(true) } } } ["deployment"]=> object(Appwrite\Utopia\Response\Model\Deployment)#8168 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(11) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Deployment ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["resourceId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Resource ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea6g16897e" ["array"]=> bool(false) } ["resourceType"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Resource type." ["default"]=> string(0) "" ["example"]=> string(9) "functions" ["array"]=> bool(false) } ["dateCreated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(47) "The deployment creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["entrypoint"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(58) "The entrypoint file to use to execute the deployment code." ["default"]=> string(0) "" ["example"]=> string(7) "enabled" ["array"]=> bool(false) } ["size"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(23) "The code size in bytes." ["default"]=> int(0) ["example"]=> int(128) ["array"]=> bool(false) } ["buildId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "The current build ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["activate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(57) "Whether the deployment should be automatically activated." ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "The deployment status." ["default"]=> string(0) "" ["example"]=> string(7) "enabled" ["array"]=> bool(false) } ["buildStdout"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(17) "The build stdout." ["default"]=> string(0) "" ["example"]=> string(7) "enabled" ["array"]=> bool(false) } ["buildStderr"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(17) "The build stderr." ["default"]=> string(0) "" ["example"]=> string(7) "enabled" ["array"]=> bool(false) } } } ["execution"]=> object(Appwrite\Utopia\Response\Model\Execution)#8163 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(10) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Execution ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["$read"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(27) "Execution read permissions." ["default"]=> string(0) "" ["example"]=> string(8) "role:all" ["array"]=> bool(true) } ["functionId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Function ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea6g16897e" ["array"]=> bool(false) } ["dateCreated"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(46) "The execution creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["trigger"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(104) "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`." ["default"]=> string(0) "" ["example"]=> string(4) "http" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(112) "The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`." ["default"]=> string(0) "" ["example"]=> string(10) "processing" ["array"]=> bool(false) } ["statusCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(23) "The script status code." ["default"]=> int(0) ["example"]=> int(0) ["array"]=> bool(false) } ["stdout"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(95) "The script stdout output string. Logs the last 4,000 characters of the execution stdout output." ["default"]=> string(0) "" ["example"]=> string(0) "" ["array"]=> bool(false) } ["stderr"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(94) "The script stderr output string. Logs the last 4,000 characters of the execution stderr output" ["default"]=> string(0) "" ["example"]=> string(0) "" ["array"]=> bool(false) } ["time"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "double" ["description"]=> string(37) "The script execution time in seconds." ["default"]=> int(0) ["example"]=> float(0.4) ["array"]=> bool(false) } } } ["build"]=> object(Appwrite\Utopia\Response\Model\Build)#7733 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(9) "Build ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["startTime"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(47) "The deployment creation date in Unix timestamp." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } ["deploymentId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(39) "The deployment that created this build." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(398) "The build status. There are a few different types and each one means something different. \nFailed - The deployment build has failed. More details can usually be found in buildStderr\nReady - The deployment build was successful and the deployment is ready to be deployed\nProcessing - The deployment is currently waiting to have a build triggered\nBuilding - The deployment is currently being built" ["default"]=> string(0) "" ["example"]=> string(5) "ready" ["array"]=> bool(false) } ["stdout"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "The stdout of the build." ["default"]=> string(0) "" ["example"]=> string(0) "" ["array"]=> bool(false) } ["stderr"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "The stderr of the build." ["default"]=> string(0) "" ["example"]=> string(0) "" ["array"]=> bool(false) } ["endTime"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(50) "The time the build was finished in Unix timestamp." ["default"]=> int(0) ["example"]=> int(0) ["array"]=> bool(false) } ["duration"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(26) "The build time in seconds." ["default"]=> int(0) ["example"]=> int(0) ["array"]=> bool(false) } } } ["project"]=> object(Appwrite\Utopia\Response\Model\Project)#9498 (4) { ["public":protected]=> bool(false) ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["rules":protected]=> array(90) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Project ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Project name." ["default"]=> string(0) "" ["example"]=> string(11) "New Project" ["array"]=> bool(false) } ["description"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Project description." ["default"]=> string(0) "" ["example"]=> string(22) "This is a new project." ["array"]=> bool(false) } ["teamId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "Project team ID." ["default"]=> string(0) "" ["example"]=> string(10) "1592981250" ["array"]=> bool(false) } ["logo"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Project logo file ID." ["default"]=> string(0) "" ["example"]=> string(13) "5f5c451b403cb" ["array"]=> bool(false) } ["url"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Project website URL." ["default"]=> string(0) "" ["example"]=> string(13) "5f5c451b403cb" ["array"]=> bool(false) } ["legalName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Company legal name." ["default"]=> string(0) "" ["example"]=> string(12) "Company LTD." ["array"]=> bool(false) } ["legalCountry"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(91) "Country code in [ISO 3166-1](http:https://en.wikipedia.org/wiki/ISO_3166-1) two-character format." ["default"]=> string(0) "" ["example"]=> string(2) "US" ["array"]=> bool(false) } ["legalState"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "State name." ["default"]=> string(0) "" ["example"]=> string(8) "New York" ["array"]=> bool(false) } ["legalCity"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "City name." ["default"]=> string(0) "" ["example"]=> string(14) "New York City." ["array"]=> bool(false) } ["legalAddress"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "Company Address." ["default"]=> string(0) "" ["example"]=> string(37) "620 Eighth Avenue, New York, NY 10018" ["array"]=> bool(false) } ["legalTaxId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Company Tax ID." ["default"]=> string(0) "" ["example"]=> string(9) "131102020" ["array"]=> bool(false) } ["authLimit"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(34) "Max users allowed. 0 is unlimited." ["default"]=> int(0) ["example"]=> int(100) ["array"]=> bool(false) } ["platforms"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(8) "platform" ["description"]=> string(18) "List of Platforms." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6618 (0) { } ["array"]=> bool(true) } ["webhooks"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "webhook" ["description"]=> string(17) "List of Webhooks." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8499 (0) { } ["array"]=> bool(true) } ["keys"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(3) "key" ["description"]=> string(17) "List of API Keys." ["default"]=> array(0) { } ["example"]=> object(stdClass)#12899 (0) { } ["array"]=> bool(true) } ["domains"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "domain" ["description"]=> string(16) "List of Domains." ["default"]=> array(0) { } ["example"]=> object(stdClass)#9484 (0) { } ["array"]=> bool(true) } ["providerAmazonAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Amazon OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerAmazonSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Amazon OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerAppleAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Apple OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerAppleSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Apple OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerBitbucketAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "BitBucket OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerBitbucketSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(26) "BitBucket OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerBitlyAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Bitly OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerBitlySecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Bitly OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerBoxAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(17) "Box OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerBoxSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Box OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerDiscordAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Discord OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerDiscordSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Discord OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerDropboxAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Dropbox OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerDropboxSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Dropbox OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerFacebookAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Facebook OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerFacebookSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "Facebook OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerGithubAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "GitHub OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerGithubSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "GitHub OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerGitlabAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "GitLab OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerGitlabSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "GitLab OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerGoogleAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Google OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerGoogleSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Google OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerLinkedinAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "LinkedIn OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerLinkedinSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "LinkedIn OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerMicrosoftAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Microsoft OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerMicrosoftSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(26) "Microsoft OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerNotionAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Notion OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerNotionSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Notion OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerPaypalAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "PayPal OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerPaypalSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "PayPal OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerPaypalSandboxAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "PayPal OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerPaypalSandboxSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "PayPal OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerSalesforceAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Salesforce OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerSalesforceSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(27) "Salesforce OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerSlackAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Slack OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerSlackSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Slack OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerSpotifyAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Spotify OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerSpotifySecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Spotify OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerTradeshiftAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Tradeshift OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerTradeshiftSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(27) "Tradeshift OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerTradeshiftBoxAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(24) "Tradeshift OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerTradeshiftBoxSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(27) "Tradeshift OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerTwitchAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Twitch OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerTwitchSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Twitch OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerVkAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "VK OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerVkSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "VK OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerYahooAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(19) "Yahoo OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerYahooSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(22) "Yahoo OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerYammerAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Yammer OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerYammerSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Yammer OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerYandexAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Yandex OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerYandexSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Yandex OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerWordpressAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "WordPress OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerWordpressSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(26) "WordPress OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerStripeAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Stripe OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerStripeSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Stripe OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["providerMockAppid"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "Mock OAuth app ID." ["default"]=> string(0) "" ["example"]=> string(21) "123247283472834787438" ["array"]=> bool(false) } ["providerMockSecret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Mock OAuth secret ID." ["default"]=> string(0) "" ["example"]=> string(27) "djsgudsdsewe43434343dd34..." ["array"]=> bool(false) } ["authEmailPassword"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(33) "Email/Password auth method status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["authUsersAuthMagicURL"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(28) "Magic URL auth method status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["authAnonymous"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(28) "Anonymous auth method status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["authInvites"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(26) "Invites auth method status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["authJWT"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "JWT auth method status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["authPhone"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(24) "Phone auth method status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForAccount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Account service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForAvatars"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Avatars service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForDatabase"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(23) "Database service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForLocale"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(21) "Locale service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForHealth"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(21) "Health service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForStorage"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(22) "Storage service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForTeams"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(20) "Teams service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForUsers"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(20) "Users service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["serviceStatusForFunctions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(24) "Functions service status" ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } } } ["webhook"]=> object(Appwrite\Utopia\Response\Model\Webhook)#8446 (4) { ["public":protected]=> bool(false) ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["rules":protected]=> array(7) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Webhook ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Webhook name." ["default"]=> string(0) "" ["example"]=> string(10) "My Webhook" ["array"]=> bool(false) } ["url"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Webhook URL endpoint." ["default"]=> string(0) "" ["example"]=> string(27) "https://example.com/webhook" ["array"]=> bool(false) } ["events"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Webhook trigger events." ["default"]=> array(0) { } ["example"]=> string(27) "database.collections.update" ["array"]=> bool(true) } ["security"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(59) "Indicated if SSL / TLS Certificate verification is enabled." ["default"]=> bool(true) ["example"]=> bool(true) ["array"]=> bool(false) } ["httpUser"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(35) "HTTP basic authentication username." ["default"]=> string(0) "" ["example"]=> string(8) "username" ["array"]=> bool(false) } ["httpPass"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(35) "HTTP basic authentication password." ["default"]=> string(0) "" ["example"]=> string(8) "password" ["array"]=> bool(false) } } } ["key"]=> object(Appwrite\Utopia\Response\Model\Key)#6755 (4) { ["public":protected]=> bool(false) ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["rules":protected]=> array(4) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(7) "Key ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(9) "Key name." ["default"]=> string(0) "" ["example"]=> string(10) "My API Key" ["array"]=> bool(false) } ["scopes"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(26) "Allowed permission scopes." ["default"]=> array(0) { } ["example"]=> string(10) "users.read" ["array"]=> bool(true) } ["secret"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Secret key." ["default"]=> string(0) "" ["example"]=> string(33) "919c2d18fb5d4...a2ae413da83346ad2" ["array"]=> bool(false) } } } ["domain"]=> object(Appwrite\Utopia\Response\Model\Domain)#12983 (4) { ["public":protected]=> bool(false) ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["rules":protected]=> array(6) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(10) "Domain ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["domain"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Domain name." ["default"]=> string(0) "" ["example"]=> string(20) "appwrite.company.com" ["array"]=> bool(false) } ["registerable"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(25) "Registerable domain name." ["default"]=> string(0) "" ["example"]=> string(11) "company.com" ["array"]=> bool(false) } ["tld"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(9) "TLD name." ["default"]=> string(0) "" ["example"]=> string(3) "com" ["array"]=> bool(false) } ["verification"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "boolean" ["description"]=> string(28) "Verification process status." ["default"]=> bool(false) ["example"]=> bool(true) ["array"]=> bool(false) } ["certificateId"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Certificate ID." ["default"]=> string(0) "" ["example"]=> string(13) "6ejea5c13377e" ["array"]=> bool(false) } } } ["platform"]=> object(Appwrite\Utopia\Response\Model\Platform)#6764 (4) { ["public":protected]=> bool(false) ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["rules":protected]=> array(8) { ["$id"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(12) "Platform ID." ["default"]=> string(0) "" ["example"]=> string(13) "5e5ea5c16897e" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Platform name." ["default"]=> string(0) "" ["example"]=> string(10) "My Web App" ["array"]=> bool(false) } ["type"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(95) "Platform type. Possible values are: web, flutter-ios, flutter-android, ios, android, and unity." ["default"]=> string(0) "" ["example"]=> string(10) "My Web App" ["array"]=> bool(false) } ["key"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(87) "Platform Key. iOS bundle ID or Android package name. Empty string for other platforms." ["default"]=> string(0) "" ["example"]=> string(19) "com.company.appname" ["array"]=> bool(false) } ["store"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "App store or Google Play store ID." ["default"]=> NULL ["example"]=> string(0) "" ["array"]=> bool(false) } ["hostname"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(51) "Web app hostname. Empty string for other platforms." ["default"]=> string(0) "" ["example"]=> bool(true) ["array"]=> bool(false) } ["httpUser"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(35) "HTTP basic authentication username." ["default"]=> string(0) "" ["example"]=> string(8) "username" ["array"]=> bool(false) } ["httpPass"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(35) "HTTP basic authentication password." ["default"]=> string(0) "" ["example"]=> string(8) "password" ["array"]=> bool(false) } } } ["country"]=> object(Appwrite\Utopia\Response\Model\Country)#7074 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Country name." ["default"]=> string(0) "" ["example"]=> string(13) "United States" ["array"]=> bool(false) } ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(44) "Country two-character ISO 3166-1 alpha code." ["default"]=> string(0) "" ["example"]=> string(2) "US" ["array"]=> bool(false) } } } ["continent"]=> object(Appwrite\Utopia\Response\Model\Continent)#6770 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Continent name." ["default"]=> string(0) "" ["example"]=> string(6) "Europe" ["array"]=> bool(false) } ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(26) "Continent two letter code." ["default"]=> string(0) "" ["example"]=> string(2) "EU" ["array"]=> bool(false) } } } ["language"]=> object(Appwrite\Utopia\Response\Model\Language)#7190 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(3) { ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Language name." ["default"]=> string(0) "" ["example"]=> string(7) "Italian" ["array"]=> bool(false) } ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(39) "Language two-character ISO 639-1 codes." ["default"]=> string(0) "" ["example"]=> string(2) "it" ["array"]=> bool(false) } ["nativeName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(21) "Language native name." ["default"]=> string(0) "" ["example"]=> string(8) "Italiano" ["array"]=> bool(false) } } } ["currency"]=> object(Appwrite\Utopia\Response\Model\Currency)#6898 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["symbol"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(16) "Currency symbol." ["default"]=> string(0) "" ["example"]=> string(1) "$" ["array"]=> bool(false) } ["name"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(14) "Currency name." ["default"]=> string(0) "" ["example"]=> string(9) "US dollar" ["array"]=> bool(false) } ["symbolNative"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(23) "Currency native symbol." ["default"]=> string(0) "" ["example"]=> string(1) "$" ["array"]=> bool(false) } ["decimalDigits"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(25) "Number of decimal digits." ["default"]=> int(0) ["example"]=> int(2) ["array"]=> bool(false) } ["rounding"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "double" ["description"]=> string(24) "Currency digit rounding." ["default"]=> int(0) ["example"]=> int(0) ["array"]=> bool(false) } ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(92) "Currency code in [ISO 4217-1](http:https://en.wikipedia.org/wiki/ISO_4217) three-character format." ["default"]=> string(0) "" ["example"]=> string(3) "USD" ["array"]=> bool(false) } ["namePlural"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(20) "Currency plural name" ["default"]=> string(0) "" ["example"]=> string(10) "US dollars" ["array"]=> bool(false) } } } ["phone"]=> object(Appwrite\Utopia\Response\Model\Phone)#8601 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(3) { ["code"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(11) "Phone code." ["default"]=> string(0) "" ["example"]=> string(2) "+1" ["array"]=> bool(false) } ["countryCode"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(44) "Country two-character ISO 3166-1 alpha code." ["default"]=> string(0) "" ["example"]=> string(2) "US" ["array"]=> bool(false) } ["countryName"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(13) "Country name." ["default"]=> string(0) "" ["example"]=> string(13) "United States" ["array"]=> bool(false) } } } ["healthAntivirus"]=> object(Appwrite\Utopia\Response\Model\HealthAntivirus)#8630 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["version"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(18) "Antivirus version." ["default"]=> string(0) "" ["example"]=> string(5) "1.0.0" ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(74) "Antivirus status. Possible values can are: `disabled`, `offline`, `online`" ["default"]=> string(0) "" ["example"]=> string(6) "online" ["array"]=> bool(false) } } } ["healthQueue"]=> object(Appwrite\Utopia\Response\Model\HealthQueue)#6742 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(1) { ["size"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(31) "Amount of actions in the queue." ["default"]=> int(0) ["example"]=> int(8) ["array"]=> bool(false) } } } ["healthStatus"]=> object(Appwrite\Utopia\Response\Model\HealthStatus)#8127 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["ping"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(56) "Duration in milliseconds how long the health check took." ["default"]=> int(0) ["example"]=> int(128) ["array"]=> bool(false) } ["status"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(55) "Service status. Possible values can are: `pass`, `fail`" ["default"]=> string(0) "" ["example"]=> string(4) "pass" ["array"]=> bool(false) } } } ["healthTime"]=> object(Appwrite\Utopia\Response\Model\HealthTime)#6574 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(3) { ["remoteTime"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(49) "Current unix timestamp on trustful remote server." ["default"]=> int(0) ["example"]=> int(1639490751) ["array"]=> bool(false) } ["localTime"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(59) "Current unix timestamp of local server where Appwrite runs." ["default"]=> int(0) ["example"]=> int(1639490844) ["array"]=> bool(false) } ["diff"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(63) "Difference of unix remote and local timestamps in milliseconds." ["default"]=> int(0) ["example"]=> int(93) ["array"]=> bool(false) } } } ["healthVersion"]=> object(Appwrite\Utopia\Response\Model\HealthVersion)#8451 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(1) { ["version"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(33) "Version of the Appwrite instance." ["default"]=> string(0) "" ["example"]=> string(6) "0.11.0" ["array"]=> bool(false) } } } ["metric"]=> object(Appwrite\Utopia\Response\Model\Metric)#6768 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(2) { ["value"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(42) "The value of this metric at the timestamp." ["default"]=> int(-1) ["example"]=> int(1) ["array"]=> bool(false) } ["timestamp"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(7) "integer" ["description"]=> string(55) "The UNIX timestamp at which this metric was aggregated." ["default"]=> int(0) ["example"]=> int(1592981250) ["array"]=> bool(false) } } } ["usageDatabase"]=> object(Appwrite\Utopia\Response\Model\UsageDatabase)#6560 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(11) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["documentsCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(47) "Aggregated stats for total number of documents." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6632 (0) { } ["array"]=> bool(true) } ["collectionsCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(49) "Aggregated stats for total number of collections." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6744 (0) { } ["array"]=> bool(true) } ["documentsCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(39) "Aggregated stats for documents created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6515 (0) { } ["array"]=> bool(true) } ["documentsRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(36) "Aggregated stats for documents read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6740 (0) { } ["array"]=> bool(true) } ["documentsUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(39) "Aggregated stats for documents updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6196 (0) { } ["array"]=> bool(true) } ["documentsDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(39) "Aggregated stats for documents deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6534 (0) { } ["array"]=> bool(true) } ["collectionsCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(41) "Aggregated stats for collections created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6745 (0) { } ["array"]=> bool(true) } ["collectionsRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(38) "Aggregated stats for collections read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6752 (0) { } ["array"]=> bool(true) } ["collectionsUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(41) "Aggregated stats for collections updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6195 (0) { } ["array"]=> bool(true) } ["collectionsDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(40) "Aggregated stats for collections delete." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6598 (0) { } ["array"]=> bool(true) } } } ["usageCollection"]=> object(Appwrite\Utopia\Response\Model\UsageCollection)#6036 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(6) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["documentsCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(47) "Aggregated stats for total number of documents." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6579 (0) { } ["array"]=> bool(true) } ["documentsCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(39) "Aggregated stats for documents created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#7194 (0) { } ["array"]=> bool(true) } ["documentsRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(36) "Aggregated stats for documents read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6583 (0) { } ["array"]=> bool(true) } ["documentsUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(39) "Aggregated stats for documents updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6599 (0) { } ["array"]=> bool(true) } ["documentsDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(39) "Aggregated stats for documents deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6601 (0) { } ["array"]=> bool(true) } } } ["usageUsers"]=> object(Appwrite\Utopia\Response\Model\UsageUsers)#7044 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(9) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["usersCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(43) "Aggregated stats for total number of users." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6888 (0) { } ["array"]=> bool(true) } ["usersCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for users created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6600 (0) { } ["array"]=> bool(true) } ["usersRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(32) "Aggregated stats for users read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6738 (0) { } ["array"]=> bool(true) } ["usersUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for users updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6739 (0) { } ["array"]=> bool(true) } ["usersDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for users deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8176 (0) { } ["array"]=> bool(true) } ["sessionsCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(38) "Aggregated stats for sessions created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6884 (0) { } ["array"]=> bool(true) } ["sessionsProviderCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(84) "Aggregated stats for sessions created for a provider ( email, anonymous or oauth2 )." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6533 (0) { } ["array"]=> bool(true) } ["sessionsDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(38) "Aggregated stats for sessions deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6595 (0) { } ["array"]=> bool(true) } } } ["usageStorage"]=> object(Appwrite\Utopia\Response\Model\UsageStorage)#7977 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(13) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["filesStorage"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(67) "Aggregated stats for the occupied storage size by files (in bytes)." ["default"]=> array(0) { } ["example"]=> object(stdClass)#9014 (0) { } ["array"]=> bool(true) } ["tagsStorage"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(66) "Aggregated stats for the occupied storage size by tags (in bytes)." ["default"]=> array(0) { } ["example"]=> object(stdClass)#9022 (0) { } ["array"]=> bool(true) } ["filesCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(43) "Aggregated stats for total number of files." ["default"]=> array(0) { } ["example"]=> object(stdClass)#9034 (0) { } ["array"]=> bool(true) } ["bucketsCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(45) "Aggregated stats for total number of buckets." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6590 (0) { } ["array"]=> bool(true) } ["bucketsCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(37) "Aggregated stats for buckets created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8569 (0) { } ["array"]=> bool(true) } ["bucketsRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(34) "Aggregated stats for buckets read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#9026 (0) { } ["array"]=> bool(true) } ["bucketsUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(37) "Aggregated stats for buckets updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6597 (0) { } ["array"]=> bool(true) } ["bucketsDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(37) "Aggregated stats for buckets deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6734 (0) { } ["array"]=> bool(true) } ["filesCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for files created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6731 (0) { } ["array"]=> bool(true) } ["filesRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(32) "Aggregated stats for files read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6732 (0) { } ["array"]=> bool(true) } ["filesUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for files updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6719 (0) { } ["array"]=> bool(true) } ["filesDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for files deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6194 (0) { } ["array"]=> bool(true) } } } ["usageBuckets"]=> object(Appwrite\Utopia\Response\Model\UsageBuckets)#7111 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(7) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["filesCount"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(58) "Aggregated stats for total number of files in this bucket." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6578 (0) { } ["array"]=> bool(true) } ["filesStorage"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(59) "Aggregated stats for total storage of files in this bucket." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6657 (0) { } ["array"]=> bool(true) } ["filesCreate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for files created." ["default"]=> array(0) { } ["example"]=> object(stdClass)#7093 (0) { } ["array"]=> bool(true) } ["filesRead"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(32) "Aggregated stats for files read." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8549 (0) { } ["array"]=> bool(true) } ["filesUpdate"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for files updated." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6677 (0) { } ["array"]=> bool(true) } ["filesDelete"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(35) "Aggregated stats for files deleted." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8128 (0) { } ["array"]=> bool(true) } } } ["usageFunctions"]=> object(Appwrite\Utopia\Response\Model\UsageFunctions)#8560 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(4) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["functionsExecutions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(41) "Aggregated stats for function executions." ["default"]=> array(0) { } ["example"]=> object(stdClass)#6778 (0) { } ["array"]=> bool(true) } ["functionsFailures"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(49) "Aggregated stats for function execution failures." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8541 (0) { } ["array"]=> bool(true) } ["functionsCompute"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(49) "Aggregated stats for function execution duration." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8204 (0) { } ["array"]=> bool(true) } } } ["usageProject"]=> object(Appwrite\Utopia\Response\Model\UsageProject)#8513 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(8) { ["range"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(34) "The time range of the usage stats." ["default"]=> string(0) "" ["example"]=> string(3) "30d" ["array"]=> bool(false) } ["requests"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(40) "Aggregated stats for number of requests." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8514 (0) { } ["array"]=> bool(true) } ["network"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(40) "Aggregated stats for consumed bandwidth." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8528 (0) { } ["array"]=> bool(true) } ["functions"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(41) "Aggregated stats for function executions." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8141 (0) { } ["array"]=> bool(true) } ["documents"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(41) "Aggregated stats for number of documents." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8851 (0) { } ["array"]=> bool(true) } ["collections"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(43) "Aggregated stats for number of collections." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8217 (0) { } ["array"]=> bool(true) } ["users"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(37) "Aggregated stats for number of users." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8219 (0) { } ["array"]=> bool(true) } ["storage"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(10) "metricList" ["description"]=> string(58) "Aggregated stats for the occupied storage size (in bytes)." ["default"]=> array(0) { } ["example"]=> object(stdClass)#8196 (0) { } ["array"]=> bool(true) } } } ["mock"]=> object(Appwrite\Utopia\Response\Model\Mock)#6346 (4) { ["none":protected]=> bool(false) ["any":protected]=> bool(false) ["public":protected]=> bool(true) ["rules":protected]=> array(1) { ["result"]=> array(6) { ["require"]=> bool(true) ["type"]=> string(6) "string" ["description"]=> string(15) "Result message." ["default"]=> string(0) "" ["example"]=> string(7) "Success" ["array"]=> bool(false) } } } } ["swoole":protected]=> object(Swoole\Http\Response)#8520 (5) { ["fd"]=> int(4877) ["socket"]=> NULL ["header"]=> NULL ["cookie"]=> NULL ["trailer"]=> NULL } ["statusCodes":protected]=> array(43) { [100]=> string(8) "Continue" [101]=> string(19) "Switching Protocols" [200]=> string(2) "OK" [201]=> string(7) "Created" [202]=> string(8) "Accepted" [203]=> string(29) "Non-Authoritative Information" [204]=> string(10) "No Content" [205]=> string(13) "Reset Content" [206]=> string(15) "Partial Content" [300]=> string(16) "Multiple Choices" [301]=> string(17) "Moved Permanently" [302]=> string(5) "Found" [303]=> string(9) "See Other" [304]=> string(12) "Not Modified" [305]=> string(9) "Use Proxy" [306]=> string(8) "(Unused)" [307]=> string(18) "Temporary Redirect" [400]=> string(11) "Bad Request" [401]=> string(12) "Unauthorized" [402]=> string(16) "Payment Required" [403]=> string(9) "Forbidden" [404]=> string(9) "Not Found" [405]=> string(18) "Method Not Allowed" [406]=> string(14) "Not Acceptable" [407]=> string(29) "Proxy Authentication Required" [408]=> string(15) "Request Timeout" [409]=> string(8) "Conflict" [410]=> string(4) "Gone" [411]=> string(15) "Length Required" [412]=> string(19) "Precondition Failed" [413]=> string(24) "Request Entity Too Large" [414]=> string(20) "Request-URI Too Long" [415]=> string(22) "Unsupported Media Type" [416]=> string(31) "Requested Range Not Satisfiable" [417]=> string(18) "Expectation Failed" [425]=> string(9) "Too Early" [429]=> string(17) "Too Many Requests" [500]=> string(21) "Internal Server Error" [501]=> string(15) "Not Implemented" [502]=> string(11) "Bad Gateway" [503]=> string(19) "Service Unavailable" [504]=> string(15) "Gateway Timeout" [505]=> string(26) "HTTP Version Not Supported" } ["compressed":protected]=> array(10) { ["text/plain"]=> bool(true) ["text/css"]=> bool(true) ["text/javascript"]=> bool(true) ["application/javascript"]=> bool(true) ["text/html"]=> bool(true) ["text/html; charset=UTF-8"]=> bool(true) ["application/json"]=> bool(true) ["application/json; charset=UTF-8"]=> bool(true) ["image/svg+xml"]=> bool(true) ["application/xml+rss"]=> bool(true) } ["statusCode":protected]=> int(400) ["contentType":protected]=> string(0) "" ["disablePayload":protected]=> bool(false) ["sent":protected]=> bool(false) ["headers":protected]=> array(11) { ["X-Debug-Fallback"]=> string(5) "false" ["Server"]=> string(8) "Appwrite" ["X-Content-Type-Options"]=> string(7) "nosniff" ["Access-Control-Allow-Methods"]=> string(29) "GET, POST, PUT, PATCH, DELETE" ["Access-Control-Allow-Headers"]=> string(327) "Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-Appwrite-ID, Content-Range, Range, Cache-Control, Expires, Pragma" ["Access-Control-Expose-Headers"]=> string(18) "X-Fallback-Cookies" ["Access-Control-Allow-Origin"]=> string(17) "https://localhost" ["Access-Control-Allow-Credentials"]=> string(4) "true" ["Cache-Control"]=> string(35) "no-cache, no-store, must-revalidate" ["Expires"]=> string(1) "0" ["Pragma"]=> string(8) "no-cache" } ["cookies":protected]=> array(0) { } ["startTime":protected]=> float(1646734933.97368) ["size":protected]=> int(0) } }

@lohanidamodar
Copy link
Member

@superseby2 can you please share the code you used to initiate the login? What's passed in the failure URL? This should probably redirect to the failure URL. need to figure out why it didn't. Your code would help.

@superseby2
Copy link
Author

Thx @lohanidamodar for looking at the problem.

The code is pretty straightforward

Tried without a failure URI
appwrite.account.createOAuth2Session('linkedin', successURI)

and with. Does not change a thing
appwrite.account.createOAuth2Session('linkedin', successURI, failureURI)

Again here is the URI where I am redirected when I clicked Cancel at Linkedin auth page.

https:///v1/account/sessions/oauth2/callback/linkedin/61d9932a0eda26b103b0?error=user_cancelled_login&error_description=The+user+cancelled+LinkedIn+login&state=%7B%22success%22%3A%22http%3A%5C%2F%5C%2Flocalhost%3A3000%5C%2Fapp-techie%22%2C%22failure%22%3A%22https%3A%5C%2F%5C%2F%5C%2Fv1%5C%2Fauth%5C%2Foauth2%5C%2Ffailure%22%7D

I cannot see any "code" param in the URL but appwrite expects it.

From my understanding the redirect to the failure URL should happen right after but because of this error, this is not happening.

@stnguyen90 stnguyen90 added the product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services. label Aug 8, 2022
@hannesfant
Copy link

hannesfant commented Aug 8, 2022

+1 on this. Having the same issue with the Discord provider in 0.15

@ddenev
Copy link

ddenev commented Aug 13, 2022

+1 - having the same issue with the Facebook provider - hitting Cancel on the auth screen produces the same Appwrite error.

Discord post - https://discord.com/channels/564160730845151244/564175717521424424/1007600938267181116

@hannesfant
Copy link

hannesfant commented Aug 13, 2022

Adding on to this. Not really familiar with the AW codebase, but it looks like the redirecting to a failure URL does indeed work, it's just the fact that the "code" param is required. Looked into the code a tiny bit and it looks like https://github.com/appwrite/appwrite/blob/master/app/controllers/api/account.php#L363 -> L422/432 is where it's at. If the code prop were to be made optional, or even detecting it as not present, and subsequently redirecting to the failure URL, it should be sorted. But then again, I'm really not familiar with the codebase, and not PHP either, so take my suggestions with a grain of salt :) Someone like @lohanidamodar probably know it a lot better than me

@Hu-Wentao
Copy link

+1 on this. Having the same issue with the Github provider in 1.3.4

@clxrityy
Copy link

clxrityy commented Jun 9, 2023

I am also getting this exact error just when attempting to login with GitHub (using Nextjs & Next-Auth)

Appwrite: ^11.0.0
React: ^18.2.0
Next: 13.4.4
Next-auth: ^4.22.1

I firstly have this login with github function:

export const signInWithGithub = async () => {
    const session = await getServerSession(authOptions);

    if (session) {
        const userId = session.user?.id;
        const dynamicRoute = `/board/${userId}`;

        return account.createOAuth2Session('github', `http:https://localhost:3000/${dynamicRoute}`, 'http:https://localhost:3000');

    } else {
        //
    }
};

Then my login component:

import { signIn } from 'next-auth/react';
//...

function Login() {

    async function loginWithGithub() {
        try {
            await signIn('github');
            signInWithGithub();
        } catch (error) {
            throw new Error(`Something went wrong with your login: ${error}`);
        } finally {
            //...
        }
    };
//...
};

Then this function to set up an appwrite provider:

import { Profile } from 'next-auth';
import { OAuthConfig } from 'next-auth/providers';


const appwriteProvider = (options: {
    baseUrl: string;
}): OAuthConfig<Profile> => {
    const { baseUrl } = options;

    return {
        id: 'appwrite',
        name: 'Appwrite',
        type: 'oauth',
        version: '2.0',
        accessTokenUrl: `${baseUrl}/v1/auth/oauth2/token`,
        authorization: `${baseUrl}/api/auth/callback/appwrite`,
        profileUrl: `${baseUrl}/v1/account`,
        profile: (profile: any) => {
            return {
                id: profile.$id,
                name: profile.name,
                email: profile.email,
                image: profile.avatar,
            };
        },
    }
};

export default appwriteProvider;

Lastly, my authOptions:

export const authOptions: NextAuthOptions = {
    //...
    providers: [
        GithubProvider({
            clientId: getGitHubCredentials().clientId,
            clientSecret: getGitHubCredentials().clientSecret,
        }),
        appwriteProvider({
            baseUrl: 'http:https://localhost:3000',
        }),
    ],
    //...
    callbacks: {
        //...
        async redirect(params: { url: string; baseUrl: string}) {
            return params.url;
        },
    }
}

EDIT: (06/09/2023)

My error was with the authorization URL in my GitHub OAuth app. I am now still having other unrelated issues... But that solved THIS issue.

@bill-zhanxg
Copy link

+1 Same with Discord Oauth2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
Projects
None yet
Development

No branches or pull requests

9 participants