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,EAAkB,wCAEhC,QAAiC,IAAtB,EACP,MAAM,IAAI,EAAkB,mDAEhC,MAAM,EAAU,qCAAqC,QAAQ,WAAY,GACnE,EAAU,CAAC,OACgB,IAAtB,IACP,EAA2B,kBAAI,GAEnC,MAAM,EAAM,IAAI,IAAI,KAAK,OAAO,OAAO,SAAW,GAClD,aAAa,KAAK,OAAO,KAAK,QAAS,EAAK,CACxC,eAAgB,oBACjB,EACP,GACJ,GAygBJ,OAAO,eAAe,EAAS,aAAc,CAAE,OAAO,GAEzD,CAllSD,CAklSG,KAAK,SAAW,KAAK,UAAY,CAAC,EAAG,EAAM","file":"/npm/luke-appwrite-ssr@0.0.3/dist/iife/sdk.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/luke-appwrite-ssr@0.0.3/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, isomorphicFormData, crossFetch) {\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    }\n\n    class Service {\n        constructor(client) {\n            this.client = client;\n        }\n        static flatten(data, prefix = '') {\n            let output = {};\n            for (const key in data) {\n                let value = data[key];\n                let finalKey = prefix ? `${prefix}[${key}]` : key;\n                if (Array.isArray(value)) {\n                    output = Object.assign(output, this.flatten(value, finalKey));\n                }\n                else {\n                    output[finalKey] = value;\n                }\n            }\n            return output;\n        }\n    }\n    Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB\n\n    class Query {\n    }\n    Query.equal = (attribute, value) => Query.addQuery(attribute, \"equal\", value);\n    Query.notEqual = (attribute, value) => Query.addQuery(attribute, \"notEqual\", value);\n    Query.lessThan = (attribute, value) => Query.addQuery(attribute, \"lessThan\", value);\n    Query.lessThanEqual = (attribute, value) => Query.addQuery(attribute, \"lessThanEqual\", value);\n    Query.greaterThan = (attribute, value) => Query.addQuery(attribute, \"greaterThan\", value);\n    Query.greaterThanEqual = (attribute, value) => Query.addQuery(attribute, \"greaterThanEqual\", value);\n    Query.isNull = (attribute) => `isNull(\"${attribute}\")`;\n    Query.isNotNull = (attribute) => `isNotNull(\"${attribute}\")`;\n    Query.between = (attribute, start, end) => `between(\"${attribute}\", ${Query.parseValues(start)}, ${Query.parseValues(end)})`;\n    Query.startsWith = (attribute, value) => Query.addQuery(attribute, \"startsWith\", value);\n    Query.endsWith = (attribute, value) => Query.addQuery(attribute, \"endsWith\", value);\n    Query.select = (attributes) => `select([${attributes.map((attr) => `\"${attr}\"`).join(\",\")}])`;\n    Query.search = (attribute, value) => Query.addQuery(attribute, \"search\", value);\n    Query.orderDesc = (attribute) => `orderDesc(\"${attribute}\")`;\n    Query.orderAsc = (attribute) => `orderAsc(\"${attribute}\")`;\n    Query.cursorAfter = (documentId) => `cursorAfter(\"${documentId}\")`;\n    Query.cursorBefore = (documentId) => `cursorBefore(\"${documentId}\")`;\n    Query.limit = (limit) => `limit(${limit})`;\n    Query.offset = (offset) => `offset(${offset})`;\n    Query.addQuery = (attribute, method, value) => value instanceof Array\n        ? `${method}(\"${attribute}\", [${value\n        .map((v) => Query.parseValues(v))\n        .join(\",\")}])`\n        : `${method}(\"${attribute}\", [${Query.parseValues(value)}])`;\n    Query.parseValues = (value) => typeof value === \"string\" || value instanceof String\n        ? `\"${value}\"`\n        : `${value}`;\n\n    class AppwriteException extends Error {\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    class Client {\n        constructor() {\n            this.config = {\n                endpoint: 'https://HOSTNAME/v1',\n                endpointRealtime: '',\n                project: '',\n                key: '',\n                jwt: '',\n                locale: '',\n                session: '',\n                forwardedfor: '',\n                forwardeduseragent: '',\n            };\n            this.headers = {\n                'x-sdk-name': 'NAME',\n                'x-sdk-platform': '',\n                'x-sdk-language': 'web',\n                'x-sdk-version': '0.0.0',\n                'X-Appwrite-Response-Format': '1.2.0',\n            };\n            this.realtime = {\n                socket: undefined,\n                timeout: 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                createSocket: () => {\n                    var _a, _b;\n                    if (this.realtime.channels.size < 1)\n                        return;\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                        ((_a = this.realtime.socket) === null || _a === void 0 ? void 0 : _a.readyState) > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)\n                    ) {\n                        if (this.realtime.socket &&\n                            ((_b = this.realtime.socket) === null || _b === void 0 ? void 0 : _b.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                        });\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 '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            this.config.endpoint = endpoint;\n            this.config.endpointRealtime = this.config.endpointRealtime || this.config.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            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 Key\n         *\n         * Your secret API key\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setKey(value) {\n            this.headers['X-Appwrite-Key'] = value;\n            this.config.key = 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 ForwardedFor\n         *\n         * The IP address of the client that made the request\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setForwardedFor(value) {\n            this.headers['X-Forwarded-For'] = value;\n            this.config.forwardedfor = value;\n            return this;\n        }\n        /**\n         * Set ForwardedUserAgent\n         *\n         * The user agent string of the client that made the request\n         *\n         * @param value string\n         *\n         * @return {this}\n         */\n        setForwardedUserAgent(value) {\n            this.headers['X-Forwarded-User-Agent'] = value;\n            this.config.forwardeduseragent = 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        call(method, url, headers = {}, params = {}) {\n            var _a, _b;\n            return __awaiter(this, void 0, void 0, function* () {\n                method = method.toUpperCase();\n                headers = Object.assign({}, this.headers, headers);\n                let options = {\n                    method,\n                    headers,\n                    credentials: 'include'\n                };\n                if (typeof window !== 'undefined' && window.localStorage) {\n                    headers['X-Fallback-Cookies'] = (_a = window.localStorage.getItem('cookieFallback')) !== null && _a !== void 0 ? _a : '';\n                }\n                if (method === 'GET') {\n                    for (const [key, value] of Object.entries(Service.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                            let formData = new FormData();\n                            for (const key in params) {\n                                if (Array.isArray(params[key])) {\n                                    params[key].forEach((value) => {\n                                        formData.append(key + '[]', value);\n                                    });\n                                }\n                                else {\n                                    formData.append(key, params[key]);\n                                }\n                            }\n                            options.body = formData;\n                            delete headers['content-type'];\n                            break;\n                    }\n                }\n                try {\n                    let data = null;\n                    const response = yield crossFetch.fetch(url.toString(), options);\n                    if ((_b = response.headers.get('content-type')) === null || _b === void 0 ? void 0 : _b.includes('application/json')) {\n                        data = yield response.json();\n                    }\n                    else {\n                        data = {\n                            message: yield response.text()\n                        };\n                    }\n                    if (400 <= response.status) {\n                        throw new AppwriteException(data === null || data === void 0 ? void 0 : data.message, response.status, data === null || data === void 0 ? void 0 : data.type, data);\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                catch (e) {\n                    if (e instanceof AppwriteException) {\n                        throw e;\n                    }\n                    throw new AppwriteException(e.message);\n                }\n            });\n        }\n    }\n\n    class Account extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * Get account\n         *\n         * Get the currently logged in user.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        get() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create account\n         *\n         * Use this endpoint to allow a new user to register a new account in your\n         * project. After the user registration completes successfully, you can use\n         * the\n         * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification)\n         * route to start verifying the user email address. To allow the new user to\n         * login to their new account, you need to create a new [account\n         * 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}\n        */\n        create(userId, email, password, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update email\n         *\n         * Update currently logged in user account email address. After changing user\n         * address, the user confirmation status will get reset. A new confirmation\n         * email is not sent automatically however you can use the send confirmation\n         * email endpoint again to send the confirmation email. For security measures,\n         * user password is required to complete this request.\n         * This endpoint can also be used to convert an anonymous account to a normal\n         * 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}\n        */\n        updateEmail(email, password) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List Identities\n         *\n         * Get the list of identities for the currently logged in user.\n         *\n         * @param {string} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listIdentities(queries) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete identity\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            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create JWT\n         *\n         * Use this endpoint to create a JSON Web Token. You can use the resulting JWT\n         * to authenticate on behalf of the current user when working with the\n         * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes\n         * from its creation and will be invalid if the user will logout in that time\n         * frame.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createJWT() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/jwt';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List logs\n         *\n         * Get the list of latest security activity logs for the currently logged in\n         * 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}\n        */\n        listLogs(queries) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update name\n         *\n         * Update currently logged in user account name.\n         *\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateName(name) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update password\n         *\n         * Update currently logged in user password. For validation, user is required\n         * to pass in the new password, and the old password. For users created with\n         * OAuth, Team Invites and Magic URL, oldPassword is optional.\n         *\n         * @param {string} password\n         * @param {string} oldPassword\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePassword(password, oldPassword) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update phone\n         *\n         * Update the currently logged in user's phone number. After updating the\n         * phone number, the phone verification status will be reset. A confirmation\n         * SMS is not sent automatically, however you can use the [POST\n         * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification)\n         * endpoint to send a confirmation SMS.\n         *\n         * @param {string} phone\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePhone(phone, password) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get account preferences\n         *\n         * Get the preferences as a key-value object for the currently logged in user.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getPrefs() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/prefs';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update preferences\n         *\n         * Update currently logged in user account preferences. The object you pass is\n         * stored as is, and replaces any previous value. The maximum allowed prefs\n         * size is 64kB and throws error if exceeded.\n         *\n         * @param {Partial<Preferences>} prefs\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePrefs(prefs) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create password recovery\n         *\n         * Sends the user an email with a temporary secret key for password reset.\n         * When the user clicks the confirmation link he is redirected back to your\n         * app password reset URL with the secret key and email address values\n         * attached to the URL query string. Use the query string params to submit a\n         * request to the [PUT\n         * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery)\n         * endpoint to complete the process. The verification link sent to the user's\n         * email address is valid for 1 hour.\n         *\n         * @param {string} email\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createRecovery(email, url) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create password recovery (confirmation)\n         *\n         * Use this endpoint to complete the user account password reset. Both the\n         * **userId** and **secret** arguments will be passed as query parameters to\n         * the redirect URL you have provided when sending your request to the [POST\n         * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery)\n         * endpoint.\n         *\n         * Please note that in order to avoid a [Redirect\n         * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)\n         * the only valid redirect URLs are the ones from domains you have set when\n         * adding your platforms in the console interface.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @param {string} password\n         * @param {string} passwordAgain\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateRecovery(userId, secret, password, passwordAgain) {\n            return __awaiter(this, void 0, void 0, function* () {\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                if (typeof passwordAgain === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordAgain\"');\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                if (typeof passwordAgain !== 'undefined') {\n                    payload['passwordAgain'] = passwordAgain;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List sessions\n         *\n         * Get the list of active sessions across different devices for the currently\n         * logged in user.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listSessions() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/sessions';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete sessions\n         *\n         * Delete all sessions from the user account and remove any sessions cookies\n         * from the end client.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteSessions() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/sessions';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create anonymous session\n         *\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createAnonymousSession() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/sessions/anonymous';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create email session\n         *\n         *\n         * @param {string} email\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createEmailPasswordSession(email, password) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create session (deprecated)\n         *\n         * Use this endpoint to complete creating the session with a custom session\n         * token. Both the **userId** and **secret** arguments will be returned in the\n         * response body when sending your request to the [POST\n         * /users/:userId/sessions](https://appwrite.io/docs/references/cloud/server-nodejs/users#createToken)\n         * endpoint.\n         *\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateMagicURLSession(userId, secret) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create OAuth2 session\n         *\n         * Allow the user to login to their account using the OAuth2 provider of their\n         * choice. Each OAuth2 provider should be enabled from the Appwrite console\n         * first. Use the success and failure arguments to provide a redirect URL's\n         * back to your app when login is completed.\n         *\n         * If there is already an active session, the new session will be attached to\n         * the logged-in account. If there are no active sessions, the server will\n         * attempt to look for a user with the same email address as the email\n         * received from the OAuth2 provider and attach the new session to the\n         * existing user. If no matching user is found - the server will create a new\n         * user.\n         *\n         * A user is limited to 10 active sessions at a time by default. [Learn more\n         * about session\n         * limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         *\n         * @param {Provider} provider\n         * @param {string} success\n         * @param {string} failure\n         * @param {string[]} scopes\n         * @param {boolean} token\n         * @throws {AppwriteException}\n         * @returns {void|string}\n        */\n        createOAuth2Session(provider, success, failure, scopes, token) {\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            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            if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {\n                window.location.href = uri.toString();\n            }\n            else {\n                return uri;\n            }\n        }\n        /**\n         * Create session\n         *\n         * Use this endpoint to complete creating the session with a custom session\n         * token. Both the **userId** and **secret** arguments will be returned in the\n         * response body when sending your request to the [POST\n         * /users/:userId/sessions](https://appwrite.io/docs/references/cloud/server-nodejs/users#createToken)\n         * endpoint.\n         *\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createSession(userId, secret) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get session\n         *\n         * Use this endpoint to get a logged in user's session using a Session ID.\n         * Inputting 'current' will return the current session being used.\n         *\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getSession(sessionId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update OAuth session (refresh tokens)\n         *\n         * Access tokens have limited lifespan and expire to mitigate security risks.\n         * If session was created using an OAuth provider, this route can be used to\n         * \"refresh\" the access token.\n         *\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateSession(sessionId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete session\n         *\n         * Logout the user. Use 'current' as the session ID to logout on this device,\n         * use a session ID to logout on another device. If you're looking to logout\n         * the user on all devices, use [Delete\n         * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions)\n         * instead.\n         *\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteSession(sessionId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update status\n         *\n         * Block the currently logged in user account. Behind the scene, the user\n         * record is not deleted but permanently blocked from any access. To\n         * completely delete a user, use the Users API instead.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateStatus() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/status';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create magic URL token\n         *\n         * Sends the user an email with a secret key for creating a session. If the\n         * provided user ID has not been registered, a new user will be created. When\n         * the user clicks the link in the email, the user is redirected back to the\n         * URL you provided with the secret key and userId values attached to the URL\n         * query string. Use the query string parameters to submit a request to the\n         * [PUT\n         * /account/sessions/magic-url](https://appwrite.io/docs/references/cloud/client-web/account#updateMagicURLSession)\n         * endpoint to complete the login process. The link sent to the user's email\n         * address is valid for 1 hour. If you are on a mobile device you can leave\n         * the URL parameter empty, so that the login completion will be handled by\n         * your Appwrite instance by default.\n         *\n         * A user is limited to 10 active sessions at a time by default. [Learn more\n         * about session\n         * limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createMagicURLToken(userId, email, url) {\n            return __awaiter(this, void 0, void 0, function* () {\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                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create phone token\n         *\n         * Sends the user an SMS with a secret key for creating a session. If the\n         * provided user ID has not be registered, a new user will be created. Use the\n         * returned user ID and secret and submit a request to the [PUT\n         * /account/sessions/phone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneSession)\n         * endpoint to complete the login process. The secret sent to the user's phone\n         * is valid for 15 minutes.\n         *\n         * A user is limited to 10 active sessions at a time by default. [Learn more\n         * about session\n         * limits](https://appwrite.io/docs/authentication-security#limits).\n         *\n         * @param {string} userId\n         * @param {string} phone\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createPhoneToken(userId, phone) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create email verification\n         *\n         * Use this endpoint to send a verification message to your user email address\n         * to confirm they are the valid owners of that address. Both the **userId**\n         * and **secret** arguments will be passed as query parameters to the URL you\n         * have provided to be attached to the verification email. The provided URL\n         * should redirect the user back to your app and allow you to complete the\n         * verification process by verifying both the **userId** and **secret**\n         * parameters. Learn more about how to [complete the verification\n         * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification).\n         * The verification link sent to the user's email address is valid for 7 days.\n         *\n         * Please note that in order to avoid a [Redirect\n         * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),\n         * the only valid redirect URLs are the ones from domains you have set when\n         * adding your platforms in the console interface.\n         *\n         *\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createVerification(url) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create email verification (confirmation)\n         *\n         * Use this endpoint to complete the user email verification process. Use both\n         * the **userId** and **secret** parameters that were attached to your app URL\n         * to verify the user email ownership. If confirmed this route will return a\n         * 200 status code.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateVerification(userId, secret) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create phone verification\n         *\n         * Use this endpoint to send a verification SMS to the currently logged in\n         * user. This endpoint is meant for use after updating a user's phone number\n         * using the\n         * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone)\n         * endpoint. Learn more about how to [complete the verification\n         * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification).\n         * The verification code sent to the user's phone number is valid for 15\n         * minutes.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createPhoneVerification() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/account/verification/phone';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create phone verification (confirmation)\n         *\n         * Use this endpoint to complete the user phone verification process. Use the\n         * **userId** and **secret** that were sent to your user's phone number to\n         * verify the user email ownership. If confirmed this route will return a 200\n         * status code.\n         *\n         * @param {string} userId\n         * @param {string} secret\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePhoneVerification(userId, secret) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Avatars extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * Get browser icon\n         *\n         * You can use this endpoint to show different browser icons to your users.\n         * The code argument receives the browser code as it appears in your user [GET\n         * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions)\n         * endpoint. Use width, height and quality arguments to change the output\n         * settings.\n         *\n         * When one dimension is specified and the other is 0, the image is scaled\n         * with preserved aspect ratio. If both dimensions are 0, the API provides an\n         * image at source quality. If dimensions are not specified, the default size\n         * 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 {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get credit card icon\n         *\n         * The credit card endpoint will return you the icon of the credit card\n         * provider you need. Use width, height and quality arguments to change the\n         * output settings.\n         *\n         * When one dimension is specified and the other is 0, the image is scaled\n         * with preserved aspect ratio. If both dimensions are 0, the API provides an\n         * image at source quality. If dimensions are not specified, the default size\n         * 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 {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get favicon\n         *\n         * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote\n         * website URL.\n         *\n         *\n         * @param {string} url\n         * @throws {AppwriteException}\n         * @returns {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get country flag\n         *\n         * You can use this endpoint to show different country flags icons to your\n         * users. The code argument receives the 2 letter country code. Use width,\n         * height and quality arguments to change the output settings. Country codes\n         * 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\n         * with preserved aspect ratio. If both dimensions are 0, the API provides an\n         * image at source quality. If dimensions are not specified, the default size\n         * 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 {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get image from URL\n         *\n         * Use this endpoint to fetch a remote image URL and crop it to any image size\n         * you want. This endpoint is very useful if you need to crop and display\n         * remote images in your app or in case you want to make sure a 3rd party\n         * image is properly served using a TLS protocol.\n         *\n         * When one dimension is specified and the other is 0, the image is scaled\n         * with preserved aspect ratio. If both dimensions are 0, the API provides an\n         * image at source quality. If dimensions are not specified, the default size\n         * of image returned is 400x400px.\n         *\n         *\n         * @param {string} url\n         * @param {number} width\n         * @param {number} height\n         * @throws {AppwriteException}\n         * @returns {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get user initials\n         *\n         * Use this endpoint to show your user initials avatar icon on your website or\n         * app. By default, this route will try to print your logged-in user name or\n         * email initials. You can also overwrite the user name if you pass the 'name'\n         * parameter. If no name is given and no user is logged, an empty avatar will\n         * be returned.\n         *\n         * You can use the color and background params to change the avatar colors. By\n         * default, a random theme will be selected. The random theme will persist for\n         * the user's initials when reloading the same theme will always return for\n         * the same initials.\n         *\n         * When one dimension is specified and the other is 0, the image is scaled\n         * with preserved aspect ratio. If both dimensions are 0, the API provides an\n         * image at source quality. If dimensions are not specified, the default size\n         * 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 {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get QR code\n         *\n         * Converts a given plain text to a QR code image. You can use the query\n         * 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 {URL}\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            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n    }\n\n    class Databases extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * List databases\n         *\n         * Get a list of all databases from the current Appwrite project. You can use\n         * the search parameter to filter your results.\n         *\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        list(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/databases';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create database\n         *\n         * Create a new Database.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        create(databaseId, name, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof databaseId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"databaseId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/databases';\n                const payload = {};\n                if (typeof databaseId !== 'undefined') {\n                    payload['databaseId'] = databaseId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get database\n         *\n         * Get a database by its unique ID. This endpoint response returns a JSON\n         * object with the database metadata.\n         *\n         * @param {string} databaseId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        get(databaseId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof databaseId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"databaseId\"');\n                }\n                const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update database\n         *\n         * Update a database by its unique ID.\n         *\n         * @param {string} databaseId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        update(databaseId, name, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof databaseId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"databaseId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete database\n         *\n         * Delete a database by its unique ID. Only API keys with with databases.write\n         * scope can delete a database.\n         *\n         * @param {string} databaseId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        delete(databaseId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof databaseId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"databaseId\"');\n                }\n                const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List collections\n         *\n         * Get a list of all collections that belong to the provided databaseId. You\n         * can use the search parameter to filter your results.\n         *\n         * @param {string} databaseId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listCollections(databaseId, queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof databaseId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"databaseId\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections'.replace('{databaseId}', databaseId);\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create collection\n         *\n         * Create a new Collection. Before using this route, you should create a new\n         * database resource using either a [server\n         * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)\n         * API or directly from your database console.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} name\n         * @param {string[]} permissions\n         * @param {boolean} documentSecurity\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createCollection(databaseId, collectionId, name, permissions, documentSecurity, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\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 name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections'.replace('{databaseId}', databaseId);\n                const payload = {};\n                if (typeof collectionId !== 'undefined') {\n                    payload['collectionId'] = collectionId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof permissions !== 'undefined') {\n                    payload['permissions'] = permissions;\n                }\n                if (typeof documentSecurity !== 'undefined') {\n                    payload['documentSecurity'] = documentSecurity;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get collection\n         *\n         * Get a collection by its unique ID. This endpoint response returns a JSON\n         * object with the collection metadata.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getCollection(databaseId, collectionId) {\n            return __awaiter(this, void 0, void 0, function* () {\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}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update collection\n         *\n         * Update a collection by its unique ID.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} name\n         * @param {string[]} permissions\n         * @param {boolean} documentSecurity\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateCollection(databaseId, collectionId, name, permissions, documentSecurity, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\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 name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof permissions !== 'undefined') {\n                    payload['permissions'] = permissions;\n                }\n                if (typeof documentSecurity !== 'undefined') {\n                    payload['documentSecurity'] = documentSecurity;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete collection\n         *\n         * Delete a collection by its unique ID. Only users with write permissions\n         * have access to delete this resource.\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteCollection(databaseId, collectionId) {\n            return __awaiter(this, void 0, void 0, function* () {\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}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List attributes\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listAttributes(databaseId, collectionId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\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}/attributes'.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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create boolean attribute\n         *\n         * Create a boolean attribute.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {boolean} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createBooleanAttribute(databaseId, collectionId, key, required, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/boolean'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update boolean attribute\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {boolean} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateBooleanAttribute(databaseId, collectionId, key, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create datetime attribute\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createDatetimeAttribute(databaseId, collectionId, key, required, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/datetime'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update dateTime attribute\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateDatetimeAttribute(databaseId, collectionId, key, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create email attribute\n         *\n         * Create an email attribute.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createEmailAttribute(databaseId, collectionId, key, required, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/email'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update email attribute\n         *\n         * Update an email attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateEmailAttribute(databaseId, collectionId, key, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/email/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create enum attribute\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {string[]} elements\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createEnumAttribute(databaseId, collectionId, key, elements, required, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof elements === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"elements\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/enum'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof elements !== 'undefined') {\n                    payload['elements'] = elements;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update enum attribute\n         *\n         * Update an enum attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {string[]} elements\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateEnumAttribute(databaseId, collectionId, key, elements, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof elements === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"elements\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof elements !== 'undefined') {\n                    payload['elements'] = elements;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create float attribute\n         *\n         * Create a float attribute. Optionally, minimum and maximum values can be\n         * provided.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {number} min\n         * @param {number} max\n         * @param {number} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createFloatAttribute(databaseId, collectionId, key, required, min, max, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/float'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof min !== 'undefined') {\n                    payload['min'] = min;\n                }\n                if (typeof max !== 'undefined') {\n                    payload['max'] = max;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update float attribute\n         *\n         * Update a float attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {number} min\n         * @param {number} max\n         * @param {number} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateFloatAttribute(databaseId, collectionId, key, required, min, max, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof min === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"min\"');\n                }\n                if (typeof max === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"max\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/float/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof min !== 'undefined') {\n                    payload['min'] = min;\n                }\n                if (typeof max !== 'undefined') {\n                    payload['max'] = max;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create integer attribute\n         *\n         * Create an integer attribute. Optionally, minimum and maximum values can be\n         * provided.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {number} min\n         * @param {number} max\n         * @param {number} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createIntegerAttribute(databaseId, collectionId, key, required, min, max, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/integer'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof min !== 'undefined') {\n                    payload['min'] = min;\n                }\n                if (typeof max !== 'undefined') {\n                    payload['max'] = max;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update integer attribute\n         *\n         * Update an integer attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {number} min\n         * @param {number} max\n         * @param {number} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateIntegerAttribute(databaseId, collectionId, key, required, min, max, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof min === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"min\"');\n                }\n                if (typeof max === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"max\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof min !== 'undefined') {\n                    payload['min'] = min;\n                }\n                if (typeof max !== 'undefined') {\n                    payload['max'] = max;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create IP address attribute\n         *\n         * Create IP address attribute.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createIpAttribute(databaseId, collectionId, key, required, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/ip'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update IP address attribute\n         *\n         * Update an ip attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateIpAttribute(databaseId, collectionId, key, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create relationship attribute\n         *\n         * Create relationship attribute. [Learn more about relationship\n         * attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} relatedCollectionId\n         * @param {RelationshipType} type\n         * @param {boolean} twoWay\n         * @param {string} key\n         * @param {string} twoWayKey\n         * @param {RelationMutate} onDelete\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createRelationshipAttribute(databaseId, collectionId, relatedCollectionId, type, twoWay, key, twoWayKey, onDelete) {\n            return __awaiter(this, void 0, void 0, function* () {\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 relatedCollectionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"relatedCollectionId\"');\n                }\n                if (typeof type === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"type\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof relatedCollectionId !== 'undefined') {\n                    payload['relatedCollectionId'] = relatedCollectionId;\n                }\n                if (typeof type !== 'undefined') {\n                    payload['type'] = type;\n                }\n                if (typeof twoWay !== 'undefined') {\n                    payload['twoWay'] = twoWay;\n                }\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof twoWayKey !== 'undefined') {\n                    payload['twoWayKey'] = twoWayKey;\n                }\n                if (typeof onDelete !== 'undefined') {\n                    payload['onDelete'] = onDelete;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create string attribute\n         *\n         * Create a string attribute.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {number} size\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @param {boolean} array\n         * @param {boolean} encrypt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createStringAttribute(databaseId, collectionId, key, size, required, xdefault, array, encrypt) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof size === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"size\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof size !== 'undefined') {\n                    payload['size'] = size;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                if (typeof encrypt !== 'undefined') {\n                    payload['encrypt'] = encrypt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update string attribute\n         *\n         * Update a string attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateStringAttribute(databaseId, collectionId, key, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create URL attribute\n         *\n         * Create a URL attribute.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @param {boolean} array\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createUrlAttribute(databaseId, collectionId, key, required, xdefault, array) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                if (typeof array !== 'undefined') {\n                    payload['array'] = array;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update URL attribute\n         *\n         * Update an url attribute. Changing the `default` value will not update\n         * already existing documents.\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {boolean} required\n         * @param {string} xdefault\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateUrlAttribute(databaseId, collectionId, key, required, xdefault) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof required === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"required\"');\n                }\n                if (typeof xdefault === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"xdefault\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof required !== 'undefined') {\n                    payload['required'] = required;\n                }\n                if (typeof xdefault !== 'undefined') {\n                    payload['default'] = xdefault;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get attribute\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getAttribute(databaseId, collectionId, key) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete attribute\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteAttribute(databaseId, collectionId, key) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update relationship attribute\n         *\n         * Update relationship attribute. [Learn more about relationship\n         * attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {RelationMutate} onDelete\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateRelationshipAttribute(databaseId, collectionId, key, onDelete) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                if (typeof onDelete !== 'undefined') {\n                    payload['onDelete'] = onDelete;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List documents\n         *\n         * Get a list of all the user's documents in a given collection. You can use\n         * 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}\n        */\n        listDocuments(databaseId, collectionId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create document\n         *\n         * Create a new Document. Before using this route, you should create a new\n         * collection resource using either a [server\n         * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)\n         * 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}\n        */\n        createDocument(databaseId, collectionId, documentId, data, permissions) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get document\n         *\n         * Get a document by its unique ID. This endpoint response returns a JSON\n         * 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}\n        */\n        getDocument(databaseId, collectionId, documentId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update document\n         *\n         * Update a document by its unique ID. Using the patch method you can pass\n         * 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}\n        */\n        updateDocument(databaseId, collectionId, documentId, data, permissions) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete document\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            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List indexes\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listIndexes(databaseId, collectionId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\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}/indexes'.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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create index\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @param {IndexType} type\n         * @param {string[]} attributes\n         * @param {string[]} orders\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createIndex(databaseId, collectionId, key, type, attributes, orders) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof type === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"type\"');\n                }\n                if (typeof attributes === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"attributes\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof type !== 'undefined') {\n                    payload['type'] = type;\n                }\n                if (typeof attributes !== 'undefined') {\n                    payload['attributes'] = attributes;\n                }\n                if (typeof orders !== 'undefined') {\n                    payload['orders'] = orders;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get index\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getIndex(databaseId, collectionId, key) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete index\n         *\n         *\n         * @param {string} databaseId\n         * @param {string} collectionId\n         * @param {string} key\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteIndex(databaseId, collectionId, key) {\n            return __awaiter(this, void 0, void 0, function* () {\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 key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Functions extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * List functions\n         *\n         * Get a list of all the project's functions. You can use the query params to\n         * filter your results.\n         *\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        list(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/functions';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create function\n         *\n         * Create a new function. You can pass a list of\n         * [permissions](https://appwrite.io/docs/permissions) to allow different\n         * project users or team with access to execute the function using the client\n         * API.\n         *\n         * @param {string} functionId\n         * @param {string} name\n         * @param {Runtime} runtime\n         * @param {string[]} execute\n         * @param {string[]} events\n         * @param {string} schedule\n         * @param {number} timeout\n         * @param {boolean} enabled\n         * @param {boolean} logging\n         * @param {string} entrypoint\n         * @param {string} commands\n         * @param {string} installationId\n         * @param {string} providerRepositoryId\n         * @param {string} providerBranch\n         * @param {boolean} providerSilentMode\n         * @param {string} providerRootDirectory\n         * @param {string} templateRepository\n         * @param {string} templateOwner\n         * @param {string} templateRootDirectory\n         * @param {string} templateBranch\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, templateRepository, templateOwner, templateRootDirectory, templateBranch) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                if (typeof runtime === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"runtime\"');\n                }\n                const apiPath = '/functions';\n                const payload = {};\n                if (typeof functionId !== 'undefined') {\n                    payload['functionId'] = functionId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof runtime !== 'undefined') {\n                    payload['runtime'] = runtime;\n                }\n                if (typeof execute !== 'undefined') {\n                    payload['execute'] = execute;\n                }\n                if (typeof events !== 'undefined') {\n                    payload['events'] = events;\n                }\n                if (typeof schedule !== 'undefined') {\n                    payload['schedule'] = schedule;\n                }\n                if (typeof timeout !== 'undefined') {\n                    payload['timeout'] = timeout;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof logging !== 'undefined') {\n                    payload['logging'] = logging;\n                }\n                if (typeof entrypoint !== 'undefined') {\n                    payload['entrypoint'] = entrypoint;\n                }\n                if (typeof commands !== 'undefined') {\n                    payload['commands'] = commands;\n                }\n                if (typeof installationId !== 'undefined') {\n                    payload['installationId'] = installationId;\n                }\n                if (typeof providerRepositoryId !== 'undefined') {\n                    payload['providerRepositoryId'] = providerRepositoryId;\n                }\n                if (typeof providerBranch !== 'undefined') {\n                    payload['providerBranch'] = providerBranch;\n                }\n                if (typeof providerSilentMode !== 'undefined') {\n                    payload['providerSilentMode'] = providerSilentMode;\n                }\n                if (typeof providerRootDirectory !== 'undefined') {\n                    payload['providerRootDirectory'] = providerRootDirectory;\n                }\n                if (typeof templateRepository !== 'undefined') {\n                    payload['templateRepository'] = templateRepository;\n                }\n                if (typeof templateOwner !== 'undefined') {\n                    payload['templateOwner'] = templateOwner;\n                }\n                if (typeof templateRootDirectory !== 'undefined') {\n                    payload['templateRootDirectory'] = templateRootDirectory;\n                }\n                if (typeof templateBranch !== 'undefined') {\n                    payload['templateBranch'] = templateBranch;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List runtimes\n         *\n         * Get a list of all runtimes that are currently active on your instance.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listRuntimes() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/functions/runtimes';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get function\n         *\n         * Get a function by its unique ID.\n         *\n         * @param {string} functionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        get(functionId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update function\n         *\n         * Update function by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} name\n         * @param {Runtime} runtime\n         * @param {string[]} execute\n         * @param {string[]} events\n         * @param {string} schedule\n         * @param {number} timeout\n         * @param {boolean} enabled\n         * @param {boolean} logging\n         * @param {string} entrypoint\n         * @param {string} commands\n         * @param {string} installationId\n         * @param {string} providerRepositoryId\n         * @param {string} providerBranch\n         * @param {boolean} providerSilentMode\n         * @param {string} providerRootDirectory\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof runtime !== 'undefined') {\n                    payload['runtime'] = runtime;\n                }\n                if (typeof execute !== 'undefined') {\n                    payload['execute'] = execute;\n                }\n                if (typeof events !== 'undefined') {\n                    payload['events'] = events;\n                }\n                if (typeof schedule !== 'undefined') {\n                    payload['schedule'] = schedule;\n                }\n                if (typeof timeout !== 'undefined') {\n                    payload['timeout'] = timeout;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof logging !== 'undefined') {\n                    payload['logging'] = logging;\n                }\n                if (typeof entrypoint !== 'undefined') {\n                    payload['entrypoint'] = entrypoint;\n                }\n                if (typeof commands !== 'undefined') {\n                    payload['commands'] = commands;\n                }\n                if (typeof installationId !== 'undefined') {\n                    payload['installationId'] = installationId;\n                }\n                if (typeof providerRepositoryId !== 'undefined') {\n                    payload['providerRepositoryId'] = providerRepositoryId;\n                }\n                if (typeof providerBranch !== 'undefined') {\n                    payload['providerBranch'] = providerBranch;\n                }\n                if (typeof providerSilentMode !== 'undefined') {\n                    payload['providerSilentMode'] = providerSilentMode;\n                }\n                if (typeof providerRootDirectory !== 'undefined') {\n                    payload['providerRootDirectory'] = providerRootDirectory;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete function\n         *\n         * Delete a function by its unique ID.\n         *\n         * @param {string} functionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        delete(functionId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List deployments\n         *\n         * Get a list of all the project's code deployments. You can use the query\n         * params to filter your results.\n         *\n         * @param {string} functionId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listDeployments(functionId, queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create deployment\n         *\n         * Create a new function code deployment. Use this endpoint to upload a new\n         * version of your code function. To execute your newly uploaded code, you'll\n         * need to update the function's deployment to use your new deployment UID.\n         *\n         * This endpoint accepts a tar.gz file compressed with your code. Make sure to\n         * include any dependencies your code has within the compressed file. You can\n         * learn more about code packaging in the [Appwrite Cloud Functions\n         * tutorial](https://appwrite.io/docs/functions).\n         *\n         * Use the \"command\" param to set the entrypoint used to execute your code.\n         *\n         * @param {string} functionId\n         * @param {File} code\n         * @param {boolean} activate\n         * @param {string} entrypoint\n         * @param {string} commands\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createDeployment(functionId, code, activate, entrypoint, commands, onProgress = (progress) => { }) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof code === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"code\"');\n                }\n                if (typeof activate === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"activate\"');\n                }\n                const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n                const payload = {};\n                if (typeof entrypoint !== 'undefined') {\n                    payload['entrypoint'] = entrypoint;\n                }\n                if (typeof commands !== 'undefined') {\n                    payload['commands'] = commands;\n                }\n                if (typeof code !== 'undefined') {\n                    payload['code'] = code;\n                }\n                if (typeof activate !== 'undefined') {\n                    payload['activate'] = activate;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                if (!(code instanceof File)) {\n                    throw new AppwriteException('Parameter \"code\" has to be a File.');\n                }\n                const size = code.size;\n                if (size <= Service.CHUNK_SIZE) {\n                    return yield this.client.call('post', uri, {\n                        'content-type': 'multipart/form-data',\n                    }, payload);\n                }\n                const apiHeaders = {\n                    'content-type': 'multipart/form-data',\n                };\n                let offset = 0;\n                let response = undefined;\n                while (offset < size) {\n                    let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);\n                    apiHeaders['content-range'] = 'bytes ' + offset + '-' + end + '/' + size;\n                    if (response && response.$id) {\n                        apiHeaders['x-appwrite-id'] = response.$id;\n                    }\n                    const chunk = code.slice(offset, end + 1);\n                    payload['code'] = new File([chunk], code.name);\n                    response = yield this.client.call('post', uri, apiHeaders, payload);\n                    if (onProgress) {\n                        onProgress({\n                            $id: response.$id,\n                            progress: (offset / size) * 100,\n                            sizeUploaded: offset,\n                            chunksTotal: response.chunksTotal,\n                            chunksUploaded: response.chunksUploaded\n                        });\n                    }\n                    offset += Service.CHUNK_SIZE;\n                }\n                return response;\n            });\n        }\n        /**\n         * Get deployment\n         *\n         * Get a code deployment by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} deploymentId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getDeployment(functionId, deploymentId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof deploymentId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n                }\n                const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update function deployment\n         *\n         * Update the function code deployment ID using the unique function ID. Use\n         * this endpoint to switch the code deployment that should be executed by the\n         * execution endpoint.\n         *\n         * @param {string} functionId\n         * @param {string} deploymentId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateDeployment(functionId, deploymentId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof deploymentId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n                }\n                const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete deployment\n         *\n         * Delete a code deployment by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} deploymentId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteDeployment(functionId, deploymentId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof deploymentId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n                }\n                const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create build\n         *\n         * Create a new build for an Appwrite Function deployment. This endpoint can\n         * be used to retry a failed build.\n         *\n         * @param {string} functionId\n         * @param {string} deploymentId\n         * @param {string} buildId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createBuild(functionId, deploymentId, buildId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof deploymentId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n                }\n                if (typeof buildId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"buildId\"');\n                }\n                const apiPath = '/functions/{functionId}/deployments/{deploymentId}/builds/{buildId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId).replace('{buildId}', buildId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Download Deployment\n         *\n         * Get a Deployment's contents by its unique ID. This endpoint supports range\n         * requests for partial or streaming file download.\n         *\n         * @param {string} functionId\n         * @param {string} deploymentId\n         * @throws {AppwriteException}\n         * @returns {URL}\n        */\n        downloadDeployment(functionId, deploymentId) {\n            if (typeof functionId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"functionId\"');\n            }\n            if (typeof deploymentId === 'undefined') {\n                throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n            }\n            const apiPath = '/functions/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            payload['key'] = this.client.config.key;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * List executions\n         *\n         * Get a list of all the current user function execution logs. You can use the\n         * query params to filter your results.\n         *\n         * @param {string} functionId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listExecutions(functionId, queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\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                if (typeof search !== 'undefined') {\n                    payload['search'] = search;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create execution\n         *\n         * Trigger a function execution. The returned object will return you the\n         * current execution status. You can ping the `Get Execution` endpoint to get\n         * updates on the current execution status. Once this endpoint is called, your\n         * 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 {Method} method\n         * @param {object} headers\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createExecution(functionId, body, async, xpath, method, headers) {\n            return __awaiter(this, void 0, void 0, function* () {\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                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get execution\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}\n        */\n        getExecution(functionId, executionId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List variables\n         *\n         * Get a list of all variables of a specific function.\n         *\n         * @param {string} functionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listVariables(functionId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create variable\n         *\n         * Create a new function environment variable. These variables can be accessed\n         * in the function at runtime as environment variables.\n         *\n         * @param {string} functionId\n         * @param {string} key\n         * @param {string} value\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createVariable(functionId, key, value) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                if (typeof value === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"value\"');\n                }\n                const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof value !== 'undefined') {\n                    payload['value'] = value;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get variable\n         *\n         * Get a variable by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} variableId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getVariable(functionId, variableId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof variableId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"variableId\"');\n                }\n                const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update variable\n         *\n         * Update variable by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} variableId\n         * @param {string} key\n         * @param {string} value\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateVariable(functionId, variableId, key, value) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof variableId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"variableId\"');\n                }\n                if (typeof key === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"key\"');\n                }\n                const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n                const payload = {};\n                if (typeof key !== 'undefined') {\n                    payload['key'] = key;\n                }\n                if (typeof value !== 'undefined') {\n                    payload['value'] = value;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete variable\n         *\n         * Delete a variable by its unique ID.\n         *\n         * @param {string} functionId\n         * @param {string} variableId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteVariable(functionId, variableId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof functionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"functionId\"');\n                }\n                if (typeof variableId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"variableId\"');\n                }\n                const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Graphql extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * GraphQL endpoint\n         *\n         * Execute a GraphQL mutation.\n         *\n         * @param {object} query\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        query(query) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'x-sdk-graphql': 'true',\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * GraphQL endpoint\n         *\n         * Execute a GraphQL mutation.\n         *\n         * @param {object} query\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        mutation(query) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'x-sdk-graphql': 'true',\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Health extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * Get HTTP\n         *\n         * Check the Appwrite HTTP server is up and responsive.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        get() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get antivirus\n         *\n         * Check the Appwrite Antivirus server is up and connection is successful.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getAntivirus() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/anti-virus';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get cache\n         *\n         * Check the Appwrite in-memory cache servers are up and connection is\n         * successful.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getCache() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/cache';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get DB\n         *\n         * Check the Appwrite database servers are up and connection is successful.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getDB() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/db';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get pubsub\n         *\n         * Check the Appwrite pub-sub servers are up and connection is successful.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getPubSub() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/pubsub';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get queue\n         *\n         * Check the Appwrite queue messaging servers are up and connection is\n         * successful.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueue() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get builds queue\n         *\n         * Get the number of builds that are waiting to be processed in the Appwrite\n         * internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueBuilds(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/builds';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get certificates queue\n         *\n         * Get the number of certificates that are waiting to be issued against\n         * [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue\n         * server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueCertificates(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/certificates';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get databases queue\n         *\n         * Get the number of database changes that are waiting to be processed in the\n         * Appwrite internal queue server.\n         *\n         * @param {string} name\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueDatabases(name, threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/databases';\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get deletes queue\n         *\n         * Get the number of background destructive changes that are waiting to be\n         * processed in the Appwrite internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueDeletes(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/deletes';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get functions queue\n         *\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueFunctions(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/functions';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get logs queue\n         *\n         * Get the number of logs that are waiting to be processed in the Appwrite\n         * internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueLogs(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/logs';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get mails queue\n         *\n         * Get the number of mails that are waiting to be processed in the Appwrite\n         * internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueMails(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/mails';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get messaging queue\n         *\n         * Get the number of messages that are waiting to be processed in the Appwrite\n         * internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueMessaging(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/messaging';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get migrations queue\n         *\n         * Get the number of migrations that are waiting to be processed in the\n         * Appwrite internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueMigrations(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/migrations';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get webhooks queue\n         *\n         * Get the number of webhooks that are waiting to be processed in the Appwrite\n         * internal queue server.\n         *\n         * @param {number} threshold\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getQueueWebhooks(threshold) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/queue/webhooks';\n                const payload = {};\n                if (typeof threshold !== 'undefined') {\n                    payload['threshold'] = threshold;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get local storage\n         *\n         * Check the Appwrite local storage device is up and connection is successful.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getStorageLocal() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/storage/local';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get time\n         *\n         * Check the Appwrite server time is synced with Google remote NTP server. We\n         * use this technology to smoothly handle leap seconds with no disruptive\n         * events. The [Network Time\n         * Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is\n         * used by hundreds of millions of computers and devices to synchronize their\n         * clocks over the Internet. If your computer sets its own clock, it likely\n         * uses NTP.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getTime() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/health/time';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Locale extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * Get user locale\n         *\n         * Get the current user location based on IP. Returns an object with user\n         * country code, country name, continent name, continent code, ip address and\n         * suggested currency. You can use the locale header to get the data in a\n         * supported language.\n         *\n         * ([IP Geolocation by DB-IP](https://db-ip.com))\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        get() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List Locale Codes\n         *\n         * List of all locale codes in [ISO\n         * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listCodes() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/codes';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List continents\n         *\n         * List of all continents. You can use the locale header to get the data in a\n         * supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listContinents() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/continents';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List countries\n         *\n         * List of all countries. You can use the locale header to get the data in a\n         * supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listCountries() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/countries';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List EU countries\n         *\n         * List of all countries that are currently members of the EU. You can use the\n         * locale header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listCountriesEU() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/countries/eu';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List countries phone codes\n         *\n         * List of all countries phone codes. You can use the locale header to get the\n         * data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listCountriesPhones() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/countries/phones';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List currencies\n         *\n         * List of all currencies, including currency symbol, name, plural, and\n         * decimal digits for all major and minor currencies. You can use the locale\n         * header to get the data in a supported language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listCurrencies() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/currencies';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List languages\n         *\n         * List of all languages classified by ISO 639-1 including 2-letter code, name\n         * in English, and name in the respective language.\n         *\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listLanguages() {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/locale/languages';\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Messaging extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * List messages\n         *\n         *\n         * @param {string} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listMessages(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/messaging/messages';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create an email.\n         *\n         *\n         * @param {string} messageId\n         * @param {string} subject\n         * @param {string} content\n         * @param {string[]} topics\n         * @param {string[]} users\n         * @param {string[]} targets\n         * @param {string[]} cc\n         * @param {string[]} bcc\n         * @param {string} description\n         * @param {Status} status\n         * @param {boolean} html\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createEmailMessage(messageId, subject, content, topics, users, targets, cc, bcc, description, status, html, scheduledAt) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                if (typeof subject === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"subject\"');\n                }\n                if (typeof content === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"content\"');\n                }\n                const apiPath = '/messaging/messages/email';\n                const payload = {};\n                if (typeof messageId !== 'undefined') {\n                    payload['messageId'] = messageId;\n                }\n                if (typeof subject !== 'undefined') {\n                    payload['subject'] = subject;\n                }\n                if (typeof content !== 'undefined') {\n                    payload['content'] = content;\n                }\n                if (typeof topics !== 'undefined') {\n                    payload['topics'] = topics;\n                }\n                if (typeof users !== 'undefined') {\n                    payload['users'] = users;\n                }\n                if (typeof targets !== 'undefined') {\n                    payload['targets'] = targets;\n                }\n                if (typeof cc !== 'undefined') {\n                    payload['cc'] = cc;\n                }\n                if (typeof bcc !== 'undefined') {\n                    payload['bcc'] = bcc;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                if (typeof html !== 'undefined') {\n                    payload['html'] = html;\n                }\n                if (typeof scheduledAt !== 'undefined') {\n                    payload['scheduledAt'] = scheduledAt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update an email.\n         *\n         *\n         * @param {string} messageId\n         * @param {string[]} topics\n         * @param {string[]} users\n         * @param {string[]} targets\n         * @param {string} subject\n         * @param {string} description\n         * @param {string} content\n         * @param {Status} status\n         * @param {boolean} html\n         * @param {string[]} cc\n         * @param {string[]} bcc\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateEmail(messageId, topics, users, targets, subject, description, content, status, html, cc, bcc, scheduledAt) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                const apiPath = '/messaging/messages/email/{messageId}'.replace('{messageId}', messageId);\n                const payload = {};\n                if (typeof topics !== 'undefined') {\n                    payload['topics'] = topics;\n                }\n                if (typeof users !== 'undefined') {\n                    payload['users'] = users;\n                }\n                if (typeof targets !== 'undefined') {\n                    payload['targets'] = targets;\n                }\n                if (typeof subject !== 'undefined') {\n                    payload['subject'] = subject;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                if (typeof content !== 'undefined') {\n                    payload['content'] = content;\n                }\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                if (typeof html !== 'undefined') {\n                    payload['html'] = html;\n                }\n                if (typeof cc !== 'undefined') {\n                    payload['cc'] = cc;\n                }\n                if (typeof bcc !== 'undefined') {\n                    payload['bcc'] = bcc;\n                }\n                if (typeof scheduledAt !== 'undefined') {\n                    payload['scheduledAt'] = scheduledAt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create a push notification.\n         *\n         *\n         * @param {string} messageId\n         * @param {string} title\n         * @param {string} body\n         * @param {string[]} topics\n         * @param {string[]} users\n         * @param {string[]} targets\n         * @param {string} description\n         * @param {object} data\n         * @param {string} action\n         * @param {string} icon\n         * @param {string} sound\n         * @param {string} color\n         * @param {string} tag\n         * @param {string} badge\n         * @param {Status} status\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createPushMessage(messageId, title, body, topics, users, targets, description, data, action, icon, sound, color, tag, badge, status, scheduledAt) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                if (typeof title === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"title\"');\n                }\n                if (typeof body === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"body\"');\n                }\n                const apiPath = '/messaging/messages/push';\n                const payload = {};\n                if (typeof messageId !== 'undefined') {\n                    payload['messageId'] = messageId;\n                }\n                if (typeof title !== 'undefined') {\n                    payload['title'] = title;\n                }\n                if (typeof body !== 'undefined') {\n                    payload['body'] = body;\n                }\n                if (typeof topics !== 'undefined') {\n                    payload['topics'] = topics;\n                }\n                if (typeof users !== 'undefined') {\n                    payload['users'] = users;\n                }\n                if (typeof targets !== 'undefined') {\n                    payload['targets'] = targets;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                if (typeof data !== 'undefined') {\n                    payload['data'] = data;\n                }\n                if (typeof action !== 'undefined') {\n                    payload['action'] = action;\n                }\n                if (typeof icon !== 'undefined') {\n                    payload['icon'] = icon;\n                }\n                if (typeof sound !== 'undefined') {\n                    payload['sound'] = sound;\n                }\n                if (typeof color !== 'undefined') {\n                    payload['color'] = color;\n                }\n                if (typeof tag !== 'undefined') {\n                    payload['tag'] = tag;\n                }\n                if (typeof badge !== 'undefined') {\n                    payload['badge'] = badge;\n                }\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                if (typeof scheduledAt !== 'undefined') {\n                    payload['scheduledAt'] = scheduledAt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update a push notification.\n         *\n         *\n         * @param {string} messageId\n         * @param {string[]} topics\n         * @param {string[]} users\n         * @param {string[]} targets\n         * @param {string} description\n         * @param {string} title\n         * @param {string} body\n         * @param {object} data\n         * @param {string} action\n         * @param {string} icon\n         * @param {string} sound\n         * @param {string} color\n         * @param {string} tag\n         * @param {number} badge\n         * @param {Status} status\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePushNotification(messageId, topics, users, targets, description, title, body, data, action, icon, sound, color, tag, badge, status, scheduledAt) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                const apiPath = '/messaging/messages/push/{messageId}'.replace('{messageId}', messageId);\n                const payload = {};\n                if (typeof topics !== 'undefined') {\n                    payload['topics'] = topics;\n                }\n                if (typeof users !== 'undefined') {\n                    payload['users'] = users;\n                }\n                if (typeof targets !== 'undefined') {\n                    payload['targets'] = targets;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                if (typeof title !== 'undefined') {\n                    payload['title'] = title;\n                }\n                if (typeof body !== 'undefined') {\n                    payload['body'] = body;\n                }\n                if (typeof data !== 'undefined') {\n                    payload['data'] = data;\n                }\n                if (typeof action !== 'undefined') {\n                    payload['action'] = action;\n                }\n                if (typeof icon !== 'undefined') {\n                    payload['icon'] = icon;\n                }\n                if (typeof sound !== 'undefined') {\n                    payload['sound'] = sound;\n                }\n                if (typeof color !== 'undefined') {\n                    payload['color'] = color;\n                }\n                if (typeof tag !== 'undefined') {\n                    payload['tag'] = tag;\n                }\n                if (typeof badge !== 'undefined') {\n                    payload['badge'] = badge;\n                }\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                if (typeof scheduledAt !== 'undefined') {\n                    payload['scheduledAt'] = scheduledAt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create an SMS.\n         *\n         *\n         * @param {string} messageId\n         * @param {string} content\n         * @param {string[]} topics\n         * @param {string[]} users\n         * @param {string[]} targets\n         * @param {string} description\n         * @param {Status} status\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createSMSMessage(messageId, content, topics, users, targets, description, status, scheduledAt) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                if (typeof content === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"content\"');\n                }\n                const apiPath = '/messaging/messages/sms';\n                const payload = {};\n                if (typeof messageId !== 'undefined') {\n                    payload['messageId'] = messageId;\n                }\n                if (typeof content !== 'undefined') {\n                    payload['content'] = content;\n                }\n                if (typeof topics !== 'undefined') {\n                    payload['topics'] = topics;\n                }\n                if (typeof users !== 'undefined') {\n                    payload['users'] = users;\n                }\n                if (typeof targets !== 'undefined') {\n                    payload['targets'] = targets;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                if (typeof scheduledAt !== 'undefined') {\n                    payload['scheduledAt'] = scheduledAt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update an SMS.\n         *\n         *\n         * @param {string} messageId\n         * @param {string[]} topics\n         * @param {string[]} users\n         * @param {string[]} targets\n         * @param {string} description\n         * @param {string} content\n         * @param {Status} status\n         * @param {string} scheduledAt\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateSMS(messageId, topics, users, targets, description, content, status, scheduledAt) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                const apiPath = '/messaging/messages/sms/{messageId}'.replace('{messageId}', messageId);\n                const payload = {};\n                if (typeof topics !== 'undefined') {\n                    payload['topics'] = topics;\n                }\n                if (typeof users !== 'undefined') {\n                    payload['users'] = users;\n                }\n                if (typeof targets !== 'undefined') {\n                    payload['targets'] = targets;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                if (typeof content !== 'undefined') {\n                    payload['content'] = content;\n                }\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                if (typeof scheduledAt !== 'undefined') {\n                    payload['scheduledAt'] = scheduledAt;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get a message\n         *\n         *\n         * @param {string} messageId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getMessage(messageId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                const apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List message logs\n         *\n         *\n         * @param {string} messageId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listMessageLogs(messageId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof messageId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"messageId\"');\n                }\n                const apiPath = '/messaging/messages/{messageId}/logs'.replace('{messageId}', messageId);\n                const payload = {};\n                if (typeof queries !== 'undefined') {\n                    payload['queries'] = queries;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List providers\n         *\n         *\n         * @param {string} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listProviders(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/messaging/providers';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create APNS provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} authKey\n         * @param {string} authKeyId\n         * @param {string} teamId\n         * @param {string} bundleId\n         * @param {string} endpoint\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, endpoint, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/apns';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof authKey !== 'undefined') {\n                    payload['authKey'] = authKey;\n                }\n                if (typeof authKeyId !== 'undefined') {\n                    payload['authKeyId'] = authKeyId;\n                }\n                if (typeof teamId !== 'undefined') {\n                    payload['teamId'] = teamId;\n                }\n                if (typeof bundleId !== 'undefined') {\n                    payload['bundleId'] = bundleId;\n                }\n                if (typeof endpoint !== 'undefined') {\n                    payload['endpoint'] = endpoint;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update APNS provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} authKey\n         * @param {string} authKeyId\n         * @param {string} teamId\n         * @param {string} bundleId\n         * @param {string} endpoint\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, endpoint) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/apns/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof authKey !== 'undefined') {\n                    payload['authKey'] = authKey;\n                }\n                if (typeof authKeyId !== 'undefined') {\n                    payload['authKeyId'] = authKeyId;\n                }\n                if (typeof teamId !== 'undefined') {\n                    payload['teamId'] = teamId;\n                }\n                if (typeof bundleId !== 'undefined') {\n                    payload['bundleId'] = bundleId;\n                }\n                if (typeof endpoint !== 'undefined') {\n                    payload['endpoint'] = endpoint;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create FCM provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {object} serviceAccountJSON\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createFcmProvider(providerId, name, serviceAccountJSON, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/fcm';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof serviceAccountJSON !== 'undefined') {\n                    payload['serviceAccountJSON'] = serviceAccountJSON;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update FCM provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {object} serviceAccountJSON\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/fcm/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof serviceAccountJSON !== 'undefined') {\n                    payload['serviceAccountJSON'] = serviceAccountJSON;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Mailgun provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} apiKey\n         * @param {string} domain\n         * @param {boolean} isEuRegion\n         * @param {boolean} enabled\n         * @param {string} fromName\n         * @param {string} fromEmail\n         * @param {string} replyToName\n         * @param {string} replyToEmail\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createMailgunProvider(providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/mailgun';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof domain !== 'undefined') {\n                    payload['domain'] = domain;\n                }\n                if (typeof isEuRegion !== 'undefined') {\n                    payload['isEuRegion'] = isEuRegion;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof fromName !== 'undefined') {\n                    payload['fromName'] = fromName;\n                }\n                if (typeof fromEmail !== 'undefined') {\n                    payload['fromEmail'] = fromEmail;\n                }\n                if (typeof replyToName !== 'undefined') {\n                    payload['replyToName'] = replyToName;\n                }\n                if (typeof replyToEmail !== 'undefined') {\n                    payload['replyToEmail'] = replyToEmail;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Mailgun provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} apiKey\n         * @param {string} domain\n         * @param {boolean} isEuRegion\n         * @param {boolean} enabled\n         * @param {string} fromName\n         * @param {string} fromEmail\n         * @param {string} replyToName\n         * @param {string} replyToEmail\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateMailgunProvider(providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/mailgun/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof domain !== 'undefined') {\n                    payload['domain'] = domain;\n                }\n                if (typeof isEuRegion !== 'undefined') {\n                    payload['isEuRegion'] = isEuRegion;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof fromName !== 'undefined') {\n                    payload['fromName'] = fromName;\n                }\n                if (typeof fromEmail !== 'undefined') {\n                    payload['fromEmail'] = fromEmail;\n                }\n                if (typeof replyToName !== 'undefined') {\n                    payload['replyToName'] = replyToName;\n                }\n                if (typeof replyToEmail !== 'undefined') {\n                    payload['replyToEmail'] = replyToEmail;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Msg91 provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} from\n         * @param {string} senderId\n         * @param {string} authKey\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createMsg91Provider(providerId, name, from, senderId, authKey, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/msg91';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                if (typeof senderId !== 'undefined') {\n                    payload['senderId'] = senderId;\n                }\n                if (typeof authKey !== 'undefined') {\n                    payload['authKey'] = authKey;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Msg91 provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} senderId\n         * @param {string} authKey\n         * @param {string} from\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateMsg91Provider(providerId, name, enabled, senderId, authKey, from) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof senderId !== 'undefined') {\n                    payload['senderId'] = senderId;\n                }\n                if (typeof authKey !== 'undefined') {\n                    payload['authKey'] = authKey;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Sendgrid provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} apiKey\n         * @param {boolean} enabled\n         * @param {string} fromName\n         * @param {string} fromEmail\n         * @param {string} replyToName\n         * @param {string} replyToEmail\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createSendgridProvider(providerId, name, apiKey, enabled, fromName, fromEmail, replyToName, replyToEmail) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/sendgrid';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof fromName !== 'undefined') {\n                    payload['fromName'] = fromName;\n                }\n                if (typeof fromEmail !== 'undefined') {\n                    payload['fromEmail'] = fromEmail;\n                }\n                if (typeof replyToName !== 'undefined') {\n                    payload['replyToName'] = replyToName;\n                }\n                if (typeof replyToEmail !== 'undefined') {\n                    payload['replyToEmail'] = replyToEmail;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Sendgrid provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} apiKey\n         * @param {string} fromName\n         * @param {string} fromEmail\n         * @param {string} replyToName\n         * @param {string} replyToEmail\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateSendgridProvider(providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/sendgrid/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof fromName !== 'undefined') {\n                    payload['fromName'] = fromName;\n                }\n                if (typeof fromEmail !== 'undefined') {\n                    payload['fromEmail'] = fromEmail;\n                }\n                if (typeof replyToName !== 'undefined') {\n                    payload['replyToName'] = replyToName;\n                }\n                if (typeof replyToEmail !== 'undefined') {\n                    payload['replyToEmail'] = replyToEmail;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Telesign provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} from\n         * @param {string} username\n         * @param {string} password\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createTelesignProvider(providerId, name, from, username, password, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/telesign';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                if (typeof username !== 'undefined') {\n                    payload['username'] = username;\n                }\n                if (typeof password !== 'undefined') {\n                    payload['password'] = password;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Telesign provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} username\n         * @param {string} password\n         * @param {string} from\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateTelesignProvider(providerId, name, enabled, username, password, from) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/telesign/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof username !== 'undefined') {\n                    payload['username'] = username;\n                }\n                if (typeof password !== 'undefined') {\n                    payload['password'] = password;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Textmagic provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} from\n         * @param {string} username\n         * @param {string} apiKey\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createTextmagicProvider(providerId, name, from, username, apiKey, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/textmagic';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                if (typeof username !== 'undefined') {\n                    payload['username'] = username;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Textmagic provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} username\n         * @param {string} apiKey\n         * @param {string} from\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateTextmagicProvider(providerId, name, enabled, username, apiKey, from) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/textmagic/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof username !== 'undefined') {\n                    payload['username'] = username;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Twilio provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} from\n         * @param {string} accountSid\n         * @param {string} authToken\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createTwilioProvider(providerId, name, from, accountSid, authToken, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/twilio';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                if (typeof accountSid !== 'undefined') {\n                    payload['accountSid'] = accountSid;\n                }\n                if (typeof authToken !== 'undefined') {\n                    payload['authToken'] = authToken;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Twilio provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} accountSid\n         * @param {string} authToken\n         * @param {string} from\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateTwilioProvider(providerId, name, enabled, accountSid, authToken, from) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/twilio/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof accountSid !== 'undefined') {\n                    payload['accountSid'] = accountSid;\n                }\n                if (typeof authToken !== 'undefined') {\n                    payload['authToken'] = authToken;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create Vonage provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {string} from\n         * @param {string} apiKey\n         * @param {string} apiSecret\n         * @param {boolean} enabled\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createVonageProvider(providerId, name, from, apiKey, apiSecret, enabled) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/providers/vonage';\n                const payload = {};\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof apiSecret !== 'undefined') {\n                    payload['apiSecret'] = apiSecret;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update Vonage provider\n         *\n         *\n         * @param {string} providerId\n         * @param {string} name\n         * @param {boolean} enabled\n         * @param {string} apiKey\n         * @param {string} apiSecret\n         * @param {string} from\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateVonageProvider(providerId, name, enabled, apiKey, apiSecret, from) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/vonage/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof apiKey !== 'undefined') {\n                    payload['apiKey'] = apiKey;\n                }\n                if (typeof apiSecret !== 'undefined') {\n                    payload['apiSecret'] = apiSecret;\n                }\n                if (typeof from !== 'undefined') {\n                    payload['from'] = from;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get provider\n         *\n         *\n         * @param {string} providerId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getProvider(providerId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete provider\n         *\n         *\n         * @param {string} providerId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteProvider(providerId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List provider logs\n         *\n         *\n         * @param {string} providerId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listProviderLogs(providerId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof providerId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerId\"');\n                }\n                const apiPath = '/messaging/providers/{providerId}/logs'.replace('{providerId}', providerId);\n                const payload = {};\n                if (typeof queries !== 'undefined') {\n                    payload['queries'] = queries;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List subscriber logs\n         *\n         *\n         * @param {string} subscriberId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listSubscriberLogs(subscriberId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof subscriberId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"subscriberId\"');\n                }\n                const apiPath = '/messaging/subscribers/{subscriberId}/logs'.replace('{subscriberId}', subscriberId);\n                const payload = {};\n                if (typeof queries !== 'undefined') {\n                    payload['queries'] = queries;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List topics.\n         *\n         *\n         * @param {string} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listTopics(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/messaging/topics';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create a topic.\n         *\n         *\n         * @param {string} topicId\n         * @param {string} name\n         * @param {string} description\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createTopic(topicId, name, description) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof topicId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"topicId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/messaging/topics';\n                const payload = {};\n                if (typeof topicId !== 'undefined') {\n                    payload['topicId'] = topicId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get a topic.\n         *\n         *\n         * @param {string} topicId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getTopic(topicId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof topicId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"topicId\"');\n                }\n                const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update a topic.\n         *\n         *\n         * @param {string} topicId\n         * @param {string} name\n         * @param {string} description\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateTopic(topicId, name, description) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof topicId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"topicId\"');\n                }\n                const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof description !== 'undefined') {\n                    payload['description'] = description;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete a topic.\n         *\n         *\n         * @param {string} topicId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteTopic(topicId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof topicId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"topicId\"');\n                }\n                const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List topic logs\n         *\n         *\n         * @param {string} topicId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listTopicLogs(topicId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof topicId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"topicId\"');\n                }\n                const apiPath = '/messaging/topics/{topicId}/logs'.replace('{topicId}', topicId);\n                const payload = {};\n                if (typeof queries !== 'undefined') {\n                    payload['queries'] = queries;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List subscribers.\n         *\n         *\n         * @param {string} topicId\n         * @param {string} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listSubscribers(topicId, queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof topicId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"topicId\"');\n                }\n                const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create a subscriber.\n         *\n         *\n         * @param {string} topicId\n         * @param {string} subscriberId\n         * @param {string} targetId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createSubscriber(topicId, subscriberId, targetId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get a subscriber.\n         *\n         *\n         * @param {string} topicId\n         * @param {string} subscriberId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getSubscriber(topicId, subscriberId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete a subscriber.\n         *\n         *\n         * @param {string} topicId\n         * @param {string} subscriberId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteSubscriber(topicId, subscriberId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Storage extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * List buckets\n         *\n         * Get a list of all the storage buckets. You can use the query params to\n         * filter your results.\n         *\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listBuckets(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/storage/buckets';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create bucket\n         *\n         * Create a new storage bucket.\n         *\n         * @param {string} bucketId\n         * @param {string} name\n         * @param {string[]} permissions\n         * @param {boolean} fileSecurity\n         * @param {boolean} enabled\n         * @param {number} maximumFileSize\n         * @param {string[]} allowedFileExtensions\n         * @param {Compression} compression\n         * @param {boolean} encryption\n         * @param {boolean} antivirus\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof bucketId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"bucketId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/storage/buckets';\n                const payload = {};\n                if (typeof bucketId !== 'undefined') {\n                    payload['bucketId'] = bucketId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof permissions !== 'undefined') {\n                    payload['permissions'] = permissions;\n                }\n                if (typeof fileSecurity !== 'undefined') {\n                    payload['fileSecurity'] = fileSecurity;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof maximumFileSize !== 'undefined') {\n                    payload['maximumFileSize'] = maximumFileSize;\n                }\n                if (typeof allowedFileExtensions !== 'undefined') {\n                    payload['allowedFileExtensions'] = allowedFileExtensions;\n                }\n                if (typeof compression !== 'undefined') {\n                    payload['compression'] = compression;\n                }\n                if (typeof encryption !== 'undefined') {\n                    payload['encryption'] = encryption;\n                }\n                if (typeof antivirus !== 'undefined') {\n                    payload['antivirus'] = antivirus;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get bucket\n         *\n         * Get a storage bucket by its unique ID. This endpoint response returns a\n         * JSON object with the storage bucket metadata.\n         *\n         * @param {string} bucketId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getBucket(bucketId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof bucketId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"bucketId\"');\n                }\n                const apiPath = '/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update bucket\n         *\n         * Update a storage bucket by its unique ID.\n         *\n         * @param {string} bucketId\n         * @param {string} name\n         * @param {string[]} permissions\n         * @param {boolean} fileSecurity\n         * @param {boolean} enabled\n         * @param {number} maximumFileSize\n         * @param {string[]} allowedFileExtensions\n         * @param {Compression} compression\n         * @param {boolean} encryption\n         * @param {boolean} antivirus\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof bucketId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"bucketId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                if (typeof permissions !== 'undefined') {\n                    payload['permissions'] = permissions;\n                }\n                if (typeof fileSecurity !== 'undefined') {\n                    payload['fileSecurity'] = fileSecurity;\n                }\n                if (typeof enabled !== 'undefined') {\n                    payload['enabled'] = enabled;\n                }\n                if (typeof maximumFileSize !== 'undefined') {\n                    payload['maximumFileSize'] = maximumFileSize;\n                }\n                if (typeof allowedFileExtensions !== 'undefined') {\n                    payload['allowedFileExtensions'] = allowedFileExtensions;\n                }\n                if (typeof compression !== 'undefined') {\n                    payload['compression'] = compression;\n                }\n                if (typeof encryption !== 'undefined') {\n                    payload['encryption'] = encryption;\n                }\n                if (typeof antivirus !== 'undefined') {\n                    payload['antivirus'] = antivirus;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete bucket\n         *\n         * Delete a storage bucket by its unique ID.\n         *\n         * @param {string} bucketId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteBucket(bucketId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof bucketId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"bucketId\"');\n                }\n                const apiPath = '/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List files\n         *\n         * Get a list of all the user files. You can use the query params to filter\n         * your results.\n         *\n         * @param {string} bucketId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listFiles(bucketId, queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create file\n         *\n         * Create a new file. Before using this route, you should create a new bucket\n         * resource using either a [server\n         * integration](https://appwrite.io/docs/server/storage#storageCreateBucket)\n         * API or directly from your Appwrite console.\n         *\n         * Larger files should be uploaded using multiple requests with the\n         * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)\n         * header to send a partial request with a maximum supported chunk of `5MB`.\n         * 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,\n         * and the subsequent part request must include the file's **id** in\n         * `x-appwrite-id` header to allow the server to know that the partial upload\n         * is for the existing file and not for a new one.\n         *\n         * If you're creating a new file using one of the Appwrite SDKs, all the\n         * 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}\n        */\n        createFile(bucketId, fileId, file, permissions, onProgress = (progress) => { }) {\n            return __awaiter(this, void 0, void 0, function* () {\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                if (!(file instanceof File)) {\n                    throw new AppwriteException('Parameter \"file\" has to be a File.');\n                }\n                const size = file.size;\n                if (size <= Service.CHUNK_SIZE) {\n                    return yield this.client.call('post', uri, {\n                        'content-type': 'multipart/form-data',\n                    }, payload);\n                }\n                const apiHeaders = {\n                    'content-type': 'multipart/form-data',\n                };\n                let offset = 0;\n                let response = undefined;\n                if (fileId != 'unique()') {\n                    try {\n                        response = yield this.client.call('GET', new URL(this.client.config.endpoint + apiPath + '/' + fileId), apiHeaders);\n                        offset = response.chunksUploaded * Service.CHUNK_SIZE;\n                    }\n                    catch (e) {\n                    }\n                }\n                while (offset < size) {\n                    let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);\n                    apiHeaders['content-range'] = 'bytes ' + offset + '-' + end + '/' + size;\n                    if (response && response.$id) {\n                        apiHeaders['x-appwrite-id'] = response.$id;\n                    }\n                    const chunk = file.slice(offset, end + 1);\n                    payload['file'] = new File([chunk], file.name);\n                    response = yield this.client.call('post', uri, apiHeaders, payload);\n                    if (onProgress) {\n                        onProgress({\n                            $id: response.$id,\n                            progress: (offset / size) * 100,\n                            sizeUploaded: offset,\n                            chunksTotal: response.chunksTotal,\n                            chunksUploaded: response.chunksUploaded\n                        });\n                    }\n                    offset += Service.CHUNK_SIZE;\n                }\n                return response;\n            });\n        }\n        /**\n         * Get file\n         *\n         * Get a file by its unique ID. This endpoint response returns a JSON object\n         * with the file metadata.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getFile(bucketId, fileId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update file\n         *\n         * Update a file by its unique ID. Only users with write permissions have\n         * 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}\n        */\n        updateFile(bucketId, fileId, name, permissions) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete File\n         *\n         * Delete a file by its unique ID. Only users with write permissions have\n         * 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            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get file for download\n         *\n         * Get a file content by its unique ID. The endpoint response return with a\n         * 'Content-Disposition: attachment' header that tells the browser to start\n         * downloading the file to user downloads directory.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @throws {AppwriteException}\n         * @returns {URL}\n        */\n        getFileDownload(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}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get file preview\n         *\n         * Get a file preview image. Currently, this method supports preview for image\n         * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,\n         * and spreadsheets, will return the file icon image. You can also pass query\n         * string arguments for cutting and resizing your preview image. Preview is\n         * 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         * @throws {AppwriteException}\n         * @returns {URL}\n        */\n        getFilePreview(bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output) {\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            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n        /**\n         * Get file for view\n         *\n         * Get a file content by its unique ID. This endpoint is similar to the\n         * download method but returns with no  'Content-Disposition: attachment'\n         * header.\n         *\n         * @param {string} bucketId\n         * @param {string} fileId\n         * @throws {AppwriteException}\n         * @returns {URL}\n        */\n        getFileView(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}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n            const payload = {};\n            const uri = new URL(this.client.config.endpoint + apiPath);\n            payload['project'] = this.client.config.project;\n            payload['session'] = this.client.config.session;\n            for (const [key, value] of Object.entries(Service.flatten(payload))) {\n                uri.searchParams.append(key, value);\n            }\n            return uri;\n        }\n    }\n\n    class Teams extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * List teams\n         *\n         * Get a list of all the teams in which the current user is a member. You can\n         * use the parameters to filter your results.\n         *\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        list(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create team\n         *\n         * Create a new team. The user who creates the team will automatically be\n         * assigned as the owner of the team. Only the users with the owner role can\n         * 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}\n        */\n        create(teamId, name, roles) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get team\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}\n        */\n        get(teamId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update name\n         *\n         * Update the team's name by its unique ID.\n         *\n         * @param {string} teamId\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateName(teamId, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete team\n         *\n         * Delete a team using its ID. Only team members with the owner role can\n         * delete the team.\n         *\n         * @param {string} teamId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        delete(teamId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List team memberships\n         *\n         * Use this endpoint to list a team's members using the team's ID. All team\n         * members have read access to this endpoint.\n         *\n         * @param {string} teamId\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listMemberships(teamId, queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create team membership\n         *\n         * Invite a new member to join your team. Provide an ID for existing users, or\n         * invite unregistered users using an email or phone number. If initiated from\n         * a Client SDK, Appwrite will send an email or sms with a link to join the\n         * team to the invited user, and an account will be created for them if one\n         * doesn't exist. If initiated from a Server SDK, the new member will be added\n         * automatically to the team.\n         *\n         * You only need to provide one of a user ID, email, or phone number. Appwrite\n         * will prioritize accepting the user ID > email > phone number if you provide\n         * more than one of these parameters.\n         *\n         * Use the `url` parameter to redirect the user from the invitation email to\n         * your app. After the user is redirected, use the [Update Team Membership\n         * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus)\n         * endpoint to allow the user to accept the invitation to the team.\n         *\n         * Please note that to avoid a [Redirect\n         * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)\n         * Appwrite will accept the only redirect URLs under the domains you have\n         * 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}\n        */\n        createMembership(teamId, roles, email, userId, phone, url, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get team membership\n         *\n         * Get a team member by the membership unique id. All team members have read\n         * access for this resource.\n         *\n         * @param {string} teamId\n         * @param {string} membershipId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getMembership(teamId, membershipId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update membership\n         *\n         * Modify the roles of a team member. Only team members with the owner role\n         * have access to this endpoint. Learn more about [roles and\n         * 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}\n        */\n        updateMembership(teamId, membershipId, roles) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete team membership\n         *\n         * This endpoint allows a user to leave a team or for a team owner to delete\n         * the membership of any other team member. You can also use this endpoint to\n         * 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            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update team membership status\n         *\n         * Use this endpoint to allow a user to accept an invitation to join a team\n         * after being redirected back to your app from the invitation email received\n         * by the user.\n         *\n         * If the request is successful, a session for the user is automatically\n         * 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}\n        */\n        updateMembershipStatus(teamId, membershipId, userId, secret) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get team preferences\n         *\n         * Get the team's shared preferences by its unique ID. If a preference doesn't\n         * need to be shared by all team members, prefer storing them in [user\n         * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).\n         *\n         * @param {string} teamId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getPrefs(teamId) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update preferences\n         *\n         * Update the team's preferences by its unique ID. The object you pass is\n         * stored as is and replaces any previous value. The maximum allowed prefs\n         * size is 64kB and throws an error if exceeded.\n         *\n         * @param {string} teamId\n         * @param {object} prefs\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePrefs(teamId, prefs) {\n            return __awaiter(this, void 0, void 0, function* () {\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                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Users extends Service {\n        constructor(client) {\n            super(client);\n        }\n        /**\n         * List users\n         *\n         * Get a list of all the project's users. You can use the query params to\n         * filter your results.\n         *\n         * @param {string[]} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        list(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/users';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user\n         *\n         * Create a new user.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} phone\n         * @param {string} password\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        create(userId, email, phone, password, name) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users';\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 phone !== 'undefined') {\n                    payload['phone'] = phone;\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with Argon2 password\n         *\n         * Create a new user. Password provided must be hashed with the\n         * [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST\n         * /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to\n         * create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createArgon2User(userId, email, password, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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 = '/users/argon2';\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with bcrypt password\n         *\n         * Create a new user. Password provided must be hashed with the\n         * [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST\n         * /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to\n         * create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createBcryptUser(userId, email, password, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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 = '/users/bcrypt';\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List Identities\n         *\n         * Get identities for all users.\n         *\n         * @param {string} queries\n         * @param {string} search\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listIdentities(queries, search) {\n            return __awaiter(this, void 0, void 0, function* () {\n                const apiPath = '/users/identities';\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                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete identity\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            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof identityId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"identityId\"');\n                }\n                const apiPath = '/users/identities/{identityId}'.replace('{identityId}', identityId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with MD5 password\n         *\n         * Create a new user. Password provided must be hashed with the\n         * [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST\n         * /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to\n         * create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createMD5User(userId, email, password, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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 = '/users/md5';\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with PHPass password\n         *\n         * Create a new user. Password provided must be hashed with the\n         * [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST\n         * /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to\n         * create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createPHPassUser(userId, email, password, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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 = '/users/phpass';\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                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with Scrypt password\n         *\n         * Create a new user. Password provided must be hashed with the\n         * [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST\n         * /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to\n         * create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} passwordSalt\n         * @param {number} passwordCpu\n         * @param {number} passwordMemory\n         * @param {number} passwordParallel\n         * @param {number} passwordLength\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createScryptUser(userId, email, password, passwordSalt, passwordCpu, passwordMemory, passwordParallel, passwordLength, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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                if (typeof passwordSalt === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordSalt\"');\n                }\n                if (typeof passwordCpu === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordCpu\"');\n                }\n                if (typeof passwordMemory === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordMemory\"');\n                }\n                if (typeof passwordParallel === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordParallel\"');\n                }\n                if (typeof passwordLength === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordLength\"');\n                }\n                const apiPath = '/users/scrypt';\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 passwordSalt !== 'undefined') {\n                    payload['passwordSalt'] = passwordSalt;\n                }\n                if (typeof passwordCpu !== 'undefined') {\n                    payload['passwordCpu'] = passwordCpu;\n                }\n                if (typeof passwordMemory !== 'undefined') {\n                    payload['passwordMemory'] = passwordMemory;\n                }\n                if (typeof passwordParallel !== 'undefined') {\n                    payload['passwordParallel'] = passwordParallel;\n                }\n                if (typeof passwordLength !== 'undefined') {\n                    payload['passwordLength'] = passwordLength;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with Scrypt modified password\n         *\n         * Create a new user. Password provided must be hashed with the [Scrypt\n         * Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc)\n         * algorithm. Use the [POST\n         * /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to\n         * create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {string} passwordSalt\n         * @param {string} passwordSaltSeparator\n         * @param {string} passwordSignerKey\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createScryptModifiedUser(userId, email, password, passwordSalt, passwordSaltSeparator, passwordSignerKey, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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                if (typeof passwordSalt === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordSalt\"');\n                }\n                if (typeof passwordSaltSeparator === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordSaltSeparator\"');\n                }\n                if (typeof passwordSignerKey === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"passwordSignerKey\"');\n                }\n                const apiPath = '/users/scrypt-modified';\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 passwordSalt !== 'undefined') {\n                    payload['passwordSalt'] = passwordSalt;\n                }\n                if (typeof passwordSaltSeparator !== 'undefined') {\n                    payload['passwordSaltSeparator'] = passwordSaltSeparator;\n                }\n                if (typeof passwordSignerKey !== 'undefined') {\n                    payload['passwordSignerKey'] = passwordSignerKey;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create user with SHA password\n         *\n         * Create a new user. Password provided must be hashed with the\n         * [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use\n         * the [POST /users](https://appwrite.io/docs/server/users#usersCreate)\n         * endpoint to create users with a plain text password.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @param {string} password\n         * @param {PasswordVersion} passwordVersion\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createSHAUser(userId, email, password, passwordVersion, name) {\n            return __awaiter(this, void 0, void 0, function* () {\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 = '/users/sha';\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 passwordVersion !== 'undefined') {\n                    payload['passwordVersion'] = passwordVersion;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get user\n         *\n         * Get a user by its unique ID.\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        get(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete user\n         *\n         * Delete a user by its unique ID, thereby releasing it's ID. Since ID is\n         * released and can be reused, all user-related resources like documents or\n         * storage files should be deleted before user deletion. If you want to keep\n         * ID reserved, use the\n         * [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus)\n         * endpoint instead.\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        delete(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update email\n         *\n         * Update the user email by its unique ID.\n         *\n         * @param {string} userId\n         * @param {string} email\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateEmail(userId, email) {\n            return __awaiter(this, void 0, void 0, function* () {\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 = '/users/{userId}/email'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof email !== 'undefined') {\n                    payload['email'] = email;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update user labels\n         *\n         * Update the user labels by its unique ID.\n         *\n         * Labels can be used to grant access to resources. While teams are a way for\n         * user's to share access to a resource, labels can be defined by the\n         * developer to grant access without an invitation. See the [Permissions\n         * docs](https://appwrite.io/docs/permissions) for more info.\n         *\n         * @param {string} userId\n         * @param {string[]} labels\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateLabels(userId, labels) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof labels === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"labels\"');\n                }\n                const apiPath = '/users/{userId}/labels'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof labels !== 'undefined') {\n                    payload['labels'] = labels;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('put', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List user logs\n         *\n         * Get the user activity logs list by its unique ID.\n         *\n         * @param {string} userId\n         * @param {string[]} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listLogs(userId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/logs'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof queries !== 'undefined') {\n                    payload['queries'] = queries;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List user memberships\n         *\n         * Get the user membership list by its unique ID.\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listMemberships(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/memberships'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update name\n         *\n         * Update the user name by its unique ID.\n         *\n         * @param {string} userId\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateName(userId, name) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof name === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"name\"');\n                }\n                const apiPath = '/users/{userId}/name'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update password\n         *\n         * Update the user password by its unique ID.\n         *\n         * @param {string} userId\n         * @param {string} password\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePassword(userId, password) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof password === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"password\"');\n                }\n                const apiPath = '/users/{userId}/password'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof password !== 'undefined') {\n                    payload['password'] = password;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update phone\n         *\n         * Update the user phone by its unique ID.\n         *\n         * @param {string} userId\n         * @param {string} number\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePhone(userId, number) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof number === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"number\"');\n                }\n                const apiPath = '/users/{userId}/phone'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof number !== 'undefined') {\n                    payload['number'] = number;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get user preferences\n         *\n         * Get the user preferences by its unique ID.\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getPrefs(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/prefs'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update user preferences\n         *\n         * Update the user preferences by its unique ID. The object you pass is stored\n         * as is, and replaces any previous value. The maximum allowed prefs size is\n         * 64kB and throws error if exceeded.\n         *\n         * @param {string} userId\n         * @param {object} prefs\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePrefs(userId, prefs) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof prefs === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"prefs\"');\n                }\n                const apiPath = '/users/{userId}/prefs'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof prefs !== 'undefined') {\n                    payload['prefs'] = prefs;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List user sessions\n         *\n         * Get the user sessions list by its unique ID.\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listSessions(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create session\n         *\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createSession(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete user sessions\n         *\n         * Delete all user's sessions by using the user's unique ID.\n         *\n         * @param {string} userId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteSessions(userId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete user session\n         *\n         * Delete a user sessions by its unique ID.\n         *\n         * @param {string} userId\n         * @param {string} sessionId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteSession(userId, sessionId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof sessionId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"sessionId\"');\n                }\n                const apiPath = '/users/{userId}/sessions/{sessionId}'.replace('{userId}', userId).replace('{sessionId}', sessionId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update user status\n         *\n         * Update the user status by its unique ID. Use this endpoint as an\n         * alternative to deleting a user if you want to keep user's ID reserved.\n         *\n         * @param {string} userId\n         * @param {boolean} status\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateStatus(userId, status) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof status === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"status\"');\n                }\n                const apiPath = '/users/{userId}/status'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof status !== 'undefined') {\n                    payload['status'] = status;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * List User Targets\n         *\n         *\n         * @param {string} userId\n         * @param {string} queries\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        listTargets(userId, queries) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/targets'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof queries !== 'undefined') {\n                    payload['queries'] = queries;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create User Target\n         *\n         *\n         * @param {string} userId\n         * @param {string} targetId\n         * @param {ProviderType} providerType\n         * @param {string} identifier\n         * @param {string} providerId\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createTarget(userId, targetId, providerType, identifier, providerId, name) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof targetId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"targetId\"');\n                }\n                if (typeof providerType === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"providerType\"');\n                }\n                if (typeof identifier === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"identifier\"');\n                }\n                const apiPath = '/users/{userId}/targets'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof targetId !== 'undefined') {\n                    payload['targetId'] = targetId;\n                }\n                if (typeof providerType !== 'undefined') {\n                    payload['providerType'] = providerType;\n                }\n                if (typeof identifier !== 'undefined') {\n                    payload['identifier'] = identifier;\n                }\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Get User Target\n         *\n         *\n         * @param {string} userId\n         * @param {string} targetId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        getTarget(userId, targetId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof targetId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"targetId\"');\n                }\n                const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('get', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update User target\n         *\n         *\n         * @param {string} userId\n         * @param {string} targetId\n         * @param {string} identifier\n         * @param {string} providerId\n         * @param {string} name\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateTarget(userId, targetId, identifier, providerId, name) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof targetId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"targetId\"');\n                }\n                const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);\n                const payload = {};\n                if (typeof identifier !== 'undefined') {\n                    payload['identifier'] = identifier;\n                }\n                if (typeof providerId !== 'undefined') {\n                    payload['providerId'] = providerId;\n                }\n                if (typeof name !== 'undefined') {\n                    payload['name'] = name;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Delete user target\n         *\n         *\n         * @param {string} userId\n         * @param {string} targetId\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        deleteTarget(userId, targetId) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof targetId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"targetId\"');\n                }\n                const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);\n                const payload = {};\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('delete', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Create token\n         *\n         * Returns a custom token with a secret key for creating a session. If the\n         * provided user ID has not be registered, a new user will be created. Use the\n         * returned user ID and secret and submit a request to the [PUT\n         * /account/sessions/custom](https://appwrite.io/docs/references/cloud/client-web/account#updateCustomSession)\n         * endpoint to complete the login process. By default, the secret sent in the\n         * response is valid for 15 minutes.\n         *\n         * @param {string} userId\n         * @param {number} length\n         * @param {number} expire\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        createToken(userId, length, expire) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                const apiPath = '/users/{userId}/tokens'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof length !== 'undefined') {\n                    payload['length'] = length;\n                }\n                if (typeof expire !== 'undefined') {\n                    payload['expire'] = expire;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('post', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update email verification\n         *\n         * Update the user email verification status by its unique ID.\n         *\n         * @param {string} userId\n         * @param {boolean} emailVerification\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updateEmailVerification(userId, emailVerification) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof emailVerification === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"emailVerification\"');\n                }\n                const apiPath = '/users/{userId}/verification'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof emailVerification !== 'undefined') {\n                    payload['emailVerification'] = emailVerification;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n        /**\n         * Update phone verification\n         *\n         * Update the user phone verification status by its unique ID.\n         *\n         * @param {string} userId\n         * @param {boolean} phoneVerification\n         * @throws {AppwriteException}\n         * @returns {Promise}\n        */\n        updatePhoneVerification(userId, phoneVerification) {\n            return __awaiter(this, void 0, void 0, function* () {\n                if (typeof userId === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"userId\"');\n                }\n                if (typeof phoneVerification === 'undefined') {\n                    throw new AppwriteException('Missing required parameter: \"phoneVerification\"');\n                }\n                const apiPath = '/users/{userId}/verification/phone'.replace('{userId}', userId);\n                const payload = {};\n                if (typeof phoneVerification !== 'undefined') {\n                    payload['phoneVerification'] = phoneVerification;\n                }\n                const uri = new URL(this.client.config.endpoint + apiPath);\n                return yield this.client.call('patch', uri, {\n                    'content-type': 'application/json',\n                }, payload);\n            });\n        }\n    }\n\n    class Permission {\n    }\n    Permission.read = (role) => {\n        return `read(\"${role}\")`;\n    };\n    Permission.write = (role) => {\n        return `write(\"${role}\")`;\n    };\n    Permission.create = (role) => {\n        return `create(\"${role}\")`;\n    };\n    Permission.update = (role) => {\n        return `update(\"${role}\")`;\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    class ID {\n        static custom(id) {\n            return id;\n        }\n        static unique() {\n            return 'unique()';\n        }\n    }\n\n    exports.Provider = void 0;\n    (function (Provider) {\n        Provider[\"Amazon\"] = \"amazon\";\n        Provider[\"Apple\"] = \"apple\";\n        Provider[\"Auth0\"] = \"auth0\";\n        Provider[\"Authentik\"] = \"authentik\";\n        Provider[\"Autodesk\"] = \"autodesk\";\n        Provider[\"Bitbucket\"] = \"bitbucket\";\n        Provider[\"Bitly\"] = \"bitly\";\n        Provider[\"Box\"] = \"box\";\n        Provider[\"Dailymotion\"] = \"dailymotion\";\n        Provider[\"Discord\"] = \"discord\";\n        Provider[\"Disqus\"] = \"disqus\";\n        Provider[\"Dropbox\"] = \"dropbox\";\n        Provider[\"Etsy\"] = \"etsy\";\n        Provider[\"Facebook\"] = \"facebook\";\n        Provider[\"Github\"] = \"github\";\n        Provider[\"Gitlab\"] = \"gitlab\";\n        Provider[\"Google\"] = \"google\";\n        Provider[\"Linkedin\"] = \"linkedin\";\n        Provider[\"Microsoft\"] = \"microsoft\";\n        Provider[\"Notion\"] = \"notion\";\n        Provider[\"Oidc\"] = \"oidc\";\n        Provider[\"Okta\"] = \"okta\";\n        Provider[\"Paypal\"] = \"paypal\";\n        Provider[\"PaypalSandbox\"] = \"paypalSandbox\";\n        Provider[\"Podio\"] = \"podio\";\n        Provider[\"Salesforce\"] = \"salesforce\";\n        Provider[\"Slack\"] = \"slack\";\n        Provider[\"Spotify\"] = \"spotify\";\n        Provider[\"Stripe\"] = \"stripe\";\n        Provider[\"Tradeshift\"] = \"tradeshift\";\n        Provider[\"TradeshiftBox\"] = \"tradeshiftBox\";\n        Provider[\"Twitch\"] = \"twitch\";\n        Provider[\"Wordpress\"] = \"wordpress\";\n        Provider[\"Yahoo\"] = \"yahoo\";\n        Provider[\"Yammer\"] = \"yammer\";\n        Provider[\"Yandex\"] = \"yandex\";\n        Provider[\"Zoho\"] = \"zoho\";\n        Provider[\"Zoom\"] = \"zoom\";\n        Provider[\"Mock\"] = \"mock\";\n    })(exports.Provider || (exports.Provider = {}));\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[\"Consosud\"] = \"censosud\";\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    })(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[\"CTeDIvoire\"] = \"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[\"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.RelationshipType = void 0;\n    (function (RelationshipType) {\n        RelationshipType[\"OneToOne\"] = \"oneToOne\";\n        RelationshipType[\"ManyToOne\"] = \"manyToOne\";\n        RelationshipType[\"ManyToMany\"] = \"manyToMany\";\n        RelationshipType[\"OneToMany\"] = \"oneToMany\";\n    })(exports.RelationshipType || (exports.RelationshipType = {}));\n\n    exports.RelationMutate = void 0;\n    (function (RelationMutate) {\n        RelationMutate[\"Cascade\"] = \"cascade\";\n        RelationMutate[\"Restrict\"] = \"restrict\";\n        RelationMutate[\"SetNull\"] = \"setNull\";\n    })(exports.RelationMutate || (exports.RelationMutate = {}));\n\n    exports.IndexType = void 0;\n    (function (IndexType) {\n        IndexType[\"Key\"] = \"key\";\n        IndexType[\"Fulltext\"] = \"fulltext\";\n        IndexType[\"Unique\"] = \"unique\";\n        IndexType[\"Spatial\"] = \"spatial\";\n        IndexType[\"Array\"] = \"array\";\n    })(exports.IndexType || (exports.IndexType = {}));\n\n    exports.Runtime = void 0;\n    (function (Runtime) {\n        Runtime[\"Node180\"] = \"node-18.0\";\n        Runtime[\"Php80\"] = \"php-8.0\";\n        Runtime[\"Ruby31\"] = \"ruby-3.1\";\n        Runtime[\"Python39\"] = \"python-3.9\";\n    })(exports.Runtime || (exports.Runtime = {}));\n\n    exports.Method = void 0;\n    (function (Method) {\n        Method[\"GET\"] = \"GET\";\n        Method[\"POST\"] = \"POST\";\n        Method[\"PUT\"] = \"PUT\";\n        Method[\"PATCH\"] = \"PATCH\";\n        Method[\"DELETE\"] = \"DELETE\";\n        Method[\"OPTIONS\"] = \"OPTIONS\";\n    })(exports.Method || (exports.Method = {}));\n\n    exports.Status = void 0;\n    (function (Status) {\n        Status[\"Draft\"] = \"draft\";\n        Status[\"Cancelled\"] = \"cancelled\";\n        Status[\"Processing\"] = \"processing\";\n    })(exports.Status || (exports.Status = {}));\n\n    exports.Compression = void 0;\n    (function (Compression) {\n        Compression[\"None\"] = \"none\";\n        Compression[\"Gzip\"] = \"gzip\";\n        Compression[\"Zstd\"] = \"zstd\";\n    })(exports.Compression || (exports.Compression = {}));\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[\"Gif\"] = \"gif\";\n        ImageFormat[\"Png\"] = \"png\";\n        ImageFormat[\"Webp\"] = \"webp\";\n    })(exports.ImageFormat || (exports.ImageFormat = {}));\n\n    exports.PasswordVersion = void 0;\n    (function (PasswordVersion) {\n        PasswordVersion[\"Sha1\"] = \"sha1\";\n        PasswordVersion[\"Sha224\"] = \"sha224\";\n        PasswordVersion[\"Sha256\"] = \"sha256\";\n        PasswordVersion[\"Sha384\"] = \"sha384\";\n        PasswordVersion[\"Sha512224\"] = \"sha512/224\";\n        PasswordVersion[\"Sha512256\"] = \"sha512/256\";\n        PasswordVersion[\"Sha512\"] = \"sha512\";\n        PasswordVersion[\"Sha3224\"] = \"sha3-224\";\n        PasswordVersion[\"Sha3256\"] = \"sha3-256\";\n        PasswordVersion[\"Sha3384\"] = \"sha3-384\";\n        PasswordVersion[\"Sha3512\"] = \"sha3-512\";\n    })(exports.PasswordVersion || (exports.PasswordVersion = {}));\n\n    exports.ProviderType = void 0;\n    (function (ProviderType) {\n        ProviderType[\"Email\"] = \"email\";\n        ProviderType[\"Sms\"] = \"sms\";\n        ProviderType[\"Push\"] = \"push\";\n    })(exports.ProviderType || (exports.ProviderType = {}));\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.Health = Health;\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    exports.Users = Users;\n\n    Object.defineProperty(exports, '__esModule', { value: true });\n\n})(this.Appwrite = this.Appwrite || {}, null, window);\n"]}