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,QAAS,EAHd,CACf,eAAgB,oBAE8B,EACtD,CAQA,QAAA,CAAS,GACL,QAAsB,IAAX,EACP,MAAM,IAAI,EAAkB,wCAEhC,MAAM,EAAU,wBAAwB,QAAQ,WAAY,GAEtD,EAAM,IAAI,IAAI,KAAK,OAAO,OAAO,SAAW,GAElD,OAAO,KAAK,OAAO,KAAK,MAAO,EADZ,CAAC,EAFJ,CAAC,EAIrB,CASA,WAAA,CAAY,EAAQ,GAChB,QAAsB,IAAX,EACP,MAAM,IAAI,EAAkB,wCAEhC,QAAqB,IAAV,EACP,MAAM,IAAI,EAAkB,uCAEhC,MAAM,EAAU,wBAAwB,QAAQ,WAAY,GACtD,EAAU,CAAC,OACI,IAAV,IACP,EAAe,MAAI,GAEvB,MAAM,EAAM,IAAI,IAAI,KAAK,OAAO,OAAO,SAAW,GAIlD,OAAO,KAAK,OAAO,KAAK,MAAO,EAHZ,CACf,eAAgB,oBAE4B,EACpD,GAuhBJ,OAAO,eAAe,EAAS,aAAc,CAAE,OAAO,GAEzD,CAxtHD,CAwtHG,KAAK,SAAW,KAAK,UAAY,CAAC","file":"/npm/appwrite@18.1.0/dist/iife/sdk.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/appwrite@18.1.0/dist/iife/sdk.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (exports) {\n    'use strict';\n\n    /******************************************************************************\r\n    Copyright (c) Microsoft Corporation.\r\n\r\n    Permission to use, copy, modify, and/or distribute this software for any\r\n    purpose with or without fee is hereby granted.\r\n\r\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n    PERFORMANCE OF THIS SOFTWARE.\r\n    ***************************************************************************** */\r\n\r\n    function __awaiter(thisArg, _arguments, P, generator) {\r\n        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n        return new (P || (P = Promise))(function (resolve, reject) {\r\n            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n            function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n            step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n        });\r\n    }\r\n\r\n    function __classPrivateFieldGet(receiver, state, kind, f) {\r\n        if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n        if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n        return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n    }\n\n    /**\n     * Helper class to generate query strings.\n     */\n    class Query {\n        /**\n         * Constructor for Query class.\n         *\n         * @param {string} method\n         * @param {AttributesTypes} attribute\n         * @param {QueryTypes} values\n         */\n        constructor(method, attribute, values) {\n            this.method = method;\n            this.attribute = attribute;\n            if (values !== undefined) {\n                if (Array.isArray(values)) {\n                    this.values = values;\n                }\n                else {\n                    this.values = [values];\n                }\n            }\n        }\n        /**\n         * Convert the query object to a JSON string.\n         *\n         * @returns {string}\n         */\n        toString() {\n            return JSON.stringify({\n                method: this.method,\n                attribute: this.attribute,\n                values: this.values,\n            });\n        }\n    }\n    /**\n     * Filter resources where attribute is equal to value.\n     *\n     * @param {string} attribute\n     * @param {QueryTypes} value\n     * @returns {string}\n     */\n    Query.equal = (attribute, value) => new Query(\"equal\", attribute, value).toString();\n    /**\n     * Filter resources where attribute is not equal to value.\n     *\n     * @param {string} attribute\n     * @param {QueryTypes} value\n     * @returns {string}\n     */\n    Query.notEqual = (attribute, value) => new Query(\"notEqual\", attribute, value).toString();\n    /**\n     * Filter resources where attribute is less than value.\n     *\n     * @param {string} attribute\n     * @param {QueryTypes} value\n     * @returns {string}\n     */\n    Query.lessThan = (attribute, value) => new Query(\"lessThan\", attribute, value).toString();\n    /**\n     * Filter resources where attribute is less than or equal to value.\n     *\n     * @param {string} attribute\n     * @param {QueryTypes} value\n     * @returns {string}\n     */\n    Query.lessThanEqual = (attribute, value) => new Query(\"lessThanEqual\", attribute, value).toString();\n    /**\n     * Filter resources where attribute is greater than value.\n     *\n     * @param {string} attribute\n     * @param {QueryTypes} value\n     * @returns {string}\n     */\n    Query.greaterThan = (attribute, value) => new Query(\"greaterThan\", attribute, value).toString();\n    /**\n     * Filter resources where attribute is greater than or equal to value.\n     *\n     * @param {string} attribute\n     * @param {QueryTypes} value\n     * @returns {string}\n     */\n    Query.greaterThanEqual = (attribute, value) => new Query(\"greaterThanEqual\", attribute, value).toString();\n    /**\n     * Filter resources where attribute is null.\n     *\n     * @param {string} attribute\n     * @returns {string}\n     */\n    Query.isNull = (attribute) => new Query(\"isNull\", attribute).toString();\n    /**\n     * Filter resources where attribute is not null.\n     *\n     * @param {string} attribute\n     * @returns {string}\n     */\n    Query.isNotNull = (attribute) => new Query(\"isNotNull\", attribute).toString();\n    /**\n     * Filter resources where attribute is between start and end (inclusive).\n     *\n     * @param {string} attribute\n     * @param {string | number} start\n     * @param {string | number} end\n     * @returns {string}\n     */\n    Query.between = (attribute, start, end) => new Query(\"between\", attribute, [start, end]).toString();\n    /**\n     * Filter resources where attribute starts with value.\n     *\n     * @param {string} attribute\n     * @param {string} value\n     * @returns {string}\n     */\n    Query.startsWith = (attribute, value) => new Query(\"startsWith\", attribute, value).toString();\n    /**\n     * Filter resources where attribute ends with value.\n     *\n     * @param {string} attribute\n     * @param {string} value\n     * @returns {string}\n     */\n    Query.endsWith = (attribute, value) => new Query(\"endsWith\", attribute, value).toString();\n    /**\n     * Specify which attributes should be returned by the API call.\n     *\n     * @param {string[]} attributes\n     * @returns {string}\n     */\n    Query.select = (attributes) => new Query(\"select\", undefined, attributes).toString();\n    /**\n     * Filter resources by searching attribute for value.\n     * A fulltext index on attribute is required for this query to work.\n     *\n     * @param {string} attribute\n     * @param {string} value\n     * @returns {string}\n     */\n    Query.search = (attribute, value) => new Query(\"search\", attribute, value).toString();\n    /**\n     * Sort results by attribute descending.\n     *\n     * @param {string} attribute\n     * @returns {string}\n     */\n    Query.orderDesc = (attribute) => new Query(\"orderDesc\", attribute).toString();\n    /**\n     * Sort results by attribute ascending.\n     *\n     * @param {string} attribute\n     * @returns {string}\n     */\n    Query.orderAsc = (attribute) => new Query(\"orderAsc\", attribute).toString();\n    /**\n     * Return results after documentId.\n     *\n     * @param {string} documentId\n     * @returns {string}\n     */\n    Query.cursorAfter = (documentId) => new Query(\"cursorAfter\", undefined, documentId).toString();\n    /**\n     * Return results before documentId.\n     *\n     * @param {string} documentId\n     * @returns {string}\n     */\n    Query.cursorBefore = (documentId) => new Query(\"cursorBefore\", undefined, documentId).toString();\n    /**\n     * Return only limit results.\n     *\n     * @param {number} limit\n     * @returns {string}\n     */\n    Query.limit = (limit) => new Query(\"limit\", undefined, limit).toString();\n    /**\n     * Filter resources by skipping the first offset results.\n     *\n     * @param {number} offset\n     * @returns {string}\n     */\n    Query.offset = (offset) => new Query(\"offset\", undefined, offset).toString();\n    /**\n     * Filter resources where attribute contains the specified value.\n     *\n     * @param {string} attribute\n     * @param {string | string[]} value\n     * @returns {string}\n     */\n    Query.contains = (attribute, value) => new Query(\"contains\", attribute, value).toString();\n    /**\n     * Combine multiple queries using logical OR operator.\n     *\n     * @param {string[]} queries\n     * @returns {string}\n     */\n    Query.or = (queries) => new Query(\"or\", undefined, queries.map((query) => JSON.parse(query))).toString();\n    /**\n     * Combine multiple queries using logical AND operator.\n     *\n     * @param {string[]} queries\n     * @returns {string}\n     */\n    Query.and = (queries) => new Query(\"and\", undefined, queries.map((query) => JSON.parse(query))).toString();\n\n    /**\n     * Exception thrown by the  package\n     */\n    class AppwriteException extends Error {\n        /**\n         * Initializes a Appwrite Exception.\n         *\n         * @param {string} message - The error message.\n         * @param {number} code - The error code. Default is 0.\n         * @param {string} type - The error type. Default is an empty string.\n         * @param {string} response - The response string. Default is an empty string.\n         */\n        constructor(message, code = 0, type = '', response = '') {\n            super(message);\n            this.name = 'AppwriteException';\n            this.message = message;\n            this.code = code;\n            this.type = type;\n            this.response = response;\n        }\n    }\n    /**\n     * Client that handles requests to Appwrite\n     */\n    class Client {\n        constructor() {\n            /**\n             * Holds configuration such as project.\n             */\n            this.config = {\n                endpoint: 'https://cloud.appwrite.io/v1',\n                endpointRealtime: '',\n                project: '',\n                jwt: '',\n                locale: '',\n                session: '',\n                devkey: '',\n            };\n            /**\n             * Custom headers for API requests.\n             */\n            this.headers = {\n                'x-sdk-name': 'Web',\n                'x-sdk-platform': 'client',\n                'x-sdk-language': 'web',\n                'x-sdk-version': '18.1.0',\n                'X-Appwrite-Response-Format': '1.7.0',\n            };\n            this.realtime = {\n                socket: undefined,\n                timeout: undefined,\n                heartbeat: undefined,\n                url: '',\n                channels: new Set(),\n                subscriptions: new Map(),\n                subscriptionsCounter: 0,\n                reconnect: true,\n                reconnectAttempts: 0,\n                lastMessage: undefined,\n                connect: () => {\n                    clearTimeout(this.realtime.timeout);\n                    this.realtime.timeout = window === null || window === void 0 ? void 0 : window.setTimeout(() => {\n                        this.realtime.createSocket();\n                    }, 50);\n                },\n                getTimeout: () => {\n                    switch (true) {\n                        case this.realtime.reconnectAttempts < 5:\n                            return 1000;\n                        case this.realtime.reconnectAttempts < 15:\n                            return 5000;\n                        case this.realtime.reconnectAttempts < 100:\n                            return 10000;\n                        default:\n                            return 60000;\n                    }\n                },\n                createHeartbeat: () => {\n                    if (this.realtime.heartbeat) {\n                        clearTimeout(this.realtime.heartbeat);\n                    }\n                    this.realtime.heartbeat = window === null || window === void 0 ? void 0 : window.setInterval(() => {\n                        var _a;\n                        (_a = this.realtime.socket) === null || _a === void 0 ? void 0 : _a.send(JSON.stringify({\n                            type: 'ping'\n                        }));\n                    }, 20000);\n                },\n                createSocket: () => {\n                    var _a, _b, _c;\n                    if (this.realtime.channels.size < 1) {\n                        this.realtime.reconnect = false;\n                        (_a = this.realtime.socket) === null || _a === void 0 ? void 0 : _a.close();\n                        return;\n                    }\n                    const channels = new URLSearchParams();\n                    channels.set('project', this.config.project);\n                    this.realtime.channels.forEach(channel => {\n                        channels.append('channels[]', channel);\n                    });\n                    const url = this.config.endpointRealtime + '/realtime?' + channels.toString();\n                    if (url !== this.realtime.url || // Check if URL is present\n                        !this.realtime.socket || // Check if WebSocket has not been created\n                        ((_b = this.realtime.socket) === null || _b === void 0 ? void 0 : _b.readyState) > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)\n                    ) {\n                        if (this.realtime.socket &&\n                            ((_c = this.realtime.socket) === null || _c === void 0 ? void 0 : _c.readyState) < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1)\n                        ) {\n                            this.realtime.reconnect = false;\n                            this.realtime.socket.close();\n                        }\n                        this.realtime.url = url;\n                        this.realtime.socket = new WebSocket(url);\n                        this.realtime.socket.addEventListener('message', this.realtime.onMessage);\n                        this.realtime.socket.addEventListener('open', _event => {\n                            this.realtime.reconnectAttempts = 0;\n                            this.realtime.createHeartbeat();\n                        });\n                        this.realtime.socket.addEventListener('close', event => {\n                            var _a, _b, _c;\n                            if (!this.realtime.reconnect ||\n                                (((_b = (_a = this.realtime) === null || _a === void 0 ? void 0 : _a.lastMessage) === null || _b === void 0 ? void 0 : _b.type) === 'error' && // Check if last message was of type error\n                                    ((_c = this.realtime) === null || _c === void 0 ? void 0 : _c.lastMessage.data).code === 1008 // Check for policy violation 1008\n                                )) {\n                                this.realtime.reconnect = true;\n                                return;\n                            }\n                            const timeout = this.realtime.getTimeout();\n                            console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);\n                            setTimeout(() => {\n                                this.realtime.reconnectAttempts++;\n                                this.realtime.createSocket();\n                            }, timeout);\n                        });\n                    }\n                },\n                onMessage: (event) => {\n                    var _a, _b;\n                    try {\n                        const message = JSON.parse(event.data);\n                        this.realtime.lastMessage = message;\n                        switch (message.type) {\n                            case 'connected':\n                                const cookie = JSON.parse((_a = window.localStorage.getItem('cookieFallback')) !== null && _a !== void 0 ? _a : '{}');\n                                const session = cookie === null || cookie === void 0 ? void 0 : cookie[`a_session_${this.config.project}`];\n                                const messageData = message.data;\n                                if (session && !messageData.user) {\n                                    (_b = this.realtime.socket) === null || _b === void 0 ? void 0 : _b.send(JSON.stringify({\n                                        type: 'authentication',\n                                        data: {\n                                            session\n                                        }\n                                    }));\n                                }\n                                break;\n                            case 'event':\n                                let data = message.data;\n                                if (data === null || data === void 0 ? void 0 : data.channels) {\n                                    const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));\n                                    if (!isSubscribed)\n                                        return;\n                                    this.realtime.subscriptions.forEach(subscription => {\n                                        if (data.channels.some(channel => subscription.channels.includes(channel))) {\n                                            setTimeout(() => subscription.callback(data));\n                                        }\n                                    });\n                                }\n                                break;\n                            case 'pong':\n                                break; // Handle pong response if needed\n                            case 'error':\n                                throw message.data;\n                            default:\n                                break;\n                        }\n                    }\n                    catch (e) {\n                        console.error(e);\n                    }\n                },\n                cleanUp: channels => {\n                    this.realtime.channels.forEach(channel => {\n                        if (channels.includes(channel)) {\n                            let found = Array.from(this.realtime.subscriptions).some(([_key, subscription]) => {\n                                return subscription.channels.includes(channel);\n                            });\n                            if (!found) {\n                                this.realtime.channels.delete(channel);\n                            }\n                        }\n                    });\n                }\n            };\n        }\n        /**\n         * Set Endpoint\n         *\n         * Your project endpoint\n         *\n         * @param {string} endpoint\n         *\n         * @returns {this}\n         */\n        setEndpoint(endpoint) {\n            if (!endpoint.startsWith('http://') && !endpoint.startsWith('https://')) {\n                throw new AppwriteException('Invalid endpoint URL: ' + endpoint);\n            }\n            this.config.endpoint = endpoint;\n            this.config.endpointRealtime = endpoint.replace('https://', 'wss://').replace('http://', 'ws://');\n            return this;\n        }\n        /**\n         * Set Realtime Endpoint\n         *\n         * @param {string} endpointRealtime\n         *\n         * @returns {this}\n         */\n        setEndpointRealtime(endpointRealtime) {\n            if (!endpointRealtime.startsWith('ws://') && !endpointRealtime.startsWith('wss://')) {\n                throw new AppwriteException('Invalid realtime endpoint URL: ' + endpointRealtime);\n            }\n            this.config.endpointRealtime = endpointRealtime;\n            return this;\n        }\n        /**\n         * Set Project\n         *\n         * Your project ID\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setProject(value) {\n            this.headers['X-Appwrite-Project'] = value;\n            this.config.project = value;\n            return this;\n        }\n        /**\n         * Set JWT\n         *\n         * Your secret JSON Web Token\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setJWT(value) {\n            this.headers['X-Appwrite-JWT'] = value;\n            this.config.jwt = value;\n            return this;\n        }\n        /**\n         * Set Locale\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setLocale(value) {\n            this.headers['X-Appwrite-Locale'] = value;\n            this.config.locale = value;\n            return this;\n        }\n        /**\n         * Set Session\n         *\n         * The user session to authenticate with\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setSession(value) {\n            this.headers['X-Appwrite-Session'] = value;\n            this.config.session = value;\n            return this;\n        }\n        /**\n         * Set DevKey\n         *\n         * Your secret dev API key\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setDevKey(value) {\n            this.headers['X-Appwrite-Dev-Key'] = value;\n            this.config.devkey = value;\n            return this;\n        }\n        /**\n         * Subscribes to Appwrite events and passes you the payload in realtime.\n         *\n         * @param {string|string[]} channels\n         * Channel to subscribe - pass a single channel as a string or multiple with an array of strings.\n         *\n         * Possible channels are:\n         * - account\n         * - collections\n         * - collections.[ID]\n         * - collections.[ID].documents\n         * - documents\n         * - documents.[ID]\n         * - files\n         * - files.[ID]\n         * - executions\n         * - executions.[ID]\n         * - functions.[ID]\n         * - teams\n         * - teams.[ID]\n         * - memberships\n         * - memberships.[ID]\n         * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.\n         * @returns {() => void} Unsubscribes from events.\n         */\n        subscribe(channels, callback) {\n            let channelArray = typeof channels === 'string' ? [channels] : channels;\n            channelArray.forEach(channel => this.realtime.channels.add(channel));\n            const counter = this.realtime.subscriptionsCounter++;\n            this.realtime.subscriptions.set(counter, {\n                channels: channelArray,\n                callback\n            });\n            this.realtime.connect();\n            return () => {\n                this.realtime.subscriptions.delete(counter);\n                this.realtime.cleanUp(channelArray);\n                this.realtime.connect();\n            };\n        }\n        prepareRequest(method, url, headers = {}, params = {}) {\n            method = method.toUpperCase();\n            headers = Object.assign({}, this.headers, headers);\n            if (typeof window !== 'undefined' && window.localStorage) {\n                const cookieFallback = window.localStorage.getItem('cookieFallback');\n                if (cookieFallback) {\n                    headers['X-Fallback-Cookies'] = cookieFallback;\n                }\n            }\n            let options = {\n                method,\n                headers,\n                credentials: 'include',\n            };\n            if (method === 'GET') {\n                for (const [key, value] of Object.entries(Client.flatten(params))) {\n                    url.searchParams.append(key, value);\n                }\n            }\n            else {\n                switch (headers['content-type']) {\n                    case 'application/json':\n                        options.body = JSON.stringify(params);\n                        break;\n                    case 'multipart/form-data':\n                        const formData = new FormData();\n                        for (const [key, value] of Object.entries(params)) {\n                            if (value instanceof File) {\n                                formData.append(key, value, value.name);\n                            }\n                            else if (Array.isArray(value)) {\n                                for (const nestedValue of value) {\n                                    formData.append(`${key}[]`, nestedValue);\n                                }\n                            }\n                            else {\n                                formData.append(key, value);\n                            }\n                        }\n                        options.body = formData;\n                        delete headers['content-type'];\n                        break;\n                }\n            }\n            return { uri: url.toString(), options };\n        }\n        chunkedUpload(method, url, headers = {}, originalPayload = {}, onProgress) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const file = Object.values(originalPayload).find((value) => value instanceof File);\n                if (!file) {\n                    throw new Error('File not found in payload');\n                }\n                if (file.size <= Client.CHUNK_SIZE) {\n                    return yield this.call(method, url, headers, originalPayload);\n                }\n                let start = 0;\n                let response = null;\n                while (start < file.size) {\n                    let end = start + Client.CHUNK_SIZE; // Prepare end for the next chunk\n                    if (end >= file.size) {\n                        end = file.size; // Adjust for the last chunk to include the last byte\n                    }\n                    headers['content-range'] = `bytes ${start}-${end - 1}/${file.size}`;\n                    const chunk = file.slice(start, end);\n                    let payload = Object.assign(Object.assign({}, originalPayload), { file: new File([chunk], file.name) });\n                    response = yield this.call(method, url, headers, payload);\n                    if (onProgress && typeof onProgress === 'function') {\n                        onProgress({\n                            $id: response.$id,\n                            progress: Math.round((end / file.size) * 100),\n                            sizeUploaded: end,\n                            chunksTotal: Math.ceil(file.size / Client.CHUNK_SIZE),\n                            chunksUploaded: Math.ceil(end / Client.CHUNK_SIZE)\n                        });\n                    }\n                    if (response && response.$id) {\n                        headers['x-appwrite-id'] = response.$id;\n                    }\n                    start = end;\n                }\n                return response;\n            });\n        }\n        ping() {\n            return __awaiter(this, void 0, void 0, function* () {\n                return this.call('GET', new URL(this.config.endpoint + '/ping'));\n            });\n        }\n        call(method, url, headers = {}, params = {}, responseType = 'json') {\n            var _a, _b;\n            return __awaiter(this, void 0, void 0, function* () {\n                const { uri, options } = this.prepareRequest(method, url, headers, params);\n                let data = null;\n                const response = yield fetch(uri, options);\n                // type opaque: No-CORS, different-origin response (CORS-issue)\n                if (response.type === 'opaque') {\n                    throw new AppwriteException(`Invalid Origin. Register your new client (${window.location.host}) as a new Web platform on your project console dashboard`, 403, \"forbidden\", \"\");\n                }\n                const warnings = response.headers.get('x-appwrite-warning');\n                if (warnings) {\n                    warnings.split(';').forEach((warning) => console.warn('Warning: ' + warning));\n                }\n                if ((_a = response.headers.get('content-type')) === null || _a === void 0 ? void 0 : _a.includes('application/json')) {\n                    data = yield response.json();\n                }\n                else if (responseType === 'arrayBuffer') {\n                    data = yield response.arrayBuffer();\n                }\n                else {\n                    data = {\n                        message: yield response.text()\n                    };\n                }\n                if (400 <= response.status) {\n                    let responseText = '';\n                    if (((_b = response.headers.get('content-type')) === null || _b === void 0 ? void 0 : _b.includes('application/json')) || responseType === 'arrayBuffer') {\n                        responseText = JSON.stringify(data);\n                    }\n                    else {\n                        responseText = data === null || data === void 0 ? void 0 : data.message;\n                    }\n                    throw new AppwriteException(data === null || data === void 0 ? void 0 : data.message, response.status, data === null || data === void 0 ? void 0 : data.type, responseText);\n                }\n                const cookieFallback = response.headers.get('X-Fallback-Cookies');\n                if (typeof window !== 'undefined' && window.localStorage && cookieFallback) {\n                    window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');\n                    window.localStorage.setItem('cookieFallback', cookieFallback);\n                }\n                return data;\n            });\n        }\n        static flatten(data, prefix = '') {\n            let output = {};\n            for (const [key, value] of Object.entries(data)) {\n                let finalKey = prefix ? prefix + '[' + key + ']' : key;\n                if (Array.isArray(value)) {\n                    output = Object.assign(Object.assign({}, output), Client.flatten(value, finalKey));\n                }\n                else {\n                    output[finalKey] = value;\n                }\n            }\n            return output;\n        }\n    }\n    Client.CHUNK_SIZE = 1024 * 1024 * 5;\n\n    class Service {\n        constructor(client) {\n            this.client = client;\n        }\n        static flatten(data, prefix = '') {\n            let output = {};\n            for (const [key, value] of Object.entries(data)) {\n                let finalKey = prefix ? prefix + '[' + key + ']' : key;\n                if (Array.isArray(value)) {\n                    output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));\n                }\n                else {\n                    output[finalKey] = value;\n                }\n            }\n            return output;\n        }\n    }\n    /**\n     * The size for chunked uploads in bytes.\n     */\n    Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB\n\n    class Account {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Get the currently logged in user.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        get() {\n            const apiPath = '/account';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        create(userId, email, password, name) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof email === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"email\"');\n            }\n            if (typeof password === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"password\"');\n            }\n            const apiPath = '/account';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof password !== 'undefined') {\n                payload['password'] = password;\n            }\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.\n    This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.\n\n         *\n         * @param {string} email\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updateEmail(email, password) {\n            if (typeof email === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"email\"');\n            }\n            if (typeof password === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"password\"');\n            }\n            const apiPath = '/account/email';\n            const payload = {};\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof password !== 'undefined') {\n                payload['password'] = password;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Get the list of identities for the currently logged in user.\n         *\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.IdentityList>}\n         */\n        listIdentities(queries) {\n            const apiPath = '/account/identities';\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete an identity by its unique ID.\n         *\n         * @param {string} identityId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteIdentity(identityId) {\n            if (typeof identityId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"identityId\"');\n            }\n            const apiPath = '/account/identities/{identityId}'.replace('{identityId}', identityId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Jwt>}\n         */\n        createJWT() {\n            const apiPath = '/account/jwts';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.\n         *\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.LogList>}\n         */\n        listLogs(queries) {\n            const apiPath = '/account/logs';\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Enable or disable MFA on an account.\n         *\n         * @param {boolean} mfa\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updateMFA(mfa) {\n            if (typeof mfa === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"mfa\"');\n            }\n            const apiPath = '/account/mfa';\n            const payload = {};\n            if (typeof mfa !== 'undefined') {\n                payload['mfa'] = mfa;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.\n         *\n         * @param {AuthenticatorType} type\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MfaType>}\n         */\n        createMfaAuthenticator(type) {\n            if (typeof type === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"type\"');\n            }\n            const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.\n         *\n         * @param {AuthenticatorType} type\n         * @param {string} otp\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updateMfaAuthenticator(type, otp) {\n            if (typeof type === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"type\"');\n            }\n            if (typeof otp === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"otp\"');\n            }\n            const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);\n            const payload = {};\n            if (typeof otp !== 'undefined') {\n                payload['otp'] = otp;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete an authenticator for a user by ID.\n         *\n         * @param {AuthenticatorType} type\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteMfaAuthenticator(type) {\n            if (typeof type === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"type\"');\n            }\n            const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.\n         *\n         * @param {AuthenticationFactor} factor\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MfaChallenge>}\n         */\n        createMfaChallenge(factor) {\n            if (typeof factor === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"factor\"');\n            }\n            const apiPath = '/account/mfa/challenge';\n            const payload = {};\n            if (typeof factor !== 'undefined') {\n                payload['factor'] = factor;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.\n         *\n         * @param {string} challengeId\n         * @param {string} otp\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        updateMfaChallenge(challengeId, otp) {\n            if (typeof challengeId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"challengeId\"');\n            }\n            if (typeof otp === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"otp\"');\n            }\n            const apiPath = '/account/mfa/challenge';\n            const payload = {};\n            if (typeof challengeId !== 'undefined') {\n                payload['challengeId'] = challengeId;\n            }\n            if (typeof otp !== 'undefined') {\n                payload['otp'] = otp;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * List the factors available on the account to be used as a MFA challange.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MfaFactors>}\n         */\n        listMfaFactors() {\n            const apiPath = '/account/mfa/factors';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MfaRecoveryCodes>}\n         */\n        getMfaRecoveryCodes() {\n            const apiPath = '/account/mfa/recovery-codes';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Generate recovery codes as backup for MFA flow. It&#039;s recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MfaRecoveryCodes>}\n         */\n        createMfaRecoveryCodes() {\n            const apiPath = '/account/mfa/recovery-codes';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MfaRecoveryCodes>}\n         */\n        updateMfaRecoveryCodes() {\n            const apiPath = '/account/mfa/recovery-codes';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Update currently logged in user account name.\n         *\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updateName(name) {\n            if (typeof name === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"name\"');\n            }\n            const apiPath = '/account/name';\n            const payload = {};\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.\n         *\n         * @param {string} password\n         * @param {string} oldPassword\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updatePassword(password, oldPassword) {\n            if (typeof password === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"password\"');\n            }\n            const apiPath = '/account/password';\n            const payload = {};\n            if (typeof password !== 'undefined') {\n                payload['password'] = password;\n            }\n            if (typeof oldPassword !== 'undefined') {\n                payload['oldPassword'] = oldPassword;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Update the currently logged in user&#039;s phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) endpoint to send a confirmation SMS.\n         *\n         * @param {string} phone\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updatePhone(phone, password) {\n            if (typeof phone === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"phone\"');\n            }\n            if (typeof password === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"password\"');\n            }\n            const apiPath = '/account/phone';\n            const payload = {};\n            if (typeof phone !== 'undefined') {\n                payload['phone'] = phone;\n            }\n            if (typeof password !== 'undefined') {\n                payload['password'] = password;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Get the preferences as a key-value object for the currently logged in user.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Preferences>}\n         */\n        getPrefs() {\n            const apiPath = '/account/prefs';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.\n         *\n         * @param {Partial<Preferences>} prefs\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updatePrefs(prefs) {\n            if (typeof prefs === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"prefs\"');\n            }\n            const apiPath = '/account/prefs';\n            const payload = {};\n            if (typeof prefs !== 'undefined') {\n                payload['prefs'] = prefs;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) endpoint to complete the process. The verification link sent to the user&#039;s email address is valid for 1 hour.\n         *\n         * @param {string} email\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        createRecovery(email, url) {\n            if (typeof email === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"email\"');\n            }\n            if (typeof url === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"url\"');\n            }\n            const apiPath = '/account/recovery';\n            const payload = {};\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof url !== 'undefined') {\n                payload['url'] = url;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) endpoint.\n\n    Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        updateRecovery(userId, secret, password) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            if (typeof password === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"password\"');\n            }\n            const apiPath = '/account/recovery';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            if (typeof password !== 'undefined') {\n                payload['password'] = password;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Get the list of active sessions across different devices for the currently logged in user.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.SessionList>}\n         */\n        listSessions() {\n            const apiPath = '/account/sessions';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete all sessions from the user account and remove any sessions cookies from the end client.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteSessions() {\n            const apiPath = '/account/sessions';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) or create an [OAuth2 session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        createAnonymousSession() {\n            const apiPath = '/account/sessions/anonymous';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.\n\n    A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         * @param {string} email\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        createEmailPasswordSession(email, password) {\n            if (typeof email === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"email\"');\n            }\n            if (typeof password === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"password\"');\n            }\n            const apiPath = '/account/sessions/email';\n            const payload = {};\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof password !== 'undefined') {\n                payload['password'] = password;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        updateMagicURLSession(userId, secret) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            const apiPath = '/account/sessions/magic-url';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL&#039;s back to your app when login is completed.\n\n    If there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user.\n\n    A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).\n\n         *\n         * @param {OAuthProvider} provider\n         * @param {string} success\n         * @param {string} failure\n         * @param {string[]} scopes\n         * @throws {AppwriteException}\n         * @returns {void | string}\n         */\n        createOAuth2Session(provider, success, failure, scopes) {\n            if (typeof provider === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"provider\"');\n            }\n            const apiPath = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider);\n            const payload = {};\n            if (typeof success !== 'undefined') {\n                payload['success'] = success;\n            }\n            if (typeof failure !== 'undefined') {\n                payload['failure'] = failure;\n            }\n            if (typeof scopes !== 'undefined') {\n                payload['scopes'] = scopes;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {\n                window.location.href = uri.toString();\n                return;\n            }\n            else {\n                return uri.toString();\n            }\n        }\n        /**\n         * Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        updatePhoneSession(userId, secret) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            const apiPath = '/account/sessions/phone';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        createSession(userId, secret) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            const apiPath = '/account/sessions/token';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to get a logged in user&#039;s session using a Session ID. Inputting &#039;current&#039; will return the current session being used.\n         *\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        getSession(sessionId) {\n            if (typeof sessionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"sessionId\"');\n            }\n            const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to extend a session&#039;s length. Extending a session is useful when session expiry is short. If the session was created using an OAuth provider, this endpoint refreshes the access token from the provider.\n         *\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Session>}\n         */\n        updateSession(sessionId) {\n            if (typeof sessionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"sessionId\"');\n            }\n            const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Logout the user. Use &#039;current&#039; as the session ID to logout on this device, use a session ID to logout on another device. If you&#039;re looking to logout the user on all devices, use [Delete Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) instead.\n         *\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteSession(sessionId) {\n            if (typeof sessionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"sessionId\"');\n            }\n            const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.User<Preferences>>}\n         */\n        updateStatus() {\n            const apiPath = '/account/status';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.\n         *\n         * @param {string} targetId\n         * @param {string} identifier\n         * @param {string} providerId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Target>}\n         */\n        createPushTarget(targetId, identifier, providerId) {\n            if (typeof targetId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"targetId\"');\n            }\n            if (typeof identifier === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"identifier\"');\n            }\n            const apiPath = '/account/targets/push';\n            const payload = {};\n            if (typeof targetId !== 'undefined') {\n                payload['targetId'] = targetId;\n            }\n            if (typeof identifier !== 'undefined') {\n                payload['identifier'] = identifier;\n            }\n            if (typeof providerId !== 'undefined') {\n                payload['providerId'] = providerId;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Update the currently logged in user&#039;s push notification target. You can modify the target&#039;s identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.\n         *\n         * @param {string} targetId\n         * @param {string} identifier\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Target>}\n         */\n        updatePushTarget(targetId, identifier) {\n            if (typeof targetId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"targetId\"');\n            }\n            if (typeof identifier === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"identifier\"');\n            }\n            const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId);\n            const payload = {};\n            if (typeof identifier !== 'undefined') {\n                payload['identifier'] = identifier;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.\n         *\n         * @param {string} targetId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deletePushTarget(targetId) {\n            if (typeof targetId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"targetId\"');\n            }\n            const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The secret sent to the user&#039;s email is valid for 15 minutes.\n\n    A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {boolean} phrase\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        createEmailToken(userId, email, phrase) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof email === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"email\"');\n            }\n            const apiPath = '/account/tokens/email';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof phrase !== 'undefined') {\n                payload['phrase'] = phrase;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user&#039;s email address is valid for 1 hour.\n\n    A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).\n\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} url\n         * @param {boolean} phrase\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        createMagicURLToken(userId, email, url, phrase) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof email === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"email\"');\n            }\n            const apiPath = '/account/tokens/magic-url';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof url !== 'undefined') {\n                payload['url'] = url;\n            }\n            if (typeof phrase !== 'undefined') {\n                payload['phrase'] = phrase;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL&#039;s back to your app when login is completed.\n\n    If authentication succeeds, `userId` and `secret` of a token will be appended to the success URL as query parameters. These can be used to create a new session using the [Create session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint.\n\n    A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         * @param {OAuthProvider} provider\n         * @param {string} success\n         * @param {string} failure\n         * @param {string[]} scopes\n         * @throws {AppwriteException}\n         * @returns {void | string}\n         */\n        createOAuth2Token(provider, success, failure, scopes) {\n            if (typeof provider === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"provider\"');\n            }\n            const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);\n            const payload = {};\n            if (typeof success !== 'undefined') {\n                payload['success'] = success;\n            }\n            if (typeof failure !== 'undefined') {\n                payload['failure'] = failure;\n            }\n            if (typeof scopes !== 'undefined') {\n                payload['scopes'] = scopes;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {\n                window.location.href = uri.toString();\n                return;\n            }\n            else {\n                return uri.toString();\n            }\n        }\n        /**\n         * Sends the user an SMS with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The secret sent to the user&#039;s phone is valid for 15 minutes.\n\n    A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         * @param {string} userId\n         * @param {string} phone\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        createPhoneToken(userId, phone) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof phone === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"phone\"');\n            }\n            const apiPath = '/account/tokens/phone';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof phone !== 'undefined') {\n                payload['phone'] = phone;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user&#039;s email address is valid for 7 days.\n\n    Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.\n\n         *\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        createVerification(url) {\n            if (typeof url === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"url\"');\n            }\n            const apiPath = '/account/verification';\n            const payload = {};\n            if (typeof url !== 'undefined') {\n                payload['url'] = url;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        updateVerification(userId, secret) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            const apiPath = '/account/verification';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to send a verification SMS to the currently logged in user. This endpoint is meant for use after updating a user&#039;s phone number using the [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) endpoint. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). The verification code sent to the user&#039;s phone number is valid for 15 minutes.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        createPhoneVerification() {\n            const apiPath = '/account/verification/phone';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to complete the user phone verification process. Use the **userId** and **secret** that were sent to your user&#039;s phone number to verify the user email ownership. If confirmed this route will return a 200 status code.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Token>}\n         */\n        updatePhoneVerification(userId, secret) {\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            const apiPath = '/account/verification/phone';\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n    }\n\n    class Avatars {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) endpoint. Use width, height and quality arguments to change the output settings.\n\n    When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n         *\n         * @param {Browser} code\n         * @param {number} width\n         * @param {number} height\n         * @param {number} quality\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getBrowser(code, width, height, quality) {\n            if (typeof code === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"code\"');\n            }\n            const apiPath = '/avatars/browsers/{code}'.replace('{code}', code);\n            const payload = {};\n            if (typeof width !== 'undefined') {\n                payload['width'] = width;\n            }\n            if (typeof height !== 'undefined') {\n                payload['height'] = height;\n            }\n            if (typeof quality !== 'undefined') {\n                payload['quality'] = quality;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.\n\n    When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n\n         *\n         * @param {CreditCard} code\n         * @param {number} width\n         * @param {number} height\n         * @param {number} quality\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getCreditCard(code, width, height, quality) {\n            if (typeof code === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"code\"');\n            }\n            const apiPath = '/avatars/credit-cards/{code}'.replace('{code}', code);\n            const payload = {};\n            if (typeof width !== 'undefined') {\n                payload['width'] = width;\n            }\n            if (typeof height !== 'undefined') {\n                payload['height'] = height;\n            }\n            if (typeof quality !== 'undefined') {\n                payload['quality'] = quality;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.\n\n    This endpoint does not follow HTTP redirects.\n         *\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getFavicon(url) {\n            if (typeof url === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"url\"');\n            }\n            const apiPath = '/avatars/favicon';\n            const payload = {};\n            if (typeof url !== 'undefined') {\n                payload['url'] = url;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings. Country codes follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.\n\n    When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n\n         *\n         * @param {Flag} code\n         * @param {number} width\n         * @param {number} height\n         * @param {number} quality\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getFlag(code, width, height, quality) {\n            if (typeof code === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"code\"');\n            }\n            const apiPath = '/avatars/flags/{code}'.replace('{code}', code);\n            const payload = {};\n            if (typeof width !== 'undefined') {\n                payload['width'] = width;\n            }\n            if (typeof height !== 'undefined') {\n                payload['height'] = height;\n            }\n            if (typeof quality !== 'undefined') {\n                payload['quality'] = quality;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.\n\n    When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.\n\n    This endpoint does not follow HTTP redirects.\n         *\n         * @param {string} url\n         * @param {number} width\n         * @param {number} height\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getImage(url, width, height) {\n            if (typeof url === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"url\"');\n            }\n            const apiPath = '/avatars/image';\n            const payload = {};\n            if (typeof url !== 'undefined') {\n                payload['url'] = url;\n            }\n            if (typeof width !== 'undefined') {\n                payload['width'] = width;\n            }\n            if (typeof height !== 'undefined') {\n                payload['height'] = height;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the &#039;name&#039; parameter. If no name is given and no user is logged, an empty avatar will be returned.\n\n    You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user&#039;s initials when reloading the same theme will always return for the same initials.\n\n    When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.\n\n         *\n         * @param {string} name\n         * @param {number} width\n         * @param {number} height\n         * @param {string} background\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getInitials(name, width, height, background) {\n            const apiPath = '/avatars/initials';\n            const payload = {};\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            if (typeof width !== 'undefined') {\n                payload['width'] = width;\n            }\n            if (typeof height !== 'undefined') {\n                payload['height'] = height;\n            }\n            if (typeof background !== 'undefined') {\n                payload['background'] = background;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.\n\n         *\n         * @param {string} text\n         * @param {number} size\n         * @param {number} margin\n         * @param {boolean} download\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getQR(text, size, margin, download) {\n            if (typeof text === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"text\"');\n            }\n            const apiPath = '/avatars/qr';\n            const payload = {};\n            if (typeof text !== 'undefined') {\n                payload['text'] = text;\n            }\n            if (typeof size !== 'undefined') {\n                payload['size'] = size;\n            }\n            if (typeof margin !== 'undefined') {\n                payload['margin'] = margin;\n            }\n            if (typeof download !== 'undefined') {\n                payload['download'] = download;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n    }\n\n    class Databases {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Get a list of all the user&#039;s documents in a given collection. You can use the query params to filter your results.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.DocumentList<Document>>}\n         */\n        listDocuments(databaseId, collectionId, queries) {\n            if (typeof databaseId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"databaseId\"');\n            }\n            if (typeof collectionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"collectionId\"');\n            }\n            const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} documentId\n         * @param {Omit<Document, keyof Models.Document>} data\n         * @param {string[]} permissions\n         * @throws {AppwriteException}\n         * @returns {Promise<Document>}\n         */\n        createDocument(databaseId, collectionId, documentId, data, permissions) {\n            if (typeof databaseId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"databaseId\"');\n            }\n            if (typeof collectionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"collectionId\"');\n            }\n            if (typeof documentId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"documentId\"');\n            }\n            if (typeof data === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"data\"');\n            }\n            const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n            const payload = {};\n            if (typeof documentId !== 'undefined') {\n                payload['documentId'] = documentId;\n            }\n            if (typeof data !== 'undefined') {\n                payload['data'] = data;\n            }\n            if (typeof permissions !== 'undefined') {\n                payload['permissions'] = permissions;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Get a document by its unique ID. This endpoint response returns a JSON object with the document data.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} documentId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise<Document>}\n         */\n        getDocument(databaseId, collectionId, documentId, queries) {\n            if (typeof databaseId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"databaseId\"');\n            }\n            if (typeof collectionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"collectionId\"');\n            }\n            if (typeof documentId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"documentId\"');\n            }\n            const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} documentId\n         * @param {object} data\n         * @param {string[]} permissions\n         * @throws {AppwriteException}\n         * @returns {Promise<Document>}\n         */\n        upsertDocument(databaseId, collectionId, documentId, data, permissions) {\n            if (typeof databaseId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"databaseId\"');\n            }\n            if (typeof collectionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"collectionId\"');\n            }\n            if (typeof documentId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"documentId\"');\n            }\n            if (typeof data === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"data\"');\n            }\n            const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n            const payload = {};\n            if (typeof data !== 'undefined') {\n                payload['data'] = data;\n            }\n            if (typeof permissions !== 'undefined') {\n                payload['permissions'] = permissions;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} documentId\n         * @param {Partial<Omit<Document, keyof Models.Document>>} data\n         * @param {string[]} permissions\n         * @throws {AppwriteException}\n         * @returns {Promise<Document>}\n         */\n        updateDocument(databaseId, collectionId, documentId, data, permissions) {\n            if (typeof databaseId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"databaseId\"');\n            }\n            if (typeof collectionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"collectionId\"');\n            }\n            if (typeof documentId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"documentId\"');\n            }\n            const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n            const payload = {};\n            if (typeof data !== 'undefined') {\n                payload['data'] = data;\n            }\n            if (typeof permissions !== 'undefined') {\n                payload['permissions'] = permissions;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete a document by its unique ID.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} documentId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteDocument(databaseId, collectionId, documentId) {\n            if (typeof databaseId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"databaseId\"');\n            }\n            if (typeof collectionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"collectionId\"');\n            }\n            if (typeof documentId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"documentId\"');\n            }\n            const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n    }\n\n    class Functions {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Get a list of all the current user function execution logs. You can use the query params to filter your results.\n         *\n         * @param {string} functionId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.ExecutionList>}\n         */\n        listExecutions(functionId, queries) {\n            if (typeof functionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"functionId\"');\n            }\n            const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.\n         *\n         * @param {string} functionId\n         * @param {string} body\n         * @param {boolean} async\n         * @param {string} xpath\n         * @param {ExecutionMethod} method\n         * @param {object} headers\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Execution>}\n         */\n        createExecution(functionId, body, async, xpath, method, headers, scheduledAt) {\n            if (typeof functionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"functionId\"');\n            }\n            const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n            const payload = {};\n            if (typeof body !== 'undefined') {\n                payload['body'] = body;\n            }\n            if (typeof async !== 'undefined') {\n                payload['async'] = async;\n            }\n            if (typeof xpath !== 'undefined') {\n                payload['path'] = xpath;\n            }\n            if (typeof method !== 'undefined') {\n                payload['method'] = method;\n            }\n            if (typeof headers !== 'undefined') {\n                payload['headers'] = headers;\n            }\n            if (typeof scheduledAt !== 'undefined') {\n                payload['scheduledAt'] = scheduledAt;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Get a function execution log by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} executionId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Execution>}\n         */\n        getExecution(functionId, executionId) {\n            if (typeof functionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"functionId\"');\n            }\n            if (typeof executionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"executionId\"');\n            }\n            const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n    }\n\n    class Graphql {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Execute a GraphQL mutation.\n         *\n         * @param {object} query\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        query(query) {\n            if (typeof query === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"query\"');\n            }\n            const apiPath = '/graphql';\n            const payload = {};\n            if (typeof query !== 'undefined') {\n                payload['query'] = query;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'x-sdk-graphql': 'true',\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Execute a GraphQL mutation.\n         *\n         * @param {object} query\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        mutation(query) {\n            if (typeof query === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"query\"');\n            }\n            const apiPath = '/graphql/mutation';\n            const payload = {};\n            if (typeof query !== 'undefined') {\n                payload['query'] = query;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'x-sdk-graphql': 'true',\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n    }\n\n    class Locale {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.\n\n    ([IP Geolocation by DB-IP](https://db-ip.com))\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Locale>}\n         */\n        get() {\n            const apiPath = '/locale';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.LocaleCodeList>}\n         */\n        listCodes() {\n            const apiPath = '/locale/codes';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all continents. You can use the locale header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.ContinentList>}\n         */\n        listContinents() {\n            const apiPath = '/locale/continents';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all countries. You can use the locale header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.CountryList>}\n         */\n        listCountries() {\n            const apiPath = '/locale/countries';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.CountryList>}\n         */\n        listCountriesEU() {\n            const apiPath = '/locale/countries/eu';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all countries phone codes. You can use the locale header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.PhoneList>}\n         */\n        listCountriesPhones() {\n            const apiPath = '/locale/countries/phones';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.CurrencyList>}\n         */\n        listCurrencies() {\n            const apiPath = '/locale/currencies';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.LanguageList>}\n         */\n        listLanguages() {\n            const apiPath = '/locale/languages';\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n    }\n\n    class Messaging {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Create a new subscriber.\n         *\n         * @param {string} topicId\n         * @param {string} subscriberId\n         * @param {string} targetId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Subscriber>}\n         */\n        createSubscriber(topicId, subscriberId, targetId) {\n            if (typeof topicId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"topicId\"');\n            }\n            if (typeof subscriberId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"subscriberId\"');\n            }\n            if (typeof targetId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"targetId\"');\n            }\n            const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);\n            const payload = {};\n            if (typeof subscriberId !== 'undefined') {\n                payload['subscriberId'] = subscriberId;\n            }\n            if (typeof targetId !== 'undefined') {\n                payload['targetId'] = targetId;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete a subscriber by its unique ID.\n         *\n         * @param {string} topicId\n         * @param {string} subscriberId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteSubscriber(topicId, subscriberId) {\n            if (typeof topicId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"topicId\"');\n            }\n            if (typeof subscriberId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"subscriberId\"');\n            }\n            const apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n    }\n\n    class Storage {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Get a list of all the user files. You can use the query params to filter your results.\n         *\n         * @param {string} bucketId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.FileList>}\n         */\n        listFiles(bucketId, queries, search) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            if (typeof search !== 'undefined') {\n                payload['search'] = search;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](https://appwrite.io/docs/server/storage#storageCreateBucket) API or directly from your Appwrite console.\n\n    Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.\n\n    When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file&#039;s **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.\n\n    If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.\n\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @param {File} file\n         * @param {string[]} permissions\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.File>}\n         */\n        createFile(bucketId, fileId, file, permissions, onProgress = (progress) => { }) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            if (typeof file === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"file\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);\n            const payload = {};\n            if (typeof fileId !== 'undefined') {\n                payload['fileId'] = fileId;\n            }\n            if (typeof file !== 'undefined') {\n                payload['file'] = file;\n            }\n            if (typeof permissions !== 'undefined') {\n                payload['permissions'] = permissions;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'multipart/form-data',\n            };\n            return this.client.chunkedUpload('post', uri, apiHeaders, payload, onProgress);\n        }\n        /**\n         * Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.File>}\n         */\n        getFile(bucketId, fileId) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Update a file by its unique ID. Only users with write permissions have access to update this resource.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @param {string} name\n         * @param {string[]} permissions\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.File>}\n         */\n        updateFile(bucketId, fileId, name, permissions) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            if (typeof permissions !== 'undefined') {\n                payload['permissions'] = permissions;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete a file by its unique ID. Only users with write permissions have access to delete this resource.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteFile(bucketId, fileId) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Get a file content by its unique ID. The endpoint response return with a &#039;Content-Disposition: attachment&#039; header that tells the browser to start downloading the file to user downloads directory.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @param {string} token\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getFileDownload(bucketId, fileId, token) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            if (typeof token !== 'undefined') {\n                payload['token'] = token;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @param {number} width\n         * @param {number} height\n         * @param {ImageGravity} gravity\n         * @param {number} quality\n         * @param {number} borderWidth\n         * @param {string} borderColor\n         * @param {number} borderRadius\n         * @param {number} opacity\n         * @param {number} rotation\n         * @param {string} background\n         * @param {ImageFormat} output\n         * @param {string} token\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getFilePreview(bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output, token) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            if (typeof width !== 'undefined') {\n                payload['width'] = width;\n            }\n            if (typeof height !== 'undefined') {\n                payload['height'] = height;\n            }\n            if (typeof gravity !== 'undefined') {\n                payload['gravity'] = gravity;\n            }\n            if (typeof quality !== 'undefined') {\n                payload['quality'] = quality;\n            }\n            if (typeof borderWidth !== 'undefined') {\n                payload['borderWidth'] = borderWidth;\n            }\n            if (typeof borderColor !== 'undefined') {\n                payload['borderColor'] = borderColor;\n            }\n            if (typeof borderRadius !== 'undefined') {\n                payload['borderRadius'] = borderRadius;\n            }\n            if (typeof opacity !== 'undefined') {\n                payload['opacity'] = opacity;\n            }\n            if (typeof rotation !== 'undefined') {\n                payload['rotation'] = rotation;\n            }\n            if (typeof background !== 'undefined') {\n                payload['background'] = background;\n            }\n            if (typeof output !== 'undefined') {\n                payload['output'] = output;\n            }\n            if (typeof token !== 'undefined') {\n                payload['token'] = token;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n        /**\n         * Get a file content by its unique ID. This endpoint is similar to the download method but returns with no  &#039;Content-Disposition: attachment&#039; header.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @param {string} token\n         * @throws {AppwriteException}\n         * @returns {string}\n         */\n        getFileView(bucketId, fileId, token) {\n            if (typeof bucketId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"bucketId\"');\n            }\n            if (typeof fileId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"fileId\"');\n            }\n            const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            if (typeof token !== 'undefined') {\n                payload['token'] = token;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri.toString();\n        }\n    }\n\n    class Teams {\n        constructor(client) {\n            this.client = client;\n        }\n        /**\n         * Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.\n         *\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.TeamList<Preferences>>}\n         */\n        list(queries, search) {\n            const apiPath = '/teams';\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            if (typeof search !== 'undefined') {\n                payload['search'] = search;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.\n         *\n         * @param {string} teamId\n         * @param {string} name\n         * @param {string[]} roles\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Team<Preferences>>}\n         */\n        create(teamId, name, roles) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof name === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"name\"');\n            }\n            const apiPath = '/teams';\n            const payload = {};\n            if (typeof teamId !== 'undefined') {\n                payload['teamId'] = teamId;\n            }\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            if (typeof roles !== 'undefined') {\n                payload['roles'] = roles;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Get a team by its ID. All team members have read access for this resource.\n         *\n         * @param {string} teamId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Team<Preferences>>}\n         */\n        get(teamId) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Update the team&#039;s name by its unique ID.\n         *\n         * @param {string} teamId\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Team<Preferences>>}\n         */\n        updateName(teamId, name) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof name === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"name\"');\n            }\n            const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n            const payload = {};\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n        /**\n         * Delete a team using its ID. Only team members with the owner role can delete the team.\n         *\n         * @param {string} teamId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        delete(teamId) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to list a team&#039;s members using the team&#039;s ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.\n         *\n         * @param {string} teamId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.MembershipList>}\n         */\n        listMemberships(teamId, queries, search) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);\n            const payload = {};\n            if (typeof queries !== 'undefined') {\n                payload['queries'] = queries;\n            }\n            if (typeof search !== 'undefined') {\n                payload['search'] = search;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn&#039;t exist. If initiated from a Server SDK, the new member will be added automatically to the team.\n\n    You only need to provide one of a user ID, email, or phone number. Appwrite will prioritize accepting the user ID &gt; email &gt; phone number if you provide more than one of these parameters.\n\n    Use the `url` parameter to redirect the user from the invitation email to your app. After the user is redirected, use the [Update Team Membership Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) endpoint to allow the user to accept the invitation to the team.\n\n    Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) Appwrite will accept the only redirect URLs under the domains you have added as a platform on the Appwrite Console.\n\n         *\n         * @param {string} teamId\n         * @param {string[]} roles\n         * @param {string} email\n         * @param {string} userId\n         * @param {string} phone\n         * @param {string} url\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Membership>}\n         */\n        createMembership(teamId, roles, email, userId, phone, url, name) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof roles === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"roles\"');\n            }\n            const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);\n            const payload = {};\n            if (typeof email !== 'undefined') {\n                payload['email'] = email;\n            }\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof phone !== 'undefined') {\n                payload['phone'] = phone;\n            }\n            if (typeof roles !== 'undefined') {\n                payload['roles'] = roles;\n            }\n            if (typeof url !== 'undefined') {\n                payload['url'] = url;\n            }\n            if (typeof name !== 'undefined') {\n                payload['name'] = name;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('post', uri, apiHeaders, payload);\n        }\n        /**\n         * Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.\n         *\n         * @param {string} teamId\n         * @param {string} membershipId\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Membership>}\n         */\n        getMembership(teamId, membershipId) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof membershipId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"membershipId\"');\n            }\n            const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](https://appwrite.io/docs/permissions).\n\n         *\n         * @param {string} teamId\n         * @param {string} membershipId\n         * @param {string[]} roles\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Membership>}\n         */\n        updateMembership(teamId, membershipId, roles) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof membershipId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"membershipId\"');\n            }\n            if (typeof roles === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"roles\"');\n            }\n            const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n            const payload = {};\n            if (typeof roles !== 'undefined') {\n                payload['roles'] = roles;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.\n         *\n         * @param {string} teamId\n         * @param {string} membershipId\n         * @throws {AppwriteException}\n         * @returns {Promise<{}>}\n         */\n        deleteMembership(teamId, membershipId) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof membershipId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"membershipId\"');\n            }\n            const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('delete', uri, apiHeaders, payload);\n        }\n        /**\n         * Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.\n\n    If the request is successful, a session for the user is automatically created.\n\n         *\n         * @param {string} teamId\n         * @param {string} membershipId\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise<Models.Membership>}\n         */\n        updateMembershipStatus(teamId, membershipId, userId, secret) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof membershipId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"membershipId\"');\n            }\n            if (typeof userId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"userId\"');\n            }\n            if (typeof secret === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"secret\"');\n            }\n            const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n            const payload = {};\n            if (typeof userId !== 'undefined') {\n                payload['userId'] = userId;\n            }\n            if (typeof secret !== 'undefined') {\n                payload['secret'] = secret;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('patch', uri, apiHeaders, payload);\n        }\n        /**\n         * Get the team&#039;s shared preferences by its unique ID. If a preference doesn&#039;t need to be shared by all team members, prefer storing them in [user preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).\n         *\n         * @param {string} teamId\n         * @throws {AppwriteException}\n         * @returns {Promise<Preferences>}\n         */\n        getPrefs(teamId) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {};\n            return this.client.call('get', uri, apiHeaders, payload);\n        }\n        /**\n         * Update the team&#039;s preferences by its unique ID. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.\n         *\n         * @param {string} teamId\n         * @param {object} prefs\n         * @throws {AppwriteException}\n         * @returns {Promise<Preferences>}\n         */\n        updatePrefs(teamId, prefs) {\n            if (typeof teamId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"teamId\"');\n            }\n            if (typeof prefs === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"prefs\"');\n            }\n            const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);\n            const payload = {};\n            if (typeof prefs !== 'undefined') {\n                payload['prefs'] = prefs;\n            }\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            const apiHeaders = {\n                'content-type': 'application/json',\n            };\n            return this.client.call('put', uri, apiHeaders, payload);\n        }\n    }\n\n    /**\n     * Helper class to generate permission strings for resources.\n     */\n    class Permission {\n    }\n    /**\n     * Generate read permission string for the provided role.\n     *\n     * @param {string} role\n     * @returns {string}\n     */\n    Permission.read = (role) => {\n        return `read(\"${role}\")`;\n    };\n    /**\n     * Generate write permission string for the provided role.\n     *\n     * This is an alias of update, delete, and possibly create.\n     * Don't use write in combination with update, delete, or create.\n     *\n     * @param {string} role\n     * @returns {string}\n     */\n    Permission.write = (role) => {\n        return `write(\"${role}\")`;\n    };\n    /**\n     * Generate create permission string for the provided role.\n     *\n     * @param {string} role\n     * @returns {string}\n     */\n    Permission.create = (role) => {\n        return `create(\"${role}\")`;\n    };\n    /**\n     * Generate update permission string for the provided role.\n     *\n     * @param {string} role\n     * @returns {string}\n     */\n    Permission.update = (role) => {\n        return `update(\"${role}\")`;\n    };\n    /**\n     * Generate delete permission string for the provided role.\n     *\n     * @param {string} role\n     * @returns {string}\n     */\n    Permission.delete = (role) => {\n        return `delete(\"${role}\")`;\n    };\n\n    /**\n     * Helper class to generate role strings for `Permission`.\n     */\n    class Role {\n        /**\n         * Grants access to anyone.\n         *\n         * This includes authenticated and unauthenticated users.\n         *\n         * @returns {string}\n         */\n        static any() {\n            return 'any';\n        }\n        /**\n         * Grants access to a specific user by user ID.\n         *\n         * You can optionally pass verified or unverified for\n         * `status` to target specific types of users.\n         *\n         * @param {string} id\n         * @param {string} status\n         * @returns {string}\n         */\n        static user(id, status = '') {\n            if (status === '') {\n                return `user:${id}`;\n            }\n            return `user:${id}/${status}`;\n        }\n        /**\n         * Grants access to any authenticated or anonymous user.\n         *\n         * You can optionally pass verified or unverified for\n         * `status` to target specific types of users.\n         *\n         * @param {string} status\n         * @returns {string}\n         */\n        static users(status = '') {\n            if (status === '') {\n                return 'users';\n            }\n            return `users/${status}`;\n        }\n        /**\n         * Grants access to any guest user without a session.\n         *\n         * Authenticated users don't have access to this role.\n         *\n         * @returns {string}\n         */\n        static guests() {\n            return 'guests';\n        }\n        /**\n         * Grants access to a team by team ID.\n         *\n         * You can optionally pass a role for `role` to target\n         * team members with the specified role.\n         *\n         * @param {string} id\n         * @param {string} role\n         * @returns {string}\n         */\n        static team(id, role = '') {\n            if (role === '') {\n                return `team:${id}`;\n            }\n            return `team:${id}/${role}`;\n        }\n        /**\n         * Grants access to a specific member of a team.\n         *\n         * When the member is removed from the team, they will\n         * no longer have access.\n         *\n         * @param {string} id\n         * @returns {string}\n         */\n        static member(id) {\n            return `member:${id}`;\n        }\n        /**\n         * Grants access to a user with the specified label.\n         *\n         * @param {string} name\n         * @returns  {string}\n         */\n        static label(name) {\n            return `label:${name}`;\n        }\n    }\n\n    var _a, _ID_hexTimestamp;\n    /**\n     * Helper class to generate ID strings for resources.\n     */\n    class ID {\n        /**\n         * Uses the provided ID as the ID for the resource.\n         *\n         * @param {string} id\n         * @returns {string}\n         */\n        static custom(id) {\n            return id;\n        }\n        /**\n         * Have Appwrite generate a unique ID for you.\n         *\n         * @param {number} padding. Default is 7.\n         * @returns {string}\n         */\n        static unique(padding = 7) {\n            // Generate a unique ID with padding to have a longer ID\n            const baseId = __classPrivateFieldGet(ID, _a, \"m\", _ID_hexTimestamp).call(ID);\n            let randomPadding = '';\n            for (let i = 0; i < padding; i++) {\n                const randomHexDigit = Math.floor(Math.random() * 16).toString(16);\n                randomPadding += randomHexDigit;\n            }\n            return baseId + randomPadding;\n        }\n    }\n    _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {\n        const now = new Date();\n        const sec = Math.floor(now.getTime() / 1000);\n        const msec = now.getMilliseconds();\n        // Convert to hexadecimal\n        const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');\n        return hexTimestamp;\n    };\n\n    exports.AuthenticatorType = void 0;\n    (function (AuthenticatorType) {\n        AuthenticatorType[\"Totp\"] = \"totp\";\n    })(exports.AuthenticatorType || (exports.AuthenticatorType = {}));\n\n    exports.AuthenticationFactor = void 0;\n    (function (AuthenticationFactor) {\n        AuthenticationFactor[\"Email\"] = \"email\";\n        AuthenticationFactor[\"Phone\"] = \"phone\";\n        AuthenticationFactor[\"Totp\"] = \"totp\";\n        AuthenticationFactor[\"Recoverycode\"] = \"recoverycode\";\n    })(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));\n\n    exports.OAuthProvider = void 0;\n    (function (OAuthProvider) {\n        OAuthProvider[\"Amazon\"] = \"amazon\";\n        OAuthProvider[\"Apple\"] = \"apple\";\n        OAuthProvider[\"Auth0\"] = \"auth0\";\n        OAuthProvider[\"Authentik\"] = \"authentik\";\n        OAuthProvider[\"Autodesk\"] = \"autodesk\";\n        OAuthProvider[\"Bitbucket\"] = \"bitbucket\";\n        OAuthProvider[\"Bitly\"] = \"bitly\";\n        OAuthProvider[\"Box\"] = \"box\";\n        OAuthProvider[\"Dailymotion\"] = \"dailymotion\";\n        OAuthProvider[\"Discord\"] = \"discord\";\n        OAuthProvider[\"Disqus\"] = \"disqus\";\n        OAuthProvider[\"Dropbox\"] = \"dropbox\";\n        OAuthProvider[\"Etsy\"] = \"etsy\";\n        OAuthProvider[\"Facebook\"] = \"facebook\";\n        OAuthProvider[\"Figma\"] = \"figma\";\n        OAuthProvider[\"Github\"] = \"github\";\n        OAuthProvider[\"Gitlab\"] = \"gitlab\";\n        OAuthProvider[\"Google\"] = \"google\";\n        OAuthProvider[\"Linkedin\"] = \"linkedin\";\n        OAuthProvider[\"Microsoft\"] = \"microsoft\";\n        OAuthProvider[\"Notion\"] = \"notion\";\n        OAuthProvider[\"Oidc\"] = \"oidc\";\n        OAuthProvider[\"Okta\"] = \"okta\";\n        OAuthProvider[\"Paypal\"] = \"paypal\";\n        OAuthProvider[\"PaypalSandbox\"] = \"paypalSandbox\";\n        OAuthProvider[\"Podio\"] = \"podio\";\n        OAuthProvider[\"Salesforce\"] = \"salesforce\";\n        OAuthProvider[\"Slack\"] = \"slack\";\n        OAuthProvider[\"Spotify\"] = \"spotify\";\n        OAuthProvider[\"Stripe\"] = \"stripe\";\n        OAuthProvider[\"Tradeshift\"] = \"tradeshift\";\n        OAuthProvider[\"TradeshiftBox\"] = \"tradeshiftBox\";\n        OAuthProvider[\"Twitch\"] = \"twitch\";\n        OAuthProvider[\"Wordpress\"] = \"wordpress\";\n        OAuthProvider[\"Yahoo\"] = \"yahoo\";\n        OAuthProvider[\"Yammer\"] = \"yammer\";\n        OAuthProvider[\"Yandex\"] = \"yandex\";\n        OAuthProvider[\"Zoho\"] = \"zoho\";\n        OAuthProvider[\"Zoom\"] = \"zoom\";\n        OAuthProvider[\"Mock\"] = \"mock\";\n    })(exports.OAuthProvider || (exports.OAuthProvider = {}));\n\n    exports.Browser = void 0;\n    (function (Browser) {\n        Browser[\"AvantBrowser\"] = \"aa\";\n        Browser[\"AndroidWebViewBeta\"] = \"an\";\n        Browser[\"GoogleChrome\"] = \"ch\";\n        Browser[\"GoogleChromeIOS\"] = \"ci\";\n        Browser[\"GoogleChromeMobile\"] = \"cm\";\n        Browser[\"Chromium\"] = \"cr\";\n        Browser[\"MozillaFirefox\"] = \"ff\";\n        Browser[\"Safari\"] = \"sf\";\n        Browser[\"MobileSafari\"] = \"mf\";\n        Browser[\"MicrosoftEdge\"] = \"ps\";\n        Browser[\"MicrosoftEdgeIOS\"] = \"oi\";\n        Browser[\"OperaMini\"] = \"om\";\n        Browser[\"Opera\"] = \"op\";\n        Browser[\"OperaNext\"] = \"on\";\n    })(exports.Browser || (exports.Browser = {}));\n\n    exports.CreditCard = void 0;\n    (function (CreditCard) {\n        CreditCard[\"AmericanExpress\"] = \"amex\";\n        CreditCard[\"Argencard\"] = \"argencard\";\n        CreditCard[\"Cabal\"] = \"cabal\";\n        CreditCard[\"Cencosud\"] = \"cencosud\";\n        CreditCard[\"DinersClub\"] = \"diners\";\n        CreditCard[\"Discover\"] = \"discover\";\n        CreditCard[\"Elo\"] = \"elo\";\n        CreditCard[\"Hipercard\"] = \"hipercard\";\n        CreditCard[\"JCB\"] = \"jcb\";\n        CreditCard[\"Mastercard\"] = \"mastercard\";\n        CreditCard[\"Naranja\"] = \"naranja\";\n        CreditCard[\"TarjetaShopping\"] = \"targeta-shopping\";\n        CreditCard[\"UnionChinaPay\"] = \"union-china-pay\";\n        CreditCard[\"Visa\"] = \"visa\";\n        CreditCard[\"MIR\"] = \"mir\";\n        CreditCard[\"Maestro\"] = \"maestro\";\n        CreditCard[\"Rupay\"] = \"rupay\";\n    })(exports.CreditCard || (exports.CreditCard = {}));\n\n    exports.Flag = void 0;\n    (function (Flag) {\n        Flag[\"Afghanistan\"] = \"af\";\n        Flag[\"Angola\"] = \"ao\";\n        Flag[\"Albania\"] = \"al\";\n        Flag[\"Andorra\"] = \"ad\";\n        Flag[\"UnitedArabEmirates\"] = \"ae\";\n        Flag[\"Argentina\"] = \"ar\";\n        Flag[\"Armenia\"] = \"am\";\n        Flag[\"AntiguaAndBarbuda\"] = \"ag\";\n        Flag[\"Australia\"] = \"au\";\n        Flag[\"Austria\"] = \"at\";\n        Flag[\"Azerbaijan\"] = \"az\";\n        Flag[\"Burundi\"] = \"bi\";\n        Flag[\"Belgium\"] = \"be\";\n        Flag[\"Benin\"] = \"bj\";\n        Flag[\"BurkinaFaso\"] = \"bf\";\n        Flag[\"Bangladesh\"] = \"bd\";\n        Flag[\"Bulgaria\"] = \"bg\";\n        Flag[\"Bahrain\"] = \"bh\";\n        Flag[\"Bahamas\"] = \"bs\";\n        Flag[\"BosniaAndHerzegovina\"] = \"ba\";\n        Flag[\"Belarus\"] = \"by\";\n        Flag[\"Belize\"] = \"bz\";\n        Flag[\"Bolivia\"] = \"bo\";\n        Flag[\"Brazil\"] = \"br\";\n        Flag[\"Barbados\"] = \"bb\";\n        Flag[\"BruneiDarussalam\"] = \"bn\";\n        Flag[\"Bhutan\"] = \"bt\";\n        Flag[\"Botswana\"] = \"bw\";\n        Flag[\"CentralAfricanRepublic\"] = \"cf\";\n        Flag[\"Canada\"] = \"ca\";\n        Flag[\"Switzerland\"] = \"ch\";\n        Flag[\"Chile\"] = \"cl\";\n        Flag[\"China\"] = \"cn\";\n        Flag[\"CoteDIvoire\"] = \"ci\";\n        Flag[\"Cameroon\"] = \"cm\";\n        Flag[\"DemocraticRepublicOfTheCongo\"] = \"cd\";\n        Flag[\"RepublicOfTheCongo\"] = \"cg\";\n        Flag[\"Colombia\"] = \"co\";\n        Flag[\"Comoros\"] = \"km\";\n        Flag[\"CapeVerde\"] = \"cv\";\n        Flag[\"CostaRica\"] = \"cr\";\n        Flag[\"Cuba\"] = \"cu\";\n        Flag[\"Cyprus\"] = \"cy\";\n        Flag[\"CzechRepublic\"] = \"cz\";\n        Flag[\"Germany\"] = \"de\";\n        Flag[\"Djibouti\"] = \"dj\";\n        Flag[\"Dominica\"] = \"dm\";\n        Flag[\"Denmark\"] = \"dk\";\n        Flag[\"DominicanRepublic\"] = \"do\";\n        Flag[\"Algeria\"] = \"dz\";\n        Flag[\"Ecuador\"] = \"ec\";\n        Flag[\"Egypt\"] = \"eg\";\n        Flag[\"Eritrea\"] = \"er\";\n        Flag[\"Spain\"] = \"es\";\n        Flag[\"Estonia\"] = \"ee\";\n        Flag[\"Ethiopia\"] = \"et\";\n        Flag[\"Finland\"] = \"fi\";\n        Flag[\"Fiji\"] = \"fj\";\n        Flag[\"France\"] = \"fr\";\n        Flag[\"MicronesiaFederatedStatesOf\"] = \"fm\";\n        Flag[\"Gabon\"] = \"ga\";\n        Flag[\"UnitedKingdom\"] = \"gb\";\n        Flag[\"Georgia\"] = \"ge\";\n        Flag[\"Ghana\"] = \"gh\";\n        Flag[\"Guinea\"] = \"gn\";\n        Flag[\"Gambia\"] = \"gm\";\n        Flag[\"GuineaBissau\"] = \"gw\";\n        Flag[\"EquatorialGuinea\"] = \"gq\";\n        Flag[\"Greece\"] = \"gr\";\n        Flag[\"Grenada\"] = \"gd\";\n        Flag[\"Guatemala\"] = \"gt\";\n        Flag[\"Guyana\"] = \"gy\";\n        Flag[\"Honduras\"] = \"hn\";\n        Flag[\"Croatia\"] = \"hr\";\n        Flag[\"Haiti\"] = \"ht\";\n        Flag[\"Hungary\"] = \"hu\";\n        Flag[\"Indonesia\"] = \"id\";\n        Flag[\"India\"] = \"in\";\n        Flag[\"Ireland\"] = \"ie\";\n        Flag[\"IranIslamicRepublicOf\"] = \"ir\";\n        Flag[\"Iraq\"] = \"iq\";\n        Flag[\"Iceland\"] = \"is\";\n        Flag[\"Israel\"] = \"il\";\n        Flag[\"Italy\"] = \"it\";\n        Flag[\"Jamaica\"] = \"jm\";\n        Flag[\"Jordan\"] = \"jo\";\n        Flag[\"Japan\"] = \"jp\";\n        Flag[\"Kazakhstan\"] = \"kz\";\n        Flag[\"Kenya\"] = \"ke\";\n        Flag[\"Kyrgyzstan\"] = \"kg\";\n        Flag[\"Cambodia\"] = \"kh\";\n        Flag[\"Kiribati\"] = \"ki\";\n        Flag[\"SaintKittsAndNevis\"] = \"kn\";\n        Flag[\"SouthKorea\"] = \"kr\";\n        Flag[\"Kuwait\"] = \"kw\";\n        Flag[\"LaoPeopleSDemocraticRepublic\"] = \"la\";\n        Flag[\"Lebanon\"] = \"lb\";\n        Flag[\"Liberia\"] = \"lr\";\n        Flag[\"Libya\"] = \"ly\";\n        Flag[\"SaintLucia\"] = \"lc\";\n        Flag[\"Liechtenstein\"] = \"li\";\n        Flag[\"SriLanka\"] = \"lk\";\n        Flag[\"Lesotho\"] = \"ls\";\n        Flag[\"Lithuania\"] = \"lt\";\n        Flag[\"Luxembourg\"] = \"lu\";\n        Flag[\"Latvia\"] = \"lv\";\n        Flag[\"Morocco\"] = \"ma\";\n        Flag[\"Monaco\"] = \"mc\";\n        Flag[\"Moldova\"] = \"md\";\n        Flag[\"Madagascar\"] = \"mg\";\n        Flag[\"Maldives\"] = \"mv\";\n        Flag[\"Mexico\"] = \"mx\";\n        Flag[\"MarshallIslands\"] = \"mh\";\n        Flag[\"NorthMacedonia\"] = \"mk\";\n        Flag[\"Mali\"] = \"ml\";\n        Flag[\"Malta\"] = \"mt\";\n        Flag[\"Myanmar\"] = \"mm\";\n        Flag[\"Montenegro\"] = \"me\";\n        Flag[\"Mongolia\"] = \"mn\";\n        Flag[\"Mozambique\"] = \"mz\";\n        Flag[\"Mauritania\"] = \"mr\";\n        Flag[\"Mauritius\"] = \"mu\";\n        Flag[\"Malawi\"] = \"mw\";\n        Flag[\"Malaysia\"] = \"my\";\n        Flag[\"Namibia\"] = \"na\";\n        Flag[\"Niger\"] = \"ne\";\n        Flag[\"Nigeria\"] = \"ng\";\n        Flag[\"Nicaragua\"] = \"ni\";\n        Flag[\"Netherlands\"] = \"nl\";\n        Flag[\"Norway\"] = \"no\";\n        Flag[\"Nepal\"] = \"np\";\n        Flag[\"Nauru\"] = \"nr\";\n        Flag[\"NewZealand\"] = \"nz\";\n        Flag[\"Oman\"] = \"om\";\n        Flag[\"Pakistan\"] = \"pk\";\n        Flag[\"Panama\"] = \"pa\";\n        Flag[\"Peru\"] = \"pe\";\n        Flag[\"Philippines\"] = \"ph\";\n        Flag[\"Palau\"] = \"pw\";\n        Flag[\"PapuaNewGuinea\"] = \"pg\";\n        Flag[\"Poland\"] = \"pl\";\n        Flag[\"FrenchPolynesia\"] = \"pf\";\n        Flag[\"NorthKorea\"] = \"kp\";\n        Flag[\"Portugal\"] = \"pt\";\n        Flag[\"Paraguay\"] = \"py\";\n        Flag[\"Qatar\"] = \"qa\";\n        Flag[\"Romania\"] = \"ro\";\n        Flag[\"Russia\"] = \"ru\";\n        Flag[\"Rwanda\"] = \"rw\";\n        Flag[\"SaudiArabia\"] = \"sa\";\n        Flag[\"Sudan\"] = \"sd\";\n        Flag[\"Senegal\"] = \"sn\";\n        Flag[\"Singapore\"] = \"sg\";\n        Flag[\"SolomonIslands\"] = \"sb\";\n        Flag[\"SierraLeone\"] = \"sl\";\n        Flag[\"ElSalvador\"] = \"sv\";\n        Flag[\"SanMarino\"] = \"sm\";\n        Flag[\"Somalia\"] = \"so\";\n        Flag[\"Serbia\"] = \"rs\";\n        Flag[\"SouthSudan\"] = \"ss\";\n        Flag[\"SaoTomeAndPrincipe\"] = \"st\";\n        Flag[\"Suriname\"] = \"sr\";\n        Flag[\"Slovakia\"] = \"sk\";\n        Flag[\"Slovenia\"] = \"si\";\n        Flag[\"Sweden\"] = \"se\";\n        Flag[\"Eswatini\"] = \"sz\";\n        Flag[\"Seychelles\"] = \"sc\";\n        Flag[\"Syria\"] = \"sy\";\n        Flag[\"Chad\"] = \"td\";\n        Flag[\"Togo\"] = \"tg\";\n        Flag[\"Thailand\"] = \"th\";\n        Flag[\"Tajikistan\"] = \"tj\";\n        Flag[\"Turkmenistan\"] = \"tm\";\n        Flag[\"TimorLeste\"] = \"tl\";\n        Flag[\"Tonga\"] = \"to\";\n        Flag[\"TrinidadAndTobago\"] = \"tt\";\n        Flag[\"Tunisia\"] = \"tn\";\n        Flag[\"Turkey\"] = \"tr\";\n        Flag[\"Tuvalu\"] = \"tv\";\n        Flag[\"Tanzania\"] = \"tz\";\n        Flag[\"Uganda\"] = \"ug\";\n        Flag[\"Ukraine\"] = \"ua\";\n        Flag[\"Uruguay\"] = \"uy\";\n        Flag[\"UnitedStates\"] = \"us\";\n        Flag[\"Uzbekistan\"] = \"uz\";\n        Flag[\"VaticanCity\"] = \"va\";\n        Flag[\"SaintVincentAndTheGrenadines\"] = \"vc\";\n        Flag[\"Venezuela\"] = \"ve\";\n        Flag[\"Vietnam\"] = \"vn\";\n        Flag[\"Vanuatu\"] = \"vu\";\n        Flag[\"Samoa\"] = \"ws\";\n        Flag[\"Yemen\"] = \"ye\";\n        Flag[\"SouthAfrica\"] = \"za\";\n        Flag[\"Zambia\"] = \"zm\";\n        Flag[\"Zimbabwe\"] = \"zw\";\n    })(exports.Flag || (exports.Flag = {}));\n\n    exports.ExecutionMethod = void 0;\n    (function (ExecutionMethod) {\n        ExecutionMethod[\"GET\"] = \"GET\";\n        ExecutionMethod[\"POST\"] = \"POST\";\n        ExecutionMethod[\"PUT\"] = \"PUT\";\n        ExecutionMethod[\"PATCH\"] = \"PATCH\";\n        ExecutionMethod[\"DELETE\"] = \"DELETE\";\n        ExecutionMethod[\"OPTIONS\"] = \"OPTIONS\";\n    })(exports.ExecutionMethod || (exports.ExecutionMethod = {}));\n\n    exports.ImageGravity = void 0;\n    (function (ImageGravity) {\n        ImageGravity[\"Center\"] = \"center\";\n        ImageGravity[\"Topleft\"] = \"top-left\";\n        ImageGravity[\"Top\"] = \"top\";\n        ImageGravity[\"Topright\"] = \"top-right\";\n        ImageGravity[\"Left\"] = \"left\";\n        ImageGravity[\"Right\"] = \"right\";\n        ImageGravity[\"Bottomleft\"] = \"bottom-left\";\n        ImageGravity[\"Bottom\"] = \"bottom\";\n        ImageGravity[\"Bottomright\"] = \"bottom-right\";\n    })(exports.ImageGravity || (exports.ImageGravity = {}));\n\n    exports.ImageFormat = void 0;\n    (function (ImageFormat) {\n        ImageFormat[\"Jpg\"] = \"jpg\";\n        ImageFormat[\"Jpeg\"] = \"jpeg\";\n        ImageFormat[\"Png\"] = \"png\";\n        ImageFormat[\"Webp\"] = \"webp\";\n        ImageFormat[\"Heic\"] = \"heic\";\n        ImageFormat[\"Avif\"] = \"avif\";\n    })(exports.ImageFormat || (exports.ImageFormat = {}));\n\n    exports.Account = Account;\n    exports.AppwriteException = AppwriteException;\n    exports.Avatars = Avatars;\n    exports.Client = Client;\n    exports.Databases = Databases;\n    exports.Functions = Functions;\n    exports.Graphql = Graphql;\n    exports.ID = ID;\n    exports.Locale = Locale;\n    exports.Messaging = Messaging;\n    exports.Permission = Permission;\n    exports.Query = Query;\n    exports.Role = Role;\n    exports.Storage = Storage;\n    exports.Teams = Teams;\n\n    Object.defineProperty(exports, '__esModule', { value: true });\n\n})(this.Appwrite = this.Appwrite || {});\n"]}