react-native-appwrite 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sdk.js +4 -5
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +4 -4
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +4 -3
- package/src/client.ts +3 -3
- package/src/services/storage.ts +2 -2
package/dist/cjs/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/service.ts","../../src/query.ts","../../src/client.ts","../../src/services/account.ts","../../src/services/avatars.ts","../../src/services/databases.ts","../../src/services/functions.ts","../../src/services/graphql.ts","../../src/services/locale.ts","../../src/services/storage.ts","../../src/services/teams.ts","../../src/permission.ts","../../src/role.ts","../../src/id.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import { Client } from './client';\nimport type { Payload } from './client';\n\nexport class Service {\n static CHUNK_SIZE = 5*1024*1024; // 5MB\n\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n static flatten(data: Payload, prefix = ''): Payload {\n let output: Payload = {};\n\n for (const key in data) {\n let value = data[key];\n let finalKey = prefix ? `${prefix}[${key}]` : key;\n\n if (Array.isArray(value)) {\n output = Object.assign(output, this.flatten(value, finalKey));\n }\n else {\n output[finalKey] = value;\n }\n }\n\n return output;\n }\n}","type QueryTypesSingle = string | number | boolean;\nexport type QueryTypesList = string[] | number[] | boolean[];\nexport type QueryTypes = QueryTypesSingle | QueryTypesList;\n\nexport class Query {\n static equal = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"equal\", value);\n\n static notEqual = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"notEqual\", value);\n\n static lessThan = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"lessThan\", value);\n\n static lessThanEqual = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"lessThanEqual\", value);\n\n static greaterThan = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"greaterThan\", value);\n\n static greaterThanEqual = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"greaterThanEqual\", value);\n\n static isNull = (attribute: string): string =>\n `isNull(\"${attribute}\")`;\n\n static isNotNull = (attribute: string): string =>\n `isNotNull(\"${attribute}\")`;\n\n static between = (attribute: string, start: string|number, end: string|number): string =>\n `between(\"${attribute}\", ${Query.parseValues(start)}, ${Query.parseValues(end)})`;\n\n static startsWith = (attribute: string, value: string): string =>\n Query.addQuery(attribute, \"startsWith\", value);\n\n static endsWith = (attribute: string, value: string): string =>\n Query.addQuery(attribute, \"endsWith\", value);\n\n static select = (attributes: string[]): string =>\n `select([${attributes.map((attr: string) => `\"${attr}\"`).join(\",\")}])`;\n\n static search = (attribute: string, value: string): string =>\n Query.addQuery(attribute, \"search\", value);\n\n static orderDesc = (attribute: string): string =>\n `orderDesc(\"${attribute}\")`;\n\n static orderAsc = (attribute: string): string =>\n `orderAsc(\"${attribute}\")`;\n\n static cursorAfter = (documentId: string): string =>\n `cursorAfter(\"${documentId}\")`;\n\n static cursorBefore = (documentId: string): string =>\n `cursorBefore(\"${documentId}\")`;\n\n static limit = (limit: number): string =>\n `limit(${limit})`;\n\n static offset = (offset: number): string =>\n `offset(${offset})`;\n\n private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>\n value instanceof Array\n ? `${method}(\"${attribute}\", [${value\n .map((v: QueryTypesSingle) => Query.parseValues(v))\n .join(\",\")}])`\n : `${method}(\"${attribute}\", [${Query.parseValues(value)}])`;\n\n private static parseValues = (value: QueryTypes): string =>\n typeof value === \"string\" || value instanceof String\n ? `\"${value}\"`\n : `${value}`;\n}","import { Models } from './models';\nimport { Service } from './service';\nimport * as Device from 'expo-device';\n\ntype Payload = {\n [key: string]: any;\n}\n\ntype Headers = {\n [key: string]: string;\n}\n\ntype RealtimeResponse = {\n type: 'error' | 'event' | 'connected' | 'response';\n data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent<unknown>;\n}\n\ntype RealtimeRequest = {\n type: 'authentication';\n data: RealtimeRequestAuthenticate;\n}\n\nexport type RealtimeResponseEvent<T extends unknown> = {\n events: string[];\n channels: string[];\n timestamp: number;\n payload: T;\n}\n\ntype RealtimeResponseError = {\n code: number;\n message: string;\n}\n\ntype RealtimeResponseConnected = {\n channels: string[];\n user?: object;\n}\n\ntype RealtimeResponseAuthenticated = {\n to: string;\n success: boolean;\n user: object;\n}\n\ntype RealtimeRequestAuthenticate = {\n session: string;\n}\n\ntype Realtime = {\n socket?: WebSocket;\n timeout?: number;\n url?: string;\n lastMessage?: RealtimeResponse;\n channels: Set<string>;\n subscriptions: Map<number, {\n channels: string[];\n callback: (payload: RealtimeResponseEvent<any>) => void\n }>;\n subscriptionsCounter: number;\n reconnect: boolean;\n reconnectAttempts: number;\n getTimeout: () => number;\n connect: () => void;\n createSocket: () => void;\n cleanUp: (channels: string[]) => void;\n onMessage: (event: MessageEvent) => void;\n}\n\nexport type UploadProgress = {\n $id: string;\n progress: number;\n sizeUploaded: number;\n chunksTotal: number;\n chunksUploaded: number;\n}\n\nclass AppwriteException extends Error {\n code: number;\n response: string;\n type: string;\n constructor(message: string, code: number = 0, type: string = '', response: string = '') {\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\nclass Client {\n config = {\n endpoint: 'https://HOSTNAME/v1',\n endpointRealtime: '',\n project: '',\n jwt: '',\n locale: '',\n platform: '',\n };\n headers: Headers = {\n 'x-sdk-name': 'Web',\n 'x-sdk-platform': 'client',\n 'x-sdk-language': 'web',\n 'x-sdk-version': '13.0.2',\n 'X-Appwrite-Response-Format': '1.4.0',\n };\n\n /**\n * Set Endpoint\n *\n * Your project endpoint\n *\n * @param {string} endpoint\n *\n * @returns {this}\n */\n setEndpoint(endpoint: string): this {\n this.config.endpoint = endpoint;\n this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');\n\n return this;\n }\n\n /**\n * Set Realtime Endpoint\n *\n * @param {string} endpointRealtime\n *\n * @returns {this}\n */\n setEndpointRealtime(endpointRealtime: string): this {\n this.config.endpointRealtime = endpointRealtime;\n\n return this;\n }\n\n /**\n * Set platform\n * \n * Set platform. Will be used as origin for all requests.\n * \n * @param {string} platform\n * @returns {this}\n */\n setPlatform(platform: string): this {\n this.config.platform = platform;\n\n return this;\n }\n\n /**\n * Set Project\n *\n * Your project ID\n *\n * @param value string\n *\n * @return {this}\n */\n setProject(value: string): this {\n this.headers['X-Appwrite-Project'] = value;\n this.config.project = value;\n return this;\n }\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: string): this {\n this.headers['X-Appwrite-JWT'] = value;\n this.config.jwt = value;\n return this;\n }\n\n /**\n * Set Locale\n *\n * @param value string\n *\n * @return {this}\n */\n setLocale(value: string): this {\n this.headers['X-Appwrite-Locale'] = value;\n this.config.locale = value;\n return this;\n }\n\n\n private realtime: 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?.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 10_000;\n default:\n return 60_000;\n }\n },\n createSocket: () => {\n if (this.realtime.channels.size < 1) return;\n\n const channels = new URLSearchParams();\n channels.set('project', this.config.project);\n this.realtime.channels.forEach(channel => {\n channels.append('channels[]', channel);\n });\n\n const url = this.config.endpointRealtime + '/realtime?' + channels.toString();\n\n if (\n url !== this.realtime.url || // Check if URL is present\n !this.realtime.socket || // Check if WebSocket has not been created\n this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)\n ) {\n if (\n this.realtime.socket &&\n this.realtime.socket?.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\n this.realtime.url = url;\n // @ts-ignore\n this.realtime.socket = new WebSocket(url, undefined, {\n headers: {\n Origin: `appwrite-${Device.osName}://${this.config.platform}`\n }\n });\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 if (\n !this.realtime.reconnect ||\n (\n this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error\n (<RealtimeResponseError>this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008\n )\n ) {\n this.realtime.reconnect = true;\n return;\n }\n\n const timeout = this.realtime.getTimeout();\n console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);\n\n setTimeout(() => {\n this.realtime.reconnectAttempts++;\n this.realtime.createSocket();\n }, timeout);\n })\n }\n },\n onMessage: async (event) => {\n try {\n const message: RealtimeResponse = JSON.parse(event.data);\n this.realtime.lastMessage = message;\n switch (message.type) {\n case 'event':\n let data = <RealtimeResponseEvent<unknown>>message.data;\n if (data?.channels) {\n const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));\n if (!isSubscribed) 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 } 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\n if (!found) {\n this.realtime.channels.delete(channel);\n }\n }\n })\n }\n }\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<T extends unknown>(channels: string | string[], callback: (payload: RealtimeResponseEvent<T>) => void): () => void {\n let channelArray = typeof channels === 'string' ? [channels] : channels;\n channelArray.forEach(channel => this.realtime.channels.add(channel));\n\n const counter = this.realtime.subscriptionsCounter++;\n this.realtime.subscriptions.set(counter, {\n channels: channelArray,\n callback\n });\n\n this.realtime.connect();\n\n return () => {\n this.realtime.subscriptions.delete(counter);\n this.realtime.cleanUp(channelArray);\n this.realtime.connect();\n }\n }\n\n async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise<any> {\n method = method.toUpperCase();\n\n headers = Object.assign({}, this.headers, headers);\n headers.Origin = `appwrite-${Device.osName}://${this.config.platform}`;\n let options: RequestInit = {\n method,\n headers,\n credentials: 'include'\n };\n\n if (method === 'GET') {\n for (const [key, value] of Object.entries(Service.flatten(params))) {\n url.searchParams.append(key, value);\n }\n } else {\n switch (headers['content-type']) {\n case 'application/json':\n options.body = JSON.stringify(params);\n break;\n\n case 'multipart/form-data':\n let formData = new FormData();\n\n for (const key in params) {\n if (Array.isArray(params[key])) {\n params[key].forEach((value: any) => {\n formData.append(key + '[]', value);\n })\n } else {\n formData.append(key, params[key]);\n }\n }\n\n options.body = formData;\n delete headers['content-type'];\n break;\n }\n }\n\n try {\n let data = null;\n const response = await fetch(url.toString(), options);\n\n if (response.headers.get('content-type')?.includes('application/json')) {\n data = await response.json();\n } else {\n data = {\n message: await response.text()\n };\n }\n\n if (400 <= response.status) {\n throw new AppwriteException(data?.message, response.status, data?.type, data);\n }\n\n return data;\n } catch (e) {\n if (e instanceof AppwriteException) {\n throw e;\n }\n throw new AppwriteException((<Error>e).message);\n }\n }\n}\n\nexport { Client, AppwriteException };\nexport { Query } from './query';\nexport type { Models, Payload };\nexport type { QueryTypes, QueryTypesList } from './query';\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Account extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\n\n /**\n * Get account\n *\n * Get the currently logged in user.\n *\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async get<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>> {\n const apiPath = '/account';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async create<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>> {\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/email';\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listIdentities(queries?: string): Promise<Models.IdentityList> {\n const apiPath = '/account/identities';\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteIdentity(identityId: string): Promise<{}> {\n if (typeof identityId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"identityId\"');\n }\n\n const apiPath = '/account/identities/{identityId}'.replace('{identityId}', identityId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createJWT(): Promise<Models.Jwt> {\n const apiPath = '/account/jwt';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listLogs(queries?: string[]): Promise<Models.LogList> {\n const apiPath = '/account/logs';\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateName<Preferences extends Models.Preferences>(name: string): Promise<Models.User<Preferences>> {\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/account/name';\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePassword<Preferences extends Models.Preferences>(password: string, oldPassword?: string): Promise<Models.User<Preferences>> {\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/password';\n const payload: Payload = {};\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n if (typeof oldPassword !== 'undefined') {\n payload['oldPassword'] = oldPassword;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePhone<Preferences extends Models.Preferences>(phone: string, password: string): Promise<Models.User<Preferences>> {\n if (typeof phone === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"phone\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/phone';\n const payload: Payload = {};\n\n if (typeof phone !== 'undefined') {\n payload['phone'] = phone;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getPrefs<Preferences extends Models.Preferences>(): Promise<Preferences> {\n const apiPath = '/account/prefs';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePrefs<Preferences extends Models.Preferences>(prefs: Partial<Preferences>): Promise<Models.User<Preferences>> {\n if (typeof prefs === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"prefs\"');\n }\n\n const apiPath = '/account/prefs';\n const payload: Payload = {};\n\n if (typeof prefs !== 'undefined') {\n payload['prefs'] = prefs;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createRecovery(email: string, url: string): Promise<Models.Token> {\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/account/recovery';\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n if (typeof passwordAgain === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"passwordAgain\"');\n }\n\n const apiPath = '/account/recovery';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n if (typeof passwordAgain !== 'undefined') {\n payload['passwordAgain'] = passwordAgain;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listSessions(): Promise<Models.SessionList> {\n const apiPath = '/account/sessions';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteSessions(): Promise<{}> {\n const apiPath = '/account/sessions';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('delete', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create anonymous session\n *\n * Use this endpoint to allow a new user to register an anonymous account in\n * your project. This route will also create a new session for the user. To\n * allow the new user to convert an anonymous account to a normal account, you\n * need to update its [email and\n * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail)\n * or create an [OAuth2\n * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).\n *\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createAnonymousSession(): Promise<Models.Session> {\n const apiPath = '/account/sessions/anonymous';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create email session\n *\n * Allow the user to login into their account by providing a valid email and\n * password combination. This route will create a new session for the user.\n * \n * A user is limited to 10 active sessions at a time by default. [Learn more\n * about session\n * limits](https://appwrite.io/docs/authentication-security#limits).\n *\n * @param {string} email\n * @param {string} password\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createEmailSession(email: string, password: string): Promise<Models.Session> {\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/sessions/email';\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create magic URL session\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 async createMagicURLSession(userId: string, email: string, url?: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n const apiPath = '/account/sessions/magic-url';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create magic URL session (confirmation)\n *\n * Use this endpoint to complete creating the session with the Magic URL. Both\n * the **userId** and **secret** arguments will be passed as query parameters\n * to the redirect URL you have provided when sending your request to the\n * [POST\n * /account/sessions/magic-url](https://appwrite.io/docs/references/cloud/client-web/account#createMagicURLSession)\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 * @throws {AppwriteException}\n * @returns {Promise}\n */\n async updateMagicURLSession(userId: string, secret: string): Promise<Models.Session> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/sessions/magic-url';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 {string} provider\n * @param {string} success\n * @param {string} failure\n * @param {string[]} scopes\n * @throws {AppwriteException}\n * @returns {void|string}\n */\n createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL {\n throw new AppwriteException('Not yet supported');\n }\n\n /**\n * Create phone session\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 async createPhoneSession(userId: string, phone: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof phone === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"phone\"');\n }\n\n const apiPath = '/account/sessions/phone';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof phone !== 'undefined') {\n payload['phone'] = phone;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create phone session (confirmation)\n *\n * Use this endpoint to complete creating a session with SMS. Use the\n * **userId** from the\n * [createPhoneSession](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneSession)\n * endpoint and the **secret** received via SMS to successfully update and\n * confirm the phone session.\n *\n * @param {string} userId\n * @param {string} secret\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async updatePhoneSession(userId: string, secret: string): Promise<Models.Session> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/sessions/phone';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('put', 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 async getSession(sessionId: string): Promise<Models.Session> {\n if (typeof sessionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\n }\n\n const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateSession(sessionId: string): Promise<Models.Session> {\n if (typeof sessionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\n }\n\n const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteSession(sessionId: string): Promise<{}> {\n if (typeof sessionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\n }\n\n const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateStatus<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>> {\n const apiPath = '/account/status';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('patch', 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 async createVerification(url: string): Promise<Models.Token> {\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/account/verification';\n const payload: Payload = {};\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateVerification(userId: string, secret: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/verification';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createPhoneVerification(): Promise<Models.Token> {\n const apiPath = '/account/verification/phone';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePhoneVerification(userId: string, secret: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/verification/phone';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('put', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Avatars extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 {string} code\n * @param {number} width\n * @param {number} height\n * @param {number} quality\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getBrowser(code: string, width?: number, height?: number, quality?: number): URL {\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n\n const apiPath = '/avatars/browsers/{code}'.replace('{code}', code);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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 {string} code\n * @param {number} width\n * @param {number} height\n * @param {number} quality\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getCreditCard(code: string, width?: number, height?: number, quality?: number): URL {\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n\n const apiPath = '/avatars/credit-cards/{code}'.replace('{code}', code);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string): URL {\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/avatars/favicon';\n const payload: Payload = {};\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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 {string} code\n * @param {number} width\n * @param {number} height\n * @param {number} quality\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getFlag(code: string, width?: number, height?: number, quality?: number): URL {\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n\n const apiPath = '/avatars/flags/{code}'.replace('{code}', code);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string, width?: number, height?: number): URL {\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/avatars/image';\n const payload: Payload = {};\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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?: string, width?: number, height?: number, background?: string): URL {\n const apiPath = '/avatars/initials';\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof background !== 'undefined') {\n payload['background'] = background;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string, size?: number, margin?: number, download?: boolean): URL {\n if (typeof text === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"text\"');\n }\n\n const apiPath = '/avatars/qr';\n const payload: Payload = {};\n\n if (typeof text !== 'undefined') {\n payload['text'] = text;\n }\n\n if (typeof size !== 'undefined') {\n payload['size'] = size;\n }\n\n if (typeof margin !== 'undefined') {\n payload['margin'] = margin;\n }\n\n if (typeof download !== 'undefined') {\n payload['download'] = download;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\n uri.searchParams.append(key, value);\n }\n return uri;\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Databases extends Service {\n\n constructor(client: Client)\n {\n super(client);\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 async listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n if (typeof data === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"data\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n const payload: Payload = {};\n\n if (typeof documentId !== 'undefined') {\n payload['documentId'] = documentId;\n }\n\n if (typeof data !== 'undefined') {\n payload['data'] = data;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: Partial<Omit<Document, keyof Models.Document>>, permissions?: string[]): Promise<Document> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n const payload: Payload = {};\n\n if (typeof data !== 'undefined') {\n payload['data'] = data;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('delete', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Functions extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 async listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 {string} method\n * @param {object} headers\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: string, headers?: object): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n\n if (typeof body !== 'undefined') {\n payload['body'] = body;\n }\n\n if (typeof async !== 'undefined') {\n payload['async'] = async;\n }\n\n if (typeof xpath !== 'undefined') {\n payload['path'] = xpath;\n }\n\n if (typeof method !== 'undefined') {\n payload['method'] = method;\n }\n\n if (typeof headers !== 'undefined') {\n payload['headers'] = headers;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getExecution(functionId: string, executionId: string): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('get', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Graphql extends Service {\n\n constructor(client: Client)\n {\n super(client);\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 async query(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n\n const apiPath = '/graphql';\n const payload: Payload = {};\n\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async mutation(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n\n const apiPath = '/graphql/mutation';\n const payload: Payload = {};\n\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Locale extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 async get(): Promise<Models.Locale> {\n const apiPath = '/locale';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCodes(): Promise<Models.LocaleCodeList> {\n const apiPath = '/locale/codes';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listContinents(): Promise<Models.ContinentList> {\n const apiPath = '/locale/continents';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCountries(): Promise<Models.CountryList> {\n const apiPath = '/locale/countries';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCountriesEU(): Promise<Models.CountryList> {\n const apiPath = '/locale/countries/eu';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCountriesPhones(): Promise<Models.PhoneList> {\n const apiPath = '/locale/countries/phones';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCurrencies(): Promise<Models.CurrencyList> {\n const apiPath = '/locale/currencies';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listLanguages(): Promise<Models.LanguageList> {\n const apiPath = '/locale/languages';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('get', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\nimport * as FileSystem from 'expo-file-system';\nimport * as Device from 'expo-device'\n\nexport class Storage extends Service {\n\n constructor(client: Client)\n {\n super(client);\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 async listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 {{name: string, type: string, size: number, uri: string}} file\n * @param {string[]} permissions\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createFile(bucketId: string, fileId: string, file: {name: string, type: string, size: number, uri: string}, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise<Models.File> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n if (typeof file === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"file\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);\n const payload: Payload = {};\n\n if (typeof fileId !== 'undefined') {\n payload['fileId'] = fileId;\n }\n\n if (typeof file !== 'undefined') {\n payload['file'] = file;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const size = file.size;\n\n if (size <= Service.CHUNK_SIZE) {\n return await this.client.call('post', uri, {\n 'content-type': 'multipart/form-data',\n }, payload);\n }\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'multipart/form-data',\n }\n\n let offset = 0;\n let response = undefined;\n if(fileId != 'unique()') {\n try {\n response = await this.client.call('GET', new URL(this.client.config.endpoint + apiPath + '/' + fileId), apiHeaders);\n offset = response.chunksUploaded * Service.CHUNK_SIZE;\n } catch(e) {\n }\n }\n\n while (offset < size) {\n let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);\n\n apiHeaders['content-range'] = 'bytes ' + offset + '-' + end + '/' + size;\n if (response && response.$id) {\n apiHeaders['x-appwrite-id'] = response.$id;\n }\n\n let chunk = await FileSystem.readAsStringAsync(file.uri, {\n encoding: FileSystem.EncodingType.Base64,\n position: offset,\n length: Service.CHUNK_SIZE\n });\n var path = `data:${file.type};base64,${chunk}`;\n if (Device.osName == 'Android') {\n path = FileSystem.cacheDirectory + '/tmp_chunk';\n await FileSystem.writeAsStringAsync(path, chunk, {encoding: FileSystem.EncodingType.Base64});\n }\n payload['file'] = {uri: path, name: file.name, type: file.type};\n response = await this.client.call('post', uri, apiHeaders, payload);\n\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 async getFile(bucketId: string, fileId: string): Promise<Models.File> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteFile(bucketId: string, fileId: string): Promise<{}> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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: string, fileId: string): URL {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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 {string} 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 {string} output\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: string, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: string): URL {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof gravity !== 'undefined') {\n payload['gravity'] = gravity;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n if (typeof borderWidth !== 'undefined') {\n payload['borderWidth'] = borderWidth;\n }\n\n if (typeof borderColor !== 'undefined') {\n payload['borderColor'] = borderColor;\n }\n\n if (typeof borderRadius !== 'undefined') {\n payload['borderRadius'] = borderRadius;\n }\n\n if (typeof opacity !== 'undefined') {\n payload['opacity'] = opacity;\n }\n\n if (typeof rotation !== 'undefined') {\n payload['rotation'] = rotation;\n }\n\n if (typeof background !== 'undefined') {\n payload['background'] = background;\n }\n\n if (typeof output !== 'undefined') {\n payload['output'] = output;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string, fileId: string): URL {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\n uri.searchParams.append(key, value);\n }\n return uri;\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Teams extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {\n const apiPath = '/teams';\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/teams';\n const payload: Payload = {};\n\n if (typeof teamId !== 'undefined') {\n payload['teamId'] = teamId;\n }\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n if (typeof roles !== 'undefined') {\n payload['roles'] = roles;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async delete(teamId: string): Promise<{}> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof roles === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"roles\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof phone !== 'undefined') {\n payload['phone'] = phone;\n }\n\n if (typeof roles !== 'undefined') {\n payload['roles'] = roles;\n }\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n if (typeof roles === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"roles\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n if (typeof roles !== 'undefined') {\n payload['roles'] = roles;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteMembership(teamId: string, membershipId: string): Promise<{}> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof prefs === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"prefs\"');\n }\n\n const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof prefs !== 'undefined') {\n payload['prefs'] = prefs;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('put', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","export class Permission {\n\n static read = (role: string): string => {\n return `read(\"${role}\")`\n }\n\n static write = (role: string): string => {\n return `write(\"${role}\")`\n }\n\n static create = (role: string): string => {\n return `create(\"${role}\")`\n }\n\n static update = (role: string): string => {\n return `update(\"${role}\")`\n }\n\n static delete = (role: string): string => {\n return `delete(\"${role}\")`\n }\n}\n","/**\n * Helper class to generate role strings for `Permission`.\n */\nexport class Role {\n\n /**\n * Grants access to anyone.\n * \n * This includes authenticated and unauthenticated users.\n * \n * @returns {string}\n */\n public static any(): string {\n return 'any'\n }\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 public static user(id: string, status: string = ''): string {\n if (status === '') {\n return `user:${id}`\n }\n return `user:${id}/${status}`\n }\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 public static users(status: string = ''): string {\n if (status === '') {\n return 'users'\n }\n return `users/${status}`\n }\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 public static guests(): string {\n return 'guests'\n }\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 public static team(id: string, role: string = ''): string {\n if (role === '') {\n return `team:${id}`\n }\n return `team:${id}/${role}`\n }\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 public static member(id: string): string {\n return `member:${id}`\n }\n\n /**\n * Grants access to a user with the specified label.\n * \n * @param {string} name \n * @returns {string}\n */\n public static label(name: string): string {\n return `label:${name}`\n }\n}","export class ID {\n public static custom(id: string): string {\n return id\n }\n \n public static unique(): string {\n return 'unique()'\n }\n}"],"names":["Device","FileSystem"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuDA;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,C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,CAAQ,KAAA,EAAA,EAAE,CAAI,CAAA,EAAA,MAAM,EAAE,CAAA;KAChC;AAED;;;;;;;;AAQG;AACI,IAAA,OAAO,KAAK,CAAC,MAAA,GAAiB,EAAE,EAAA;QACnC,IAAI,MAAM,KAAK,EAAE,EAAE;AACf,YAAA,OAAO,OAAO,CAAA;AACjB,SAAA;QACD,OAAO,CAAA,MAAA,EAAS,MAAM,CAAA,CAAE,CAAA;KAC3B;AAED;;;;;;AAMG;AACI,IAAA,OAAO,MAAM,GAAA;AAChB,QAAA,OAAO,QAAQ,CAAA;KAClB;AAED;;;;;;;;;AASG;AACI,IAAA,OAAO,IAAI,CAAC,EAAU,EAAE,OAAe,EAAE,EAAA;QAC5C,IAAI,IAAI,KAAK,EAAE,EAAE;YACb,OAAO,CAAA,KAAA,EAAQ,EAAE,CAAA,CAAE,CAAA;AACtB,SAAA;AACD,QAAA,OAAO,CAAQ,KAAA,EAAA,EAAE,CAAI,CAAA,EAAA,IAAI,EAAE,CAAA;KAC9B;AAED;;;;;;;;AAQG;IACI,OAAO,MAAM,CAAC,EAAU,EAAA;QAC3B,OAAO,CAAA,OAAA,EAAU,EAAE,CAAA,CAAE,CAAA;KACxB;AAED;;;;;AAKG;IACI,OAAO,KAAK,CAAC,IAAY,EAAA;QAC5B,OAAO,CAAA,MAAA,EAAS,IAAI,CAAA,CAAE,CAAA;KACzB;AACJ;;MCnGY,EAAE,CAAA;IACJ,OAAO,MAAM,CAAC,EAAU,EAAA;AAC3B,QAAA,OAAO,EAAE,CAAA;KACZ;AAEM,IAAA,OAAO,MAAM,GAAA;AAChB,QAAA,OAAO,UAAU,CAAA;KACpB;AACJ;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/service.ts","../../src/query.ts","../../src/client.ts","../../src/services/account.ts","../../src/services/avatars.ts","../../src/services/databases.ts","../../src/services/functions.ts","../../src/services/graphql.ts","../../src/services/locale.ts","../../src/services/storage.ts","../../src/services/teams.ts","../../src/permission.ts","../../src/role.ts","../../src/id.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import { Client } from './client';\nimport type { Payload } from './client';\n\nexport class Service {\n static CHUNK_SIZE = 5*1024*1024; // 5MB\n\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n static flatten(data: Payload, prefix = ''): Payload {\n let output: Payload = {};\n\n for (const key in data) {\n let value = data[key];\n let finalKey = prefix ? `${prefix}[${key}]` : key;\n\n if (Array.isArray(value)) {\n output = Object.assign(output, this.flatten(value, finalKey));\n }\n else {\n output[finalKey] = value;\n }\n }\n\n return output;\n }\n}","type QueryTypesSingle = string | number | boolean;\nexport type QueryTypesList = string[] | number[] | boolean[];\nexport type QueryTypes = QueryTypesSingle | QueryTypesList;\n\nexport class Query {\n static equal = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"equal\", value);\n\n static notEqual = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"notEqual\", value);\n\n static lessThan = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"lessThan\", value);\n\n static lessThanEqual = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"lessThanEqual\", value);\n\n static greaterThan = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"greaterThan\", value);\n\n static greaterThanEqual = (attribute: string, value: QueryTypes): string =>\n Query.addQuery(attribute, \"greaterThanEqual\", value);\n\n static isNull = (attribute: string): string =>\n `isNull(\"${attribute}\")`;\n\n static isNotNull = (attribute: string): string =>\n `isNotNull(\"${attribute}\")`;\n\n static between = (attribute: string, start: string|number, end: string|number): string =>\n `between(\"${attribute}\", ${Query.parseValues(start)}, ${Query.parseValues(end)})`;\n\n static startsWith = (attribute: string, value: string): string =>\n Query.addQuery(attribute, \"startsWith\", value);\n\n static endsWith = (attribute: string, value: string): string =>\n Query.addQuery(attribute, \"endsWith\", value);\n\n static select = (attributes: string[]): string =>\n `select([${attributes.map((attr: string) => `\"${attr}\"`).join(\",\")}])`;\n\n static search = (attribute: string, value: string): string =>\n Query.addQuery(attribute, \"search\", value);\n\n static orderDesc = (attribute: string): string =>\n `orderDesc(\"${attribute}\")`;\n\n static orderAsc = (attribute: string): string =>\n `orderAsc(\"${attribute}\")`;\n\n static cursorAfter = (documentId: string): string =>\n `cursorAfter(\"${documentId}\")`;\n\n static cursorBefore = (documentId: string): string =>\n `cursorBefore(\"${documentId}\")`;\n\n static limit = (limit: number): string =>\n `limit(${limit})`;\n\n static offset = (offset: number): string =>\n `offset(${offset})`;\n\n private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>\n value instanceof Array\n ? `${method}(\"${attribute}\", [${value\n .map((v: QueryTypesSingle) => Query.parseValues(v))\n .join(\",\")}])`\n : `${method}(\"${attribute}\", [${Query.parseValues(value)}])`;\n\n private static parseValues = (value: QueryTypes): string =>\n typeof value === \"string\" || value instanceof String\n ? `\"${value}\"`\n : `${value}`;\n}","import { Models } from './models';\nimport { Service } from './service';\nimport { Platform } from 'react-native';\n\ntype Payload = {\n [key: string]: any;\n}\n\ntype Headers = {\n [key: string]: string;\n}\n\ntype RealtimeResponse = {\n type: 'error' | 'event' | 'connected' | 'response';\n data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent<unknown>;\n}\n\ntype RealtimeRequest = {\n type: 'authentication';\n data: RealtimeRequestAuthenticate;\n}\n\nexport type RealtimeResponseEvent<T extends unknown> = {\n events: string[];\n channels: string[];\n timestamp: number;\n payload: T;\n}\n\ntype RealtimeResponseError = {\n code: number;\n message: string;\n}\n\ntype RealtimeResponseConnected = {\n channels: string[];\n user?: object;\n}\n\ntype RealtimeResponseAuthenticated = {\n to: string;\n success: boolean;\n user: object;\n}\n\ntype RealtimeRequestAuthenticate = {\n session: string;\n}\n\ntype Realtime = {\n socket?: WebSocket;\n timeout?: number;\n url?: string;\n lastMessage?: RealtimeResponse;\n channels: Set<string>;\n subscriptions: Map<number, {\n channels: string[];\n callback: (payload: RealtimeResponseEvent<any>) => void\n }>;\n subscriptionsCounter: number;\n reconnect: boolean;\n reconnectAttempts: number;\n getTimeout: () => number;\n connect: () => void;\n createSocket: () => void;\n cleanUp: (channels: string[]) => void;\n onMessage: (event: MessageEvent) => void;\n}\n\nexport type UploadProgress = {\n $id: string;\n progress: number;\n sizeUploaded: number;\n chunksTotal: number;\n chunksUploaded: number;\n}\n\nclass AppwriteException extends Error {\n code: number;\n response: string;\n type: string;\n constructor(message: string, code: number = 0, type: string = '', response: string = '') {\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\nclass Client {\n config = {\n endpoint: 'https://HOSTNAME/v1',\n endpointRealtime: '',\n project: '',\n jwt: '',\n locale: '',\n platform: '',\n };\n headers: Headers = {\n 'x-sdk-name': 'Web',\n 'x-sdk-platform': 'client',\n 'x-sdk-language': 'web',\n 'x-sdk-version': '13.0.2',\n 'X-Appwrite-Response-Format': '1.4.0',\n };\n\n /**\n * Set Endpoint\n *\n * Your project endpoint\n *\n * @param {string} endpoint\n *\n * @returns {this}\n */\n setEndpoint(endpoint: string): this {\n this.config.endpoint = endpoint;\n this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');\n\n return this;\n }\n\n /**\n * Set Realtime Endpoint\n *\n * @param {string} endpointRealtime\n *\n * @returns {this}\n */\n setEndpointRealtime(endpointRealtime: string): this {\n this.config.endpointRealtime = endpointRealtime;\n\n return this;\n }\n\n /**\n * Set platform\n * \n * Set platform. Will be used as origin for all requests.\n * \n * @param {string} platform\n * @returns {this}\n */\n setPlatform(platform: string): this {\n this.config.platform = platform;\n\n return this;\n }\n\n /**\n * Set Project\n *\n * Your project ID\n *\n * @param value string\n *\n * @return {this}\n */\n setProject(value: string): this {\n this.headers['X-Appwrite-Project'] = value;\n this.config.project = value;\n return this;\n }\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: string): this {\n this.headers['X-Appwrite-JWT'] = value;\n this.config.jwt = value;\n return this;\n }\n\n /**\n * Set Locale\n *\n * @param value string\n *\n * @return {this}\n */\n setLocale(value: string): this {\n this.headers['X-Appwrite-Locale'] = value;\n this.config.locale = value;\n return this;\n }\n\n\n private realtime: 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?.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 10_000;\n default:\n return 60_000;\n }\n },\n createSocket: () => {\n if (this.realtime.channels.size < 1) return;\n\n const channels = new URLSearchParams();\n channels.set('project', this.config.project);\n this.realtime.channels.forEach(channel => {\n channels.append('channels[]', channel);\n });\n\n const url = this.config.endpointRealtime + '/realtime?' + channels.toString();\n\n if (\n url !== this.realtime.url || // Check if URL is present\n !this.realtime.socket || // Check if WebSocket has not been created\n this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)\n ) {\n if (\n this.realtime.socket &&\n this.realtime.socket?.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\n this.realtime.url = url;\n // @ts-ignore\n this.realtime.socket = new WebSocket(url, undefined, {\n headers: {\n Origin: `appwrite-${Platform.OS}://${this.config.platform}`\n }\n });\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 if (\n !this.realtime.reconnect ||\n (\n this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error\n (<RealtimeResponseError>this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008\n )\n ) {\n this.realtime.reconnect = true;\n return;\n }\n\n const timeout = this.realtime.getTimeout();\n console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);\n\n setTimeout(() => {\n this.realtime.reconnectAttempts++;\n this.realtime.createSocket();\n }, timeout);\n })\n }\n },\n onMessage: async (event) => {\n try {\n const message: RealtimeResponse = JSON.parse(event.data);\n this.realtime.lastMessage = message;\n switch (message.type) {\n case 'event':\n let data = <RealtimeResponseEvent<unknown>>message.data;\n if (data?.channels) {\n const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));\n if (!isSubscribed) 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 } 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\n if (!found) {\n this.realtime.channels.delete(channel);\n }\n }\n })\n }\n }\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<T extends unknown>(channels: string | string[], callback: (payload: RealtimeResponseEvent<T>) => void): () => void {\n let channelArray = typeof channels === 'string' ? [channels] : channels;\n channelArray.forEach(channel => this.realtime.channels.add(channel));\n\n const counter = this.realtime.subscriptionsCounter++;\n this.realtime.subscriptions.set(counter, {\n channels: channelArray,\n callback\n });\n\n this.realtime.connect();\n\n return () => {\n this.realtime.subscriptions.delete(counter);\n this.realtime.cleanUp(channelArray);\n this.realtime.connect();\n }\n }\n\n async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise<any> {\n method = method.toUpperCase();\n\n headers = Object.assign({}, this.headers, headers);\n headers.Origin = `appwrite-${Platform.OS}://${this.config.platform}`;\n let options: RequestInit = {\n method,\n headers,\n credentials: 'include'\n };\n\n if (method === 'GET') {\n for (const [key, value] of Object.entries(Service.flatten(params))) {\n url.searchParams.append(key, value);\n }\n } else {\n switch (headers['content-type']) {\n case 'application/json':\n options.body = JSON.stringify(params);\n break;\n\n case 'multipart/form-data':\n let formData = new FormData();\n\n for (const key in params) {\n if (Array.isArray(params[key])) {\n params[key].forEach((value: any) => {\n formData.append(key + '[]', value);\n })\n } else {\n formData.append(key, params[key]);\n }\n }\n\n options.body = formData;\n delete headers['content-type'];\n break;\n }\n }\n\n try {\n let data = null;\n const response = await fetch(url.toString(), options);\n\n if (response.headers.get('content-type')?.includes('application/json')) {\n data = await response.json();\n } else {\n data = {\n message: await response.text()\n };\n }\n\n if (400 <= response.status) {\n throw new AppwriteException(data?.message, response.status, data?.type, data);\n }\n\n return data;\n } catch (e) {\n if (e instanceof AppwriteException) {\n throw e;\n }\n throw new AppwriteException((<Error>e).message);\n }\n }\n}\n\nexport { Client, AppwriteException };\nexport { Query } from './query';\nexport type { Models, Payload };\nexport type { QueryTypes, QueryTypesList } from './query';\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Account extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\n\n /**\n * Get account\n *\n * Get the currently logged in user.\n *\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async get<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>> {\n const apiPath = '/account';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async create<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>> {\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/email';\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listIdentities(queries?: string): Promise<Models.IdentityList> {\n const apiPath = '/account/identities';\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteIdentity(identityId: string): Promise<{}> {\n if (typeof identityId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"identityId\"');\n }\n\n const apiPath = '/account/identities/{identityId}'.replace('{identityId}', identityId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createJWT(): Promise<Models.Jwt> {\n const apiPath = '/account/jwt';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listLogs(queries?: string[]): Promise<Models.LogList> {\n const apiPath = '/account/logs';\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateName<Preferences extends Models.Preferences>(name: string): Promise<Models.User<Preferences>> {\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/account/name';\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePassword<Preferences extends Models.Preferences>(password: string, oldPassword?: string): Promise<Models.User<Preferences>> {\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/password';\n const payload: Payload = {};\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n if (typeof oldPassword !== 'undefined') {\n payload['oldPassword'] = oldPassword;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePhone<Preferences extends Models.Preferences>(phone: string, password: string): Promise<Models.User<Preferences>> {\n if (typeof phone === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"phone\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/phone';\n const payload: Payload = {};\n\n if (typeof phone !== 'undefined') {\n payload['phone'] = phone;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getPrefs<Preferences extends Models.Preferences>(): Promise<Preferences> {\n const apiPath = '/account/prefs';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePrefs<Preferences extends Models.Preferences>(prefs: Partial<Preferences>): Promise<Models.User<Preferences>> {\n if (typeof prefs === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"prefs\"');\n }\n\n const apiPath = '/account/prefs';\n const payload: Payload = {};\n\n if (typeof prefs !== 'undefined') {\n payload['prefs'] = prefs;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createRecovery(email: string, url: string): Promise<Models.Token> {\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/account/recovery';\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n if (typeof passwordAgain === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"passwordAgain\"');\n }\n\n const apiPath = '/account/recovery';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n if (typeof passwordAgain !== 'undefined') {\n payload['passwordAgain'] = passwordAgain;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listSessions(): Promise<Models.SessionList> {\n const apiPath = '/account/sessions';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteSessions(): Promise<{}> {\n const apiPath = '/account/sessions';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('delete', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create anonymous session\n *\n * Use this endpoint to allow a new user to register an anonymous account in\n * your project. This route will also create a new session for the user. To\n * allow the new user to convert an anonymous account to a normal account, you\n * need to update its [email and\n * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail)\n * or create an [OAuth2\n * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).\n *\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createAnonymousSession(): Promise<Models.Session> {\n const apiPath = '/account/sessions/anonymous';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create email session\n *\n * Allow the user to login into their account by providing a valid email and\n * password combination. This route will create a new session for the user.\n * \n * A user is limited to 10 active sessions at a time by default. [Learn more\n * about session\n * limits](https://appwrite.io/docs/authentication-security#limits).\n *\n * @param {string} email\n * @param {string} password\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createEmailSession(email: string, password: string): Promise<Models.Session> {\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n if (typeof password === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"password\"');\n }\n\n const apiPath = '/account/sessions/email';\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof password !== 'undefined') {\n payload['password'] = password;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create magic URL session\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 async createMagicURLSession(userId: string, email: string, url?: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof email === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"email\"');\n }\n\n const apiPath = '/account/sessions/magic-url';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create magic URL session (confirmation)\n *\n * Use this endpoint to complete creating the session with the Magic URL. Both\n * the **userId** and **secret** arguments will be passed as query parameters\n * to the redirect URL you have provided when sending your request to the\n * [POST\n * /account/sessions/magic-url](https://appwrite.io/docs/references/cloud/client-web/account#createMagicURLSession)\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 * @throws {AppwriteException}\n * @returns {Promise}\n */\n async updateMagicURLSession(userId: string, secret: string): Promise<Models.Session> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/sessions/magic-url';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 {string} provider\n * @param {string} success\n * @param {string} failure\n * @param {string[]} scopes\n * @throws {AppwriteException}\n * @returns {void|string}\n */\n createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL {\n throw new AppwriteException('Not yet supported');\n }\n\n /**\n * Create phone session\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 async createPhoneSession(userId: string, phone: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof phone === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"phone\"');\n }\n\n const apiPath = '/account/sessions/phone';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof phone !== 'undefined') {\n payload['phone'] = phone;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n\n /**\n * Create phone session (confirmation)\n *\n * Use this endpoint to complete creating a session with SMS. Use the\n * **userId** from the\n * [createPhoneSession](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneSession)\n * endpoint and the **secret** received via SMS to successfully update and\n * confirm the phone session.\n *\n * @param {string} userId\n * @param {string} secret\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async updatePhoneSession(userId: string, secret: string): Promise<Models.Session> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/sessions/phone';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('put', 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 async getSession(sessionId: string): Promise<Models.Session> {\n if (typeof sessionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\n }\n\n const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateSession(sessionId: string): Promise<Models.Session> {\n if (typeof sessionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\n }\n\n const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteSession(sessionId: string): Promise<{}> {\n if (typeof sessionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\n }\n\n const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateStatus<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>> {\n const apiPath = '/account/status';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('patch', 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 async createVerification(url: string): Promise<Models.Token> {\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/account/verification';\n const payload: Payload = {};\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateVerification(userId: string, secret: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/verification';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createPhoneVerification(): Promise<Models.Token> {\n const apiPath = '/account/verification/phone';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePhoneVerification(userId: string, secret: string): Promise<Models.Token> {\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/account/verification/phone';\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('put', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Avatars extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 {string} code\n * @param {number} width\n * @param {number} height\n * @param {number} quality\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getBrowser(code: string, width?: number, height?: number, quality?: number): URL {\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n\n const apiPath = '/avatars/browsers/{code}'.replace('{code}', code);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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 {string} code\n * @param {number} width\n * @param {number} height\n * @param {number} quality\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getCreditCard(code: string, width?: number, height?: number, quality?: number): URL {\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n\n const apiPath = '/avatars/credit-cards/{code}'.replace('{code}', code);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string): URL {\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/avatars/favicon';\n const payload: Payload = {};\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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 {string} code\n * @param {number} width\n * @param {number} height\n * @param {number} quality\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getFlag(code: string, width?: number, height?: number, quality?: number): URL {\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n\n const apiPath = '/avatars/flags/{code}'.replace('{code}', code);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string, width?: number, height?: number): URL {\n if (typeof url === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"url\"');\n }\n\n const apiPath = '/avatars/image';\n const payload: Payload = {};\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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?: string, width?: number, height?: number, background?: string): URL {\n const apiPath = '/avatars/initials';\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof background !== 'undefined') {\n payload['background'] = background;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string, size?: number, margin?: number, download?: boolean): URL {\n if (typeof text === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"text\"');\n }\n\n const apiPath = '/avatars/qr';\n const payload: Payload = {};\n\n if (typeof text !== 'undefined') {\n payload['text'] = text;\n }\n\n if (typeof size !== 'undefined') {\n payload['size'] = size;\n }\n\n if (typeof margin !== 'undefined') {\n payload['margin'] = margin;\n }\n\n if (typeof download !== 'undefined') {\n payload['download'] = download;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\n uri.searchParams.append(key, value);\n }\n return uri;\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Databases extends Service {\n\n constructor(client: Client)\n {\n super(client);\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 async listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n if (typeof data === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"data\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);\n const payload: Payload = {};\n\n if (typeof documentId !== 'undefined') {\n payload['documentId'] = documentId;\n }\n\n if (typeof data !== 'undefined') {\n payload['data'] = data;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: Partial<Omit<Document, keyof Models.Document>>, permissions?: string[]): Promise<Document> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n const payload: Payload = {};\n\n if (typeof data !== 'undefined') {\n payload['data'] = data;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {\n if (typeof databaseId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\n }\n\n if (typeof collectionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\n }\n\n if (typeof documentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('delete', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Functions extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 async listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 {string} method\n * @param {object} headers\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: string, headers?: object): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n\n if (typeof body !== 'undefined') {\n payload['body'] = body;\n }\n\n if (typeof async !== 'undefined') {\n payload['async'] = async;\n }\n\n if (typeof xpath !== 'undefined') {\n payload['path'] = xpath;\n }\n\n if (typeof method !== 'undefined') {\n payload['method'] = method;\n }\n\n if (typeof headers !== 'undefined') {\n payload['headers'] = headers;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getExecution(functionId: string, executionId: string): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('get', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Graphql extends Service {\n\n constructor(client: Client)\n {\n super(client);\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 async query(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n\n const apiPath = '/graphql';\n const payload: Payload = {};\n\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async mutation(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n\n const apiPath = '/graphql/mutation';\n const payload: Payload = {};\n\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('post', uri, {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Locale extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 async get(): Promise<Models.Locale> {\n const apiPath = '/locale';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCodes(): Promise<Models.LocaleCodeList> {\n const apiPath = '/locale/codes';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listContinents(): Promise<Models.ContinentList> {\n const apiPath = '/locale/continents';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCountries(): Promise<Models.CountryList> {\n const apiPath = '/locale/countries';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCountriesEU(): Promise<Models.CountryList> {\n const apiPath = '/locale/countries/eu';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCountriesPhones(): Promise<Models.PhoneList> {\n const apiPath = '/locale/countries/phones';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listCurrencies(): Promise<Models.CurrencyList> {\n const apiPath = '/locale/currencies';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listLanguages(): Promise<Models.LanguageList> {\n const apiPath = '/locale/languages';\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('get', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\nimport * as FileSystem from 'expo-file-system';\nimport { Platform } from 'react-native';\n\nexport class Storage extends Service {\n\n constructor(client: Client)\n {\n super(client);\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 async listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 {{name: string, type: string, size: number, uri: string}} file\n * @param {string[]} permissions\n * @throws {AppwriteException}\n * @returns {Promise}\n */\n async createFile(bucketId: string, fileId: string, file: {name: string, type: string, size: number, uri: string}, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise<Models.File> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n if (typeof file === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"file\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);\n const payload: Payload = {};\n\n if (typeof fileId !== 'undefined') {\n payload['fileId'] = fileId;\n }\n\n if (typeof file !== 'undefined') {\n payload['file'] = file;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const size = file.size;\n\n if (size <= Service.CHUNK_SIZE) {\n return await this.client.call('post', uri, {\n 'content-type': 'multipart/form-data',\n }, payload);\n }\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'multipart/form-data',\n }\n\n let offset = 0;\n let response = undefined;\n if(fileId != 'unique()') {\n try {\n response = await this.client.call('GET', new URL(this.client.config.endpoint + apiPath + '/' + fileId), apiHeaders);\n offset = response.chunksUploaded * Service.CHUNK_SIZE;\n } catch(e) {\n }\n }\n\n while (offset < size) {\n let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);\n\n apiHeaders['content-range'] = 'bytes ' + offset + '-' + end + '/' + size;\n if (response && response.$id) {\n apiHeaders['x-appwrite-id'] = response.$id;\n }\n\n let chunk = await FileSystem.readAsStringAsync(file.uri, {\n encoding: FileSystem.EncodingType.Base64,\n position: offset,\n length: Service.CHUNK_SIZE\n });\n var path = `data:${file.type};base64,${chunk}`;\n if (Platform.OS.toLowerCase() == 'android') {\n path = FileSystem.cacheDirectory + '/tmp_chunk';\n await FileSystem.writeAsStringAsync(path, chunk, {encoding: FileSystem.EncodingType.Base64});\n }\n payload['file'] = {uri: path, name: file.name, type: file.type};\n response = await this.client.call('post', uri, apiHeaders, payload);\n\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 async getFile(bucketId: string, fileId: string): Promise<Models.File> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n if (typeof permissions !== 'undefined') {\n payload['permissions'] = permissions;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteFile(bucketId: string, fileId: string): Promise<{}> {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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: string, fileId: string): URL {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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 {string} 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 {string} output\n * @throws {AppwriteException}\n * @returns {URL}\n */\n getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: string, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: string): URL {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n if (typeof width !== 'undefined') {\n payload['width'] = width;\n }\n\n if (typeof height !== 'undefined') {\n payload['height'] = height;\n }\n\n if (typeof gravity !== 'undefined') {\n payload['gravity'] = gravity;\n }\n\n if (typeof quality !== 'undefined') {\n payload['quality'] = quality;\n }\n\n if (typeof borderWidth !== 'undefined') {\n payload['borderWidth'] = borderWidth;\n }\n\n if (typeof borderColor !== 'undefined') {\n payload['borderColor'] = borderColor;\n }\n\n if (typeof borderRadius !== 'undefined') {\n payload['borderRadius'] = borderRadius;\n }\n\n if (typeof opacity !== 'undefined') {\n payload['opacity'] = opacity;\n }\n\n if (typeof rotation !== 'undefined') {\n payload['rotation'] = rotation;\n }\n\n if (typeof background !== 'undefined') {\n payload['background'] = background;\n }\n\n if (typeof output !== 'undefined') {\n payload['output'] = output;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\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 * 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: string, fileId: string): URL {\n if (typeof bucketId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\n }\n\n if (typeof fileId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"fileId\"');\n }\n\n const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n payload['project'] = this.client.config.project;\n\n\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\n uri.searchParams.append(key, value);\n }\n return uri;\n }\n};\n","import { Service } from '../service';\nimport { AppwriteException, Client } from '../client';\nimport type { Models } from '../models';\nimport type { UploadProgress, Payload } from '../client';\n\nexport class Teams extends Service {\n\n constructor(client: Client)\n {\n super(client);\n }\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 async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {\n const apiPath = '/teams';\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/teams';\n const payload: Payload = {};\n\n if (typeof teamId !== 'undefined') {\n payload['teamId'] = teamId;\n }\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n if (typeof roles !== 'undefined') {\n payload['roles'] = roles;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async delete(teamId: string): Promise<{}> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof roles === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"roles\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof email !== 'undefined') {\n payload['email'] = email;\n }\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof phone !== 'undefined') {\n payload['phone'] = phone;\n }\n\n if (typeof roles !== 'undefined') {\n payload['roles'] = roles;\n }\n\n if (typeof url !== 'undefined') {\n payload['url'] = url;\n }\n\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n if (typeof roles === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"roles\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n if (typeof roles !== 'undefined') {\n payload['roles'] = roles;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async deleteMembership(teamId: string, membershipId: string): Promise<{}> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof membershipId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\n }\n\n if (typeof userId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"userId\"');\n }\n\n if (typeof secret === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"secret\"');\n }\n\n const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);\n const payload: Payload = {};\n\n if (typeof userId !== 'undefined') {\n payload['userId'] = userId;\n }\n\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await 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 async updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences> {\n if (typeof teamId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"teamId\"');\n }\n\n if (typeof prefs === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"prefs\"');\n }\n\n const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);\n const payload: Payload = {};\n\n if (typeof prefs !== 'undefined') {\n payload['prefs'] = prefs;\n }\n\n const uri = new URL(this.client.config.endpoint + apiPath);\n return await this.client.call('put', uri, {\n 'content-type': 'application/json',\n }, payload);\n }\n};\n","export class Permission {\n\n static read = (role: string): string => {\n return `read(\"${role}\")`\n }\n\n static write = (role: string): string => {\n return `write(\"${role}\")`\n }\n\n static create = (role: string): string => {\n return `create(\"${role}\")`\n }\n\n static update = (role: string): string => {\n return `update(\"${role}\")`\n }\n\n static delete = (role: string): string => {\n return `delete(\"${role}\")`\n }\n}\n","/**\n * Helper class to generate role strings for `Permission`.\n */\nexport class Role {\n\n /**\n * Grants access to anyone.\n * \n * This includes authenticated and unauthenticated users.\n * \n * @returns {string}\n */\n public static any(): string {\n return 'any'\n }\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 public static user(id: string, status: string = ''): string {\n if (status === '') {\n return `user:${id}`\n }\n return `user:${id}/${status}`\n }\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 public static users(status: string = ''): string {\n if (status === '') {\n return 'users'\n }\n return `users/${status}`\n }\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 public static guests(): string {\n return 'guests'\n }\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 public static team(id: string, role: string = ''): string {\n if (role === '') {\n return `team:${id}`\n }\n return `team:${id}/${role}`\n }\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 public static member(id: string): string {\n return `member:${id}`\n }\n\n /**\n * Grants access to a user with the specified label.\n * \n * @param {string} name \n * @returns {string}\n */\n public static label(name: string): string {\n return `label:${name}`\n }\n}","export class ID {\n public static custom(id: string): string {\n return id\n }\n \n public static unique(): string {\n return 'unique()'\n }\n}"],"names":["Platform","FileSystem"],"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