From bfafad32a4d1646ba958c74e0317e5293c0734ae Mon Sep 17 00:00:00 2001 From: Pratham Date: Thu, 8 Aug 2024 23:31:37 +0530 Subject: [PATCH 1/3] save changes --- .gitignore | 1 + dist/cjs/sdk.js | 4071 ++++++++++++++ dist/cjs/sdk.js.map | 1 + dist/esm/sdk.js | 4051 ++++++++++++++ dist/esm/sdk.js.map | 1 + package-lock.json | 7166 ++++++++++++++++++++++++ package.json | 6 +- src/services/account.ts | 3447 +++++++----- src/services/avatars.ts | 714 +-- src/services/databases.ts | 495 +- src/services/functions.ts | 275 +- src/services/graphql.ts | 125 +- src/services/locale.ts | 375 +- src/services/messaging.ts | 154 +- src/services/storage.ts | 915 +-- src/services/teams.ts | 1077 ++-- types/client.d.ts | 133 + types/enums/authentication-factor.d.ts | 6 + types/enums/authenticator-type.d.ts | 3 + types/enums/browser.d.ts | 16 + types/enums/credit-card.d.ts | 18 + types/enums/execution-method.d.ts | 8 + types/enums/flag.d.ts | 197 + types/enums/image-format.d.ts | 7 + types/enums/image-gravity.d.ts | 11 + types/enums/o-auth-provider.d.ts | 41 + types/id.d.ts | 5 + types/index.d.ts | 25 + types/models.d.ts | 1195 ++++ types/permission.d.ts | 7 + types/query.d.ts | 34 + types/role.d.ts | 70 + types/service.d.ts | 8 + types/services/account.d.ts | 676 +++ types/services/avatars.d.ts | 149 + types/services/databases.d.ts | 77 + types/services/functions.d.ts | 49 + types/services/graphql.d.ts | 25 + types/services/locale.d.ts | 91 + types/services/messaging.d.ts | 29 + types/services/storage.d.ts | 147 + types/services/teams.d.ts | 197 + 42 files changed, 22648 insertions(+), 3450 deletions(-) create mode 100644 .gitignore create mode 100644 dist/cjs/sdk.js create mode 100644 dist/cjs/sdk.js.map create mode 100644 dist/esm/sdk.js create mode 100644 dist/esm/sdk.js.map create mode 100644 package-lock.json create mode 100644 types/client.d.ts create mode 100644 types/enums/authentication-factor.d.ts create mode 100644 types/enums/authenticator-type.d.ts create mode 100644 types/enums/browser.d.ts create mode 100644 types/enums/credit-card.d.ts create mode 100644 types/enums/execution-method.d.ts create mode 100644 types/enums/flag.d.ts create mode 100644 types/enums/image-format.d.ts create mode 100644 types/enums/image-gravity.d.ts create mode 100644 types/enums/o-auth-provider.d.ts create mode 100644 types/id.d.ts create mode 100644 types/index.d.ts create mode 100644 types/models.d.ts create mode 100644 types/permission.d.ts create mode 100644 types/query.d.ts create mode 100644 types/role.d.ts create mode 100644 types/service.d.ts create mode 100644 types/services/account.d.ts create mode 100644 types/services/avatars.d.ts create mode 100644 types/services/databases.d.ts create mode 100644 types/services/functions.d.ts create mode 100644 types/services/graphql.d.ts create mode 100644 types/services/locale.d.ts create mode 100644 types/services/messaging.d.ts create mode 100644 types/services/storage.d.ts create mode 100644 types/services/teams.d.ts diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/dist/cjs/sdk.js b/dist/cjs/sdk.js new file mode 100644 index 0000000..7776bc3 --- /dev/null +++ b/dist/cjs/sdk.js @@ -0,0 +1,4071 @@ +'use strict'; + +var reactNative = require('react-native'); +var fs = require('react-native-fs'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs); + +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ + +function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + 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"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} + +class Service { + constructor(client) { + this.client = client; + } + static flatten(data, prefix = '') { + let output = {}; + for (const [key, value] of Object.entries(data)) { + let finalKey = prefix ? prefix + '[' + key + ']' : key; + if (Array.isArray(value)) { + output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey)); + } + else { + output[finalKey] = value; + } + } + return output; + } +} +Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB + +class AppwriteException extends Error { + constructor(message, code = 0, type = '', response = '') { + super(message); + this.name = 'AppwriteException'; + this.message = message; + this.code = code; + this.type = type; + this.response = response; + } +} +class Client { + constructor() { + this.config = { + endpoint: 'https://cloud.appwrite.io/v1', + endpointRealtime: '', + project: '', + jwt: '', + locale: '', + session: '', + platform: '', + }; + this.headers = { + 'x-sdk-name': 'React Native', + 'x-sdk-platform': 'client', + 'x-sdk-language': 'reactnative', + 'x-sdk-version': '0.4.0', + 'X-Appwrite-Response-Format': '1.5.0', + }; + this.realtime = { + socket: undefined, + timeout: undefined, + url: '', + channels: new Set(), + subscriptions: new Map(), + subscriptionsCounter: 0, + reconnect: true, + reconnectAttempts: 0, + lastMessage: undefined, + connect: () => { + clearTimeout(this.realtime.timeout); + this.realtime.timeout = window === null || window === void 0 ? void 0 : window.setTimeout(() => { + this.realtime.createSocket(); + }, 50); + }, + getTimeout: () => { + switch (true) { + case this.realtime.reconnectAttempts < 5: + return 1000; + case this.realtime.reconnectAttempts < 15: + return 5000; + case this.realtime.reconnectAttempts < 100: + return 10000; + default: + return 60000; + } + }, + createSocket: () => { + var _a, _b, _c; + if (this.realtime.channels.size < 1) { + this.realtime.reconnect = false; + (_a = this.realtime.socket) === null || _a === void 0 ? void 0 : _a.close(); + return; + } + const channels = new URLSearchParams(); + channels.set('project', this.config.project); + this.realtime.channels.forEach(channel => { + channels.append('channels[]', channel); + }); + const url = this.config.endpointRealtime + '/realtime?' + channels.toString(); + if (url !== this.realtime.url || // Check if URL is present + !this.realtime.socket || // Check if WebSocket has not been created + ((_b = this.realtime.socket) === null || _b === void 0 ? void 0 : _b.readyState) > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4) + ) { + if (this.realtime.socket && + ((_c = this.realtime.socket) === null || _c === void 0 ? void 0 : _c.readyState) < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1) + ) { + this.realtime.reconnect = false; + this.realtime.socket.close(); + } + this.realtime.url = url; + // @ts-ignore + this.realtime.socket = new WebSocket(url, undefined, { + headers: { + Origin: `appwrite-${reactNative.Platform.OS}://${this.config.platform}` + } + }); + this.realtime.socket.addEventListener('message', this.realtime.onMessage); + this.realtime.socket.addEventListener('open', _event => { + this.realtime.reconnectAttempts = 0; + }); + this.realtime.socket.addEventListener('close', event => { + var _a, _b, _c; + if (!this.realtime.reconnect || + (((_b = (_a = this.realtime) === null || _a === void 0 ? void 0 : _a.lastMessage) === null || _b === void 0 ? void 0 : _b.type) === 'error' && // Check if last message was of type error + ((_c = this.realtime) === null || _c === void 0 ? void 0 : _c.lastMessage.data).code === 1008 // Check for policy violation 1008 + )) { + this.realtime.reconnect = true; + return; + } + const timeout = this.realtime.getTimeout(); + console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason); + setTimeout(() => { + this.realtime.reconnectAttempts++; + this.realtime.createSocket(); + }, timeout); + }); + } + }, + onMessage: (event) => { + try { + const message = JSON.parse(event.data); + this.realtime.lastMessage = message; + switch (message.type) { + case 'event': + let data = message.data; + if (data === null || data === void 0 ? void 0 : data.channels) { + const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel)); + if (!isSubscribed) + return; + this.realtime.subscriptions.forEach(subscription => { + if (data.channels.some(channel => subscription.channels.includes(channel))) { + setTimeout(() => subscription.callback(data)); + } + }); + } + break; + case 'error': + throw message.data; + default: + break; + } + } + catch (e) { + console.error(e); + } + }, + cleanUp: channels => { + this.realtime.channels.forEach(channel => { + if (channels.includes(channel)) { + let found = Array.from(this.realtime.subscriptions).some(([_key, subscription]) => { + return subscription.channels.includes(channel); + }); + if (!found) { + this.realtime.channels.delete(channel); + } + } + }); + } + }; + } + /** + * Set Endpoint + * + * Your project endpoint + * + * @param {string} endpoint + * + * @returns {this} + */ + setEndpoint(endpoint) { + this.config.endpoint = endpoint; + this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://'); + return this; + } + /** + * Set Realtime Endpoint + * + * @param {string} endpointRealtime + * + * @returns {this} + */ + setEndpointRealtime(endpointRealtime) { + this.config.endpointRealtime = endpointRealtime; + return this; + } + /** + * Set platform + * + * Set platform. Will be used as origin for all requests. + * + * @param {string} platform + * @returns {this} + */ + setPlatform(platform) { + this.config.platform = platform; + return this; + } + /** + * Set Project + * + * Your project ID + * + * @param value string + * + * @return {this} + */ + setProject(value) { + this.headers['X-Appwrite-Project'] = value; + this.config.project = value; + return this; + } + /** + * Set JWT + * + * Your secret JSON Web Token + * + * @param value string + * + * @return {this} + */ + setJWT(value) { + this.headers['X-Appwrite-JWT'] = value; + this.config.jwt = value; + return this; + } + /** + * Set Locale + * + * @param value string + * + * @return {this} + */ + setLocale(value) { + this.headers['X-Appwrite-Locale'] = value; + this.config.locale = value; + return this; + } + /** + * Set Session + * + * The user session to authenticate with + * + * @param value string + * + * @return {this} + */ + setSession(value) { + this.headers['X-Appwrite-Session'] = value; + this.config.session = value; + return this; + } + /** + * Subscribes to Appwrite events and passes you the payload in realtime. + * + * @param {string|string[]} channels + * Channel to subscribe - pass a single channel as a string or multiple with an array of strings. + * + * Possible channels are: + * - account + * - collections + * - collections.[ID] + * - collections.[ID].documents + * - documents + * - documents.[ID] + * - files + * - files.[ID] + * - executions + * - executions.[ID] + * - functions.[ID] + * - teams + * - teams.[ID] + * - memberships + * - memberships.[ID] + * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update. + * @returns {() => void} Unsubscribes from events. + */ + subscribe(channels, callback) { + let channelArray = typeof channels === 'string' ? [channels] : channels; + channelArray.forEach(channel => this.realtime.channels.add(channel)); + const counter = this.realtime.subscriptionsCounter++; + this.realtime.subscriptions.set(counter, { + channels: channelArray, + callback + }); + this.realtime.connect(); + return () => { + this.realtime.subscriptions.delete(counter); + this.realtime.cleanUp(channelArray); + this.realtime.connect(); + }; + } + call(method, url, headers = {}, params = {}) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + method = method.toUpperCase(); + headers = Object.assign({}, this.headers, headers); + headers.Origin = `appwrite-${reactNative.Platform.OS}://${this.config.platform}`; + let options = { + method, + headers, + credentials: 'include' + }; + if (method === 'GET') { + for (const [key, value] of Object.entries(Service.flatten(params))) { + url.searchParams.append(key, value); + } + } + else { + switch (headers['content-type']) { + case 'application/json': + options.body = JSON.stringify(params); + break; + case 'multipart/form-data': + let formData = new FormData(); + for (const key in params) { + if (Array.isArray(params[key])) { + params[key].forEach((value) => { + formData.append(key + '[]', value); + }); + } + else { + formData.append(key, params[key]); + } + } + options.body = formData; + delete headers['content-type']; + break; + } + } + try { + let data = null; + const response = yield fetch(url.toString(), options); + if ((_a = response.headers.get('content-type')) === null || _a === void 0 ? void 0 : _a.includes('application/json')) { + data = yield response.json(); + } + else { + data = { + message: yield response.text() + }; + } + if (400 <= response.status) { + throw new AppwriteException(data === null || data === void 0 ? void 0 : data.message, response.status, data === null || data === void 0 ? void 0 : data.type, data); + } + const cookieFallback = response.headers.get('X-Fallback-Cookies'); + if (typeof window !== 'undefined' && window.localStorage && cookieFallback) { + window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.'); + window.localStorage.setItem('cookieFallback', cookieFallback); + } + return data; + } + catch (e) { + if (e instanceof AppwriteException) { + throw e; + } + throw new AppwriteException(e.message); + } + }); + } +} + +class Account extends Service { + constructor(client) { + super(client); + } + /** + * Get account + * + * Get the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + get() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create account + * + * Use this endpoint to allow a new user to register a new account in your + * project. After the user registration completes successfully, you can use + * the + * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) + * route to start verifying the user email address. To allow the new user to + * login to their new account, you need to create a new [account + * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession). + * + * @param {string} userId + * @param {string} email + * @param {string} password + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + create(userId, email, password, name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update email + * + * Update currently logged in user account email address. After changing user + * address, the user confirmation status will get reset. A new confirmation + * email is not sent automatically however you can use the send confirmation + * email endpoint again to send the confirmation email. For security measures, + * user password is required to complete this request. + * This endpoint can also be used to convert an anonymous account to a normal + * one, by passing an email address and a new password. + * + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updateEmail(email, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/email"; + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List Identities + * + * Get the list of identities for the currently logged in user. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listIdentities(queries) { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/identities"; + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete identity + * + * Delete an identity by its unique ID. + * + * @param {string} identityId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteIdentity(identityId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof identityId === "undefined") { + throw new AppwriteException('Missing required parameter: "identityId"'); + } + const apiPath = "/account/identities/{identityId}".replace("{identityId}", identityId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create JWT + * + * Use this endpoint to create a JSON Web Token. You can use the resulting JWT + * to authenticate on behalf of the current user when working with the + * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes + * from its creation and will be invalid if the user will logout in that time + * frame. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createJWT() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/jwt"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List logs + * + * Get the list of latest security activity logs for the currently logged in + * user. Each log returns user IP address, location and date and time of log. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listLogs(queries) { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/logs"; + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update MFA + * + * Enable or disable MFA on an account. + * + * @param {boolean} mfa + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMFA(mfa) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof mfa === "undefined") { + throw new AppwriteException('Missing required parameter: "mfa"'); + } + const apiPath = "/account/mfa"; + const payload = {}; + if (typeof mfa !== "undefined") { + payload["mfa"] = mfa; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Add Authenticator + * + * Add an authenticator app to be used as an MFA factor. Verify the + * authenticator using the [verify + * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) + * method. + * + * @param {AuthenticatorType} type + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaAuthenticator(type) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + const apiPath = "/account/mfa/authenticators/{type}".replace("{type}", type); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Verify Authenticator + * + * Verify an authenticator app after adding it using the [add + * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) + * method. add + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaAuthenticator(type, otp) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + const apiPath = "/account/mfa/authenticators/{type}".replace("{type}", type); + const payload = {}; + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete Authenticator + * + * Delete an authenticator for a user by ID. + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteMfaAuthenticator(type, otp) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + const apiPath = "/account/mfa/authenticators/{type}".replace("{type}", type); + const payload = {}; + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create 2FA Challenge + * + * Begin the process of MFA verification after sign-in. Finish the flow with + * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) + * method. + * + * @param {AuthenticationFactor} factor + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaChallenge(factor) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof factor === "undefined") { + throw new AppwriteException('Missing required parameter: "factor"'); + } + const apiPath = "/account/mfa/challenge"; + const payload = {}; + if (typeof factor !== "undefined") { + payload["factor"] = factor; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create MFA Challenge (confirmation) + * + * Complete the MFA challenge by providing the one-time password. Finish the + * process of MFA verification by providing the one-time password. To begin + * the flow, use + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @param {string} challengeId + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaChallenge(challengeId, otp) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof challengeId === "undefined") { + throw new AppwriteException('Missing required parameter: "challengeId"'); + } + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + const apiPath = "/account/mfa/challenge"; + const payload = {}; + if (typeof challengeId !== "undefined") { + payload["challengeId"] = challengeId; + } + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List Factors + * + * List the factors available on the account to be used as a MFA challange. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listMfaFactors() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/factors"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get MFA Recovery Codes + * + * Get recovery codes that can be used as backup for MFA flow. Before getting + * codes, they must be generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to read recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + getMfaRecoveryCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/recovery-codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create MFA Recovery Codes + * + * Generate recovery codes as backup for MFA flow. It's recommended to + * generate and show then immediately after user successfully adds their + * authehticator. Recovery codes can be used as a MFA verification type in + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaRecoveryCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/recovery-codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Regenerate MFA Recovery Codes + * + * Regenerate recovery codes that can be used as backup for MFA flow. Before + * regenerating codes, they must be first generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to regenreate recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaRecoveryCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/recovery-codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update name + * + * Update currently logged in user account name. + * + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + updateName(name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + const apiPath = "/account/name"; + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update password + * + * Update currently logged in user password. For validation, user is required + * to pass in the new password, and the old password. For users created with + * OAuth, Team Invites and Magic URL, oldPassword is optional. + * + * @param {string} password + * @param {string} oldPassword + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePassword(password, oldPassword) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/password"; + const payload = {}; + if (typeof password !== "undefined") { + payload["password"] = password; + } + if (typeof oldPassword !== "undefined") { + payload["oldPassword"] = oldPassword; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update phone + * + * Update the currently logged in user's phone number. After updating the + * phone number, the phone verification status will be reset. A confirmation + * SMS is not sent automatically, however you can use the [POST + * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) + * endpoint to send a confirmation SMS. + * + * @param {string} phone + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhone(phone, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof phone === "undefined") { + throw new AppwriteException('Missing required parameter: "phone"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/phone"; + const payload = {}; + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get account preferences + * + * Get the preferences as a key-value object for the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + getPrefs() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/prefs"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update preferences + * + * Update currently logged in user account preferences. The object you pass is + * stored as is, and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws error if exceeded. + * + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePrefs(prefs) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof prefs === "undefined") { + throw new AppwriteException('Missing required parameter: "prefs"'); + } + const apiPath = "/account/prefs"; + const payload = {}; + if (typeof prefs !== "undefined") { + payload["prefs"] = prefs; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create password recovery + * + * Sends the user an email with a temporary secret key for password reset. + * When the user clicks the confirmation link he is redirected back to your + * app password reset URL with the secret key and email address values + * attached to the URL query string. Use the query string params to submit a + * request to the [PUT + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) + * endpoint to complete the process. The verification link sent to the user's + * email address is valid for 1 hour. + * + * @param {string} email + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + createRecovery(email, url) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/account/recovery"; + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof url !== "undefined") { + payload["url"] = url; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create password recovery (confirmation) + * + * Use this endpoint to complete the user account password reset. Both the + * **userId** and **secret** arguments will be passed as query parameters to + * the redirect URL you have provided when sending your request to the [POST + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) + * endpoint. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * @param {string} userId + * @param {string} secret + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updateRecovery(userId, secret, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/recovery"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List sessions + * + * Get the list of active sessions across different devices for the currently + * logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listSessions() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/sessions"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete sessions + * + * Delete all sessions from the user account and remove any sessions cookies + * from the end client. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSessions() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/sessions"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create anonymous session + * + * Use this endpoint to allow a new user to register an anonymous account in + * your project. This route will also create a new session for the user. To + * allow the new user to convert an anonymous account to a normal account, you + * need to update its [email and + * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) + * or create an [OAuth2 + * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createAnonymousSession() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/sessions/anonymous"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email password session + * + * Allow the user to login into their account by providing a valid email and + * password combination. This route will create a new session for the user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + createEmailPasswordSession(email, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/sessions/email"; + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update magic URL session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMagicURLSession(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/sessions/magic-url"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create OAuth2 session + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If there is already an active session, the new session will be attached to + * the logged-in account. If there are no active sessions, the server will + * attempt to look for a user with the same email address as the email + * received from the OAuth2 provider and attach the new session to the + * existing user. If no matching user is found - the server will create a new + * user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Session(provider, success, failure, scopes) { + if (typeof provider === "undefined") { + throw new AppwriteException('Missing required parameter: "provider"'); + } + const apiPath = "/account/sessions/oauth2/{provider}".replace("{provider}", provider); + const payload = {}; + if (typeof success !== "undefined") { + payload["success"] = success; + } + if (typeof failure !== "undefined") { + payload["failure"] = failure; + } + if (typeof scopes !== "undefined") { + payload["scopes"] = scopes; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Update phone session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhoneSession(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/sessions/phone"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + createSession(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/sessions/token"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get session + * + * Use this endpoint to get a logged in user's session using a Session ID. + * Inputting 'current' will return the current session being used. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + getSession(sessionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + const apiPath = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update session + * + * Use this endpoint to extend a session's length. Extending a session is + * useful when session expiry is short. If the session was created using an + * OAuth provider, this endpoint refreshes the access token from the provider. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + updateSession(sessionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + const apiPath = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete session + * + * Logout the user. Use 'current' as the session ID to logout on this device, + * use a session ID to logout on another device. If you're looking to logout + * the user on all devices, use [Delete + * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) + * instead. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSession(sessionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + const apiPath = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update status + * + * Block the currently logged in user account. Behind the scene, the user + * record is not deleted but permanently blocked from any access. To + * completely delete a user, use the Users API instead. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + updateStatus() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/status"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create push target + * + * + * @param {string} targetId + * @param {string} identifier + * @param {string} providerId + * @throws {AppwriteException} + * @returns {Promise} + */ + createPushTarget(targetId, identifier, providerId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + if (typeof identifier === "undefined") { + throw new AppwriteException('Missing required parameter: "identifier"'); + } + const apiPath = "/account/targets/push"; + const payload = {}; + if (typeof targetId !== "undefined") { + payload["targetId"] = targetId; + } + if (typeof identifier !== "undefined") { + payload["identifier"] = identifier; + } + if (typeof providerId !== "undefined") { + payload["providerId"] = providerId; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update push target + * + * + * @param {string} targetId + * @param {string} identifier + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePushTarget(targetId, identifier) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + if (typeof identifier === "undefined") { + throw new AppwriteException('Missing required parameter: "identifier"'); + } + const apiPath = "/account/targets/{targetId}/push".replace("{targetId}", targetId); + const payload = {}; + if (typeof identifier !== "undefined") { + payload["identifier"] = identifier; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete push target + * + * + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + deletePushTarget(targetId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + const apiPath = "/account/targets/{targetId}/push".replace("{targetId}", targetId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email token (OTP) + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's email + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} email + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + createEmailToken(userId, email, phrase) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + const apiPath = "/account/tokens/email"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof phrase !== "undefined") { + payload["phrase"] = phrase; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create magic URL token + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not been registered, a new user will be created. When + * the user clicks the link in the email, the user is redirected back to the + * URL you provided with the secret key and userId values attached to the URL + * query string. Use the query string parameters to submit a request to the + * [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The link sent to the user's email + * address is valid for 1 hour. If you are on a mobile device you can leave + * the URL parameter empty, so that the login completion will be handled by + * your Appwrite instance by default. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {string} userId + * @param {string} email + * @param {string} url + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + createMagicURLToken(userId, email, url, phrase) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + const apiPath = "/account/tokens/magic-url"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof url !== "undefined") { + payload["url"] = url; + } + if (typeof phrase !== "undefined") { + payload["phrase"] = phrase; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create OAuth2 token + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If authentication succeeds, `userId` and `secret` of a token will be + * appended to the success URL as query parameters. These can be used to + * create a new session using the [Create + * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Token(provider, success, failure, scopes) { + if (typeof provider === "undefined") { + throw new AppwriteException('Missing required parameter: "provider"'); + } + const apiPath = "/account/tokens/oauth2/{provider}".replace("{provider}", provider); + const payload = {}; + if (typeof success !== "undefined") { + payload["success"] = success; + } + if (typeof failure !== "undefined") { + payload["failure"] = failure; + } + if (typeof scopes !== "undefined") { + payload["scopes"] = scopes; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Create phone token + * + * Sends the user an SMS with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's phone + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} phone + * @throws {AppwriteException} + * @returns {Promise} + */ + createPhoneToken(userId, phone) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof phone === "undefined") { + throw new AppwriteException('Missing required parameter: "phone"'); + } + const apiPath = "/account/tokens/phone"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email verification + * + * Use this endpoint to send a verification message to your user email address + * to confirm they are the valid owners of that address. Both the **userId** + * and **secret** arguments will be passed as query parameters to the URL you + * have provided to be attached to the verification email. The provided URL + * should redirect the user back to your app and allow you to complete the + * verification process by verifying both the **userId** and **secret** + * parameters. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). + * The verification link sent to the user's email address is valid for 7 days. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + createVerification(url) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/account/verification"; + const payload = {}; + if (typeof url !== "undefined") { + payload["url"] = url; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email verification (confirmation) + * + * Use this endpoint to complete the user email verification process. Use both + * the **userId** and **secret** parameters that were attached to your app URL + * to verify the user email ownership. If confirmed this route will return a + * 200 status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateVerification(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/verification"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create phone verification + * + * Use this endpoint to send a verification SMS to the currently logged in + * user. This endpoint is meant for use after updating a user's phone number + * using the + * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) + * endpoint. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). + * The verification code sent to the user's phone number is valid for 15 + * minutes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createPhoneVerification() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/verification/phone"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create phone verification (confirmation) + * + * Use this endpoint to complete the user phone verification process. Use the + * **userId** and **secret** that were sent to your user's phone number to + * verify the user email ownership. If confirmed this route will return a 200 + * status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhoneVerification(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/verification/phone"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Avatars extends Service { + constructor(client) { + super(client); + } + /** + * Get browser icon + * + * You can use this endpoint to show different browser icons to your users. + * The code argument receives the browser code as it appears in your user [GET + * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) + * endpoint. Use width, height and quality arguments to change the output + * settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * @param {Browser} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getBrowser(code, width, height, quality) { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + const apiPath = "/avatars/browsers/{code}".replace("{code}", code); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get credit card icon + * + * The credit card endpoint will return you the icon of the credit card + * provider you need. Use width, height and quality arguments to change the + * output settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {CreditCard} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getCreditCard(code, width, height, quality) { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + const apiPath = "/avatars/credit-cards/{code}".replace("{code}", code); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get favicon + * + * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote + * website URL. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {URL} + */ + getFavicon(url) { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/avatars/favicon"; + const payload = {}; + if (typeof url !== "undefined") { + payload["url"] = url; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get country flag + * + * You can use this endpoint to show different country flags icons to your + * users. The code argument receives the 2 letter country code. Use width, + * height and quality arguments to change the output settings. Country codes + * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {Flag} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getFlag(code, width, height, quality) { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + const apiPath = "/avatars/flags/{code}".replace("{code}", code); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get image from URL + * + * Use this endpoint to fetch a remote image URL and crop it to any image size + * you want. This endpoint is very useful if you need to crop and display + * remote images in your app or in case you want to make sure a 3rd party + * image is properly served using a TLS protocol. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 400x400px. + * + * + * @param {string} url + * @param {number} width + * @param {number} height + * @throws {AppwriteException} + * @returns {URL} + */ + getImage(url, width, height) { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/avatars/image"; + const payload = {}; + if (typeof url !== "undefined") { + payload["url"] = url; + } + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get user initials + * + * Use this endpoint to show your user initials avatar icon on your website or + * app. By default, this route will try to print your logged-in user name or + * email initials. You can also overwrite the user name if you pass the 'name' + * parameter. If no name is given and no user is logged, an empty avatar will + * be returned. + * + * You can use the color and background params to change the avatar colors. By + * default, a random theme will be selected. The random theme will persist for + * the user's initials when reloading the same theme will always return for + * the same initials. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {string} name + * @param {number} width + * @param {number} height + * @param {string} background + * @throws {AppwriteException} + * @returns {URL} + */ + getInitials(name, width, height, background) { + const apiPath = "/avatars/initials"; + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof background !== "undefined") { + payload["background"] = background; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get QR code + * + * Converts a given plain text to a QR code image. You can use the query + * parameters to change the size and style of the resulting image. + * + * + * @param {string} text + * @param {number} size + * @param {number} margin + * @param {boolean} download + * @throws {AppwriteException} + * @returns {URL} + */ + getQR(text, size, margin, download) { + if (typeof text === "undefined") { + throw new AppwriteException('Missing required parameter: "text"'); + } + const apiPath = "/avatars/qr"; + const payload = {}; + if (typeof text !== "undefined") { + payload["text"] = text; + } + if (typeof size !== "undefined") { + payload["size"] = size; + } + if (typeof margin !== "undefined") { + payload["margin"] = margin; + } + if (typeof download !== "undefined") { + payload["download"] = download; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } +} + +class Databases extends Service { + constructor(client) { + super(client); + } + /** + * List documents + * + * Get a list of all the user's documents in a given collection. You can use + * the query params to filter your results. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listDocuments(databaseId, collectionId, queries) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create document + * + * Create a new Document. Before using this route, you should create a new + * collection resource using either a [server + * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) + * API or directly from your database console. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + createDocument(databaseId, collectionId, documentId, data, permissions) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + if (typeof data === "undefined") { + throw new AppwriteException('Missing required parameter: "data"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId); + const payload = {}; + if (typeof documentId !== "undefined") { + payload["documentId"] = documentId; + } + if (typeof data !== "undefined") { + payload["data"] = data; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get document + * + * Get a document by its unique ID. This endpoint response returns a JSON + * object with the document data. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + getDocument(databaseId, collectionId, documentId, queries) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update document + * + * Update a document by its unique ID. Using the patch method you can pass + * only specific fields that will get updated. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + updateDocument(databaseId, collectionId, documentId, data, permissions) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload = {}; + if (typeof data !== "undefined") { + payload["data"] = data; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete document + * + * Delete a document by its unique ID. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteDocument(databaseId, collectionId, documentId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Functions extends Service { + constructor(client) { + super(client); + } + /** + * List executions + * + * Get a list of all the current user function execution logs. You can use the + * query params to filter your results. + * + * @param {string} functionId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listExecutions(functionId, queries, search) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + const apiPath = "/functions/{functionId}/executions".replace("{functionId}", functionId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create execution + * + * Trigger a function execution. The returned object will return you the + * current execution status. You can ping the `Get Execution` endpoint to get + * updates on the current execution status. Once this endpoint is called, your + * function execution process will start asynchronously. + * + * @param {string} functionId + * @param {string} body + * @param {boolean} async + * @param {string} xpath + * @param {ExecutionMethod} method + * @param {object} headers + * @throws {AppwriteException} + * @returns {Promise} + */ + createExecution(functionId, body, async, xpath, method, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + const apiPath = "/functions/{functionId}/executions".replace("{functionId}", functionId); + const payload = {}; + if (typeof body !== "undefined") { + payload["body"] = body; + } + if (typeof async !== "undefined") { + payload["async"] = async; + } + if (typeof xpath !== "undefined") { + payload["path"] = xpath; + } + if (typeof method !== "undefined") { + payload["method"] = method; + } + if (typeof headers !== "undefined") { + payload["headers"] = headers; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get execution + * + * Get a function execution log by its unique ID. + * + * @param {string} functionId + * @param {string} executionId + * @throws {AppwriteException} + * @returns {Promise} + */ + getExecution(functionId, executionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + if (typeof executionId === "undefined") { + throw new AppwriteException('Missing required parameter: "executionId"'); + } + const apiPath = "/functions/{functionId}/executions/{executionId}" + .replace("{functionId}", functionId) + .replace("{executionId}", executionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Graphql extends Service { + constructor(client) { + super(client); + } + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + query(query) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof query === "undefined") { + throw new AppwriteException('Missing required parameter: "query"'); + } + const apiPath = "/graphql"; + const payload = {}; + if (typeof query !== "undefined") { + payload["query"] = query; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "x-sdk-graphql": "true", + "content-type": "application/json", + }, payload); + }); + } + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + mutation(query) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof query === "undefined") { + throw new AppwriteException('Missing required parameter: "query"'); + } + const apiPath = "/graphql/mutation"; + const payload = {}; + if (typeof query !== "undefined") { + payload["query"] = query; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "x-sdk-graphql": "true", + "content-type": "application/json", + }, payload); + }); + } +} + +class Locale extends Service { + constructor(client) { + super(client); + } + /** + * Get user locale + * + * Get the current user location based on IP. Returns an object with user + * country code, country name, continent name, continent code, ip address and + * suggested currency. You can use the locale header to get the data in a + * supported language. + * + * ([IP Geolocation by DB-IP](https://db-ip.com)) + * + * @throws {AppwriteException} + * @returns {Promise} + */ + get() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List Locale Codes + * + * List of all locale codes in [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List continents + * + * List of all continents. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listContinents() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/continents"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List countries + * + * List of all countries. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountries() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/countries"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List EU countries + * + * List of all countries that are currently members of the EU. You can use the + * locale header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountriesEU() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/countries/eu"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List countries phone codes + * + * List of all countries phone codes. You can use the locale header to get the + * data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountriesPhones() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/countries/phones"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List currencies + * + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCurrencies() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/currencies"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List languages + * + * List of all languages classified by ISO 639-1 including 2-letter code, name + * in English, and name in the respective language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listLanguages() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/languages"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Messaging extends Service { + constructor(client) { + super(client); + } + /** + * Create subscriber + * + * Create a new subscriber. + * + * @param {string} topicId + * @param {string} subscriberId + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + createSubscriber(topicId, subscriberId, targetId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof topicId === "undefined") { + throw new AppwriteException('Missing required parameter: "topicId"'); + } + if (typeof subscriberId === "undefined") { + throw new AppwriteException('Missing required parameter: "subscriberId"'); + } + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + const apiPath = "/messaging/topics/{topicId}/subscribers".replace("{topicId}", topicId); + const payload = {}; + if (typeof subscriberId !== "undefined") { + payload["subscriberId"] = subscriberId; + } + if (typeof targetId !== "undefined") { + payload["targetId"] = targetId; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete subscriber + * + * Delete a subscriber by its unique ID. + * + * @param {string} topicId + * @param {string} subscriberId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSubscriber(topicId, subscriberId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof topicId === "undefined") { + throw new AppwriteException('Missing required parameter: "topicId"'); + } + if (typeof subscriberId === "undefined") { + throw new AppwriteException('Missing required parameter: "subscriberId"'); + } + const apiPath = "/messaging/topics/{topicId}/subscribers/{subscriberId}" + .replace("{topicId}", topicId) + .replace("{subscriberId}", subscriberId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Storage extends Service { + constructor(client) { + super(client); + } + /** + * List files + * + * Get a list of all the user files. You can use the query params to filter + * your results. + * + * @param {string} bucketId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listFiles(bucketId, queries, search) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files".replace("{bucketId}", bucketId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create file + * + * Create a new file. Before using this route, you should create a new bucket + * resource using either a [server + * integration](https://appwrite.io/docs/server/storage#storageCreateBucket) + * API or directly from your Appwrite console. + * + * Larger files should be uploaded using multiple requests with the + * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) + * header to send a partial request with a maximum supported chunk of `5MB`. + * The `content-range` header values should always be in bytes. + * + * When the first request is sent, the server will return the **File** object, + * and the subsequent part request must include the file's **id** in + * `x-appwrite-id` header to allow the server to know that the partial upload + * is for the existing file and not for a new one. + * + * If you're creating a new file using one of the Appwrite SDKs, all the + * chunking logic will be managed by the SDK internally. + * + * + * @param {string} bucketId + * @param {string} fileId + * @param {{name: string, type: string, size: number, uri: string}} file + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + createFile(bucketId, fileId, file, permissions, onProgress = (progress) => { }) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + if (typeof file === "undefined") { + throw new AppwriteException('Missing required parameter: "file"'); + } + const apiPath = "/storage/buckets/{bucketId}/files".replace("{bucketId}", bucketId); + const payload = {}; + if (typeof fileId !== "undefined") { + payload["fileId"] = fileId; + } + if (typeof file !== "undefined") { + payload["file"] = file; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + const size = file.size; + if (size <= Service.CHUNK_SIZE) { + return yield this.client.call("post", uri, { + "content-type": "multipart/form-data", + }, payload); + } + const apiHeaders = { + "content-type": "multipart/form-data", + }; + let offset = 0; + let response = undefined; + if (fileId != "unique()") { + try { + response = yield this.client.call("GET", new URL(this.client.config.endpoint + apiPath + "/" + fileId), apiHeaders); + offset = response.chunksUploaded * Service.CHUNK_SIZE; + } + catch (e) { } + } + let timestamp = new Date().getTime(); + while (offset < size) { + let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1); + apiHeaders["content-range"] = "bytes " + offset + "-" + end + "/" + size; + if (response && response.$id) { + apiHeaders["x-appwrite-id"] = response.$id; + } + let chunk = yield fs__default["default"].read(file.uri, Service.CHUNK_SIZE, offset, "base64"); + // let chunk = await FileSystem.readAsStringAsync(file.uri, { + // encoding: FileSystem.EncodingType.Base64, + // position: offset, + // length: Service.CHUNK_SIZE + // }); + var path = `data:${file.type};base64,${chunk}`; + if (reactNative.Platform.OS.toLowerCase() === "android") { + path = "file://" + fs__default["default"].CachesDirectoryPath + "/tmp_chunk_" + timestamp; + yield fs__default["default"].writeFile(path, chunk, "base64"); + } + payload["file"] = { uri: path, name: file.name, type: file.type }; + response = yield this.client.call("post", uri, apiHeaders, payload); + if (onProgress) { + onProgress({ + $id: response.$id, + progress: (offset / size) * 100, + sizeUploaded: offset, + chunksTotal: response.chunksTotal, + chunksUploaded: response.chunksUploaded, + }); + } + offset += Service.CHUNK_SIZE; + } + return response; + }); + } + /** + * Get file + * + * Get a file by its unique ID. This endpoint response returns a JSON object + * with the file metadata. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + getFile(bucketId, fileId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update file + * + * Update a file by its unique ID. Only users with write permissions have + * access to update this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @param {string} name + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + updateFile(bucketId, fileId, name, permissions) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete File + * + * Delete a file by its unique ID. Only users with write permissions have + * access to delete this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteFile(bucketId, fileId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get file for download + * + * Get a file content by its unique ID. The endpoint response return with a + * 'Content-Disposition: attachment' header that tells the browser to start + * downloading the file to user downloads directory. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileDownload(bucketId, fileId) { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/download" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get file preview + * + * Get a file preview image. Currently, this method supports preview for image + * files (jpg, png, and gif), other supported formats, like pdf, docs, slides, + * and spreadsheets, will return the file icon image. You can also pass query + * string arguments for cutting and resizing your preview image. Preview is + * supported only for image files smaller than 10MB. + * + * @param {string} bucketId + * @param {string} fileId + * @param {number} width + * @param {number} height + * @param {ImageGravity} gravity + * @param {number} quality + * @param {number} borderWidth + * @param {string} borderColor + * @param {number} borderRadius + * @param {number} opacity + * @param {number} rotation + * @param {string} background + * @param {ImageFormat} output + * @throws {AppwriteException} + * @returns {URL} + */ + getFilePreview(bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output) { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/preview" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof gravity !== "undefined") { + payload["gravity"] = gravity; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + if (typeof borderWidth !== "undefined") { + payload["borderWidth"] = borderWidth; + } + if (typeof borderColor !== "undefined") { + payload["borderColor"] = borderColor; + } + if (typeof borderRadius !== "undefined") { + payload["borderRadius"] = borderRadius; + } + if (typeof opacity !== "undefined") { + payload["opacity"] = opacity; + } + if (typeof rotation !== "undefined") { + payload["rotation"] = rotation; + } + if (typeof background !== "undefined") { + payload["background"] = background; + } + if (typeof output !== "undefined") { + payload["output"] = output; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get file for view + * + * Get a file content by its unique ID. This endpoint is similar to the + * download method but returns with no 'Content-Disposition: attachment' + * header. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileView(bucketId, fileId) { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/view" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } +} + +class Teams extends Service { + constructor(client) { + super(client); + } + /** + * List teams + * + * Get a list of all the teams in which the current user is a member. You can + * use the parameters to filter your results. + * + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + list(queries, search) { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/teams"; + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create team + * + * Create a new team. The user who creates the team will automatically be + * assigned as the owner of the team. Only the users with the owner role can + * invite new members, add new owners and delete or update the team. + * + * @param {string} teamId + * @param {string} name + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + create(teamId, name, roles) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + const apiPath = "/teams"; + const payload = {}; + if (typeof teamId !== "undefined") { + payload["teamId"] = teamId; + } + if (typeof name !== "undefined") { + payload["name"] = name; + } + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get team + * + * Get a team by its ID. All team members have read access for this resource. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + get(teamId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update name + * + * Update the team's name by its unique ID. + * + * @param {string} teamId + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + updateName(teamId, name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete team + * + * Delete a team using its ID. Only team members with the owner role can + * delete the team. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + delete(teamId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List team memberships + * + * Use this endpoint to list a team's members using the team's ID. All team + * members have read access to this endpoint. + * + * @param {string} teamId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listMemberships(teamId, queries, search) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}/memberships".replace("{teamId}", teamId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create team membership + * + * Invite a new member to join your team. Provide an ID for existing users, or + * invite unregistered users using an email or phone number. If initiated from + * a Client SDK, Appwrite will send an email or sms with a link to join the + * team to the invited user, and an account will be created for them if one + * doesn't exist. If initiated from a Server SDK, the new member will be added + * automatically to the team. + * + * You only need to provide one of a user ID, email, or phone number. Appwrite + * will prioritize accepting the user ID > email > phone number if you provide + * more than one of these parameters. + * + * Use the `url` parameter to redirect the user from the invitation email to + * your app. After the user is redirected, use the [Update Team Membership + * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) + * endpoint to allow the user to accept the invitation to the team. + * + * Please note that to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * Appwrite will accept the only redirect URLs under the domains you have + * added as a platform on the Appwrite Console. + * + * + * @param {string} teamId + * @param {string[]} roles + * @param {string} email + * @param {string} userId + * @param {string} phone + * @param {string} url + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + createMembership(teamId, roles, email, userId, phone, url, name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof roles === "undefined") { + throw new AppwriteException('Missing required parameter: "roles"'); + } + const apiPath = "/teams/{teamId}/memberships".replace("{teamId}", teamId); + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + if (typeof url !== "undefined") { + payload["url"] = url; + } + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get team membership + * + * Get a team member by the membership unique id. All team members have read + * access for this resource. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + getMembership(teamId, membershipId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update membership + * + * Modify the roles of a team member. Only team members with the owner role + * have access to this endpoint. Learn more about [roles and + * permissions](https://appwrite.io/docs/permissions). + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMembership(teamId, membershipId, roles) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + if (typeof roles === "undefined") { + throw new AppwriteException('Missing required parameter: "roles"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete team membership + * + * This endpoint allows a user to leave a team or for a team owner to delete + * the membership of any other team member. You can also use this endpoint to + * delete a user membership even if it is not accepted. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteMembership(teamId, membershipId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update team membership status + * + * Use this endpoint to allow a user to accept an invitation to join a team + * after being redirected back to your app from the invitation email received + * by the user. + * + * If the request is successful, a session for the user is automatically + * created. + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMembershipStatus(teamId, membershipId, userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}/status" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get team preferences + * + * Get the team's shared preferences by its unique ID. If a preference doesn't + * need to be shared by all team members, prefer storing them in [user + * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs). + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + getPrefs(teamId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}/prefs".replace("{teamId}", teamId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update preferences + * + * Update the team's preferences by its unique ID. The object you pass is + * stored as is and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws an error if exceeded. + * + * @param {string} teamId + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePrefs(teamId, prefs) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof prefs === "undefined") { + throw new AppwriteException('Missing required parameter: "prefs"'); + } + const apiPath = "/teams/{teamId}/prefs".replace("{teamId}", teamId); + const payload = {}; + if (typeof prefs !== "undefined") { + payload["prefs"] = prefs; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Query { + constructor(method, attribute, values) { + this.method = method; + this.attribute = attribute; + if (values !== undefined) { + if (Array.isArray(values)) { + this.values = values; + } + else { + this.values = [values]; + } + } + } + toString() { + return JSON.stringify({ + method: this.method, + attribute: this.attribute, + values: this.values, + }); + } +} +Query.equal = (attribute, value) => new Query("equal", attribute, value).toString(); +Query.notEqual = (attribute, value) => new Query("notEqual", attribute, value).toString(); +Query.lessThan = (attribute, value) => new Query("lessThan", attribute, value).toString(); +Query.lessThanEqual = (attribute, value) => new Query("lessThanEqual", attribute, value).toString(); +Query.greaterThan = (attribute, value) => new Query("greaterThan", attribute, value).toString(); +Query.greaterThanEqual = (attribute, value) => new Query("greaterThanEqual", attribute, value).toString(); +Query.isNull = (attribute) => new Query("isNull", attribute).toString(); +Query.isNotNull = (attribute) => new Query("isNotNull", attribute).toString(); +Query.between = (attribute, start, end) => new Query("between", attribute, [start, end]).toString(); +Query.startsWith = (attribute, value) => new Query("startsWith", attribute, value).toString(); +Query.endsWith = (attribute, value) => new Query("endsWith", attribute, value).toString(); +Query.select = (attributes) => new Query("select", undefined, attributes).toString(); +Query.search = (attribute, value) => new Query("search", attribute, value).toString(); +Query.orderDesc = (attribute) => new Query("orderDesc", attribute).toString(); +Query.orderAsc = (attribute) => new Query("orderAsc", attribute).toString(); +Query.cursorAfter = (documentId) => new Query("cursorAfter", undefined, documentId).toString(); +Query.cursorBefore = (documentId) => new Query("cursorBefore", undefined, documentId).toString(); +Query.limit = (limit) => new Query("limit", undefined, limit).toString(); +Query.offset = (offset) => new Query("offset", undefined, offset).toString(); +Query.contains = (attribute, value) => new Query("contains", attribute, value).toString(); +Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString(); +Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString(); + +class Permission { +} +Permission.read = (role) => { + return `read("${role}")`; +}; +Permission.write = (role) => { + return `write("${role}")`; +}; +Permission.create = (role) => { + return `create("${role}")`; +}; +Permission.update = (role) => { + return `update("${role}")`; +}; +Permission.delete = (role) => { + return `delete("${role}")`; +}; + +/** + * Helper class to generate role strings for `Permission`. + */ +class Role { + /** + * Grants access to anyone. + * + * This includes authenticated and unauthenticated users. + * + * @returns {string} + */ + static any() { + return 'any'; + } + /** + * Grants access to a specific user by user ID. + * + * You can optionally pass verified or unverified for + * `status` to target specific types of users. + * + * @param {string} id + * @param {string} status + * @returns {string} + */ + static user(id, status = '') { + if (status === '') { + return `user:${id}`; + } + return `user:${id}/${status}`; + } + /** + * Grants access to any authenticated or anonymous user. + * + * You can optionally pass verified or unverified for + * `status` to target specific types of users. + * + * @param {string} status + * @returns {string} + */ + static users(status = '') { + if (status === '') { + return 'users'; + } + return `users/${status}`; + } + /** + * Grants access to any guest user without a session. + * + * Authenticated users don't have access to this role. + * + * @returns {string} + */ + static guests() { + return 'guests'; + } + /** + * Grants access to a team by team ID. + * + * You can optionally pass a role for `role` to target + * team members with the specified role. + * + * @param {string} id + * @param {string} role + * @returns {string} + */ + static team(id, role = '') { + if (role === '') { + return `team:${id}`; + } + return `team:${id}/${role}`; + } + /** + * Grants access to a specific member of a team. + * + * When the member is removed from the team, they will + * no longer have access. + * + * @param {string} id + * @returns {string} + */ + static member(id) { + return `member:${id}`; + } + /** + * Grants access to a user with the specified label. + * + * @param {string} name + * @returns {string} + */ + static label(name) { + return `label:${name}`; + } +} + +var _a, _ID_hexTimestamp; +class ID { + static custom(id) { + return id; + } + static unique(padding = 7) { + // Generate a unique ID with padding to have a longer ID + const baseId = __classPrivateFieldGet(ID, _a, "m", _ID_hexTimestamp).call(ID); + let randomPadding = ''; + for (let i = 0; i < padding; i++) { + const randomHexDigit = Math.floor(Math.random() * 16).toString(16); + randomPadding += randomHexDigit; + } + return baseId + randomPadding; + } +} +_a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() { + const now = new Date(); + const sec = Math.floor(now.getTime() / 1000); + const msec = now.getMilliseconds(); + // Convert to hexadecimal + const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0'); + return hexTimestamp; +}; + +exports.AuthenticatorType = void 0; +(function (AuthenticatorType) { + AuthenticatorType["Totp"] = "totp"; +})(exports.AuthenticatorType || (exports.AuthenticatorType = {})); + +exports.AuthenticationFactor = void 0; +(function (AuthenticationFactor) { + AuthenticationFactor["Email"] = "email"; + AuthenticationFactor["Phone"] = "phone"; + AuthenticationFactor["Totp"] = "totp"; + AuthenticationFactor["Recoverycode"] = "recoverycode"; +})(exports.AuthenticationFactor || (exports.AuthenticationFactor = {})); + +exports.OAuthProvider = void 0; +(function (OAuthProvider) { + OAuthProvider["Amazon"] = "amazon"; + OAuthProvider["Apple"] = "apple"; + OAuthProvider["Auth0"] = "auth0"; + OAuthProvider["Authentik"] = "authentik"; + OAuthProvider["Autodesk"] = "autodesk"; + OAuthProvider["Bitbucket"] = "bitbucket"; + OAuthProvider["Bitly"] = "bitly"; + OAuthProvider["Box"] = "box"; + OAuthProvider["Dailymotion"] = "dailymotion"; + OAuthProvider["Discord"] = "discord"; + OAuthProvider["Disqus"] = "disqus"; + OAuthProvider["Dropbox"] = "dropbox"; + OAuthProvider["Etsy"] = "etsy"; + OAuthProvider["Facebook"] = "facebook"; + OAuthProvider["Github"] = "github"; + OAuthProvider["Gitlab"] = "gitlab"; + OAuthProvider["Google"] = "google"; + OAuthProvider["Linkedin"] = "linkedin"; + OAuthProvider["Microsoft"] = "microsoft"; + OAuthProvider["Notion"] = "notion"; + OAuthProvider["Oidc"] = "oidc"; + OAuthProvider["Okta"] = "okta"; + OAuthProvider["Paypal"] = "paypal"; + OAuthProvider["PaypalSandbox"] = "paypalSandbox"; + OAuthProvider["Podio"] = "podio"; + OAuthProvider["Salesforce"] = "salesforce"; + OAuthProvider["Slack"] = "slack"; + OAuthProvider["Spotify"] = "spotify"; + OAuthProvider["Stripe"] = "stripe"; + OAuthProvider["Tradeshift"] = "tradeshift"; + OAuthProvider["TradeshiftBox"] = "tradeshiftBox"; + OAuthProvider["Twitch"] = "twitch"; + OAuthProvider["Wordpress"] = "wordpress"; + OAuthProvider["Yahoo"] = "yahoo"; + OAuthProvider["Yammer"] = "yammer"; + OAuthProvider["Yandex"] = "yandex"; + OAuthProvider["Zoho"] = "zoho"; + OAuthProvider["Zoom"] = "zoom"; + OAuthProvider["Mock"] = "mock"; +})(exports.OAuthProvider || (exports.OAuthProvider = {})); + +exports.Browser = void 0; +(function (Browser) { + Browser["AvantBrowser"] = "aa"; + Browser["AndroidWebViewBeta"] = "an"; + Browser["GoogleChrome"] = "ch"; + Browser["GoogleChromeIOS"] = "ci"; + Browser["GoogleChromeMobile"] = "cm"; + Browser["Chromium"] = "cr"; + Browser["MozillaFirefox"] = "ff"; + Browser["Safari"] = "sf"; + Browser["MobileSafari"] = "mf"; + Browser["MicrosoftEdge"] = "ps"; + Browser["MicrosoftEdgeIOS"] = "oi"; + Browser["OperaMini"] = "om"; + Browser["Opera"] = "op"; + Browser["OperaNext"] = "on"; +})(exports.Browser || (exports.Browser = {})); + +exports.CreditCard = void 0; +(function (CreditCard) { + CreditCard["AmericanExpress"] = "amex"; + CreditCard["Argencard"] = "argencard"; + CreditCard["Cabal"] = "cabal"; + CreditCard["Cencosud"] = "cencosud"; + CreditCard["DinersClub"] = "diners"; + CreditCard["Discover"] = "discover"; + CreditCard["Elo"] = "elo"; + CreditCard["Hipercard"] = "hipercard"; + CreditCard["JCB"] = "jcb"; + CreditCard["Mastercard"] = "mastercard"; + CreditCard["Naranja"] = "naranja"; + CreditCard["TarjetaShopping"] = "targeta-shopping"; + CreditCard["UnionChinaPay"] = "union-china-pay"; + CreditCard["Visa"] = "visa"; + CreditCard["MIR"] = "mir"; + CreditCard["Maestro"] = "maestro"; +})(exports.CreditCard || (exports.CreditCard = {})); + +exports.Flag = void 0; +(function (Flag) { + Flag["Afghanistan"] = "af"; + Flag["Angola"] = "ao"; + Flag["Albania"] = "al"; + Flag["Andorra"] = "ad"; + Flag["UnitedArabEmirates"] = "ae"; + Flag["Argentina"] = "ar"; + Flag["Armenia"] = "am"; + Flag["AntiguaAndBarbuda"] = "ag"; + Flag["Australia"] = "au"; + Flag["Austria"] = "at"; + Flag["Azerbaijan"] = "az"; + Flag["Burundi"] = "bi"; + Flag["Belgium"] = "be"; + Flag["Benin"] = "bj"; + Flag["BurkinaFaso"] = "bf"; + Flag["Bangladesh"] = "bd"; + Flag["Bulgaria"] = "bg"; + Flag["Bahrain"] = "bh"; + Flag["Bahamas"] = "bs"; + Flag["BosniaAndHerzegovina"] = "ba"; + Flag["Belarus"] = "by"; + Flag["Belize"] = "bz"; + Flag["Bolivia"] = "bo"; + Flag["Brazil"] = "br"; + Flag["Barbados"] = "bb"; + Flag["BruneiDarussalam"] = "bn"; + Flag["Bhutan"] = "bt"; + Flag["Botswana"] = "bw"; + Flag["CentralAfricanRepublic"] = "cf"; + Flag["Canada"] = "ca"; + Flag["Switzerland"] = "ch"; + Flag["Chile"] = "cl"; + Flag["China"] = "cn"; + Flag["CoteDIvoire"] = "ci"; + Flag["Cameroon"] = "cm"; + Flag["DemocraticRepublicOfTheCongo"] = "cd"; + Flag["RepublicOfTheCongo"] = "cg"; + Flag["Colombia"] = "co"; + Flag["Comoros"] = "km"; + Flag["CapeVerde"] = "cv"; + Flag["CostaRica"] = "cr"; + Flag["Cuba"] = "cu"; + Flag["Cyprus"] = "cy"; + Flag["CzechRepublic"] = "cz"; + Flag["Germany"] = "de"; + Flag["Djibouti"] = "dj"; + Flag["Dominica"] = "dm"; + Flag["Denmark"] = "dk"; + Flag["DominicanRepublic"] = "do"; + Flag["Algeria"] = "dz"; + Flag["Ecuador"] = "ec"; + Flag["Egypt"] = "eg"; + Flag["Eritrea"] = "er"; + Flag["Spain"] = "es"; + Flag["Estonia"] = "ee"; + Flag["Ethiopia"] = "et"; + Flag["Finland"] = "fi"; + Flag["Fiji"] = "fj"; + Flag["France"] = "fr"; + Flag["MicronesiaFederatedStatesOf"] = "fm"; + Flag["Gabon"] = "ga"; + Flag["UnitedKingdom"] = "gb"; + Flag["Georgia"] = "ge"; + Flag["Ghana"] = "gh"; + Flag["Guinea"] = "gn"; + Flag["Gambia"] = "gm"; + Flag["GuineaBissau"] = "gw"; + Flag["EquatorialGuinea"] = "gq"; + Flag["Greece"] = "gr"; + Flag["Grenada"] = "gd"; + Flag["Guatemala"] = "gt"; + Flag["Guyana"] = "gy"; + Flag["Honduras"] = "hn"; + Flag["Croatia"] = "hr"; + Flag["Haiti"] = "ht"; + Flag["Hungary"] = "hu"; + Flag["Indonesia"] = "id"; + Flag["India"] = "in"; + Flag["Ireland"] = "ie"; + Flag["IranIslamicRepublicOf"] = "ir"; + Flag["Iraq"] = "iq"; + Flag["Iceland"] = "is"; + Flag["Israel"] = "il"; + Flag["Italy"] = "it"; + Flag["Jamaica"] = "jm"; + Flag["Jordan"] = "jo"; + Flag["Japan"] = "jp"; + Flag["Kazakhstan"] = "kz"; + Flag["Kenya"] = "ke"; + Flag["Kyrgyzstan"] = "kg"; + Flag["Cambodia"] = "kh"; + Flag["Kiribati"] = "ki"; + Flag["SaintKittsAndNevis"] = "kn"; + Flag["SouthKorea"] = "kr"; + Flag["Kuwait"] = "kw"; + Flag["LaoPeopleSDemocraticRepublic"] = "la"; + Flag["Lebanon"] = "lb"; + Flag["Liberia"] = "lr"; + Flag["Libya"] = "ly"; + Flag["SaintLucia"] = "lc"; + Flag["Liechtenstein"] = "li"; + Flag["SriLanka"] = "lk"; + Flag["Lesotho"] = "ls"; + Flag["Lithuania"] = "lt"; + Flag["Luxembourg"] = "lu"; + Flag["Latvia"] = "lv"; + Flag["Morocco"] = "ma"; + Flag["Monaco"] = "mc"; + Flag["Moldova"] = "md"; + Flag["Madagascar"] = "mg"; + Flag["Maldives"] = "mv"; + Flag["Mexico"] = "mx"; + Flag["MarshallIslands"] = "mh"; + Flag["NorthMacedonia"] = "mk"; + Flag["Mali"] = "ml"; + Flag["Malta"] = "mt"; + Flag["Myanmar"] = "mm"; + Flag["Montenegro"] = "me"; + Flag["Mongolia"] = "mn"; + Flag["Mozambique"] = "mz"; + Flag["Mauritania"] = "mr"; + Flag["Mauritius"] = "mu"; + Flag["Malawi"] = "mw"; + Flag["Malaysia"] = "my"; + Flag["Namibia"] = "na"; + Flag["Niger"] = "ne"; + Flag["Nigeria"] = "ng"; + Flag["Nicaragua"] = "ni"; + Flag["Netherlands"] = "nl"; + Flag["Norway"] = "no"; + Flag["Nepal"] = "np"; + Flag["Nauru"] = "nr"; + Flag["NewZealand"] = "nz"; + Flag["Oman"] = "om"; + Flag["Pakistan"] = "pk"; + Flag["Panama"] = "pa"; + Flag["Peru"] = "pe"; + Flag["Philippines"] = "ph"; + Flag["Palau"] = "pw"; + Flag["PapuaNewGuinea"] = "pg"; + Flag["Poland"] = "pl"; + Flag["FrenchPolynesia"] = "pf"; + Flag["NorthKorea"] = "kp"; + Flag["Portugal"] = "pt"; + Flag["Paraguay"] = "py"; + Flag["Qatar"] = "qa"; + Flag["Romania"] = "ro"; + Flag["Russia"] = "ru"; + Flag["Rwanda"] = "rw"; + Flag["SaudiArabia"] = "sa"; + Flag["Sudan"] = "sd"; + Flag["Senegal"] = "sn"; + Flag["Singapore"] = "sg"; + Flag["SolomonIslands"] = "sb"; + Flag["SierraLeone"] = "sl"; + Flag["ElSalvador"] = "sv"; + Flag["SanMarino"] = "sm"; + Flag["Somalia"] = "so"; + Flag["Serbia"] = "rs"; + Flag["SouthSudan"] = "ss"; + Flag["SaoTomeAndPrincipe"] = "st"; + Flag["Suriname"] = "sr"; + Flag["Slovakia"] = "sk"; + Flag["Slovenia"] = "si"; + Flag["Sweden"] = "se"; + Flag["Eswatini"] = "sz"; + Flag["Seychelles"] = "sc"; + Flag["Syria"] = "sy"; + Flag["Chad"] = "td"; + Flag["Togo"] = "tg"; + Flag["Thailand"] = "th"; + Flag["Tajikistan"] = "tj"; + Flag["Turkmenistan"] = "tm"; + Flag["TimorLeste"] = "tl"; + Flag["Tonga"] = "to"; + Flag["TrinidadAndTobago"] = "tt"; + Flag["Tunisia"] = "tn"; + Flag["Turkey"] = "tr"; + Flag["Tuvalu"] = "tv"; + Flag["Tanzania"] = "tz"; + Flag["Uganda"] = "ug"; + Flag["Ukraine"] = "ua"; + Flag["Uruguay"] = "uy"; + Flag["UnitedStates"] = "us"; + Flag["Uzbekistan"] = "uz"; + Flag["VaticanCity"] = "va"; + Flag["SaintVincentAndTheGrenadines"] = "vc"; + Flag["Venezuela"] = "ve"; + Flag["Vietnam"] = "vn"; + Flag["Vanuatu"] = "vu"; + Flag["Samoa"] = "ws"; + Flag["Yemen"] = "ye"; + Flag["SouthAfrica"] = "za"; + Flag["Zambia"] = "zm"; + Flag["Zimbabwe"] = "zw"; +})(exports.Flag || (exports.Flag = {})); + +exports.ExecutionMethod = void 0; +(function (ExecutionMethod) { + ExecutionMethod["GET"] = "GET"; + ExecutionMethod["POST"] = "POST"; + ExecutionMethod["PUT"] = "PUT"; + ExecutionMethod["PATCH"] = "PATCH"; + ExecutionMethod["DELETE"] = "DELETE"; + ExecutionMethod["OPTIONS"] = "OPTIONS"; +})(exports.ExecutionMethod || (exports.ExecutionMethod = {})); + +exports.ImageGravity = void 0; +(function (ImageGravity) { + ImageGravity["Center"] = "center"; + ImageGravity["TopLeft"] = "top-left"; + ImageGravity["Top"] = "top"; + ImageGravity["TopRight"] = "top-right"; + ImageGravity["Left"] = "left"; + ImageGravity["Right"] = "right"; + ImageGravity["BottomLeft"] = "bottom-left"; + ImageGravity["Bottom"] = "bottom"; + ImageGravity["BottomRight"] = "bottom-right"; +})(exports.ImageGravity || (exports.ImageGravity = {})); + +exports.ImageFormat = void 0; +(function (ImageFormat) { + ImageFormat["Jpg"] = "jpg"; + ImageFormat["Jpeg"] = "jpeg"; + ImageFormat["Gif"] = "gif"; + ImageFormat["Png"] = "png"; + ImageFormat["Webp"] = "webp"; +})(exports.ImageFormat || (exports.ImageFormat = {})); + +exports.Account = Account; +exports.AppwriteException = AppwriteException; +exports.Avatars = Avatars; +exports.Client = Client; +exports.Databases = Databases; +exports.Functions = Functions; +exports.Graphql = Graphql; +exports.ID = ID; +exports.Locale = Locale; +exports.Messaging = Messaging; +exports.Permission = Permission; +exports.Query = Query; +exports.Role = Role; +exports.Storage = Storage; +exports.Teams = Teams; +//# sourceMappingURL=sdk.js.map diff --git a/dist/cjs/sdk.js.map b/dist/cjs/sdk.js.map new file mode 100644 index 0000000..67b6eba --- /dev/null +++ b/dist/cjs/sdk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sdk.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/service.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/messaging.ts","../../src/services/storage.ts","../../src/services/teams.ts","../../src/query.ts","../../src/permission.ts","../../src/role.ts","../../src/id.ts","../../src/enums/authenticator-type.ts","../../src/enums/authentication-factor.ts","../../src/enums/o-auth-provider.ts","../../src/enums/browser.ts","../../src/enums/credit-card.ts","../../src/enums/flag.ts","../../src/enums/execution-method.ts","../../src/enums/image-gravity.ts","../../src/enums/image-format.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';\r\nimport type { Payload } from './client';\r\n\r\nexport class Service {\r\n static CHUNK_SIZE = 5*1024*1024; // 5MB\r\n\r\n client: Client;\r\n\r\n constructor(client: Client) {\r\n this.client = client;\r\n }\r\n\r\n static flatten(data: Payload, prefix = ''): Payload {\r\n let output: Payload = {};\r\n\r\n for (const [key, value] of Object.entries(data)) {\r\n let finalKey = prefix ? prefix + '[' + key +']' : key;\r\n if (Array.isArray(value)) {\r\n output = { ...output, ...Service.flatten(value, finalKey) };\r\n } else {\r\n output[finalKey] = value;\r\n }\r\n }\r\n\r\n return output;\r\n }\r\n}","import { Models } from './models';\r\nimport { Service } from './service';\r\nimport { Platform } from 'react-native';\r\n\r\ntype Payload = {\r\n [key: string]: any;\r\n}\r\n\r\ntype Headers = {\r\n [key: string]: string;\r\n}\r\n\r\ntype RealtimeResponse = {\r\n type: 'error' | 'event' | 'connected' | 'response';\r\n data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent;\r\n}\r\n\r\ntype RealtimeRequest = {\r\n type: 'authentication';\r\n data: RealtimeRequestAuthenticate;\r\n}\r\n\r\nexport type RealtimeResponseEvent = {\r\n events: string[];\r\n channels: string[];\r\n timestamp: number;\r\n payload: T;\r\n}\r\n\r\ntype RealtimeResponseError = {\r\n code: number;\r\n message: string;\r\n}\r\n\r\ntype RealtimeResponseConnected = {\r\n channels: string[];\r\n user?: object;\r\n}\r\n\r\ntype RealtimeResponseAuthenticated = {\r\n to: string;\r\n success: boolean;\r\n user: object;\r\n}\r\n\r\ntype RealtimeRequestAuthenticate = {\r\n session: string;\r\n}\r\n\r\ntype Realtime = {\r\n socket?: WebSocket;\r\n timeout?: number;\r\n url?: string;\r\n lastMessage?: RealtimeResponse;\r\n channels: Set;\r\n subscriptions: Map) => void\r\n }>;\r\n subscriptionsCounter: number;\r\n reconnect: boolean;\r\n reconnectAttempts: number;\r\n getTimeout: () => number;\r\n connect: () => void;\r\n createSocket: () => void;\r\n cleanUp: (channels: string[]) => void;\r\n onMessage: (event: MessageEvent) => void;\r\n}\r\n\r\nexport type UploadProgress = {\r\n $id: string;\r\n progress: number;\r\n sizeUploaded: number;\r\n chunksTotal: number;\r\n chunksUploaded: number;\r\n}\r\n\r\nclass AppwriteException extends Error {\r\n code: number;\r\n response: string;\r\n type: string;\r\n constructor(message: string, code: number = 0, type: string = '', response: string = '') {\r\n super(message);\r\n this.name = 'AppwriteException';\r\n this.message = message;\r\n this.code = code;\r\n this.type = type;\r\n this.response = response;\r\n }\r\n}\r\n\r\nclass Client {\r\n config = {\r\n endpoint: 'https://cloud.appwrite.io/v1',\r\n endpointRealtime: '',\r\n project: '',\r\n jwt: '',\r\n locale: '',\r\n session: '',\r\n platform: '',\r\n };\r\n headers: Headers = {\r\n 'x-sdk-name': 'React Native',\r\n 'x-sdk-platform': 'client',\r\n 'x-sdk-language': 'reactnative',\r\n 'x-sdk-version': '0.4.0',\r\n 'X-Appwrite-Response-Format': '1.5.0',\r\n };\r\n\r\n /**\r\n * Set Endpoint\r\n *\r\n * Your project endpoint\r\n *\r\n * @param {string} endpoint\r\n *\r\n * @returns {this}\r\n */\r\n setEndpoint(endpoint: string): this {\r\n this.config.endpoint = endpoint;\r\n this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Realtime Endpoint\r\n *\r\n * @param {string} endpointRealtime\r\n *\r\n * @returns {this}\r\n */\r\n setEndpointRealtime(endpointRealtime: string): this {\r\n this.config.endpointRealtime = endpointRealtime;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set platform\r\n * \r\n * Set platform. Will be used as origin for all requests.\r\n * \r\n * @param {string} platform\r\n * @returns {this}\r\n */\r\n setPlatform(platform: string): this {\r\n this.config.platform = platform;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Project\r\n *\r\n * Your project ID\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setProject(value: string): this {\r\n this.headers['X-Appwrite-Project'] = value;\r\n this.config.project = value;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set JWT\r\n *\r\n * Your secret JSON Web Token\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setJWT(value: string): this {\r\n this.headers['X-Appwrite-JWT'] = value;\r\n this.config.jwt = value;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Locale\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setLocale(value: string): this {\r\n this.headers['X-Appwrite-Locale'] = value;\r\n this.config.locale = value;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Session\r\n *\r\n * The user session to authenticate with\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setSession(value: string): this {\r\n this.headers['X-Appwrite-Session'] = value;\r\n this.config.session = value;\r\n return this;\r\n }\r\n\r\n\r\n private realtime: Realtime = {\r\n socket: undefined,\r\n timeout: undefined,\r\n url: '',\r\n channels: new Set(),\r\n subscriptions: new Map(),\r\n subscriptionsCounter: 0,\r\n reconnect: true,\r\n reconnectAttempts: 0,\r\n lastMessage: undefined,\r\n connect: () => {\r\n clearTimeout(this.realtime.timeout);\r\n this.realtime.timeout = window?.setTimeout(() => {\r\n this.realtime.createSocket();\r\n }, 50);\r\n },\r\n getTimeout: () => {\r\n switch (true) {\r\n case this.realtime.reconnectAttempts < 5:\r\n return 1000;\r\n case this.realtime.reconnectAttempts < 15:\r\n return 5000;\r\n case this.realtime.reconnectAttempts < 100:\r\n return 10_000;\r\n default:\r\n return 60_000;\r\n }\r\n },\r\n createSocket: () => {\r\n if (this.realtime.channels.size < 1) {\r\n this.realtime.reconnect = false;\r\n this.realtime.socket?.close();\r\n return;\r\n }\r\n\r\n const channels = new URLSearchParams();\r\n channels.set('project', this.config.project);\r\n this.realtime.channels.forEach(channel => {\r\n channels.append('channels[]', channel);\r\n });\r\n\r\n const url = this.config.endpointRealtime + '/realtime?' + channels.toString();\r\n\r\n if (\r\n url !== this.realtime.url || // Check if URL is present\r\n !this.realtime.socket || // Check if WebSocket has not been created\r\n this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)\r\n ) {\r\n if (\r\n this.realtime.socket &&\r\n this.realtime.socket?.readyState < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1)\r\n ) {\r\n this.realtime.reconnect = false;\r\n this.realtime.socket.close();\r\n }\r\n\r\n this.realtime.url = url;\r\n // @ts-ignore\r\n this.realtime.socket = new WebSocket(url, undefined, {\r\n headers: {\r\n Origin: `appwrite-${Platform.OS}://${this.config.platform}`\r\n }\r\n });\r\n this.realtime.socket.addEventListener('message', this.realtime.onMessage);\r\n this.realtime.socket.addEventListener('open', _event => {\r\n this.realtime.reconnectAttempts = 0;\r\n });\r\n this.realtime.socket.addEventListener('close', event => {\r\n if (\r\n !this.realtime.reconnect ||\r\n (\r\n this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error\r\n (this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008\r\n )\r\n ) {\r\n this.realtime.reconnect = true;\r\n return;\r\n }\r\n\r\n const timeout = this.realtime.getTimeout();\r\n console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);\r\n\r\n setTimeout(() => {\r\n this.realtime.reconnectAttempts++;\r\n this.realtime.createSocket();\r\n }, timeout);\r\n })\r\n }\r\n },\r\n onMessage: (event) => {\r\n try {\r\n const message: RealtimeResponse = JSON.parse(event.data);\r\n this.realtime.lastMessage = message;\r\n switch (message.type) {\r\n case 'event':\r\n let data = >message.data;\r\n if (data?.channels) {\r\n const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));\r\n if (!isSubscribed) return;\r\n this.realtime.subscriptions.forEach(subscription => {\r\n if (data.channels.some(channel => subscription.channels.includes(channel))) {\r\n setTimeout(() => subscription.callback(data));\r\n }\r\n })\r\n }\r\n break;\r\n case 'error':\r\n throw message.data;\r\n default:\r\n break;\r\n }\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n },\r\n cleanUp: channels => {\r\n this.realtime.channels.forEach(channel => {\r\n if (channels.includes(channel)) {\r\n let found = Array.from(this.realtime.subscriptions).some(([_key, subscription] )=> {\r\n return subscription.channels.includes(channel);\r\n })\r\n\r\n if (!found) {\r\n this.realtime.channels.delete(channel);\r\n }\r\n }\r\n })\r\n }\r\n }\r\n\r\n /**\r\n * Subscribes to Appwrite events and passes you the payload in realtime.\r\n * \r\n * @param {string|string[]} channels \r\n * Channel to subscribe - pass a single channel as a string or multiple with an array of strings.\r\n * \r\n * Possible channels are:\r\n * - account\r\n * - collections\r\n * - collections.[ID]\r\n * - collections.[ID].documents\r\n * - documents\r\n * - documents.[ID]\r\n * - files\r\n * - files.[ID]\r\n * - executions\r\n * - executions.[ID]\r\n * - functions.[ID]\r\n * - teams\r\n * - teams.[ID]\r\n * - memberships\r\n * - memberships.[ID]\r\n * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.\r\n * @returns {() => void} Unsubscribes from events.\r\n */\r\n subscribe(channels: string | string[], callback: (payload: RealtimeResponseEvent) => void): () => void {\r\n let channelArray = typeof channels === 'string' ? [channels] : channels;\r\n channelArray.forEach(channel => this.realtime.channels.add(channel));\r\n\r\n const counter = this.realtime.subscriptionsCounter++;\r\n this.realtime.subscriptions.set(counter, {\r\n channels: channelArray,\r\n callback\r\n });\r\n\r\n this.realtime.connect();\r\n\r\n return () => {\r\n this.realtime.subscriptions.delete(counter);\r\n this.realtime.cleanUp(channelArray);\r\n this.realtime.connect();\r\n }\r\n }\r\n\r\n async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise {\r\n method = method.toUpperCase();\r\n\r\n headers = Object.assign({}, this.headers, headers);\r\n headers.Origin = `appwrite-${Platform.OS}://${this.config.platform}`\r\n\r\n let options: RequestInit = {\r\n method,\r\n headers,\r\n credentials: 'include'\r\n };\r\n\r\n if (method === 'GET') {\r\n for (const [key, value] of Object.entries(Service.flatten(params))) {\r\n url.searchParams.append(key, value);\r\n }\r\n } else {\r\n switch (headers['content-type']) {\r\n case 'application/json':\r\n options.body = JSON.stringify(params);\r\n break;\r\n\r\n case 'multipart/form-data':\r\n let formData = new FormData();\r\n\r\n for (const key in params) {\r\n if (Array.isArray(params[key])) {\r\n params[key].forEach((value: any) => {\r\n formData.append(key + '[]', value);\r\n })\r\n } else {\r\n formData.append(key, params[key]);\r\n }\r\n }\r\n\r\n options.body = formData;\r\n delete headers['content-type'];\r\n break;\r\n }\r\n }\r\n\r\n try {\r\n let data = null;\r\n const response = await fetch(url.toString(), options);\r\n\r\n if (response.headers.get('content-type')?.includes('application/json')) {\r\n data = await response.json();\r\n } else {\r\n data = {\r\n message: await response.text()\r\n };\r\n }\r\n\r\n if (400 <= response.status) {\r\n throw new AppwriteException(data?.message, response.status, data?.type, data);\r\n }\r\n\r\n const cookieFallback = response.headers.get('X-Fallback-Cookies');\r\n\r\n if (typeof window !== 'undefined' && window.localStorage && cookieFallback) {\r\n window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');\r\n window.localStorage.setItem('cookieFallback', cookieFallback);\r\n }\r\n\r\n return data;\r\n } catch (e) {\r\n if (e instanceof AppwriteException) {\r\n throw e;\r\n }\r\n throw new AppwriteException((e).message);\r\n }\r\n }\r\n}\r\n\r\nexport { Client, AppwriteException };\r\nexport type { Models, Payload };\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { AuthenticatorType } from \"../enums/authenticator-type\";\r\nimport { AuthenticationFactor } from \"../enums/authentication-factor\";\r\nimport { OAuthProvider } from \"../enums/o-auth-provider\";\r\n\r\nexport class Account extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Get account\r\n *\r\n * Get the currently logged in user.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async get(): Promise<\r\n Models.User\r\n > {\r\n const apiPath = \"/account\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create account\r\n *\r\n * Use this endpoint to allow a new user to register a new account in your\r\n * project. After the user registration completes successfully, you can use\r\n * the\r\n * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification)\r\n * route to start verifying the user email address. To allow the new user to\r\n * login to their new account, you need to create a new [account\r\n * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).\r\n *\r\n * @param {string} userId\r\n * @param {string} email\r\n * @param {string} password\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async create(\r\n userId: string,\r\n email: string,\r\n password: string,\r\n name?: string\r\n ): Promise> {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update email\r\n *\r\n * Update currently logged in user account email address. After changing user\r\n * address, the user confirmation status will get reset. A new confirmation\r\n * email is not sent automatically however you can use the send confirmation\r\n * email endpoint again to send the confirmation email. For security measures,\r\n * user password is required to complete this request.\r\n * This endpoint can also be used to convert an anonymous account to a normal\r\n * one, by passing an email address and a new password.\r\n *\r\n *\r\n * @param {string} email\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateEmail(\r\n email: string,\r\n password: string\r\n ): Promise> {\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/email\";\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List Identities\r\n *\r\n * Get the list of identities for the currently logged in user.\r\n *\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listIdentities(queries?: string[]): Promise {\r\n const apiPath = \"/account/identities\";\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete identity\r\n *\r\n * Delete an identity by its unique ID.\r\n *\r\n * @param {string} identityId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteIdentity(identityId: string): Promise<{}> {\r\n if (typeof identityId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"identityId\"');\r\n }\r\n\r\n const apiPath = \"/account/identities/{identityId}\".replace(\r\n \"{identityId}\",\r\n identityId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create JWT\r\n *\r\n * Use this endpoint to create a JSON Web Token. You can use the resulting JWT\r\n * to authenticate on behalf of the current user when working with the\r\n * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes\r\n * from its creation and will be invalid if the user will logout in that time\r\n * frame.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createJWT(): Promise {\r\n const apiPath = \"/account/jwt\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List logs\r\n *\r\n * Get the list of latest security activity logs for the currently logged in\r\n * user. Each log returns user IP address, location and date and time of log.\r\n *\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listLogs(queries?: string[]): Promise {\r\n const apiPath = \"/account/logs\";\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update MFA\r\n *\r\n * Enable or disable MFA on an account.\r\n *\r\n * @param {boolean} mfa\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMFA(\r\n mfa: boolean\r\n ): Promise> {\r\n if (typeof mfa === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"mfa\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa\";\r\n const payload: Payload = {};\r\n\r\n if (typeof mfa !== \"undefined\") {\r\n payload[\"mfa\"] = mfa;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Add Authenticator\r\n *\r\n * Add an authenticator app to be used as an MFA factor. Verify the\r\n * authenticator using the [verify\r\n * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator)\r\n * method.\r\n *\r\n * @param {AuthenticatorType} type\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMfaAuthenticator(\r\n type: AuthenticatorType\r\n ): Promise {\r\n if (typeof type === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"type\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/authenticators/{type}\".replace(\r\n \"{type}\",\r\n type\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Verify Authenticator\r\n *\r\n * Verify an authenticator app after adding it using the [add\r\n * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator)\r\n * method. add\r\n *\r\n * @param {AuthenticatorType} type\r\n * @param {string} otp\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMfaAuthenticator(\r\n type: AuthenticatorType,\r\n otp: string\r\n ): Promise> {\r\n if (typeof type === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"type\"');\r\n }\r\n\r\n if (typeof otp === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"otp\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/authenticators/{type}\".replace(\r\n \"{type}\",\r\n type\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof otp !== \"undefined\") {\r\n payload[\"otp\"] = otp;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete Authenticator\r\n *\r\n * Delete an authenticator for a user by ID.\r\n *\r\n * @param {AuthenticatorType} type\r\n * @param {string} otp\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteMfaAuthenticator(\r\n type: AuthenticatorType,\r\n otp: string\r\n ): Promise<{}> {\r\n if (typeof type === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"type\"');\r\n }\r\n\r\n if (typeof otp === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"otp\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/authenticators/{type}\".replace(\r\n \"{type}\",\r\n type\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof otp !== \"undefined\") {\r\n payload[\"otp\"] = otp;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create 2FA Challenge\r\n *\r\n * Begin the process of MFA verification after sign-in. Finish the flow with\r\n * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)\r\n * method.\r\n *\r\n * @param {AuthenticationFactor} factor\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMfaChallenge(\r\n factor: AuthenticationFactor\r\n ): Promise {\r\n if (typeof factor === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"factor\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/challenge\";\r\n const payload: Payload = {};\r\n\r\n if (typeof factor !== \"undefined\") {\r\n payload[\"factor\"] = factor;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create MFA Challenge (confirmation)\r\n *\r\n * Complete the MFA challenge by providing the one-time password. Finish the\r\n * process of MFA verification by providing the one-time password. To begin\r\n * the flow, use\r\n * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)\r\n * method.\r\n *\r\n * @param {string} challengeId\r\n * @param {string} otp\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> {\r\n if (typeof challengeId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"challengeId\"');\r\n }\r\n\r\n if (typeof otp === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"otp\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/challenge\";\r\n const payload: Payload = {};\r\n\r\n if (typeof challengeId !== \"undefined\") {\r\n payload[\"challengeId\"] = challengeId;\r\n }\r\n\r\n if (typeof otp !== \"undefined\") {\r\n payload[\"otp\"] = otp;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List Factors\r\n *\r\n * List the factors available on the account to be used as a MFA challange.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listMfaFactors(): Promise {\r\n const apiPath = \"/account/mfa/factors\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get MFA Recovery Codes\r\n *\r\n * Get recovery codes that can be used as backup for MFA flow. Before getting\r\n * codes, they must be generated using\r\n * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)\r\n * method. An OTP challenge is required to read recovery codes.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getMfaRecoveryCodes(): Promise {\r\n const apiPath = \"/account/mfa/recovery-codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create MFA Recovery Codes\r\n *\r\n * Generate recovery codes as backup for MFA flow. It's recommended to\r\n * generate and show then immediately after user successfully adds their\r\n * authehticator. Recovery codes can be used as a MFA verification type in\r\n * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)\r\n * method.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMfaRecoveryCodes(): Promise {\r\n const apiPath = \"/account/mfa/recovery-codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Regenerate MFA Recovery Codes\r\n *\r\n * Regenerate recovery codes that can be used as backup for MFA flow. Before\r\n * regenerating codes, they must be first generated using\r\n * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)\r\n * method. An OTP challenge is required to regenreate recovery codes.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMfaRecoveryCodes(): Promise {\r\n const apiPath = \"/account/mfa/recovery-codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update name\r\n *\r\n * Update currently logged in user account name.\r\n *\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateName(\r\n name: string\r\n ): Promise> {\r\n if (typeof name === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"name\"');\r\n }\r\n\r\n const apiPath = \"/account/name\";\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update password\r\n *\r\n * Update currently logged in user password. For validation, user is required\r\n * to pass in the new password, and the old password. For users created with\r\n * OAuth, Team Invites and Magic URL, oldPassword is optional.\r\n *\r\n * @param {string} password\r\n * @param {string} oldPassword\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePassword(\r\n password: string,\r\n oldPassword?: string\r\n ): Promise> {\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/password\";\r\n const payload: Payload = {};\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n if (typeof oldPassword !== \"undefined\") {\r\n payload[\"oldPassword\"] = oldPassword;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update phone\r\n *\r\n * Update the currently logged in user's phone number. After updating the\r\n * phone number, the phone verification status will be reset. A confirmation\r\n * SMS is not sent automatically, however you can use the [POST\r\n * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification)\r\n * endpoint to send a confirmation SMS.\r\n *\r\n * @param {string} phone\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePhone(\r\n phone: string,\r\n password: string\r\n ): Promise> {\r\n if (typeof phone === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"phone\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof phone !== \"undefined\") {\r\n payload[\"phone\"] = phone;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get account preferences\r\n *\r\n * Get the preferences as a key-value object for the currently logged in user.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getPrefs<\r\n Preferences extends Models.Preferences\r\n >(): Promise {\r\n const apiPath = \"/account/prefs\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update preferences\r\n *\r\n * Update currently logged in user account preferences. The object you pass is\r\n * stored as is, and replaces any previous value. The maximum allowed prefs\r\n * size is 64kB and throws error if exceeded.\r\n *\r\n * @param {object} prefs\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePrefs(\r\n prefs: object\r\n ): Promise> {\r\n if (typeof prefs === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"prefs\"');\r\n }\r\n\r\n const apiPath = \"/account/prefs\";\r\n const payload: Payload = {};\r\n\r\n if (typeof prefs !== \"undefined\") {\r\n payload[\"prefs\"] = prefs;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create password recovery\r\n *\r\n * Sends the user an email with a temporary secret key for password reset.\r\n * When the user clicks the confirmation link he is redirected back to your\r\n * app password reset URL with the secret key and email address values\r\n * attached to the URL query string. Use the query string params to submit a\r\n * request to the [PUT\r\n * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery)\r\n * endpoint to complete the process. The verification link sent to the user's\r\n * email address is valid for 1 hour.\r\n *\r\n * @param {string} email\r\n * @param {string} url\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createRecovery(email: string, url: string): Promise {\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/account/recovery\";\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create password recovery (confirmation)\r\n *\r\n * Use this endpoint to complete the user account password reset. Both the\r\n * **userId** and **secret** arguments will be passed as query parameters to\r\n * the redirect URL you have provided when sending your request to the [POST\r\n * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery)\r\n * endpoint.\r\n *\r\n * Please note that in order to avoid a [Redirect\r\n * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)\r\n * the only valid redirect URLs are the ones from domains you have set when\r\n * adding your platforms in the console interface.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateRecovery(\r\n userId: string,\r\n secret: string,\r\n password: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/recovery\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List sessions\r\n *\r\n * Get the list of active sessions across different devices for the currently\r\n * logged in user.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listSessions(): Promise {\r\n const apiPath = \"/account/sessions\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete sessions\r\n *\r\n * Delete all sessions from the user account and remove any sessions cookies\r\n * from the end client.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteSessions(): Promise<{}> {\r\n const apiPath = \"/account/sessions\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create anonymous session\r\n *\r\n * Use this endpoint to allow a new user to register an anonymous account in\r\n * your project. This route will also create a new session for the user. To\r\n * allow the new user to convert an anonymous account to a normal account, you\r\n * need to update its [email and\r\n * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail)\r\n * or create an [OAuth2\r\n * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createAnonymousSession(): Promise {\r\n const apiPath = \"/account/sessions/anonymous\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email password session\r\n *\r\n * Allow the user to login into their account by providing a valid email and\r\n * password combination. This route will create a new session for the user.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {string} email\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createEmailPasswordSession(\r\n email: string,\r\n password: string\r\n ): Promise {\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/email\";\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update magic URL session\r\n *\r\n * Use this endpoint to create a session from token. Provide the **userId**\r\n * and **secret** parameters from the successful response of authentication\r\n * flows initiated by token creation. For example, magic URL and phone login.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMagicURLSession(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/magic-url\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create OAuth2 session\r\n *\r\n * Allow the user to login to their account using the OAuth2 provider of their\r\n * choice. Each OAuth2 provider should be enabled from the Appwrite console\r\n * first. Use the success and failure arguments to provide a redirect URL's\r\n * back to your app when login is completed.\r\n *\r\n * If there is already an active session, the new session will be attached to\r\n * the logged-in account. If there are no active sessions, the server will\r\n * attempt to look for a user with the same email address as the email\r\n * received from the OAuth2 provider and attach the new session to the\r\n * existing user. If no matching user is found - the server will create a new\r\n * user.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n *\r\n * @param {OAuthProvider} provider\r\n * @param {string} success\r\n * @param {string} failure\r\n * @param {string[]} scopes\r\n * @throws {AppwriteException}\r\n * @returns {void|string}\r\n */\r\n createOAuth2Session(\r\n provider: OAuthProvider,\r\n success?: string,\r\n failure?: string,\r\n scopes?: string[]\r\n ): void | URL {\r\n if (typeof provider === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"provider\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/oauth2/{provider}\".replace(\r\n \"{provider}\",\r\n provider\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof success !== \"undefined\") {\r\n payload[\"success\"] = success;\r\n }\r\n\r\n if (typeof failure !== \"undefined\") {\r\n payload[\"failure\"] = failure;\r\n }\r\n\r\n if (typeof scopes !== \"undefined\") {\r\n payload[\"scopes\"] = scopes;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Update phone session\r\n *\r\n * Use this endpoint to create a session from token. Provide the **userId**\r\n * and **secret** parameters from the successful response of authentication\r\n * flows initiated by token creation. For example, magic URL and phone login.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePhoneSession(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create session\r\n *\r\n * Use this endpoint to create a session from token. Provide the **userId**\r\n * and **secret** parameters from the successful response of authentication\r\n * flows initiated by token creation. For example, magic URL and phone login.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createSession(userId: string, secret: string): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/token\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get session\r\n *\r\n * Use this endpoint to get a logged in user's session using a Session ID.\r\n * Inputting 'current' will return the current session being used.\r\n *\r\n * @param {string} sessionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getSession(sessionId: string): Promise {\r\n if (typeof sessionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/{sessionId}\".replace(\r\n \"{sessionId}\",\r\n sessionId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update session\r\n *\r\n * Use this endpoint to extend a session's length. Extending a session is\r\n * useful when session expiry is short. If the session was created using an\r\n * OAuth provider, this endpoint refreshes the access token from the provider.\r\n *\r\n * @param {string} sessionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateSession(sessionId: string): Promise {\r\n if (typeof sessionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/{sessionId}\".replace(\r\n \"{sessionId}\",\r\n sessionId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete session\r\n *\r\n * Logout the user. Use 'current' as the session ID to logout on this device,\r\n * use a session ID to logout on another device. If you're looking to logout\r\n * the user on all devices, use [Delete\r\n * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions)\r\n * instead.\r\n *\r\n * @param {string} sessionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteSession(sessionId: string): Promise<{}> {\r\n if (typeof sessionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/{sessionId}\".replace(\r\n \"{sessionId}\",\r\n sessionId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update status\r\n *\r\n * Block the currently logged in user account. Behind the scene, the user\r\n * record is not deleted but permanently blocked from any access. To\r\n * completely delete a user, use the Users API instead.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateStatus(): Promise<\r\n Models.User\r\n > {\r\n const apiPath = \"/account/status\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create push target\r\n *\r\n *\r\n * @param {string} targetId\r\n * @param {string} identifier\r\n * @param {string} providerId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createPushTarget(\r\n targetId: string,\r\n identifier: string,\r\n providerId?: string\r\n ): Promise {\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n if (typeof identifier === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"identifier\"');\r\n }\r\n\r\n const apiPath = \"/account/targets/push\";\r\n const payload: Payload = {};\r\n\r\n if (typeof targetId !== \"undefined\") {\r\n payload[\"targetId\"] = targetId;\r\n }\r\n\r\n if (typeof identifier !== \"undefined\") {\r\n payload[\"identifier\"] = identifier;\r\n }\r\n\r\n if (typeof providerId !== \"undefined\") {\r\n payload[\"providerId\"] = providerId;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update push target\r\n *\r\n *\r\n * @param {string} targetId\r\n * @param {string} identifier\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePushTarget(\r\n targetId: string,\r\n identifier: string\r\n ): Promise {\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n if (typeof identifier === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"identifier\"');\r\n }\r\n\r\n const apiPath = \"/account/targets/{targetId}/push\".replace(\r\n \"{targetId}\",\r\n targetId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof identifier !== \"undefined\") {\r\n payload[\"identifier\"] = identifier;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete push target\r\n *\r\n *\r\n * @param {string} targetId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deletePushTarget(targetId: string): Promise<{}> {\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n const apiPath = \"/account/targets/{targetId}/push\".replace(\r\n \"{targetId}\",\r\n targetId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email token (OTP)\r\n *\r\n * Sends the user an email with a secret key for creating a session. If the\r\n * provided user ID has not be registered, a new user will be created. Use the\r\n * returned user ID and secret and submit a request to the [POST\r\n * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint to complete the login process. The secret sent to the user's email\r\n * is valid for 15 minutes.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {string} userId\r\n * @param {string} email\r\n * @param {boolean} phrase\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createEmailToken(\r\n userId: string,\r\n email: string,\r\n phrase?: boolean\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/email\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof phrase !== \"undefined\") {\r\n payload[\"phrase\"] = phrase;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create magic URL token\r\n *\r\n * Sends the user an email with a secret key for creating a session. If the\r\n * provided user ID has not been registered, a new user will be created. When\r\n * the user clicks the link in the email, the user is redirected back to the\r\n * URL you provided with the secret key and userId values attached to the URL\r\n * query string. Use the query string parameters to submit a request to the\r\n * [POST\r\n * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint to complete the login process. The link sent to the user's email\r\n * address is valid for 1 hour. If you are on a mobile device you can leave\r\n * the URL parameter empty, so that the login completion will be handled by\r\n * your Appwrite instance by default.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n *\r\n * @param {string} userId\r\n * @param {string} email\r\n * @param {string} url\r\n * @param {boolean} phrase\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMagicURLToken(\r\n userId: string,\r\n email: string,\r\n url?: string,\r\n phrase?: boolean\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/magic-url\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n if (typeof phrase !== \"undefined\") {\r\n payload[\"phrase\"] = phrase;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create OAuth2 token\r\n *\r\n * Allow the user to login to their account using the OAuth2 provider of their\r\n * choice. Each OAuth2 provider should be enabled from the Appwrite console\r\n * first. Use the success and failure arguments to provide a redirect URL's\r\n * back to your app when login is completed.\r\n *\r\n * If authentication succeeds, `userId` and `secret` of a token will be\r\n * appended to the success URL as query parameters. These can be used to\r\n * create a new session using the [Create\r\n * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {OAuthProvider} provider\r\n * @param {string} success\r\n * @param {string} failure\r\n * @param {string[]} scopes\r\n * @throws {AppwriteException}\r\n * @returns {void|string}\r\n */\r\n createOAuth2Token(\r\n provider: OAuthProvider,\r\n success?: string,\r\n failure?: string,\r\n scopes?: string[]\r\n ): void | URL {\r\n if (typeof provider === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"provider\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/oauth2/{provider}\".replace(\r\n \"{provider}\",\r\n provider\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof success !== \"undefined\") {\r\n payload[\"success\"] = success;\r\n }\r\n\r\n if (typeof failure !== \"undefined\") {\r\n payload[\"failure\"] = failure;\r\n }\r\n\r\n if (typeof scopes !== \"undefined\") {\r\n payload[\"scopes\"] = scopes;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Create phone token\r\n *\r\n * Sends the user an SMS with a secret key for creating a session. If the\r\n * provided user ID has not be registered, a new user will be created. Use the\r\n * returned user ID and secret and submit a request to the [POST\r\n * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint to complete the login process. The secret sent to the user's phone\r\n * is valid for 15 minutes.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {string} userId\r\n * @param {string} phone\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createPhoneToken(userId: string, phone: string): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof phone === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"phone\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof phone !== \"undefined\") {\r\n payload[\"phone\"] = phone;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email verification\r\n *\r\n * Use this endpoint to send a verification message to your user email address\r\n * to confirm they are the valid owners of that address. Both the **userId**\r\n * and **secret** arguments will be passed as query parameters to the URL you\r\n * have provided to be attached to the verification email. The provided URL\r\n * should redirect the user back to your app and allow you to complete the\r\n * verification process by verifying both the **userId** and **secret**\r\n * parameters. Learn more about how to [complete the verification\r\n * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification).\r\n * The verification link sent to the user's email address is valid for 7 days.\r\n *\r\n * Please note that in order to avoid a [Redirect\r\n * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),\r\n * the only valid redirect URLs are the ones from domains you have set when\r\n * adding your platforms in the console interface.\r\n *\r\n *\r\n * @param {string} url\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createVerification(url: string): Promise {\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/account/verification\";\r\n const payload: Payload = {};\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email verification (confirmation)\r\n *\r\n * Use this endpoint to complete the user email verification process. Use both\r\n * the **userId** and **secret** parameters that were attached to your app URL\r\n * to verify the user email ownership. If confirmed this route will return a\r\n * 200 status code.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateVerification(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/verification\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create phone verification\r\n *\r\n * Use this endpoint to send a verification SMS to the currently logged in\r\n * user. This endpoint is meant for use after updating a user's phone number\r\n * using the\r\n * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone)\r\n * endpoint. Learn more about how to [complete the verification\r\n * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification).\r\n * The verification code sent to the user's phone number is valid for 15\r\n * minutes.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createPhoneVerification(): Promise {\r\n const apiPath = \"/account/verification/phone\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create phone verification (confirmation)\r\n *\r\n * Use this endpoint to complete the user phone verification process. Use the\r\n * **userId** and **secret** that were sent to your user's phone number to\r\n * verify the user email ownership. If confirmed this route will return a 200\r\n * status code.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePhoneVerification(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/verification/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { Browser } from \"../enums/browser\";\r\nimport { CreditCard } from \"../enums/credit-card\";\r\nimport { Flag } from \"../enums/flag\";\r\n\r\nexport class Avatars extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Get browser icon\r\n *\r\n * You can use this endpoint to show different browser icons to your users.\r\n * The code argument receives the browser code as it appears in your user [GET\r\n * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions)\r\n * endpoint. Use width, height and quality arguments to change the output\r\n * settings.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n * @param {Browser} code\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} quality\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getBrowser(\r\n code: Browser,\r\n width?: number,\r\n height?: number,\r\n quality?: number\r\n ): URL {\r\n if (typeof code === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"code\"');\r\n }\r\n\r\n const apiPath = \"/avatars/browsers/{code}\".replace(\"{code}\", code);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get credit card icon\r\n *\r\n * The credit card endpoint will return you the icon of the credit card\r\n * provider you need. Use width, height and quality arguments to change the\r\n * output settings.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n *\r\n * @param {CreditCard} code\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} quality\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getCreditCard(\r\n code: CreditCard,\r\n width?: number,\r\n height?: number,\r\n quality?: number\r\n ): URL {\r\n if (typeof code === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"code\"');\r\n }\r\n\r\n const apiPath = \"/avatars/credit-cards/{code}\".replace(\"{code}\", code);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get favicon\r\n *\r\n * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote\r\n * website URL.\r\n *\r\n *\r\n * @param {string} url\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFavicon(url: string): URL {\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/avatars/favicon\";\r\n const payload: Payload = {};\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get country flag\r\n *\r\n * You can use this endpoint to show different country flags icons to your\r\n * users. The code argument receives the 2 letter country code. Use width,\r\n * height and quality arguments to change the output settings. Country codes\r\n * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n *\r\n * @param {Flag} code\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} quality\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFlag(code: Flag, width?: number, height?: number, quality?: number): URL {\r\n if (typeof code === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"code\"');\r\n }\r\n\r\n const apiPath = \"/avatars/flags/{code}\".replace(\"{code}\", code);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get image from URL\r\n *\r\n * Use this endpoint to fetch a remote image URL and crop it to any image size\r\n * you want. This endpoint is very useful if you need to crop and display\r\n * remote images in your app or in case you want to make sure a 3rd party\r\n * image is properly served using a TLS protocol.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 400x400px.\r\n *\r\n *\r\n * @param {string} url\r\n * @param {number} width\r\n * @param {number} height\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getImage(url: string, width?: number, height?: number): URL {\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/avatars/image\";\r\n const payload: Payload = {};\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get user initials\r\n *\r\n * Use this endpoint to show your user initials avatar icon on your website or\r\n * app. By default, this route will try to print your logged-in user name or\r\n * email initials. You can also overwrite the user name if you pass the 'name'\r\n * parameter. If no name is given and no user is logged, an empty avatar will\r\n * be returned.\r\n *\r\n * You can use the color and background params to change the avatar colors. By\r\n * default, a random theme will be selected. The random theme will persist for\r\n * the user's initials when reloading the same theme will always return for\r\n * the same initials.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n *\r\n * @param {string} name\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {string} background\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getInitials(\r\n name?: string,\r\n width?: number,\r\n height?: number,\r\n background?: string\r\n ): URL {\r\n const apiPath = \"/avatars/initials\";\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof background !== \"undefined\") {\r\n payload[\"background\"] = background;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get QR code\r\n *\r\n * Converts a given plain text to a QR code image. You can use the query\r\n * parameters to change the size and style of the resulting image.\r\n *\r\n *\r\n * @param {string} text\r\n * @param {number} size\r\n * @param {number} margin\r\n * @param {boolean} download\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getQR(text: string, size?: number, margin?: number, download?: boolean): URL {\r\n if (typeof text === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"text\"');\r\n }\r\n\r\n const apiPath = \"/avatars/qr\";\r\n const payload: Payload = {};\r\n\r\n if (typeof text !== \"undefined\") {\r\n payload[\"text\"] = text;\r\n }\r\n\r\n if (typeof size !== \"undefined\") {\r\n payload[\"size\"] = size;\r\n }\r\n\r\n if (typeof margin !== \"undefined\") {\r\n payload[\"margin\"] = margin;\r\n }\r\n\r\n if (typeof download !== \"undefined\") {\r\n payload[\"download\"] = download;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Databases extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List documents\r\n *\r\n * Get a list of all the user's documents in a given collection. You can use\r\n * the query params to filter your results.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listDocuments(\r\n databaseId: string,\r\n collectionId: string,\r\n queries?: string[]\r\n ): Promise> {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId);\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create document\r\n *\r\n * Create a new Document. Before using this route, you should create a new\r\n * collection resource using either a [server\r\n * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)\r\n * API or directly from your database console.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @param {object} data\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string,\r\n data: object,\r\n permissions?: string[]\r\n ): Promise {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n if (typeof data === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"data\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId);\r\n const payload: Payload = {};\r\n\r\n if (typeof documentId !== \"undefined\") {\r\n payload[\"documentId\"] = documentId;\r\n }\r\n\r\n if (typeof data !== \"undefined\") {\r\n payload[\"data\"] = data;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get document\r\n *\r\n * Get a document by its unique ID. This endpoint response returns a JSON\r\n * object with the document data.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string,\r\n queries?: string[]\r\n ): Promise {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents/{documentId}\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId)\r\n .replace(\"{documentId}\", documentId);\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update document\r\n *\r\n * Update a document by its unique ID. Using the patch method you can pass\r\n * only specific fields that will get updated.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @param {object} data\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string,\r\n data?: object,\r\n permissions?: string[]\r\n ): Promise {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents/{documentId}\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId)\r\n .replace(\"{documentId}\", documentId);\r\n const payload: Payload = {};\r\n\r\n if (typeof data !== \"undefined\") {\r\n payload[\"data\"] = data;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete document\r\n *\r\n * Delete a document by its unique ID.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string\r\n ): Promise<{}> {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents/{documentId}\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId)\r\n .replace(\"{documentId}\", documentId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { ExecutionMethod } from \"../enums/execution-method\";\r\n\r\nexport class Functions extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List executions\r\n *\r\n * Get a list of all the current user function execution logs. You can use the\r\n * query params to filter your results.\r\n *\r\n * @param {string} functionId\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listExecutions(\r\n functionId: string,\r\n queries?: string[],\r\n search?: string\r\n ): Promise {\r\n if (typeof functionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"functionId\"');\r\n }\r\n\r\n const apiPath = \"/functions/{functionId}/executions\".replace(\r\n \"{functionId}\",\r\n functionId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create execution\r\n *\r\n * Trigger a function execution. The returned object will return you the\r\n * current execution status. You can ping the `Get Execution` endpoint to get\r\n * updates on the current execution status. Once this endpoint is called, your\r\n * function execution process will start asynchronously.\r\n *\r\n * @param {string} functionId\r\n * @param {string} body\r\n * @param {boolean} async\r\n * @param {string} xpath\r\n * @param {ExecutionMethod} method\r\n * @param {object} headers\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createExecution(\r\n functionId: string,\r\n body?: string,\r\n async?: boolean,\r\n xpath?: string,\r\n method?: ExecutionMethod,\r\n headers?: object\r\n ): Promise {\r\n if (typeof functionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"functionId\"');\r\n }\r\n\r\n const apiPath = \"/functions/{functionId}/executions\".replace(\r\n \"{functionId}\",\r\n functionId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof body !== \"undefined\") {\r\n payload[\"body\"] = body;\r\n }\r\n\r\n if (typeof async !== \"undefined\") {\r\n payload[\"async\"] = async;\r\n }\r\n\r\n if (typeof xpath !== \"undefined\") {\r\n payload[\"path\"] = xpath;\r\n }\r\n\r\n if (typeof method !== \"undefined\") {\r\n payload[\"method\"] = method;\r\n }\r\n\r\n if (typeof headers !== \"undefined\") {\r\n payload[\"headers\"] = headers;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get execution\r\n *\r\n * Get a function execution log by its unique ID.\r\n *\r\n * @param {string} functionId\r\n * @param {string} executionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getExecution(\r\n functionId: string,\r\n executionId: string\r\n ): Promise {\r\n if (typeof functionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"functionId\"');\r\n }\r\n\r\n if (typeof executionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"executionId\"');\r\n }\r\n\r\n const apiPath = \"/functions/{functionId}/executions/{executionId}\"\r\n .replace(\"{functionId}\", functionId)\r\n .replace(\"{executionId}\", executionId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Graphql extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * GraphQL endpoint\r\n *\r\n * Execute a GraphQL mutation.\r\n *\r\n * @param {object} query\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async query(query: object): Promise<{}> {\r\n if (typeof query === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"query\"');\r\n }\r\n\r\n const apiPath = \"/graphql\";\r\n const payload: Payload = {};\r\n\r\n if (typeof query !== \"undefined\") {\r\n payload[\"query\"] = query;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"x-sdk-graphql\": \"true\",\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * GraphQL endpoint\r\n *\r\n * Execute a GraphQL mutation.\r\n *\r\n * @param {object} query\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async mutation(query: object): Promise<{}> {\r\n if (typeof query === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"query\"');\r\n }\r\n\r\n const apiPath = \"/graphql/mutation\";\r\n const payload: Payload = {};\r\n\r\n if (typeof query !== \"undefined\") {\r\n payload[\"query\"] = query;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"x-sdk-graphql\": \"true\",\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Locale extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Get user locale\r\n *\r\n * Get the current user location based on IP. Returns an object with user\r\n * country code, country name, continent name, continent code, ip address and\r\n * suggested currency. You can use the locale header to get the data in a\r\n * supported language.\r\n *\r\n * ([IP Geolocation by DB-IP](https://db-ip.com))\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async get(): Promise {\r\n const apiPath = \"/locale\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List Locale Codes\r\n *\r\n * List of all locale codes in [ISO\r\n * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCodes(): Promise {\r\n const apiPath = \"/locale/codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List continents\r\n *\r\n * List of all continents. You can use the locale header to get the data in a\r\n * supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listContinents(): Promise {\r\n const apiPath = \"/locale/continents\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List countries\r\n *\r\n * List of all countries. You can use the locale header to get the data in a\r\n * supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCountries(): Promise {\r\n const apiPath = \"/locale/countries\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List EU countries\r\n *\r\n * List of all countries that are currently members of the EU. You can use the\r\n * locale header to get the data in a supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCountriesEU(): Promise {\r\n const apiPath = \"/locale/countries/eu\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List countries phone codes\r\n *\r\n * List of all countries phone codes. You can use the locale header to get the\r\n * data in a supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCountriesPhones(): Promise {\r\n const apiPath = \"/locale/countries/phones\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List currencies\r\n *\r\n * List of all currencies, including currency symbol, name, plural, and\r\n * decimal digits for all major and minor currencies. You can use the locale\r\n * header to get the data in a supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCurrencies(): Promise {\r\n const apiPath = \"/locale/currencies\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List languages\r\n *\r\n * List of all languages classified by ISO 639-1 including 2-letter code, name\r\n * in English, and name in the respective language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listLanguages(): Promise {\r\n const apiPath = \"/locale/languages\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Messaging extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Create subscriber\r\n *\r\n * Create a new subscriber.\r\n *\r\n * @param {string} topicId\r\n * @param {string} subscriberId\r\n * @param {string} targetId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createSubscriber(\r\n topicId: string,\r\n subscriberId: string,\r\n targetId: string\r\n ): Promise {\r\n if (typeof topicId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"topicId\"');\r\n }\r\n\r\n if (typeof subscriberId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"subscriberId\"');\r\n }\r\n\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n const apiPath = \"/messaging/topics/{topicId}/subscribers\".replace(\r\n \"{topicId}\",\r\n topicId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof subscriberId !== \"undefined\") {\r\n payload[\"subscriberId\"] = subscriberId;\r\n }\r\n\r\n if (typeof targetId !== \"undefined\") {\r\n payload[\"targetId\"] = targetId;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete subscriber\r\n *\r\n * Delete a subscriber by its unique ID.\r\n *\r\n * @param {string} topicId\r\n * @param {string} subscriberId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {\r\n if (typeof topicId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"topicId\"');\r\n }\r\n\r\n if (typeof subscriberId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"subscriberId\"');\r\n }\r\n\r\n const apiPath = \"/messaging/topics/{topicId}/subscribers/{subscriberId}\"\r\n .replace(\"{topicId}\", topicId)\r\n .replace(\"{subscriberId}\", subscriberId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\nimport fs from \"react-native-fs\";\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { ImageGravity } from \"../enums/image-gravity\";\r\nimport { ImageFormat } from \"../enums/image-format\";\r\n\r\nexport class Storage extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List files\r\n *\r\n * Get a list of all the user files. You can use the query params to filter\r\n * your results.\r\n *\r\n * @param {string} bucketId\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listFiles(\r\n bucketId: string,\r\n queries?: string[],\r\n search?: string\r\n ): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files\".replace(\r\n \"{bucketId}\",\r\n bucketId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create file\r\n *\r\n * Create a new file. Before using this route, you should create a new bucket\r\n * resource using either a [server\r\n * integration](https://appwrite.io/docs/server/storage#storageCreateBucket)\r\n * API or directly from your Appwrite console.\r\n *\r\n * Larger files should be uploaded using multiple requests with the\r\n * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)\r\n * header to send a partial request with a maximum supported chunk of `5MB`.\r\n * The `content-range` header values should always be in bytes.\r\n *\r\n * When the first request is sent, the server will return the **File** object,\r\n * and the subsequent part request must include the file's **id** in\r\n * `x-appwrite-id` header to allow the server to know that the partial upload\r\n * is for the existing file and not for a new one.\r\n *\r\n * If you're creating a new file using one of the Appwrite SDKs, all the\r\n * chunking logic will be managed by the SDK internally.\r\n *\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @param {{name: string, type: string, size: number, uri: string}} file\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createFile(\r\n bucketId: string,\r\n fileId: string,\r\n file: { name: string; type: string; size: number; uri: string },\r\n permissions?: string[],\r\n onProgress = (progress: UploadProgress) => {}\r\n ): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n if (typeof file === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"file\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files\".replace(\r\n \"{bucketId}\",\r\n bucketId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof fileId !== \"undefined\") {\r\n payload[\"fileId\"] = fileId;\r\n }\r\n\r\n if (typeof file !== \"undefined\") {\r\n payload[\"file\"] = file;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n\r\n const size = file.size;\r\n\r\n if (size <= Service.CHUNK_SIZE) {\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"multipart/form-data\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n const apiHeaders: { [header: string]: string } = {\r\n \"content-type\": \"multipart/form-data\",\r\n };\r\n\r\n let offset = 0;\r\n let response = undefined;\r\n if (fileId != \"unique()\") {\r\n try {\r\n response = await this.client.call(\r\n \"GET\",\r\n new URL(this.client.config.endpoint + apiPath + \"/\" + fileId),\r\n apiHeaders\r\n );\r\n offset = response.chunksUploaded * Service.CHUNK_SIZE;\r\n } catch (e) {}\r\n }\r\n\r\n let timestamp = new Date().getTime();\r\n while (offset < size) {\r\n let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);\r\n\r\n apiHeaders[\"content-range\"] = \"bytes \" + offset + \"-\" + end + \"/\" + size;\r\n if (response && response.$id) {\r\n apiHeaders[\"x-appwrite-id\"] = response.$id;\r\n }\r\n\r\n let chunk = await fs.read(file.uri, Service.CHUNK_SIZE, offset, \"base64\");\r\n // let chunk = await FileSystem.readAsStringAsync(file.uri, {\r\n // encoding: FileSystem.EncodingType.Base64,\r\n // position: offset,\r\n // length: Service.CHUNK_SIZE\r\n // });\r\n var path = `data:${file.type};base64,${chunk}`;\r\n if (Platform.OS.toLowerCase() === \"android\") {\r\n path = \"file://\" + fs.CachesDirectoryPath + \"/tmp_chunk_\" + timestamp;\r\n await fs.writeFile(path, chunk, \"base64\");\r\n }\r\n\r\n payload[\"file\"] = { uri: path, name: file.name, type: file.type };\r\n\r\n response = await this.client.call(\"post\", uri, apiHeaders, payload);\r\n\r\n if (onProgress) {\r\n onProgress({\r\n $id: response.$id,\r\n progress: (offset / size) * 100,\r\n sizeUploaded: offset,\r\n chunksTotal: response.chunksTotal,\r\n chunksUploaded: response.chunksUploaded,\r\n });\r\n }\r\n offset += Service.CHUNK_SIZE;\r\n }\r\n return response;\r\n }\r\n\r\n /**\r\n * Get file\r\n *\r\n * Get a file by its unique ID. This endpoint response returns a JSON object\r\n * with the file metadata.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getFile(bucketId: string, fileId: string): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update file\r\n *\r\n * Update a file by its unique ID. Only users with write permissions have\r\n * access to update this resource.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @param {string} name\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateFile(\r\n bucketId: string,\r\n fileId: string,\r\n name?: string,\r\n permissions?: string[]\r\n ): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete File\r\n *\r\n * Delete a file by its unique ID. Only users with write permissions have\r\n * access to delete this resource.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteFile(bucketId: string, fileId: string): Promise<{}> {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get file for download\r\n *\r\n * Get a file content by its unique ID. The endpoint response return with a\r\n * 'Content-Disposition: attachment' header that tells the browser to start\r\n * downloading the file to user downloads directory.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFileDownload(bucketId: string, fileId: string): URL {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}/download\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get file preview\r\n *\r\n * Get a file preview image. Currently, this method supports preview for image\r\n * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,\r\n * and spreadsheets, will return the file icon image. You can also pass query\r\n * string arguments for cutting and resizing your preview image. Preview is\r\n * supported only for image files smaller than 10MB.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {ImageGravity} gravity\r\n * @param {number} quality\r\n * @param {number} borderWidth\r\n * @param {string} borderColor\r\n * @param {number} borderRadius\r\n * @param {number} opacity\r\n * @param {number} rotation\r\n * @param {string} background\r\n * @param {ImageFormat} output\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFilePreview(\r\n bucketId: string,\r\n fileId: string,\r\n width?: number,\r\n height?: number,\r\n gravity?: ImageGravity,\r\n quality?: number,\r\n borderWidth?: number,\r\n borderColor?: string,\r\n borderRadius?: number,\r\n opacity?: number,\r\n rotation?: number,\r\n background?: string,\r\n output?: ImageFormat\r\n ): URL {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}/preview\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof gravity !== \"undefined\") {\r\n payload[\"gravity\"] = gravity;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n if (typeof borderWidth !== \"undefined\") {\r\n payload[\"borderWidth\"] = borderWidth;\r\n }\r\n\r\n if (typeof borderColor !== \"undefined\") {\r\n payload[\"borderColor\"] = borderColor;\r\n }\r\n\r\n if (typeof borderRadius !== \"undefined\") {\r\n payload[\"borderRadius\"] = borderRadius;\r\n }\r\n\r\n if (typeof opacity !== \"undefined\") {\r\n payload[\"opacity\"] = opacity;\r\n }\r\n\r\n if (typeof rotation !== \"undefined\") {\r\n payload[\"rotation\"] = rotation;\r\n }\r\n\r\n if (typeof background !== \"undefined\") {\r\n payload[\"background\"] = background;\r\n }\r\n\r\n if (typeof output !== \"undefined\") {\r\n payload[\"output\"] = output;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get file for view\r\n *\r\n * Get a file content by its unique ID. This endpoint is similar to the\r\n * download method but returns with no 'Content-Disposition: attachment'\r\n * header.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFileView(bucketId: string, fileId: string): URL {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}/view\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Teams extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List teams\r\n *\r\n * Get a list of all the teams in which the current user is a member. You can\r\n * use the parameters to filter your results.\r\n *\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async list(\r\n queries?: string[],\r\n search?: string\r\n ): Promise> {\r\n const apiPath = \"/teams\";\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create team\r\n *\r\n * Create a new team. The user who creates the team will automatically be\r\n * assigned as the owner of the team. Only the users with the owner role can\r\n * invite new members, add new owners and delete or update the team.\r\n *\r\n * @param {string} teamId\r\n * @param {string} name\r\n * @param {string[]} roles\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async create(\r\n teamId: string,\r\n name: string,\r\n roles?: string[]\r\n ): Promise> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof name === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"name\"');\r\n }\r\n\r\n const apiPath = \"/teams\";\r\n const payload: Payload = {};\r\n\r\n if (typeof teamId !== \"undefined\") {\r\n payload[\"teamId\"] = teamId;\r\n }\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n if (typeof roles !== \"undefined\") {\r\n payload[\"roles\"] = roles;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get team\r\n *\r\n * Get a team by its ID. All team members have read access for this resource.\r\n *\r\n * @param {string} teamId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async get(\r\n teamId: string\r\n ): Promise> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update name\r\n *\r\n * Update the team's name by its unique ID.\r\n *\r\n * @param {string} teamId\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateName(\r\n teamId: string,\r\n name: string\r\n ): Promise> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof name === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"name\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete team\r\n *\r\n * Delete a team using its ID. Only team members with the owner role can\r\n * delete the team.\r\n *\r\n * @param {string} teamId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async delete(teamId: string): Promise<{}> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List team memberships\r\n *\r\n * Use this endpoint to list a team's members using the team's ID. All team\r\n * members have read access to this endpoint.\r\n *\r\n * @param {string} teamId\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listMemberships(\r\n teamId: string,\r\n queries?: string[],\r\n search?: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create team membership\r\n *\r\n * Invite a new member to join your team. Provide an ID for existing users, or\r\n * invite unregistered users using an email or phone number. If initiated from\r\n * a Client SDK, Appwrite will send an email or sms with a link to join the\r\n * team to the invited user, and an account will be created for them if one\r\n * doesn't exist. If initiated from a Server SDK, the new member will be added\r\n * automatically to the team.\r\n *\r\n * You only need to provide one of a user ID, email, or phone number. Appwrite\r\n * will prioritize accepting the user ID > email > phone number if you provide\r\n * more than one of these parameters.\r\n *\r\n * Use the `url` parameter to redirect the user from the invitation email to\r\n * your app. After the user is redirected, use the [Update Team Membership\r\n * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus)\r\n * endpoint to allow the user to accept the invitation to the team.\r\n *\r\n * Please note that to avoid a [Redirect\r\n * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)\r\n * Appwrite will accept the only redirect URLs under the domains you have\r\n * added as a platform on the Appwrite Console.\r\n *\r\n *\r\n * @param {string} teamId\r\n * @param {string[]} roles\r\n * @param {string} email\r\n * @param {string} userId\r\n * @param {string} phone\r\n * @param {string} url\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMembership(\r\n teamId: string,\r\n roles: string[],\r\n email?: string,\r\n userId?: string,\r\n phone?: string,\r\n url?: string,\r\n name?: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof roles === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"roles\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof phone !== \"undefined\") {\r\n payload[\"phone\"] = phone;\r\n }\r\n\r\n if (typeof roles !== \"undefined\") {\r\n payload[\"roles\"] = roles;\r\n }\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get team membership\r\n *\r\n * Get a team member by the membership unique id. All team members have read\r\n * access for this resource.\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getMembership(\r\n teamId: string,\r\n membershipId: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update membership\r\n *\r\n * Modify the roles of a team member. Only team members with the owner role\r\n * have access to this endpoint. Learn more about [roles and\r\n * permissions](https://appwrite.io/docs/permissions).\r\n *\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @param {string[]} roles\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMembership(\r\n teamId: string,\r\n membershipId: string,\r\n roles: string[]\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n if (typeof roles === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"roles\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n if (typeof roles !== \"undefined\") {\r\n payload[\"roles\"] = roles;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete team membership\r\n *\r\n * This endpoint allows a user to leave a team or for a team owner to delete\r\n * the membership of any other team member. You can also use this endpoint to\r\n * delete a user membership even if it is not accepted.\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteMembership(teamId: string, membershipId: string): Promise<{}> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update team membership status\r\n *\r\n * Use this endpoint to allow a user to accept an invitation to join a team\r\n * after being redirected back to your app from the invitation email received\r\n * by the user.\r\n *\r\n * If the request is successful, a session for the user is automatically\r\n * created.\r\n *\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMembershipStatus(\r\n teamId: string,\r\n membershipId: string,\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}/status\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get team preferences\r\n *\r\n * Get the team's shared preferences by its unique ID. If a preference doesn't\r\n * need to be shared by all team members, prefer storing them in [user\r\n * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).\r\n *\r\n * @param {string} teamId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getPrefs(\r\n teamId: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/prefs\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update preferences\r\n *\r\n * Update the team's preferences by its unique ID. The object you pass is\r\n * stored as is and replaces any previous value. The maximum allowed prefs\r\n * size is 64kB and throws an error if exceeded.\r\n *\r\n * @param {string} teamId\r\n * @param {object} prefs\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePrefs(\r\n teamId: string,\r\n prefs: object\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof prefs === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"prefs\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/prefs\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof prefs !== \"undefined\") {\r\n payload[\"prefs\"] = prefs;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","type QueryTypesSingle = string | number | boolean;\r\nexport type QueryTypesList = string[] | number[] | boolean[] | Query[];\r\nexport type QueryTypes = QueryTypesSingle | QueryTypesList;\r\ntype AttributesTypes = string | string[];\r\n\r\nexport class Query {\r\n method: string;\r\n attribute: AttributesTypes | undefined;\r\n values: QueryTypesList | undefined;\r\n\r\n constructor(\r\n method: string,\r\n attribute?: AttributesTypes,\r\n values?: QueryTypes\r\n ) {\r\n this.method = method;\r\n this.attribute = attribute;\r\n\r\n if (values !== undefined) {\r\n if (Array.isArray(values)) {\r\n this.values = values;\r\n } else {\r\n this.values = [values] as QueryTypesList;\r\n }\r\n }\r\n }\r\n\r\n toString(): string {\r\n return JSON.stringify({\r\n method: this.method,\r\n attribute: this.attribute,\r\n values: this.values,\r\n });\r\n }\r\n\r\n static equal = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"equal\", attribute, value).toString();\r\n\r\n static notEqual = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"notEqual\", attribute, value).toString();\r\n\r\n static lessThan = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"lessThan\", attribute, value).toString();\r\n\r\n static lessThanEqual = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"lessThanEqual\", attribute, value).toString();\r\n\r\n static greaterThan = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"greaterThan\", attribute, value).toString();\r\n\r\n static greaterThanEqual = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"greaterThanEqual\", attribute, value).toString();\r\n\r\n static isNull = (attribute: string): string =>\r\n new Query(\"isNull\", attribute).toString();\r\n\r\n static isNotNull = (attribute: string): string =>\r\n new Query(\"isNotNull\", attribute).toString();\r\n\r\n static between = (attribute: string, start: string | number, end: string | number) =>\r\n new Query(\"between\", attribute, [start, end] as QueryTypesList).toString();\r\n\r\n static startsWith = (attribute: string, value: string): string =>\r\n new Query(\"startsWith\", attribute, value).toString();\r\n\r\n static endsWith = (attribute: string, value: string): string =>\r\n new Query(\"endsWith\", attribute, value).toString();\r\n\r\n static select = (attributes: string[]): string =>\r\n new Query(\"select\", undefined, attributes).toString();\r\n\r\n static search = (attribute: string, value: string): string =>\r\n new Query(\"search\", attribute, value).toString();\r\n\r\n static orderDesc = (attribute: string): string =>\r\n new Query(\"orderDesc\", attribute).toString();\r\n\r\n static orderAsc = (attribute: string): string =>\r\n new Query(\"orderAsc\", attribute).toString();\r\n\r\n static cursorAfter = (documentId: string): string =>\r\n new Query(\"cursorAfter\", undefined, documentId).toString();\r\n\r\n static cursorBefore = (documentId: string): string =>\r\n new Query(\"cursorBefore\", undefined, documentId).toString();\r\n\r\n static limit = (limit: number): string =>\r\n new Query(\"limit\", undefined, limit).toString();\r\n\r\n static offset = (offset: number): string =>\r\n new Query(\"offset\", undefined, offset).toString();\r\n\r\n static contains = (attribute: string, value: string | string[]): string =>\r\n new Query(\"contains\", attribute, value).toString();\r\n\r\n static or = (queries: string[]) =>\r\n new Query(\"or\", undefined, queries.map((query) => JSON.parse(query))).toString();\r\n\r\n static and = (queries: string[]) =>\r\n new Query(\"and\", undefined, queries.map((query) => JSON.parse(query))).toString();\r\n}\r\n","export class Permission {\r\n\r\n static read = (role: string): string => {\r\n return `read(\"${role}\")`\r\n }\r\n\r\n static write = (role: string): string => {\r\n return `write(\"${role}\")`\r\n }\r\n\r\n static create = (role: string): string => {\r\n return `create(\"${role}\")`\r\n }\r\n\r\n static update = (role: string): string => {\r\n return `update(\"${role}\")`\r\n }\r\n\r\n static delete = (role: string): string => {\r\n return `delete(\"${role}\")`\r\n }\r\n}\r\n","/**\r\n * Helper class to generate role strings for `Permission`.\r\n */\r\nexport class Role {\r\n\r\n /**\r\n * Grants access to anyone.\r\n * \r\n * This includes authenticated and unauthenticated users.\r\n * \r\n * @returns {string}\r\n */\r\n public static any(): string {\r\n return 'any'\r\n }\r\n\r\n /**\r\n * Grants access to a specific user by user ID.\r\n * \r\n * You can optionally pass verified or unverified for\r\n * `status` to target specific types of users.\r\n *\r\n * @param {string} id \r\n * @param {string} status \r\n * @returns {string}\r\n */\r\n public static user(id: string, status: string = ''): string {\r\n if (status === '') {\r\n return `user:${id}`\r\n }\r\n return `user:${id}/${status}`\r\n }\r\n\r\n /**\r\n * Grants access to any authenticated or anonymous user.\r\n * \r\n * You can optionally pass verified or unverified for\r\n * `status` to target specific types of users.\r\n * \r\n * @param {string} status \r\n * @returns {string}\r\n */\r\n public static users(status: string = ''): string {\r\n if (status === '') {\r\n return 'users'\r\n }\r\n return `users/${status}`\r\n }\r\n\r\n /**\r\n * Grants access to any guest user without a session.\r\n * \r\n * Authenticated users don't have access to this role.\r\n * \r\n * @returns {string}\r\n */\r\n public static guests(): string {\r\n return 'guests'\r\n }\r\n\r\n /**\r\n * Grants access to a team by team ID.\r\n * \r\n * You can optionally pass a role for `role` to target\r\n * team members with the specified role.\r\n * \r\n * @param {string} id \r\n * @param {string} role \r\n * @returns {string}\r\n */\r\n public static team(id: string, role: string = ''): string {\r\n if (role === '') {\r\n return `team:${id}`\r\n }\r\n return `team:${id}/${role}`\r\n }\r\n\r\n /**\r\n * Grants access to a specific member of a team.\r\n * \r\n * When the member is removed from the team, they will\r\n * no longer have access.\r\n * \r\n * @param {string} id \r\n * @returns {string}\r\n */\r\n public static member(id: string): string {\r\n return `member:${id}`\r\n }\r\n\r\n /**\r\n * Grants access to a user with the specified label.\r\n * \r\n * @param {string} name \r\n * @returns {string}\r\n */\r\n public static label(name: string): string {\r\n return `label:${name}`\r\n }\r\n}","export class ID {\r\n // Generate an hex ID based on timestamp\r\n // Recreated from https://www.php.net/manual/en/function.uniqid.php\r\n static #hexTimestamp(): string {\r\n const now = new Date();\r\n const sec = Math.floor(now.getTime() / 1000);\r\n const msec = now.getMilliseconds();\r\n\r\n // Convert to hexadecimal\r\n const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');\r\n return hexTimestamp;\r\n }\r\n\r\n public static custom(id: string): string {\r\n return id\r\n }\r\n\r\n public static unique(padding: number = 7): string {\r\n // Generate a unique ID with padding to have a longer ID\r\n const baseId = ID.#hexTimestamp();\r\n let randomPadding = '';\r\n for (let i = 0; i < padding; i++) {\r\n const randomHexDigit = Math.floor(Math.random() * 16).toString(16);\r\n randomPadding += randomHexDigit;\r\n }\r\n return baseId + randomPadding;\r\n }\r\n}\r\n","export enum AuthenticatorType {\r\n Totp = 'totp',\r\n}","export enum AuthenticationFactor {\r\n Email = 'email',\r\n Phone = 'phone',\r\n Totp = 'totp',\r\n Recoverycode = 'recoverycode',\r\n}","export enum OAuthProvider {\r\n Amazon = 'amazon',\r\n Apple = 'apple',\r\n Auth0 = 'auth0',\r\n Authentik = 'authentik',\r\n Autodesk = 'autodesk',\r\n Bitbucket = 'bitbucket',\r\n Bitly = 'bitly',\r\n Box = 'box',\r\n Dailymotion = 'dailymotion',\r\n Discord = 'discord',\r\n Disqus = 'disqus',\r\n Dropbox = 'dropbox',\r\n Etsy = 'etsy',\r\n Facebook = 'facebook',\r\n Github = 'github',\r\n Gitlab = 'gitlab',\r\n Google = 'google',\r\n Linkedin = 'linkedin',\r\n Microsoft = 'microsoft',\r\n Notion = 'notion',\r\n Oidc = 'oidc',\r\n Okta = 'okta',\r\n Paypal = 'paypal',\r\n PaypalSandbox = 'paypalSandbox',\r\n Podio = 'podio',\r\n Salesforce = 'salesforce',\r\n Slack = 'slack',\r\n Spotify = 'spotify',\r\n Stripe = 'stripe',\r\n Tradeshift = 'tradeshift',\r\n TradeshiftBox = 'tradeshiftBox',\r\n Twitch = 'twitch',\r\n Wordpress = 'wordpress',\r\n Yahoo = 'yahoo',\r\n Yammer = 'yammer',\r\n Yandex = 'yandex',\r\n Zoho = 'zoho',\r\n Zoom = 'zoom',\r\n Mock = 'mock',\r\n}","export enum Browser {\r\n AvantBrowser = 'aa',\r\n AndroidWebViewBeta = 'an',\r\n GoogleChrome = 'ch',\r\n GoogleChromeIOS = 'ci',\r\n GoogleChromeMobile = 'cm',\r\n Chromium = 'cr',\r\n MozillaFirefox = 'ff',\r\n Safari = 'sf',\r\n MobileSafari = 'mf',\r\n MicrosoftEdge = 'ps',\r\n MicrosoftEdgeIOS = 'oi',\r\n OperaMini = 'om',\r\n Opera = 'op',\r\n OperaNext = 'on',\r\n}","export enum CreditCard {\r\n AmericanExpress = 'amex',\r\n Argencard = 'argencard',\r\n Cabal = 'cabal',\r\n Cencosud = 'cencosud',\r\n DinersClub = 'diners',\r\n Discover = 'discover',\r\n Elo = 'elo',\r\n Hipercard = 'hipercard',\r\n JCB = 'jcb',\r\n Mastercard = 'mastercard',\r\n Naranja = 'naranja',\r\n TarjetaShopping = 'targeta-shopping',\r\n UnionChinaPay = 'union-china-pay',\r\n Visa = 'visa',\r\n MIR = 'mir',\r\n Maestro = 'maestro',\r\n}","export enum Flag {\r\n Afghanistan = 'af',\r\n Angola = 'ao',\r\n Albania = 'al',\r\n Andorra = 'ad',\r\n UnitedArabEmirates = 'ae',\r\n Argentina = 'ar',\r\n Armenia = 'am',\r\n AntiguaAndBarbuda = 'ag',\r\n Australia = 'au',\r\n Austria = 'at',\r\n Azerbaijan = 'az',\r\n Burundi = 'bi',\r\n Belgium = 'be',\r\n Benin = 'bj',\r\n BurkinaFaso = 'bf',\r\n Bangladesh = 'bd',\r\n Bulgaria = 'bg',\r\n Bahrain = 'bh',\r\n Bahamas = 'bs',\r\n BosniaAndHerzegovina = 'ba',\r\n Belarus = 'by',\r\n Belize = 'bz',\r\n Bolivia = 'bo',\r\n Brazil = 'br',\r\n Barbados = 'bb',\r\n BruneiDarussalam = 'bn',\r\n Bhutan = 'bt',\r\n Botswana = 'bw',\r\n CentralAfricanRepublic = 'cf',\r\n Canada = 'ca',\r\n Switzerland = 'ch',\r\n Chile = 'cl',\r\n China = 'cn',\r\n CoteDIvoire = 'ci',\r\n Cameroon = 'cm',\r\n DemocraticRepublicOfTheCongo = 'cd',\r\n RepublicOfTheCongo = 'cg',\r\n Colombia = 'co',\r\n Comoros = 'km',\r\n CapeVerde = 'cv',\r\n CostaRica = 'cr',\r\n Cuba = 'cu',\r\n Cyprus = 'cy',\r\n CzechRepublic = 'cz',\r\n Germany = 'de',\r\n Djibouti = 'dj',\r\n Dominica = 'dm',\r\n Denmark = 'dk',\r\n DominicanRepublic = 'do',\r\n Algeria = 'dz',\r\n Ecuador = 'ec',\r\n Egypt = 'eg',\r\n Eritrea = 'er',\r\n Spain = 'es',\r\n Estonia = 'ee',\r\n Ethiopia = 'et',\r\n Finland = 'fi',\r\n Fiji = 'fj',\r\n France = 'fr',\r\n MicronesiaFederatedStatesOf = 'fm',\r\n Gabon = 'ga',\r\n UnitedKingdom = 'gb',\r\n Georgia = 'ge',\r\n Ghana = 'gh',\r\n Guinea = 'gn',\r\n Gambia = 'gm',\r\n GuineaBissau = 'gw',\r\n EquatorialGuinea = 'gq',\r\n Greece = 'gr',\r\n Grenada = 'gd',\r\n Guatemala = 'gt',\r\n Guyana = 'gy',\r\n Honduras = 'hn',\r\n Croatia = 'hr',\r\n Haiti = 'ht',\r\n Hungary = 'hu',\r\n Indonesia = 'id',\r\n India = 'in',\r\n Ireland = 'ie',\r\n IranIslamicRepublicOf = 'ir',\r\n Iraq = 'iq',\r\n Iceland = 'is',\r\n Israel = 'il',\r\n Italy = 'it',\r\n Jamaica = 'jm',\r\n Jordan = 'jo',\r\n Japan = 'jp',\r\n Kazakhstan = 'kz',\r\n Kenya = 'ke',\r\n Kyrgyzstan = 'kg',\r\n Cambodia = 'kh',\r\n Kiribati = 'ki',\r\n SaintKittsAndNevis = 'kn',\r\n SouthKorea = 'kr',\r\n Kuwait = 'kw',\r\n LaoPeopleSDemocraticRepublic = 'la',\r\n Lebanon = 'lb',\r\n Liberia = 'lr',\r\n Libya = 'ly',\r\n SaintLucia = 'lc',\r\n Liechtenstein = 'li',\r\n SriLanka = 'lk',\r\n Lesotho = 'ls',\r\n Lithuania = 'lt',\r\n Luxembourg = 'lu',\r\n Latvia = 'lv',\r\n Morocco = 'ma',\r\n Monaco = 'mc',\r\n Moldova = 'md',\r\n Madagascar = 'mg',\r\n Maldives = 'mv',\r\n Mexico = 'mx',\r\n MarshallIslands = 'mh',\r\n NorthMacedonia = 'mk',\r\n Mali = 'ml',\r\n Malta = 'mt',\r\n Myanmar = 'mm',\r\n Montenegro = 'me',\r\n Mongolia = 'mn',\r\n Mozambique = 'mz',\r\n Mauritania = 'mr',\r\n Mauritius = 'mu',\r\n Malawi = 'mw',\r\n Malaysia = 'my',\r\n Namibia = 'na',\r\n Niger = 'ne',\r\n Nigeria = 'ng',\r\n Nicaragua = 'ni',\r\n Netherlands = 'nl',\r\n Norway = 'no',\r\n Nepal = 'np',\r\n Nauru = 'nr',\r\n NewZealand = 'nz',\r\n Oman = 'om',\r\n Pakistan = 'pk',\r\n Panama = 'pa',\r\n Peru = 'pe',\r\n Philippines = 'ph',\r\n Palau = 'pw',\r\n PapuaNewGuinea = 'pg',\r\n Poland = 'pl',\r\n FrenchPolynesia = 'pf',\r\n NorthKorea = 'kp',\r\n Portugal = 'pt',\r\n Paraguay = 'py',\r\n Qatar = 'qa',\r\n Romania = 'ro',\r\n Russia = 'ru',\r\n Rwanda = 'rw',\r\n SaudiArabia = 'sa',\r\n Sudan = 'sd',\r\n Senegal = 'sn',\r\n Singapore = 'sg',\r\n SolomonIslands = 'sb',\r\n SierraLeone = 'sl',\r\n ElSalvador = 'sv',\r\n SanMarino = 'sm',\r\n Somalia = 'so',\r\n Serbia = 'rs',\r\n SouthSudan = 'ss',\r\n SaoTomeAndPrincipe = 'st',\r\n Suriname = 'sr',\r\n Slovakia = 'sk',\r\n Slovenia = 'si',\r\n Sweden = 'se',\r\n Eswatini = 'sz',\r\n Seychelles = 'sc',\r\n Syria = 'sy',\r\n Chad = 'td',\r\n Togo = 'tg',\r\n Thailand = 'th',\r\n Tajikistan = 'tj',\r\n Turkmenistan = 'tm',\r\n TimorLeste = 'tl',\r\n Tonga = 'to',\r\n TrinidadAndTobago = 'tt',\r\n Tunisia = 'tn',\r\n Turkey = 'tr',\r\n Tuvalu = 'tv',\r\n Tanzania = 'tz',\r\n Uganda = 'ug',\r\n Ukraine = 'ua',\r\n Uruguay = 'uy',\r\n UnitedStates = 'us',\r\n Uzbekistan = 'uz',\r\n VaticanCity = 'va',\r\n SaintVincentAndTheGrenadines = 'vc',\r\n Venezuela = 've',\r\n Vietnam = 'vn',\r\n Vanuatu = 'vu',\r\n Samoa = 'ws',\r\n Yemen = 'ye',\r\n SouthAfrica = 'za',\r\n Zambia = 'zm',\r\n Zimbabwe = 'zw',\r\n}","export enum ExecutionMethod {\r\n GET = 'GET',\r\n POST = 'POST',\r\n PUT = 'PUT',\r\n PATCH = 'PATCH',\r\n DELETE = 'DELETE',\r\n OPTIONS = 'OPTIONS',\r\n}","export enum ImageGravity {\r\n Center = 'center',\r\n TopLeft = 'top-left',\r\n Top = 'top',\r\n TopRight = 'top-right',\r\n Left = 'left',\r\n Right = 'right',\r\n BottomLeft = 'bottom-left',\r\n Bottom = 'bottom',\r\n BottomRight = 'bottom-right',\r\n}","export enum ImageFormat {\r\n Jpg = 'jpg',\r\n Jpeg = 'jpeg',\r\n Gif = 'gif',\r\n Png = 'png',\r\n Webp = 'webp',\r\n}"],"names":["Platform","fs","AuthenticatorType","AuthenticationFactor","OAuthProvider","Browser","CreditCard","Flag","ExecutionMethod","ImageGravity","ImageFormat"],"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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AA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACjB,CAAC,EANWA,mBAAW,KAAXA,mBAAW,GAMtB,EAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/esm/sdk.js b/dist/esm/sdk.js new file mode 100644 index 0000000..d2a27cf --- /dev/null +++ b/dist/esm/sdk.js @@ -0,0 +1,4051 @@ +import { Platform } from 'react-native'; +import fs from 'react-native-fs'; + +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ + +function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __classPrivateFieldGet(receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + 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"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +} + +class Service { + constructor(client) { + this.client = client; + } + static flatten(data, prefix = '') { + let output = {}; + for (const [key, value] of Object.entries(data)) { + let finalKey = prefix ? prefix + '[' + key + ']' : key; + if (Array.isArray(value)) { + output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey)); + } + else { + output[finalKey] = value; + } + } + return output; + } +} +Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB + +class AppwriteException extends Error { + constructor(message, code = 0, type = '', response = '') { + super(message); + this.name = 'AppwriteException'; + this.message = message; + this.code = code; + this.type = type; + this.response = response; + } +} +class Client { + constructor() { + this.config = { + endpoint: 'https://cloud.appwrite.io/v1', + endpointRealtime: '', + project: '', + jwt: '', + locale: '', + session: '', + platform: '', + }; + this.headers = { + 'x-sdk-name': 'React Native', + 'x-sdk-platform': 'client', + 'x-sdk-language': 'reactnative', + 'x-sdk-version': '0.4.0', + 'X-Appwrite-Response-Format': '1.5.0', + }; + this.realtime = { + socket: undefined, + timeout: undefined, + url: '', + channels: new Set(), + subscriptions: new Map(), + subscriptionsCounter: 0, + reconnect: true, + reconnectAttempts: 0, + lastMessage: undefined, + connect: () => { + clearTimeout(this.realtime.timeout); + this.realtime.timeout = window === null || window === void 0 ? void 0 : window.setTimeout(() => { + this.realtime.createSocket(); + }, 50); + }, + getTimeout: () => { + switch (true) { + case this.realtime.reconnectAttempts < 5: + return 1000; + case this.realtime.reconnectAttempts < 15: + return 5000; + case this.realtime.reconnectAttempts < 100: + return 10000; + default: + return 60000; + } + }, + createSocket: () => { + var _a, _b, _c; + if (this.realtime.channels.size < 1) { + this.realtime.reconnect = false; + (_a = this.realtime.socket) === null || _a === void 0 ? void 0 : _a.close(); + return; + } + const channels = new URLSearchParams(); + channels.set('project', this.config.project); + this.realtime.channels.forEach(channel => { + channels.append('channels[]', channel); + }); + const url = this.config.endpointRealtime + '/realtime?' + channels.toString(); + if (url !== this.realtime.url || // Check if URL is present + !this.realtime.socket || // Check if WebSocket has not been created + ((_b = this.realtime.socket) === null || _b === void 0 ? void 0 : _b.readyState) > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4) + ) { + if (this.realtime.socket && + ((_c = this.realtime.socket) === null || _c === void 0 ? void 0 : _c.readyState) < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1) + ) { + this.realtime.reconnect = false; + this.realtime.socket.close(); + } + this.realtime.url = url; + // @ts-ignore + this.realtime.socket = new WebSocket(url, undefined, { + headers: { + Origin: `appwrite-${Platform.OS}://${this.config.platform}` + } + }); + this.realtime.socket.addEventListener('message', this.realtime.onMessage); + this.realtime.socket.addEventListener('open', _event => { + this.realtime.reconnectAttempts = 0; + }); + this.realtime.socket.addEventListener('close', event => { + var _a, _b, _c; + if (!this.realtime.reconnect || + (((_b = (_a = this.realtime) === null || _a === void 0 ? void 0 : _a.lastMessage) === null || _b === void 0 ? void 0 : _b.type) === 'error' && // Check if last message was of type error + ((_c = this.realtime) === null || _c === void 0 ? void 0 : _c.lastMessage.data).code === 1008 // Check for policy violation 1008 + )) { + this.realtime.reconnect = true; + return; + } + const timeout = this.realtime.getTimeout(); + console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason); + setTimeout(() => { + this.realtime.reconnectAttempts++; + this.realtime.createSocket(); + }, timeout); + }); + } + }, + onMessage: (event) => { + try { + const message = JSON.parse(event.data); + this.realtime.lastMessage = message; + switch (message.type) { + case 'event': + let data = message.data; + if (data === null || data === void 0 ? void 0 : data.channels) { + const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel)); + if (!isSubscribed) + return; + this.realtime.subscriptions.forEach(subscription => { + if (data.channels.some(channel => subscription.channels.includes(channel))) { + setTimeout(() => subscription.callback(data)); + } + }); + } + break; + case 'error': + throw message.data; + default: + break; + } + } + catch (e) { + console.error(e); + } + }, + cleanUp: channels => { + this.realtime.channels.forEach(channel => { + if (channels.includes(channel)) { + let found = Array.from(this.realtime.subscriptions).some(([_key, subscription]) => { + return subscription.channels.includes(channel); + }); + if (!found) { + this.realtime.channels.delete(channel); + } + } + }); + } + }; + } + /** + * Set Endpoint + * + * Your project endpoint + * + * @param {string} endpoint + * + * @returns {this} + */ + setEndpoint(endpoint) { + this.config.endpoint = endpoint; + this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://'); + return this; + } + /** + * Set Realtime Endpoint + * + * @param {string} endpointRealtime + * + * @returns {this} + */ + setEndpointRealtime(endpointRealtime) { + this.config.endpointRealtime = endpointRealtime; + return this; + } + /** + * Set platform + * + * Set platform. Will be used as origin for all requests. + * + * @param {string} platform + * @returns {this} + */ + setPlatform(platform) { + this.config.platform = platform; + return this; + } + /** + * Set Project + * + * Your project ID + * + * @param value string + * + * @return {this} + */ + setProject(value) { + this.headers['X-Appwrite-Project'] = value; + this.config.project = value; + return this; + } + /** + * Set JWT + * + * Your secret JSON Web Token + * + * @param value string + * + * @return {this} + */ + setJWT(value) { + this.headers['X-Appwrite-JWT'] = value; + this.config.jwt = value; + return this; + } + /** + * Set Locale + * + * @param value string + * + * @return {this} + */ + setLocale(value) { + this.headers['X-Appwrite-Locale'] = value; + this.config.locale = value; + return this; + } + /** + * Set Session + * + * The user session to authenticate with + * + * @param value string + * + * @return {this} + */ + setSession(value) { + this.headers['X-Appwrite-Session'] = value; + this.config.session = value; + return this; + } + /** + * Subscribes to Appwrite events and passes you the payload in realtime. + * + * @param {string|string[]} channels + * Channel to subscribe - pass a single channel as a string or multiple with an array of strings. + * + * Possible channels are: + * - account + * - collections + * - collections.[ID] + * - collections.[ID].documents + * - documents + * - documents.[ID] + * - files + * - files.[ID] + * - executions + * - executions.[ID] + * - functions.[ID] + * - teams + * - teams.[ID] + * - memberships + * - memberships.[ID] + * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update. + * @returns {() => void} Unsubscribes from events. + */ + subscribe(channels, callback) { + let channelArray = typeof channels === 'string' ? [channels] : channels; + channelArray.forEach(channel => this.realtime.channels.add(channel)); + const counter = this.realtime.subscriptionsCounter++; + this.realtime.subscriptions.set(counter, { + channels: channelArray, + callback + }); + this.realtime.connect(); + return () => { + this.realtime.subscriptions.delete(counter); + this.realtime.cleanUp(channelArray); + this.realtime.connect(); + }; + } + call(method, url, headers = {}, params = {}) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + method = method.toUpperCase(); + headers = Object.assign({}, this.headers, headers); + headers.Origin = `appwrite-${Platform.OS}://${this.config.platform}`; + let options = { + method, + headers, + credentials: 'include' + }; + if (method === 'GET') { + for (const [key, value] of Object.entries(Service.flatten(params))) { + url.searchParams.append(key, value); + } + } + else { + switch (headers['content-type']) { + case 'application/json': + options.body = JSON.stringify(params); + break; + case 'multipart/form-data': + let formData = new FormData(); + for (const key in params) { + if (Array.isArray(params[key])) { + params[key].forEach((value) => { + formData.append(key + '[]', value); + }); + } + else { + formData.append(key, params[key]); + } + } + options.body = formData; + delete headers['content-type']; + break; + } + } + try { + let data = null; + const response = yield fetch(url.toString(), options); + if ((_a = response.headers.get('content-type')) === null || _a === void 0 ? void 0 : _a.includes('application/json')) { + data = yield response.json(); + } + else { + data = { + message: yield response.text() + }; + } + if (400 <= response.status) { + throw new AppwriteException(data === null || data === void 0 ? void 0 : data.message, response.status, data === null || data === void 0 ? void 0 : data.type, data); + } + const cookieFallback = response.headers.get('X-Fallback-Cookies'); + if (typeof window !== 'undefined' && window.localStorage && cookieFallback) { + window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.'); + window.localStorage.setItem('cookieFallback', cookieFallback); + } + return data; + } + catch (e) { + if (e instanceof AppwriteException) { + throw e; + } + throw new AppwriteException(e.message); + } + }); + } +} + +class Account extends Service { + constructor(client) { + super(client); + } + /** + * Get account + * + * Get the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + get() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create account + * + * Use this endpoint to allow a new user to register a new account in your + * project. After the user registration completes successfully, you can use + * the + * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) + * route to start verifying the user email address. To allow the new user to + * login to their new account, you need to create a new [account + * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession). + * + * @param {string} userId + * @param {string} email + * @param {string} password + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + create(userId, email, password, name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update email + * + * Update currently logged in user account email address. After changing user + * address, the user confirmation status will get reset. A new confirmation + * email is not sent automatically however you can use the send confirmation + * email endpoint again to send the confirmation email. For security measures, + * user password is required to complete this request. + * This endpoint can also be used to convert an anonymous account to a normal + * one, by passing an email address and a new password. + * + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updateEmail(email, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/email"; + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List Identities + * + * Get the list of identities for the currently logged in user. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listIdentities(queries) { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/identities"; + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete identity + * + * Delete an identity by its unique ID. + * + * @param {string} identityId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteIdentity(identityId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof identityId === "undefined") { + throw new AppwriteException('Missing required parameter: "identityId"'); + } + const apiPath = "/account/identities/{identityId}".replace("{identityId}", identityId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create JWT + * + * Use this endpoint to create a JSON Web Token. You can use the resulting JWT + * to authenticate on behalf of the current user when working with the + * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes + * from its creation and will be invalid if the user will logout in that time + * frame. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createJWT() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/jwt"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List logs + * + * Get the list of latest security activity logs for the currently logged in + * user. Each log returns user IP address, location and date and time of log. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listLogs(queries) { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/logs"; + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update MFA + * + * Enable or disable MFA on an account. + * + * @param {boolean} mfa + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMFA(mfa) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof mfa === "undefined") { + throw new AppwriteException('Missing required parameter: "mfa"'); + } + const apiPath = "/account/mfa"; + const payload = {}; + if (typeof mfa !== "undefined") { + payload["mfa"] = mfa; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Add Authenticator + * + * Add an authenticator app to be used as an MFA factor. Verify the + * authenticator using the [verify + * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) + * method. + * + * @param {AuthenticatorType} type + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaAuthenticator(type) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + const apiPath = "/account/mfa/authenticators/{type}".replace("{type}", type); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Verify Authenticator + * + * Verify an authenticator app after adding it using the [add + * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) + * method. add + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaAuthenticator(type, otp) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + const apiPath = "/account/mfa/authenticators/{type}".replace("{type}", type); + const payload = {}; + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete Authenticator + * + * Delete an authenticator for a user by ID. + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteMfaAuthenticator(type, otp) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + const apiPath = "/account/mfa/authenticators/{type}".replace("{type}", type); + const payload = {}; + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create 2FA Challenge + * + * Begin the process of MFA verification after sign-in. Finish the flow with + * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) + * method. + * + * @param {AuthenticationFactor} factor + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaChallenge(factor) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof factor === "undefined") { + throw new AppwriteException('Missing required parameter: "factor"'); + } + const apiPath = "/account/mfa/challenge"; + const payload = {}; + if (typeof factor !== "undefined") { + payload["factor"] = factor; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create MFA Challenge (confirmation) + * + * Complete the MFA challenge by providing the one-time password. Finish the + * process of MFA verification by providing the one-time password. To begin + * the flow, use + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @param {string} challengeId + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaChallenge(challengeId, otp) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof challengeId === "undefined") { + throw new AppwriteException('Missing required parameter: "challengeId"'); + } + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + const apiPath = "/account/mfa/challenge"; + const payload = {}; + if (typeof challengeId !== "undefined") { + payload["challengeId"] = challengeId; + } + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List Factors + * + * List the factors available on the account to be used as a MFA challange. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listMfaFactors() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/factors"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get MFA Recovery Codes + * + * Get recovery codes that can be used as backup for MFA flow. Before getting + * codes, they must be generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to read recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + getMfaRecoveryCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/recovery-codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create MFA Recovery Codes + * + * Generate recovery codes as backup for MFA flow. It's recommended to + * generate and show then immediately after user successfully adds their + * authehticator. Recovery codes can be used as a MFA verification type in + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaRecoveryCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/recovery-codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Regenerate MFA Recovery Codes + * + * Regenerate recovery codes that can be used as backup for MFA flow. Before + * regenerating codes, they must be first generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to regenreate recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaRecoveryCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/mfa/recovery-codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update name + * + * Update currently logged in user account name. + * + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + updateName(name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + const apiPath = "/account/name"; + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update password + * + * Update currently logged in user password. For validation, user is required + * to pass in the new password, and the old password. For users created with + * OAuth, Team Invites and Magic URL, oldPassword is optional. + * + * @param {string} password + * @param {string} oldPassword + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePassword(password, oldPassword) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/password"; + const payload = {}; + if (typeof password !== "undefined") { + payload["password"] = password; + } + if (typeof oldPassword !== "undefined") { + payload["oldPassword"] = oldPassword; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update phone + * + * Update the currently logged in user's phone number. After updating the + * phone number, the phone verification status will be reset. A confirmation + * SMS is not sent automatically, however you can use the [POST + * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) + * endpoint to send a confirmation SMS. + * + * @param {string} phone + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhone(phone, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof phone === "undefined") { + throw new AppwriteException('Missing required parameter: "phone"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/phone"; + const payload = {}; + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get account preferences + * + * Get the preferences as a key-value object for the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + getPrefs() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/prefs"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update preferences + * + * Update currently logged in user account preferences. The object you pass is + * stored as is, and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws error if exceeded. + * + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePrefs(prefs) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof prefs === "undefined") { + throw new AppwriteException('Missing required parameter: "prefs"'); + } + const apiPath = "/account/prefs"; + const payload = {}; + if (typeof prefs !== "undefined") { + payload["prefs"] = prefs; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create password recovery + * + * Sends the user an email with a temporary secret key for password reset. + * When the user clicks the confirmation link he is redirected back to your + * app password reset URL with the secret key and email address values + * attached to the URL query string. Use the query string params to submit a + * request to the [PUT + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) + * endpoint to complete the process. The verification link sent to the user's + * email address is valid for 1 hour. + * + * @param {string} email + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + createRecovery(email, url) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/account/recovery"; + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof url !== "undefined") { + payload["url"] = url; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create password recovery (confirmation) + * + * Use this endpoint to complete the user account password reset. Both the + * **userId** and **secret** arguments will be passed as query parameters to + * the redirect URL you have provided when sending your request to the [POST + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) + * endpoint. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * @param {string} userId + * @param {string} secret + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updateRecovery(userId, secret, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/recovery"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List sessions + * + * Get the list of active sessions across different devices for the currently + * logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listSessions() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/sessions"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete sessions + * + * Delete all sessions from the user account and remove any sessions cookies + * from the end client. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSessions() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/sessions"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create anonymous session + * + * Use this endpoint to allow a new user to register an anonymous account in + * your project. This route will also create a new session for the user. To + * allow the new user to convert an anonymous account to a normal account, you + * need to update its [email and + * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) + * or create an [OAuth2 + * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createAnonymousSession() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/sessions/anonymous"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email password session + * + * Allow the user to login into their account by providing a valid email and + * password combination. This route will create a new session for the user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + createEmailPasswordSession(email, password) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + const apiPath = "/account/sessions/email"; + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof password !== "undefined") { + payload["password"] = password; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update magic URL session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMagicURLSession(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/sessions/magic-url"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create OAuth2 session + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If there is already an active session, the new session will be attached to + * the logged-in account. If there are no active sessions, the server will + * attempt to look for a user with the same email address as the email + * received from the OAuth2 provider and attach the new session to the + * existing user. If no matching user is found - the server will create a new + * user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Session(provider, success, failure, scopes) { + if (typeof provider === "undefined") { + throw new AppwriteException('Missing required parameter: "provider"'); + } + const apiPath = "/account/sessions/oauth2/{provider}".replace("{provider}", provider); + const payload = {}; + if (typeof success !== "undefined") { + payload["success"] = success; + } + if (typeof failure !== "undefined") { + payload["failure"] = failure; + } + if (typeof scopes !== "undefined") { + payload["scopes"] = scopes; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Update phone session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhoneSession(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/sessions/phone"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + createSession(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/sessions/token"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get session + * + * Use this endpoint to get a logged in user's session using a Session ID. + * Inputting 'current' will return the current session being used. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + getSession(sessionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + const apiPath = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update session + * + * Use this endpoint to extend a session's length. Extending a session is + * useful when session expiry is short. If the session was created using an + * OAuth provider, this endpoint refreshes the access token from the provider. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + updateSession(sessionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + const apiPath = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete session + * + * Logout the user. Use 'current' as the session ID to logout on this device, + * use a session ID to logout on another device. If you're looking to logout + * the user on all devices, use [Delete + * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) + * instead. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSession(sessionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + const apiPath = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update status + * + * Block the currently logged in user account. Behind the scene, the user + * record is not deleted but permanently blocked from any access. To + * completely delete a user, use the Users API instead. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + updateStatus() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/status"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create push target + * + * + * @param {string} targetId + * @param {string} identifier + * @param {string} providerId + * @throws {AppwriteException} + * @returns {Promise} + */ + createPushTarget(targetId, identifier, providerId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + if (typeof identifier === "undefined") { + throw new AppwriteException('Missing required parameter: "identifier"'); + } + const apiPath = "/account/targets/push"; + const payload = {}; + if (typeof targetId !== "undefined") { + payload["targetId"] = targetId; + } + if (typeof identifier !== "undefined") { + payload["identifier"] = identifier; + } + if (typeof providerId !== "undefined") { + payload["providerId"] = providerId; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update push target + * + * + * @param {string} targetId + * @param {string} identifier + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePushTarget(targetId, identifier) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + if (typeof identifier === "undefined") { + throw new AppwriteException('Missing required parameter: "identifier"'); + } + const apiPath = "/account/targets/{targetId}/push".replace("{targetId}", targetId); + const payload = {}; + if (typeof identifier !== "undefined") { + payload["identifier"] = identifier; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete push target + * + * + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + deletePushTarget(targetId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + const apiPath = "/account/targets/{targetId}/push".replace("{targetId}", targetId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email token (OTP) + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's email + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} email + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + createEmailToken(userId, email, phrase) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + const apiPath = "/account/tokens/email"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof phrase !== "undefined") { + payload["phrase"] = phrase; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create magic URL token + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not been registered, a new user will be created. When + * the user clicks the link in the email, the user is redirected back to the + * URL you provided with the secret key and userId values attached to the URL + * query string. Use the query string parameters to submit a request to the + * [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The link sent to the user's email + * address is valid for 1 hour. If you are on a mobile device you can leave + * the URL parameter empty, so that the login completion will be handled by + * your Appwrite instance by default. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {string} userId + * @param {string} email + * @param {string} url + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + createMagicURLToken(userId, email, url, phrase) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + const apiPath = "/account/tokens/magic-url"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof url !== "undefined") { + payload["url"] = url; + } + if (typeof phrase !== "undefined") { + payload["phrase"] = phrase; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create OAuth2 token + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If authentication succeeds, `userId` and `secret` of a token will be + * appended to the success URL as query parameters. These can be used to + * create a new session using the [Create + * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Token(provider, success, failure, scopes) { + if (typeof provider === "undefined") { + throw new AppwriteException('Missing required parameter: "provider"'); + } + const apiPath = "/account/tokens/oauth2/{provider}".replace("{provider}", provider); + const payload = {}; + if (typeof success !== "undefined") { + payload["success"] = success; + } + if (typeof failure !== "undefined") { + payload["failure"] = failure; + } + if (typeof scopes !== "undefined") { + payload["scopes"] = scopes; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Create phone token + * + * Sends the user an SMS with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's phone + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} phone + * @throws {AppwriteException} + * @returns {Promise} + */ + createPhoneToken(userId, phone) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof phone === "undefined") { + throw new AppwriteException('Missing required parameter: "phone"'); + } + const apiPath = "/account/tokens/phone"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email verification + * + * Use this endpoint to send a verification message to your user email address + * to confirm they are the valid owners of that address. Both the **userId** + * and **secret** arguments will be passed as query parameters to the URL you + * have provided to be attached to the verification email. The provided URL + * should redirect the user back to your app and allow you to complete the + * verification process by verifying both the **userId** and **secret** + * parameters. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). + * The verification link sent to the user's email address is valid for 7 days. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + createVerification(url) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/account/verification"; + const payload = {}; + if (typeof url !== "undefined") { + payload["url"] = url; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create email verification (confirmation) + * + * Use this endpoint to complete the user email verification process. Use both + * the **userId** and **secret** parameters that were attached to your app URL + * to verify the user email ownership. If confirmed this route will return a + * 200 status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateVerification(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/verification"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create phone verification + * + * Use this endpoint to send a verification SMS to the currently logged in + * user. This endpoint is meant for use after updating a user's phone number + * using the + * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) + * endpoint. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). + * The verification code sent to the user's phone number is valid for 15 + * minutes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createPhoneVerification() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/account/verification/phone"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create phone verification (confirmation) + * + * Use this endpoint to complete the user phone verification process. Use the + * **userId** and **secret** that were sent to your user's phone number to + * verify the user email ownership. If confirmed this route will return a 200 + * status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhoneVerification(userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/account/verification/phone"; + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Avatars extends Service { + constructor(client) { + super(client); + } + /** + * Get browser icon + * + * You can use this endpoint to show different browser icons to your users. + * The code argument receives the browser code as it appears in your user [GET + * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) + * endpoint. Use width, height and quality arguments to change the output + * settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * @param {Browser} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getBrowser(code, width, height, quality) { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + const apiPath = "/avatars/browsers/{code}".replace("{code}", code); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get credit card icon + * + * The credit card endpoint will return you the icon of the credit card + * provider you need. Use width, height and quality arguments to change the + * output settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {CreditCard} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getCreditCard(code, width, height, quality) { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + const apiPath = "/avatars/credit-cards/{code}".replace("{code}", code); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get favicon + * + * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote + * website URL. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {URL} + */ + getFavicon(url) { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/avatars/favicon"; + const payload = {}; + if (typeof url !== "undefined") { + payload["url"] = url; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get country flag + * + * You can use this endpoint to show different country flags icons to your + * users. The code argument receives the 2 letter country code. Use width, + * height and quality arguments to change the output settings. Country codes + * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {Flag} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getFlag(code, width, height, quality) { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + const apiPath = "/avatars/flags/{code}".replace("{code}", code); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get image from URL + * + * Use this endpoint to fetch a remote image URL and crop it to any image size + * you want. This endpoint is very useful if you need to crop and display + * remote images in your app or in case you want to make sure a 3rd party + * image is properly served using a TLS protocol. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 400x400px. + * + * + * @param {string} url + * @param {number} width + * @param {number} height + * @throws {AppwriteException} + * @returns {URL} + */ + getImage(url, width, height) { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + const apiPath = "/avatars/image"; + const payload = {}; + if (typeof url !== "undefined") { + payload["url"] = url; + } + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get user initials + * + * Use this endpoint to show your user initials avatar icon on your website or + * app. By default, this route will try to print your logged-in user name or + * email initials. You can also overwrite the user name if you pass the 'name' + * parameter. If no name is given and no user is logged, an empty avatar will + * be returned. + * + * You can use the color and background params to change the avatar colors. By + * default, a random theme will be selected. The random theme will persist for + * the user's initials when reloading the same theme will always return for + * the same initials. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {string} name + * @param {number} width + * @param {number} height + * @param {string} background + * @throws {AppwriteException} + * @returns {URL} + */ + getInitials(name, width, height, background) { + const apiPath = "/avatars/initials"; + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof background !== "undefined") { + payload["background"] = background; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get QR code + * + * Converts a given plain text to a QR code image. You can use the query + * parameters to change the size and style of the resulting image. + * + * + * @param {string} text + * @param {number} size + * @param {number} margin + * @param {boolean} download + * @throws {AppwriteException} + * @returns {URL} + */ + getQR(text, size, margin, download) { + if (typeof text === "undefined") { + throw new AppwriteException('Missing required parameter: "text"'); + } + const apiPath = "/avatars/qr"; + const payload = {}; + if (typeof text !== "undefined") { + payload["text"] = text; + } + if (typeof size !== "undefined") { + payload["size"] = size; + } + if (typeof margin !== "undefined") { + payload["margin"] = margin; + } + if (typeof download !== "undefined") { + payload["download"] = download; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } +} + +class Databases extends Service { + constructor(client) { + super(client); + } + /** + * List documents + * + * Get a list of all the user's documents in a given collection. You can use + * the query params to filter your results. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listDocuments(databaseId, collectionId, queries) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create document + * + * Create a new Document. Before using this route, you should create a new + * collection resource using either a [server + * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) + * API or directly from your database console. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + createDocument(databaseId, collectionId, documentId, data, permissions) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + if (typeof data === "undefined") { + throw new AppwriteException('Missing required parameter: "data"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId); + const payload = {}; + if (typeof documentId !== "undefined") { + payload["documentId"] = documentId; + } + if (typeof data !== "undefined") { + payload["data"] = data; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get document + * + * Get a document by its unique ID. This endpoint response returns a JSON + * object with the document data. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + getDocument(databaseId, collectionId, documentId, queries) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update document + * + * Update a document by its unique ID. Using the patch method you can pass + * only specific fields that will get updated. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + updateDocument(databaseId, collectionId, documentId, data, permissions) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload = {}; + if (typeof data !== "undefined") { + payload["data"] = data; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete document + * + * Delete a document by its unique ID. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteDocument(databaseId, collectionId, documentId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Functions extends Service { + constructor(client) { + super(client); + } + /** + * List executions + * + * Get a list of all the current user function execution logs. You can use the + * query params to filter your results. + * + * @param {string} functionId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listExecutions(functionId, queries, search) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + const apiPath = "/functions/{functionId}/executions".replace("{functionId}", functionId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create execution + * + * Trigger a function execution. The returned object will return you the + * current execution status. You can ping the `Get Execution` endpoint to get + * updates on the current execution status. Once this endpoint is called, your + * function execution process will start asynchronously. + * + * @param {string} functionId + * @param {string} body + * @param {boolean} async + * @param {string} xpath + * @param {ExecutionMethod} method + * @param {object} headers + * @throws {AppwriteException} + * @returns {Promise} + */ + createExecution(functionId, body, async, xpath, method, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + const apiPath = "/functions/{functionId}/executions".replace("{functionId}", functionId); + const payload = {}; + if (typeof body !== "undefined") { + payload["body"] = body; + } + if (typeof async !== "undefined") { + payload["async"] = async; + } + if (typeof xpath !== "undefined") { + payload["path"] = xpath; + } + if (typeof method !== "undefined") { + payload["method"] = method; + } + if (typeof headers !== "undefined") { + payload["headers"] = headers; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get execution + * + * Get a function execution log by its unique ID. + * + * @param {string} functionId + * @param {string} executionId + * @throws {AppwriteException} + * @returns {Promise} + */ + getExecution(functionId, executionId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + if (typeof executionId === "undefined") { + throw new AppwriteException('Missing required parameter: "executionId"'); + } + const apiPath = "/functions/{functionId}/executions/{executionId}" + .replace("{functionId}", functionId) + .replace("{executionId}", executionId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Graphql extends Service { + constructor(client) { + super(client); + } + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + query(query) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof query === "undefined") { + throw new AppwriteException('Missing required parameter: "query"'); + } + const apiPath = "/graphql"; + const payload = {}; + if (typeof query !== "undefined") { + payload["query"] = query; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "x-sdk-graphql": "true", + "content-type": "application/json", + }, payload); + }); + } + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + mutation(query) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof query === "undefined") { + throw new AppwriteException('Missing required parameter: "query"'); + } + const apiPath = "/graphql/mutation"; + const payload = {}; + if (typeof query !== "undefined") { + payload["query"] = query; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "x-sdk-graphql": "true", + "content-type": "application/json", + }, payload); + }); + } +} + +class Locale extends Service { + constructor(client) { + super(client); + } + /** + * Get user locale + * + * Get the current user location based on IP. Returns an object with user + * country code, country name, continent name, continent code, ip address and + * suggested currency. You can use the locale header to get the data in a + * supported language. + * + * ([IP Geolocation by DB-IP](https://db-ip.com)) + * + * @throws {AppwriteException} + * @returns {Promise} + */ + get() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List Locale Codes + * + * List of all locale codes in [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCodes() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/codes"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List continents + * + * List of all continents. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listContinents() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/continents"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List countries + * + * List of all countries. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountries() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/countries"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List EU countries + * + * List of all countries that are currently members of the EU. You can use the + * locale header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountriesEU() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/countries/eu"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List countries phone codes + * + * List of all countries phone codes. You can use the locale header to get the + * data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountriesPhones() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/countries/phones"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List currencies + * + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCurrencies() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/currencies"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List languages + * + * List of all languages classified by ISO 639-1 including 2-letter code, name + * in English, and name in the respective language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listLanguages() { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/locale/languages"; + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Messaging extends Service { + constructor(client) { + super(client); + } + /** + * Create subscriber + * + * Create a new subscriber. + * + * @param {string} topicId + * @param {string} subscriberId + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + createSubscriber(topicId, subscriberId, targetId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof topicId === "undefined") { + throw new AppwriteException('Missing required parameter: "topicId"'); + } + if (typeof subscriberId === "undefined") { + throw new AppwriteException('Missing required parameter: "subscriberId"'); + } + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + const apiPath = "/messaging/topics/{topicId}/subscribers".replace("{topicId}", topicId); + const payload = {}; + if (typeof subscriberId !== "undefined") { + payload["subscriberId"] = subscriberId; + } + if (typeof targetId !== "undefined") { + payload["targetId"] = targetId; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete subscriber + * + * Delete a subscriber by its unique ID. + * + * @param {string} topicId + * @param {string} subscriberId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSubscriber(topicId, subscriberId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof topicId === "undefined") { + throw new AppwriteException('Missing required parameter: "topicId"'); + } + if (typeof subscriberId === "undefined") { + throw new AppwriteException('Missing required parameter: "subscriberId"'); + } + const apiPath = "/messaging/topics/{topicId}/subscribers/{subscriberId}" + .replace("{topicId}", topicId) + .replace("{subscriberId}", subscriberId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Storage extends Service { + constructor(client) { + super(client); + } + /** + * List files + * + * Get a list of all the user files. You can use the query params to filter + * your results. + * + * @param {string} bucketId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listFiles(bucketId, queries, search) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files".replace("{bucketId}", bucketId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create file + * + * Create a new file. Before using this route, you should create a new bucket + * resource using either a [server + * integration](https://appwrite.io/docs/server/storage#storageCreateBucket) + * API or directly from your Appwrite console. + * + * Larger files should be uploaded using multiple requests with the + * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) + * header to send a partial request with a maximum supported chunk of `5MB`. + * The `content-range` header values should always be in bytes. + * + * When the first request is sent, the server will return the **File** object, + * and the subsequent part request must include the file's **id** in + * `x-appwrite-id` header to allow the server to know that the partial upload + * is for the existing file and not for a new one. + * + * If you're creating a new file using one of the Appwrite SDKs, all the + * chunking logic will be managed by the SDK internally. + * + * + * @param {string} bucketId + * @param {string} fileId + * @param {{name: string, type: string, size: number, uri: string}} file + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + createFile(bucketId, fileId, file, permissions, onProgress = (progress) => { }) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + if (typeof file === "undefined") { + throw new AppwriteException('Missing required parameter: "file"'); + } + const apiPath = "/storage/buckets/{bucketId}/files".replace("{bucketId}", bucketId); + const payload = {}; + if (typeof fileId !== "undefined") { + payload["fileId"] = fileId; + } + if (typeof file !== "undefined") { + payload["file"] = file; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + const size = file.size; + if (size <= Service.CHUNK_SIZE) { + return yield this.client.call("post", uri, { + "content-type": "multipart/form-data", + }, payload); + } + const apiHeaders = { + "content-type": "multipart/form-data", + }; + let offset = 0; + let response = undefined; + if (fileId != "unique()") { + try { + response = yield this.client.call("GET", new URL(this.client.config.endpoint + apiPath + "/" + fileId), apiHeaders); + offset = response.chunksUploaded * Service.CHUNK_SIZE; + } + catch (e) { } + } + let timestamp = new Date().getTime(); + while (offset < size) { + let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1); + apiHeaders["content-range"] = "bytes " + offset + "-" + end + "/" + size; + if (response && response.$id) { + apiHeaders["x-appwrite-id"] = response.$id; + } + let chunk = yield fs.read(file.uri, Service.CHUNK_SIZE, offset, "base64"); + // let chunk = await FileSystem.readAsStringAsync(file.uri, { + // encoding: FileSystem.EncodingType.Base64, + // position: offset, + // length: Service.CHUNK_SIZE + // }); + var path = `data:${file.type};base64,${chunk}`; + if (Platform.OS.toLowerCase() === "android") { + path = "file://" + fs.CachesDirectoryPath + "/tmp_chunk_" + timestamp; + yield fs.writeFile(path, chunk, "base64"); + } + payload["file"] = { uri: path, name: file.name, type: file.type }; + response = yield this.client.call("post", uri, apiHeaders, payload); + if (onProgress) { + onProgress({ + $id: response.$id, + progress: (offset / size) * 100, + sizeUploaded: offset, + chunksTotal: response.chunksTotal, + chunksUploaded: response.chunksUploaded, + }); + } + offset += Service.CHUNK_SIZE; + } + return response; + }); + } + /** + * Get file + * + * Get a file by its unique ID. This endpoint response returns a JSON object + * with the file metadata. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + getFile(bucketId, fileId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update file + * + * Update a file by its unique ID. Only users with write permissions have + * access to update this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @param {string} name + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + updateFile(bucketId, fileId, name, permissions) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete File + * + * Delete a file by its unique ID. Only users with write permissions have + * access to delete this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteFile(bucketId, fileId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get file for download + * + * Get a file content by its unique ID. The endpoint response return with a + * 'Content-Disposition: attachment' header that tells the browser to start + * downloading the file to user downloads directory. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileDownload(bucketId, fileId) { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/download" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get file preview + * + * Get a file preview image. Currently, this method supports preview for image + * files (jpg, png, and gif), other supported formats, like pdf, docs, slides, + * and spreadsheets, will return the file icon image. You can also pass query + * string arguments for cutting and resizing your preview image. Preview is + * supported only for image files smaller than 10MB. + * + * @param {string} bucketId + * @param {string} fileId + * @param {number} width + * @param {number} height + * @param {ImageGravity} gravity + * @param {number} quality + * @param {number} borderWidth + * @param {string} borderColor + * @param {number} borderRadius + * @param {number} opacity + * @param {number} rotation + * @param {string} background + * @param {ImageFormat} output + * @throws {AppwriteException} + * @returns {URL} + */ + getFilePreview(bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output) { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/preview" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + if (typeof width !== "undefined") { + payload["width"] = width; + } + if (typeof height !== "undefined") { + payload["height"] = height; + } + if (typeof gravity !== "undefined") { + payload["gravity"] = gravity; + } + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + if (typeof borderWidth !== "undefined") { + payload["borderWidth"] = borderWidth; + } + if (typeof borderColor !== "undefined") { + payload["borderColor"] = borderColor; + } + if (typeof borderRadius !== "undefined") { + payload["borderRadius"] = borderRadius; + } + if (typeof opacity !== "undefined") { + payload["opacity"] = opacity; + } + if (typeof rotation !== "undefined") { + payload["rotation"] = rotation; + } + if (typeof background !== "undefined") { + payload["background"] = background; + } + if (typeof output !== "undefined") { + payload["output"] = output; + } + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + /** + * Get file for view + * + * Get a file content by its unique ID. This endpoint is similar to the + * download method but returns with no 'Content-Disposition: attachment' + * header. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileView(bucketId, fileId) { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/view" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } +} + +class Teams extends Service { + constructor(client) { + super(client); + } + /** + * List teams + * + * Get a list of all the teams in which the current user is a member. You can + * use the parameters to filter your results. + * + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + list(queries, search) { + return __awaiter(this, void 0, void 0, function* () { + const apiPath = "/teams"; + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create team + * + * Create a new team. The user who creates the team will automatically be + * assigned as the owner of the team. Only the users with the owner role can + * invite new members, add new owners and delete or update the team. + * + * @param {string} teamId + * @param {string} name + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + create(teamId, name, roles) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + const apiPath = "/teams"; + const payload = {}; + if (typeof teamId !== "undefined") { + payload["teamId"] = teamId; + } + if (typeof name !== "undefined") { + payload["name"] = name; + } + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get team + * + * Get a team by its ID. All team members have read access for this resource. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + get(teamId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update name + * + * Update the team's name by its unique ID. + * + * @param {string} teamId + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + updateName(teamId, name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload = {}; + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete team + * + * Delete a team using its ID. Only team members with the owner role can + * delete the team. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + delete(teamId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * List team memberships + * + * Use this endpoint to list a team's members using the team's ID. All team + * members have read access to this endpoint. + * + * @param {string} teamId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listMemberships(teamId, queries, search) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}/memberships".replace("{teamId}", teamId); + const payload = {}; + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + if (typeof search !== "undefined") { + payload["search"] = search; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Create team membership + * + * Invite a new member to join your team. Provide an ID for existing users, or + * invite unregistered users using an email or phone number. If initiated from + * a Client SDK, Appwrite will send an email or sms with a link to join the + * team to the invited user, and an account will be created for them if one + * doesn't exist. If initiated from a Server SDK, the new member will be added + * automatically to the team. + * + * You only need to provide one of a user ID, email, or phone number. Appwrite + * will prioritize accepting the user ID > email > phone number if you provide + * more than one of these parameters. + * + * Use the `url` parameter to redirect the user from the invitation email to + * your app. After the user is redirected, use the [Update Team Membership + * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) + * endpoint to allow the user to accept the invitation to the team. + * + * Please note that to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * Appwrite will accept the only redirect URLs under the domains you have + * added as a platform on the Appwrite Console. + * + * + * @param {string} teamId + * @param {string[]} roles + * @param {string} email + * @param {string} userId + * @param {string} phone + * @param {string} url + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + createMembership(teamId, roles, email, userId, phone, url, name) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof roles === "undefined") { + throw new AppwriteException('Missing required parameter: "roles"'); + } + const apiPath = "/teams/{teamId}/memberships".replace("{teamId}", teamId); + const payload = {}; + if (typeof email !== "undefined") { + payload["email"] = email; + } + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + if (typeof url !== "undefined") { + payload["url"] = url; + } + if (typeof name !== "undefined") { + payload["name"] = name; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("post", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get team membership + * + * Get a team member by the membership unique id. All team members have read + * access for this resource. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + getMembership(teamId, membershipId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update membership + * + * Modify the roles of a team member. Only team members with the owner role + * have access to this endpoint. Learn more about [roles and + * permissions](https://appwrite.io/docs/permissions). + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMembership(teamId, membershipId, roles) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + if (typeof roles === "undefined") { + throw new AppwriteException('Missing required parameter: "roles"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Delete team membership + * + * This endpoint allows a user to leave a team or for a team owner to delete + * the membership of any other team member. You can also use this endpoint to + * delete a user membership even if it is not accepted. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteMembership(teamId, membershipId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("delete", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update team membership status + * + * Use this endpoint to allow a user to accept an invitation to join a team + * after being redirected back to your app from the invitation email received + * by the user. + * + * If the request is successful, a session for the user is automatically + * created. + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMembershipStatus(teamId, membershipId, userId, secret) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + const apiPath = "/teams/{teamId}/memberships/{membershipId}/status" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload = {}; + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("patch", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Get team preferences + * + * Get the team's shared preferences by its unique ID. If a preference doesn't + * need to be shared by all team members, prefer storing them in [user + * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs). + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + getPrefs(teamId) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + const apiPath = "/teams/{teamId}/prefs".replace("{teamId}", teamId); + const payload = {}; + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("get", uri, { + "content-type": "application/json", + }, payload); + }); + } + /** + * Update preferences + * + * Update the team's preferences by its unique ID. The object you pass is + * stored as is and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws an error if exceeded. + * + * @param {string} teamId + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePrefs(teamId, prefs) { + return __awaiter(this, void 0, void 0, function* () { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + if (typeof prefs === "undefined") { + throw new AppwriteException('Missing required parameter: "prefs"'); + } + const apiPath = "/teams/{teamId}/prefs".replace("{teamId}", teamId); + const payload = {}; + if (typeof prefs !== "undefined") { + payload["prefs"] = prefs; + } + const uri = new URL(this.client.config.endpoint + apiPath); + return yield this.client.call("put", uri, { + "content-type": "application/json", + }, payload); + }); + } +} + +class Query { + constructor(method, attribute, values) { + this.method = method; + this.attribute = attribute; + if (values !== undefined) { + if (Array.isArray(values)) { + this.values = values; + } + else { + this.values = [values]; + } + } + } + toString() { + return JSON.stringify({ + method: this.method, + attribute: this.attribute, + values: this.values, + }); + } +} +Query.equal = (attribute, value) => new Query("equal", attribute, value).toString(); +Query.notEqual = (attribute, value) => new Query("notEqual", attribute, value).toString(); +Query.lessThan = (attribute, value) => new Query("lessThan", attribute, value).toString(); +Query.lessThanEqual = (attribute, value) => new Query("lessThanEqual", attribute, value).toString(); +Query.greaterThan = (attribute, value) => new Query("greaterThan", attribute, value).toString(); +Query.greaterThanEqual = (attribute, value) => new Query("greaterThanEqual", attribute, value).toString(); +Query.isNull = (attribute) => new Query("isNull", attribute).toString(); +Query.isNotNull = (attribute) => new Query("isNotNull", attribute).toString(); +Query.between = (attribute, start, end) => new Query("between", attribute, [start, end]).toString(); +Query.startsWith = (attribute, value) => new Query("startsWith", attribute, value).toString(); +Query.endsWith = (attribute, value) => new Query("endsWith", attribute, value).toString(); +Query.select = (attributes) => new Query("select", undefined, attributes).toString(); +Query.search = (attribute, value) => new Query("search", attribute, value).toString(); +Query.orderDesc = (attribute) => new Query("orderDesc", attribute).toString(); +Query.orderAsc = (attribute) => new Query("orderAsc", attribute).toString(); +Query.cursorAfter = (documentId) => new Query("cursorAfter", undefined, documentId).toString(); +Query.cursorBefore = (documentId) => new Query("cursorBefore", undefined, documentId).toString(); +Query.limit = (limit) => new Query("limit", undefined, limit).toString(); +Query.offset = (offset) => new Query("offset", undefined, offset).toString(); +Query.contains = (attribute, value) => new Query("contains", attribute, value).toString(); +Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString(); +Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString(); + +class Permission { +} +Permission.read = (role) => { + return `read("${role}")`; +}; +Permission.write = (role) => { + return `write("${role}")`; +}; +Permission.create = (role) => { + return `create("${role}")`; +}; +Permission.update = (role) => { + return `update("${role}")`; +}; +Permission.delete = (role) => { + return `delete("${role}")`; +}; + +/** + * Helper class to generate role strings for `Permission`. + */ +class Role { + /** + * Grants access to anyone. + * + * This includes authenticated and unauthenticated users. + * + * @returns {string} + */ + static any() { + return 'any'; + } + /** + * Grants access to a specific user by user ID. + * + * You can optionally pass verified or unverified for + * `status` to target specific types of users. + * + * @param {string} id + * @param {string} status + * @returns {string} + */ + static user(id, status = '') { + if (status === '') { + return `user:${id}`; + } + return `user:${id}/${status}`; + } + /** + * Grants access to any authenticated or anonymous user. + * + * You can optionally pass verified or unverified for + * `status` to target specific types of users. + * + * @param {string} status + * @returns {string} + */ + static users(status = '') { + if (status === '') { + return 'users'; + } + return `users/${status}`; + } + /** + * Grants access to any guest user without a session. + * + * Authenticated users don't have access to this role. + * + * @returns {string} + */ + static guests() { + return 'guests'; + } + /** + * Grants access to a team by team ID. + * + * You can optionally pass a role for `role` to target + * team members with the specified role. + * + * @param {string} id + * @param {string} role + * @returns {string} + */ + static team(id, role = '') { + if (role === '') { + return `team:${id}`; + } + return `team:${id}/${role}`; + } + /** + * Grants access to a specific member of a team. + * + * When the member is removed from the team, they will + * no longer have access. + * + * @param {string} id + * @returns {string} + */ + static member(id) { + return `member:${id}`; + } + /** + * Grants access to a user with the specified label. + * + * @param {string} name + * @returns {string} + */ + static label(name) { + return `label:${name}`; + } +} + +var _a, _ID_hexTimestamp; +class ID { + static custom(id) { + return id; + } + static unique(padding = 7) { + // Generate a unique ID with padding to have a longer ID + const baseId = __classPrivateFieldGet(ID, _a, "m", _ID_hexTimestamp).call(ID); + let randomPadding = ''; + for (let i = 0; i < padding; i++) { + const randomHexDigit = Math.floor(Math.random() * 16).toString(16); + randomPadding += randomHexDigit; + } + return baseId + randomPadding; + } +} +_a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() { + const now = new Date(); + const sec = Math.floor(now.getTime() / 1000); + const msec = now.getMilliseconds(); + // Convert to hexadecimal + const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0'); + return hexTimestamp; +}; + +var AuthenticatorType; +(function (AuthenticatorType) { + AuthenticatorType["Totp"] = "totp"; +})(AuthenticatorType || (AuthenticatorType = {})); + +var AuthenticationFactor; +(function (AuthenticationFactor) { + AuthenticationFactor["Email"] = "email"; + AuthenticationFactor["Phone"] = "phone"; + AuthenticationFactor["Totp"] = "totp"; + AuthenticationFactor["Recoverycode"] = "recoverycode"; +})(AuthenticationFactor || (AuthenticationFactor = {})); + +var OAuthProvider; +(function (OAuthProvider) { + OAuthProvider["Amazon"] = "amazon"; + OAuthProvider["Apple"] = "apple"; + OAuthProvider["Auth0"] = "auth0"; + OAuthProvider["Authentik"] = "authentik"; + OAuthProvider["Autodesk"] = "autodesk"; + OAuthProvider["Bitbucket"] = "bitbucket"; + OAuthProvider["Bitly"] = "bitly"; + OAuthProvider["Box"] = "box"; + OAuthProvider["Dailymotion"] = "dailymotion"; + OAuthProvider["Discord"] = "discord"; + OAuthProvider["Disqus"] = "disqus"; + OAuthProvider["Dropbox"] = "dropbox"; + OAuthProvider["Etsy"] = "etsy"; + OAuthProvider["Facebook"] = "facebook"; + OAuthProvider["Github"] = "github"; + OAuthProvider["Gitlab"] = "gitlab"; + OAuthProvider["Google"] = "google"; + OAuthProvider["Linkedin"] = "linkedin"; + OAuthProvider["Microsoft"] = "microsoft"; + OAuthProvider["Notion"] = "notion"; + OAuthProvider["Oidc"] = "oidc"; + OAuthProvider["Okta"] = "okta"; + OAuthProvider["Paypal"] = "paypal"; + OAuthProvider["PaypalSandbox"] = "paypalSandbox"; + OAuthProvider["Podio"] = "podio"; + OAuthProvider["Salesforce"] = "salesforce"; + OAuthProvider["Slack"] = "slack"; + OAuthProvider["Spotify"] = "spotify"; + OAuthProvider["Stripe"] = "stripe"; + OAuthProvider["Tradeshift"] = "tradeshift"; + OAuthProvider["TradeshiftBox"] = "tradeshiftBox"; + OAuthProvider["Twitch"] = "twitch"; + OAuthProvider["Wordpress"] = "wordpress"; + OAuthProvider["Yahoo"] = "yahoo"; + OAuthProvider["Yammer"] = "yammer"; + OAuthProvider["Yandex"] = "yandex"; + OAuthProvider["Zoho"] = "zoho"; + OAuthProvider["Zoom"] = "zoom"; + OAuthProvider["Mock"] = "mock"; +})(OAuthProvider || (OAuthProvider = {})); + +var Browser; +(function (Browser) { + Browser["AvantBrowser"] = "aa"; + Browser["AndroidWebViewBeta"] = "an"; + Browser["GoogleChrome"] = "ch"; + Browser["GoogleChromeIOS"] = "ci"; + Browser["GoogleChromeMobile"] = "cm"; + Browser["Chromium"] = "cr"; + Browser["MozillaFirefox"] = "ff"; + Browser["Safari"] = "sf"; + Browser["MobileSafari"] = "mf"; + Browser["MicrosoftEdge"] = "ps"; + Browser["MicrosoftEdgeIOS"] = "oi"; + Browser["OperaMini"] = "om"; + Browser["Opera"] = "op"; + Browser["OperaNext"] = "on"; +})(Browser || (Browser = {})); + +var CreditCard; +(function (CreditCard) { + CreditCard["AmericanExpress"] = "amex"; + CreditCard["Argencard"] = "argencard"; + CreditCard["Cabal"] = "cabal"; + CreditCard["Cencosud"] = "cencosud"; + CreditCard["DinersClub"] = "diners"; + CreditCard["Discover"] = "discover"; + CreditCard["Elo"] = "elo"; + CreditCard["Hipercard"] = "hipercard"; + CreditCard["JCB"] = "jcb"; + CreditCard["Mastercard"] = "mastercard"; + CreditCard["Naranja"] = "naranja"; + CreditCard["TarjetaShopping"] = "targeta-shopping"; + CreditCard["UnionChinaPay"] = "union-china-pay"; + CreditCard["Visa"] = "visa"; + CreditCard["MIR"] = "mir"; + CreditCard["Maestro"] = "maestro"; +})(CreditCard || (CreditCard = {})); + +var Flag; +(function (Flag) { + Flag["Afghanistan"] = "af"; + Flag["Angola"] = "ao"; + Flag["Albania"] = "al"; + Flag["Andorra"] = "ad"; + Flag["UnitedArabEmirates"] = "ae"; + Flag["Argentina"] = "ar"; + Flag["Armenia"] = "am"; + Flag["AntiguaAndBarbuda"] = "ag"; + Flag["Australia"] = "au"; + Flag["Austria"] = "at"; + Flag["Azerbaijan"] = "az"; + Flag["Burundi"] = "bi"; + Flag["Belgium"] = "be"; + Flag["Benin"] = "bj"; + Flag["BurkinaFaso"] = "bf"; + Flag["Bangladesh"] = "bd"; + Flag["Bulgaria"] = "bg"; + Flag["Bahrain"] = "bh"; + Flag["Bahamas"] = "bs"; + Flag["BosniaAndHerzegovina"] = "ba"; + Flag["Belarus"] = "by"; + Flag["Belize"] = "bz"; + Flag["Bolivia"] = "bo"; + Flag["Brazil"] = "br"; + Flag["Barbados"] = "bb"; + Flag["BruneiDarussalam"] = "bn"; + Flag["Bhutan"] = "bt"; + Flag["Botswana"] = "bw"; + Flag["CentralAfricanRepublic"] = "cf"; + Flag["Canada"] = "ca"; + Flag["Switzerland"] = "ch"; + Flag["Chile"] = "cl"; + Flag["China"] = "cn"; + Flag["CoteDIvoire"] = "ci"; + Flag["Cameroon"] = "cm"; + Flag["DemocraticRepublicOfTheCongo"] = "cd"; + Flag["RepublicOfTheCongo"] = "cg"; + Flag["Colombia"] = "co"; + Flag["Comoros"] = "km"; + Flag["CapeVerde"] = "cv"; + Flag["CostaRica"] = "cr"; + Flag["Cuba"] = "cu"; + Flag["Cyprus"] = "cy"; + Flag["CzechRepublic"] = "cz"; + Flag["Germany"] = "de"; + Flag["Djibouti"] = "dj"; + Flag["Dominica"] = "dm"; + Flag["Denmark"] = "dk"; + Flag["DominicanRepublic"] = "do"; + Flag["Algeria"] = "dz"; + Flag["Ecuador"] = "ec"; + Flag["Egypt"] = "eg"; + Flag["Eritrea"] = "er"; + Flag["Spain"] = "es"; + Flag["Estonia"] = "ee"; + Flag["Ethiopia"] = "et"; + Flag["Finland"] = "fi"; + Flag["Fiji"] = "fj"; + Flag["France"] = "fr"; + Flag["MicronesiaFederatedStatesOf"] = "fm"; + Flag["Gabon"] = "ga"; + Flag["UnitedKingdom"] = "gb"; + Flag["Georgia"] = "ge"; + Flag["Ghana"] = "gh"; + Flag["Guinea"] = "gn"; + Flag["Gambia"] = "gm"; + Flag["GuineaBissau"] = "gw"; + Flag["EquatorialGuinea"] = "gq"; + Flag["Greece"] = "gr"; + Flag["Grenada"] = "gd"; + Flag["Guatemala"] = "gt"; + Flag["Guyana"] = "gy"; + Flag["Honduras"] = "hn"; + Flag["Croatia"] = "hr"; + Flag["Haiti"] = "ht"; + Flag["Hungary"] = "hu"; + Flag["Indonesia"] = "id"; + Flag["India"] = "in"; + Flag["Ireland"] = "ie"; + Flag["IranIslamicRepublicOf"] = "ir"; + Flag["Iraq"] = "iq"; + Flag["Iceland"] = "is"; + Flag["Israel"] = "il"; + Flag["Italy"] = "it"; + Flag["Jamaica"] = "jm"; + Flag["Jordan"] = "jo"; + Flag["Japan"] = "jp"; + Flag["Kazakhstan"] = "kz"; + Flag["Kenya"] = "ke"; + Flag["Kyrgyzstan"] = "kg"; + Flag["Cambodia"] = "kh"; + Flag["Kiribati"] = "ki"; + Flag["SaintKittsAndNevis"] = "kn"; + Flag["SouthKorea"] = "kr"; + Flag["Kuwait"] = "kw"; + Flag["LaoPeopleSDemocraticRepublic"] = "la"; + Flag["Lebanon"] = "lb"; + Flag["Liberia"] = "lr"; + Flag["Libya"] = "ly"; + Flag["SaintLucia"] = "lc"; + Flag["Liechtenstein"] = "li"; + Flag["SriLanka"] = "lk"; + Flag["Lesotho"] = "ls"; + Flag["Lithuania"] = "lt"; + Flag["Luxembourg"] = "lu"; + Flag["Latvia"] = "lv"; + Flag["Morocco"] = "ma"; + Flag["Monaco"] = "mc"; + Flag["Moldova"] = "md"; + Flag["Madagascar"] = "mg"; + Flag["Maldives"] = "mv"; + Flag["Mexico"] = "mx"; + Flag["MarshallIslands"] = "mh"; + Flag["NorthMacedonia"] = "mk"; + Flag["Mali"] = "ml"; + Flag["Malta"] = "mt"; + Flag["Myanmar"] = "mm"; + Flag["Montenegro"] = "me"; + Flag["Mongolia"] = "mn"; + Flag["Mozambique"] = "mz"; + Flag["Mauritania"] = "mr"; + Flag["Mauritius"] = "mu"; + Flag["Malawi"] = "mw"; + Flag["Malaysia"] = "my"; + Flag["Namibia"] = "na"; + Flag["Niger"] = "ne"; + Flag["Nigeria"] = "ng"; + Flag["Nicaragua"] = "ni"; + Flag["Netherlands"] = "nl"; + Flag["Norway"] = "no"; + Flag["Nepal"] = "np"; + Flag["Nauru"] = "nr"; + Flag["NewZealand"] = "nz"; + Flag["Oman"] = "om"; + Flag["Pakistan"] = "pk"; + Flag["Panama"] = "pa"; + Flag["Peru"] = "pe"; + Flag["Philippines"] = "ph"; + Flag["Palau"] = "pw"; + Flag["PapuaNewGuinea"] = "pg"; + Flag["Poland"] = "pl"; + Flag["FrenchPolynesia"] = "pf"; + Flag["NorthKorea"] = "kp"; + Flag["Portugal"] = "pt"; + Flag["Paraguay"] = "py"; + Flag["Qatar"] = "qa"; + Flag["Romania"] = "ro"; + Flag["Russia"] = "ru"; + Flag["Rwanda"] = "rw"; + Flag["SaudiArabia"] = "sa"; + Flag["Sudan"] = "sd"; + Flag["Senegal"] = "sn"; + Flag["Singapore"] = "sg"; + Flag["SolomonIslands"] = "sb"; + Flag["SierraLeone"] = "sl"; + Flag["ElSalvador"] = "sv"; + Flag["SanMarino"] = "sm"; + Flag["Somalia"] = "so"; + Flag["Serbia"] = "rs"; + Flag["SouthSudan"] = "ss"; + Flag["SaoTomeAndPrincipe"] = "st"; + Flag["Suriname"] = "sr"; + Flag["Slovakia"] = "sk"; + Flag["Slovenia"] = "si"; + Flag["Sweden"] = "se"; + Flag["Eswatini"] = "sz"; + Flag["Seychelles"] = "sc"; + Flag["Syria"] = "sy"; + Flag["Chad"] = "td"; + Flag["Togo"] = "tg"; + Flag["Thailand"] = "th"; + Flag["Tajikistan"] = "tj"; + Flag["Turkmenistan"] = "tm"; + Flag["TimorLeste"] = "tl"; + Flag["Tonga"] = "to"; + Flag["TrinidadAndTobago"] = "tt"; + Flag["Tunisia"] = "tn"; + Flag["Turkey"] = "tr"; + Flag["Tuvalu"] = "tv"; + Flag["Tanzania"] = "tz"; + Flag["Uganda"] = "ug"; + Flag["Ukraine"] = "ua"; + Flag["Uruguay"] = "uy"; + Flag["UnitedStates"] = "us"; + Flag["Uzbekistan"] = "uz"; + Flag["VaticanCity"] = "va"; + Flag["SaintVincentAndTheGrenadines"] = "vc"; + Flag["Venezuela"] = "ve"; + Flag["Vietnam"] = "vn"; + Flag["Vanuatu"] = "vu"; + Flag["Samoa"] = "ws"; + Flag["Yemen"] = "ye"; + Flag["SouthAfrica"] = "za"; + Flag["Zambia"] = "zm"; + Flag["Zimbabwe"] = "zw"; +})(Flag || (Flag = {})); + +var ExecutionMethod; +(function (ExecutionMethod) { + ExecutionMethod["GET"] = "GET"; + ExecutionMethod["POST"] = "POST"; + ExecutionMethod["PUT"] = "PUT"; + ExecutionMethod["PATCH"] = "PATCH"; + ExecutionMethod["DELETE"] = "DELETE"; + ExecutionMethod["OPTIONS"] = "OPTIONS"; +})(ExecutionMethod || (ExecutionMethod = {})); + +var ImageGravity; +(function (ImageGravity) { + ImageGravity["Center"] = "center"; + ImageGravity["TopLeft"] = "top-left"; + ImageGravity["Top"] = "top"; + ImageGravity["TopRight"] = "top-right"; + ImageGravity["Left"] = "left"; + ImageGravity["Right"] = "right"; + ImageGravity["BottomLeft"] = "bottom-left"; + ImageGravity["Bottom"] = "bottom"; + ImageGravity["BottomRight"] = "bottom-right"; +})(ImageGravity || (ImageGravity = {})); + +var ImageFormat; +(function (ImageFormat) { + ImageFormat["Jpg"] = "jpg"; + ImageFormat["Jpeg"] = "jpeg"; + ImageFormat["Gif"] = "gif"; + ImageFormat["Png"] = "png"; + ImageFormat["Webp"] = "webp"; +})(ImageFormat || (ImageFormat = {})); + +export { Account, AppwriteException, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, CreditCard, Databases, ExecutionMethod, Flag, Functions, Graphql, ID, ImageFormat, ImageGravity, Locale, Messaging, OAuthProvider, Permission, Query, Role, Storage, Teams }; +//# sourceMappingURL=sdk.js.map diff --git a/dist/esm/sdk.js.map b/dist/esm/sdk.js.map new file mode 100644 index 0000000..1c8b998 --- /dev/null +++ b/dist/esm/sdk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sdk.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/service.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/messaging.ts","../../src/services/storage.ts","../../src/services/teams.ts","../../src/query.ts","../../src/permission.ts","../../src/role.ts","../../src/id.ts","../../src/enums/authenticator-type.ts","../../src/enums/authentication-factor.ts","../../src/enums/o-auth-provider.ts","../../src/enums/browser.ts","../../src/enums/credit-card.ts","../../src/enums/flag.ts","../../src/enums/execution-method.ts","../../src/enums/image-gravity.ts","../../src/enums/image-format.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';\r\nimport type { Payload } from './client';\r\n\r\nexport class Service {\r\n static CHUNK_SIZE = 5*1024*1024; // 5MB\r\n\r\n client: Client;\r\n\r\n constructor(client: Client) {\r\n this.client = client;\r\n }\r\n\r\n static flatten(data: Payload, prefix = ''): Payload {\r\n let output: Payload = {};\r\n\r\n for (const [key, value] of Object.entries(data)) {\r\n let finalKey = prefix ? prefix + '[' + key +']' : key;\r\n if (Array.isArray(value)) {\r\n output = { ...output, ...Service.flatten(value, finalKey) };\r\n } else {\r\n output[finalKey] = value;\r\n }\r\n }\r\n\r\n return output;\r\n }\r\n}","import { Models } from './models';\r\nimport { Service } from './service';\r\nimport { Platform } from 'react-native';\r\n\r\ntype Payload = {\r\n [key: string]: any;\r\n}\r\n\r\ntype Headers = {\r\n [key: string]: string;\r\n}\r\n\r\ntype RealtimeResponse = {\r\n type: 'error' | 'event' | 'connected' | 'response';\r\n data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent;\r\n}\r\n\r\ntype RealtimeRequest = {\r\n type: 'authentication';\r\n data: RealtimeRequestAuthenticate;\r\n}\r\n\r\nexport type RealtimeResponseEvent = {\r\n events: string[];\r\n channels: string[];\r\n timestamp: number;\r\n payload: T;\r\n}\r\n\r\ntype RealtimeResponseError = {\r\n code: number;\r\n message: string;\r\n}\r\n\r\ntype RealtimeResponseConnected = {\r\n channels: string[];\r\n user?: object;\r\n}\r\n\r\ntype RealtimeResponseAuthenticated = {\r\n to: string;\r\n success: boolean;\r\n user: object;\r\n}\r\n\r\ntype RealtimeRequestAuthenticate = {\r\n session: string;\r\n}\r\n\r\ntype Realtime = {\r\n socket?: WebSocket;\r\n timeout?: number;\r\n url?: string;\r\n lastMessage?: RealtimeResponse;\r\n channels: Set;\r\n subscriptions: Map) => void\r\n }>;\r\n subscriptionsCounter: number;\r\n reconnect: boolean;\r\n reconnectAttempts: number;\r\n getTimeout: () => number;\r\n connect: () => void;\r\n createSocket: () => void;\r\n cleanUp: (channels: string[]) => void;\r\n onMessage: (event: MessageEvent) => void;\r\n}\r\n\r\nexport type UploadProgress = {\r\n $id: string;\r\n progress: number;\r\n sizeUploaded: number;\r\n chunksTotal: number;\r\n chunksUploaded: number;\r\n}\r\n\r\nclass AppwriteException extends Error {\r\n code: number;\r\n response: string;\r\n type: string;\r\n constructor(message: string, code: number = 0, type: string = '', response: string = '') {\r\n super(message);\r\n this.name = 'AppwriteException';\r\n this.message = message;\r\n this.code = code;\r\n this.type = type;\r\n this.response = response;\r\n }\r\n}\r\n\r\nclass Client {\r\n config = {\r\n endpoint: 'https://cloud.appwrite.io/v1',\r\n endpointRealtime: '',\r\n project: '',\r\n jwt: '',\r\n locale: '',\r\n session: '',\r\n platform: '',\r\n };\r\n headers: Headers = {\r\n 'x-sdk-name': 'React Native',\r\n 'x-sdk-platform': 'client',\r\n 'x-sdk-language': 'reactnative',\r\n 'x-sdk-version': '0.4.0',\r\n 'X-Appwrite-Response-Format': '1.5.0',\r\n };\r\n\r\n /**\r\n * Set Endpoint\r\n *\r\n * Your project endpoint\r\n *\r\n * @param {string} endpoint\r\n *\r\n * @returns {this}\r\n */\r\n setEndpoint(endpoint: string): this {\r\n this.config.endpoint = endpoint;\r\n this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Realtime Endpoint\r\n *\r\n * @param {string} endpointRealtime\r\n *\r\n * @returns {this}\r\n */\r\n setEndpointRealtime(endpointRealtime: string): this {\r\n this.config.endpointRealtime = endpointRealtime;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set platform\r\n * \r\n * Set platform. Will be used as origin for all requests.\r\n * \r\n * @param {string} platform\r\n * @returns {this}\r\n */\r\n setPlatform(platform: string): this {\r\n this.config.platform = platform;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Project\r\n *\r\n * Your project ID\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setProject(value: string): this {\r\n this.headers['X-Appwrite-Project'] = value;\r\n this.config.project = value;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set JWT\r\n *\r\n * Your secret JSON Web Token\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setJWT(value: string): this {\r\n this.headers['X-Appwrite-JWT'] = value;\r\n this.config.jwt = value;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Locale\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setLocale(value: string): this {\r\n this.headers['X-Appwrite-Locale'] = value;\r\n this.config.locale = value;\r\n return this;\r\n }\r\n\r\n /**\r\n * Set Session\r\n *\r\n * The user session to authenticate with\r\n *\r\n * @param value string\r\n *\r\n * @return {this}\r\n */\r\n setSession(value: string): this {\r\n this.headers['X-Appwrite-Session'] = value;\r\n this.config.session = value;\r\n return this;\r\n }\r\n\r\n\r\n private realtime: Realtime = {\r\n socket: undefined,\r\n timeout: undefined,\r\n url: '',\r\n channels: new Set(),\r\n subscriptions: new Map(),\r\n subscriptionsCounter: 0,\r\n reconnect: true,\r\n reconnectAttempts: 0,\r\n lastMessage: undefined,\r\n connect: () => {\r\n clearTimeout(this.realtime.timeout);\r\n this.realtime.timeout = window?.setTimeout(() => {\r\n this.realtime.createSocket();\r\n }, 50);\r\n },\r\n getTimeout: () => {\r\n switch (true) {\r\n case this.realtime.reconnectAttempts < 5:\r\n return 1000;\r\n case this.realtime.reconnectAttempts < 15:\r\n return 5000;\r\n case this.realtime.reconnectAttempts < 100:\r\n return 10_000;\r\n default:\r\n return 60_000;\r\n }\r\n },\r\n createSocket: () => {\r\n if (this.realtime.channels.size < 1) {\r\n this.realtime.reconnect = false;\r\n this.realtime.socket?.close();\r\n return;\r\n }\r\n\r\n const channels = new URLSearchParams();\r\n channels.set('project', this.config.project);\r\n this.realtime.channels.forEach(channel => {\r\n channels.append('channels[]', channel);\r\n });\r\n\r\n const url = this.config.endpointRealtime + '/realtime?' + channels.toString();\r\n\r\n if (\r\n url !== this.realtime.url || // Check if URL is present\r\n !this.realtime.socket || // Check if WebSocket has not been created\r\n this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)\r\n ) {\r\n if (\r\n this.realtime.socket &&\r\n this.realtime.socket?.readyState < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1)\r\n ) {\r\n this.realtime.reconnect = false;\r\n this.realtime.socket.close();\r\n }\r\n\r\n this.realtime.url = url;\r\n // @ts-ignore\r\n this.realtime.socket = new WebSocket(url, undefined, {\r\n headers: {\r\n Origin: `appwrite-${Platform.OS}://${this.config.platform}`\r\n }\r\n });\r\n this.realtime.socket.addEventListener('message', this.realtime.onMessage);\r\n this.realtime.socket.addEventListener('open', _event => {\r\n this.realtime.reconnectAttempts = 0;\r\n });\r\n this.realtime.socket.addEventListener('close', event => {\r\n if (\r\n !this.realtime.reconnect ||\r\n (\r\n this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error\r\n (this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008\r\n )\r\n ) {\r\n this.realtime.reconnect = true;\r\n return;\r\n }\r\n\r\n const timeout = this.realtime.getTimeout();\r\n console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);\r\n\r\n setTimeout(() => {\r\n this.realtime.reconnectAttempts++;\r\n this.realtime.createSocket();\r\n }, timeout);\r\n })\r\n }\r\n },\r\n onMessage: (event) => {\r\n try {\r\n const message: RealtimeResponse = JSON.parse(event.data);\r\n this.realtime.lastMessage = message;\r\n switch (message.type) {\r\n case 'event':\r\n let data = >message.data;\r\n if (data?.channels) {\r\n const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));\r\n if (!isSubscribed) return;\r\n this.realtime.subscriptions.forEach(subscription => {\r\n if (data.channels.some(channel => subscription.channels.includes(channel))) {\r\n setTimeout(() => subscription.callback(data));\r\n }\r\n })\r\n }\r\n break;\r\n case 'error':\r\n throw message.data;\r\n default:\r\n break;\r\n }\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n },\r\n cleanUp: channels => {\r\n this.realtime.channels.forEach(channel => {\r\n if (channels.includes(channel)) {\r\n let found = Array.from(this.realtime.subscriptions).some(([_key, subscription] )=> {\r\n return subscription.channels.includes(channel);\r\n })\r\n\r\n if (!found) {\r\n this.realtime.channels.delete(channel);\r\n }\r\n }\r\n })\r\n }\r\n }\r\n\r\n /**\r\n * Subscribes to Appwrite events and passes you the payload in realtime.\r\n * \r\n * @param {string|string[]} channels \r\n * Channel to subscribe - pass a single channel as a string or multiple with an array of strings.\r\n * \r\n * Possible channels are:\r\n * - account\r\n * - collections\r\n * - collections.[ID]\r\n * - collections.[ID].documents\r\n * - documents\r\n * - documents.[ID]\r\n * - files\r\n * - files.[ID]\r\n * - executions\r\n * - executions.[ID]\r\n * - functions.[ID]\r\n * - teams\r\n * - teams.[ID]\r\n * - memberships\r\n * - memberships.[ID]\r\n * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.\r\n * @returns {() => void} Unsubscribes from events.\r\n */\r\n subscribe(channels: string | string[], callback: (payload: RealtimeResponseEvent) => void): () => void {\r\n let channelArray = typeof channels === 'string' ? [channels] : channels;\r\n channelArray.forEach(channel => this.realtime.channels.add(channel));\r\n\r\n const counter = this.realtime.subscriptionsCounter++;\r\n this.realtime.subscriptions.set(counter, {\r\n channels: channelArray,\r\n callback\r\n });\r\n\r\n this.realtime.connect();\r\n\r\n return () => {\r\n this.realtime.subscriptions.delete(counter);\r\n this.realtime.cleanUp(channelArray);\r\n this.realtime.connect();\r\n }\r\n }\r\n\r\n async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise {\r\n method = method.toUpperCase();\r\n\r\n headers = Object.assign({}, this.headers, headers);\r\n headers.Origin = `appwrite-${Platform.OS}://${this.config.platform}`\r\n\r\n let options: RequestInit = {\r\n method,\r\n headers,\r\n credentials: 'include'\r\n };\r\n\r\n if (method === 'GET') {\r\n for (const [key, value] of Object.entries(Service.flatten(params))) {\r\n url.searchParams.append(key, value);\r\n }\r\n } else {\r\n switch (headers['content-type']) {\r\n case 'application/json':\r\n options.body = JSON.stringify(params);\r\n break;\r\n\r\n case 'multipart/form-data':\r\n let formData = new FormData();\r\n\r\n for (const key in params) {\r\n if (Array.isArray(params[key])) {\r\n params[key].forEach((value: any) => {\r\n formData.append(key + '[]', value);\r\n })\r\n } else {\r\n formData.append(key, params[key]);\r\n }\r\n }\r\n\r\n options.body = formData;\r\n delete headers['content-type'];\r\n break;\r\n }\r\n }\r\n\r\n try {\r\n let data = null;\r\n const response = await fetch(url.toString(), options);\r\n\r\n if (response.headers.get('content-type')?.includes('application/json')) {\r\n data = await response.json();\r\n } else {\r\n data = {\r\n message: await response.text()\r\n };\r\n }\r\n\r\n if (400 <= response.status) {\r\n throw new AppwriteException(data?.message, response.status, data?.type, data);\r\n }\r\n\r\n const cookieFallback = response.headers.get('X-Fallback-Cookies');\r\n\r\n if (typeof window !== 'undefined' && window.localStorage && cookieFallback) {\r\n window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');\r\n window.localStorage.setItem('cookieFallback', cookieFallback);\r\n }\r\n\r\n return data;\r\n } catch (e) {\r\n if (e instanceof AppwriteException) {\r\n throw e;\r\n }\r\n throw new AppwriteException((e).message);\r\n }\r\n }\r\n}\r\n\r\nexport { Client, AppwriteException };\r\nexport type { Models, Payload };\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { AuthenticatorType } from \"../enums/authenticator-type\";\r\nimport { AuthenticationFactor } from \"../enums/authentication-factor\";\r\nimport { OAuthProvider } from \"../enums/o-auth-provider\";\r\n\r\nexport class Account extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Get account\r\n *\r\n * Get the currently logged in user.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async get(): Promise<\r\n Models.User\r\n > {\r\n const apiPath = \"/account\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create account\r\n *\r\n * Use this endpoint to allow a new user to register a new account in your\r\n * project. After the user registration completes successfully, you can use\r\n * the\r\n * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification)\r\n * route to start verifying the user email address. To allow the new user to\r\n * login to their new account, you need to create a new [account\r\n * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).\r\n *\r\n * @param {string} userId\r\n * @param {string} email\r\n * @param {string} password\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async create(\r\n userId: string,\r\n email: string,\r\n password: string,\r\n name?: string\r\n ): Promise> {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update email\r\n *\r\n * Update currently logged in user account email address. After changing user\r\n * address, the user confirmation status will get reset. A new confirmation\r\n * email is not sent automatically however you can use the send confirmation\r\n * email endpoint again to send the confirmation email. For security measures,\r\n * user password is required to complete this request.\r\n * This endpoint can also be used to convert an anonymous account to a normal\r\n * one, by passing an email address and a new password.\r\n *\r\n *\r\n * @param {string} email\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateEmail(\r\n email: string,\r\n password: string\r\n ): Promise> {\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/email\";\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List Identities\r\n *\r\n * Get the list of identities for the currently logged in user.\r\n *\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listIdentities(queries?: string[]): Promise {\r\n const apiPath = \"/account/identities\";\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete identity\r\n *\r\n * Delete an identity by its unique ID.\r\n *\r\n * @param {string} identityId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteIdentity(identityId: string): Promise<{}> {\r\n if (typeof identityId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"identityId\"');\r\n }\r\n\r\n const apiPath = \"/account/identities/{identityId}\".replace(\r\n \"{identityId}\",\r\n identityId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create JWT\r\n *\r\n * Use this endpoint to create a JSON Web Token. You can use the resulting JWT\r\n * to authenticate on behalf of the current user when working with the\r\n * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes\r\n * from its creation and will be invalid if the user will logout in that time\r\n * frame.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createJWT(): Promise {\r\n const apiPath = \"/account/jwt\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List logs\r\n *\r\n * Get the list of latest security activity logs for the currently logged in\r\n * user. Each log returns user IP address, location and date and time of log.\r\n *\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listLogs(queries?: string[]): Promise {\r\n const apiPath = \"/account/logs\";\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update MFA\r\n *\r\n * Enable or disable MFA on an account.\r\n *\r\n * @param {boolean} mfa\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMFA(\r\n mfa: boolean\r\n ): Promise> {\r\n if (typeof mfa === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"mfa\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa\";\r\n const payload: Payload = {};\r\n\r\n if (typeof mfa !== \"undefined\") {\r\n payload[\"mfa\"] = mfa;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Add Authenticator\r\n *\r\n * Add an authenticator app to be used as an MFA factor. Verify the\r\n * authenticator using the [verify\r\n * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator)\r\n * method.\r\n *\r\n * @param {AuthenticatorType} type\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMfaAuthenticator(\r\n type: AuthenticatorType\r\n ): Promise {\r\n if (typeof type === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"type\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/authenticators/{type}\".replace(\r\n \"{type}\",\r\n type\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Verify Authenticator\r\n *\r\n * Verify an authenticator app after adding it using the [add\r\n * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator)\r\n * method. add\r\n *\r\n * @param {AuthenticatorType} type\r\n * @param {string} otp\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMfaAuthenticator(\r\n type: AuthenticatorType,\r\n otp: string\r\n ): Promise> {\r\n if (typeof type === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"type\"');\r\n }\r\n\r\n if (typeof otp === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"otp\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/authenticators/{type}\".replace(\r\n \"{type}\",\r\n type\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof otp !== \"undefined\") {\r\n payload[\"otp\"] = otp;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete Authenticator\r\n *\r\n * Delete an authenticator for a user by ID.\r\n *\r\n * @param {AuthenticatorType} type\r\n * @param {string} otp\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteMfaAuthenticator(\r\n type: AuthenticatorType,\r\n otp: string\r\n ): Promise<{}> {\r\n if (typeof type === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"type\"');\r\n }\r\n\r\n if (typeof otp === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"otp\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/authenticators/{type}\".replace(\r\n \"{type}\",\r\n type\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof otp !== \"undefined\") {\r\n payload[\"otp\"] = otp;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create 2FA Challenge\r\n *\r\n * Begin the process of MFA verification after sign-in. Finish the flow with\r\n * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)\r\n * method.\r\n *\r\n * @param {AuthenticationFactor} factor\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMfaChallenge(\r\n factor: AuthenticationFactor\r\n ): Promise {\r\n if (typeof factor === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"factor\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/challenge\";\r\n const payload: Payload = {};\r\n\r\n if (typeof factor !== \"undefined\") {\r\n payload[\"factor\"] = factor;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create MFA Challenge (confirmation)\r\n *\r\n * Complete the MFA challenge by providing the one-time password. Finish the\r\n * process of MFA verification by providing the one-time password. To begin\r\n * the flow, use\r\n * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)\r\n * method.\r\n *\r\n * @param {string} challengeId\r\n * @param {string} otp\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> {\r\n if (typeof challengeId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"challengeId\"');\r\n }\r\n\r\n if (typeof otp === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"otp\"');\r\n }\r\n\r\n const apiPath = \"/account/mfa/challenge\";\r\n const payload: Payload = {};\r\n\r\n if (typeof challengeId !== \"undefined\") {\r\n payload[\"challengeId\"] = challengeId;\r\n }\r\n\r\n if (typeof otp !== \"undefined\") {\r\n payload[\"otp\"] = otp;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List Factors\r\n *\r\n * List the factors available on the account to be used as a MFA challange.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listMfaFactors(): Promise {\r\n const apiPath = \"/account/mfa/factors\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get MFA Recovery Codes\r\n *\r\n * Get recovery codes that can be used as backup for MFA flow. Before getting\r\n * codes, they must be generated using\r\n * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)\r\n * method. An OTP challenge is required to read recovery codes.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getMfaRecoveryCodes(): Promise {\r\n const apiPath = \"/account/mfa/recovery-codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create MFA Recovery Codes\r\n *\r\n * Generate recovery codes as backup for MFA flow. It's recommended to\r\n * generate and show then immediately after user successfully adds their\r\n * authehticator. Recovery codes can be used as a MFA verification type in\r\n * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)\r\n * method.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMfaRecoveryCodes(): Promise {\r\n const apiPath = \"/account/mfa/recovery-codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Regenerate MFA Recovery Codes\r\n *\r\n * Regenerate recovery codes that can be used as backup for MFA flow. Before\r\n * regenerating codes, they must be first generated using\r\n * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)\r\n * method. An OTP challenge is required to regenreate recovery codes.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMfaRecoveryCodes(): Promise {\r\n const apiPath = \"/account/mfa/recovery-codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update name\r\n *\r\n * Update currently logged in user account name.\r\n *\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateName(\r\n name: string\r\n ): Promise> {\r\n if (typeof name === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"name\"');\r\n }\r\n\r\n const apiPath = \"/account/name\";\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update password\r\n *\r\n * Update currently logged in user password. For validation, user is required\r\n * to pass in the new password, and the old password. For users created with\r\n * OAuth, Team Invites and Magic URL, oldPassword is optional.\r\n *\r\n * @param {string} password\r\n * @param {string} oldPassword\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePassword(\r\n password: string,\r\n oldPassword?: string\r\n ): Promise> {\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/password\";\r\n const payload: Payload = {};\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n if (typeof oldPassword !== \"undefined\") {\r\n payload[\"oldPassword\"] = oldPassword;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update phone\r\n *\r\n * Update the currently logged in user's phone number. After updating the\r\n * phone number, the phone verification status will be reset. A confirmation\r\n * SMS is not sent automatically, however you can use the [POST\r\n * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification)\r\n * endpoint to send a confirmation SMS.\r\n *\r\n * @param {string} phone\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePhone(\r\n phone: string,\r\n password: string\r\n ): Promise> {\r\n if (typeof phone === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"phone\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof phone !== \"undefined\") {\r\n payload[\"phone\"] = phone;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get account preferences\r\n *\r\n * Get the preferences as a key-value object for the currently logged in user.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getPrefs<\r\n Preferences extends Models.Preferences\r\n >(): Promise {\r\n const apiPath = \"/account/prefs\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update preferences\r\n *\r\n * Update currently logged in user account preferences. The object you pass is\r\n * stored as is, and replaces any previous value. The maximum allowed prefs\r\n * size is 64kB and throws error if exceeded.\r\n *\r\n * @param {object} prefs\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePrefs(\r\n prefs: object\r\n ): Promise> {\r\n if (typeof prefs === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"prefs\"');\r\n }\r\n\r\n const apiPath = \"/account/prefs\";\r\n const payload: Payload = {};\r\n\r\n if (typeof prefs !== \"undefined\") {\r\n payload[\"prefs\"] = prefs;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create password recovery\r\n *\r\n * Sends the user an email with a temporary secret key for password reset.\r\n * When the user clicks the confirmation link he is redirected back to your\r\n * app password reset URL with the secret key and email address values\r\n * attached to the URL query string. Use the query string params to submit a\r\n * request to the [PUT\r\n * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery)\r\n * endpoint to complete the process. The verification link sent to the user's\r\n * email address is valid for 1 hour.\r\n *\r\n * @param {string} email\r\n * @param {string} url\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createRecovery(email: string, url: string): Promise {\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/account/recovery\";\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create password recovery (confirmation)\r\n *\r\n * Use this endpoint to complete the user account password reset. Both the\r\n * **userId** and **secret** arguments will be passed as query parameters to\r\n * the redirect URL you have provided when sending your request to the [POST\r\n * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery)\r\n * endpoint.\r\n *\r\n * Please note that in order to avoid a [Redirect\r\n * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)\r\n * the only valid redirect URLs are the ones from domains you have set when\r\n * adding your platforms in the console interface.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateRecovery(\r\n userId: string,\r\n secret: string,\r\n password: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/recovery\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List sessions\r\n *\r\n * Get the list of active sessions across different devices for the currently\r\n * logged in user.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listSessions(): Promise {\r\n const apiPath = \"/account/sessions\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete sessions\r\n *\r\n * Delete all sessions from the user account and remove any sessions cookies\r\n * from the end client.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteSessions(): Promise<{}> {\r\n const apiPath = \"/account/sessions\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create anonymous session\r\n *\r\n * Use this endpoint to allow a new user to register an anonymous account in\r\n * your project. This route will also create a new session for the user. To\r\n * allow the new user to convert an anonymous account to a normal account, you\r\n * need to update its [email and\r\n * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail)\r\n * or create an [OAuth2\r\n * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createAnonymousSession(): Promise {\r\n const apiPath = \"/account/sessions/anonymous\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email password session\r\n *\r\n * Allow the user to login into their account by providing a valid email and\r\n * password combination. This route will create a new session for the user.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {string} email\r\n * @param {string} password\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createEmailPasswordSession(\r\n email: string,\r\n password: string\r\n ): Promise {\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n if (typeof password === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"password\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/email\";\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof password !== \"undefined\") {\r\n payload[\"password\"] = password;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update magic URL session\r\n *\r\n * Use this endpoint to create a session from token. Provide the **userId**\r\n * and **secret** parameters from the successful response of authentication\r\n * flows initiated by token creation. For example, magic URL and phone login.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMagicURLSession(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/magic-url\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create OAuth2 session\r\n *\r\n * Allow the user to login to their account using the OAuth2 provider of their\r\n * choice. Each OAuth2 provider should be enabled from the Appwrite console\r\n * first. Use the success and failure arguments to provide a redirect URL's\r\n * back to your app when login is completed.\r\n *\r\n * If there is already an active session, the new session will be attached to\r\n * the logged-in account. If there are no active sessions, the server will\r\n * attempt to look for a user with the same email address as the email\r\n * received from the OAuth2 provider and attach the new session to the\r\n * existing user. If no matching user is found - the server will create a new\r\n * user.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n *\r\n * @param {OAuthProvider} provider\r\n * @param {string} success\r\n * @param {string} failure\r\n * @param {string[]} scopes\r\n * @throws {AppwriteException}\r\n * @returns {void|string}\r\n */\r\n createOAuth2Session(\r\n provider: OAuthProvider,\r\n success?: string,\r\n failure?: string,\r\n scopes?: string[]\r\n ): void | URL {\r\n if (typeof provider === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"provider\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/oauth2/{provider}\".replace(\r\n \"{provider}\",\r\n provider\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof success !== \"undefined\") {\r\n payload[\"success\"] = success;\r\n }\r\n\r\n if (typeof failure !== \"undefined\") {\r\n payload[\"failure\"] = failure;\r\n }\r\n\r\n if (typeof scopes !== \"undefined\") {\r\n payload[\"scopes\"] = scopes;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Update phone session\r\n *\r\n * Use this endpoint to create a session from token. Provide the **userId**\r\n * and **secret** parameters from the successful response of authentication\r\n * flows initiated by token creation. For example, magic URL and phone login.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePhoneSession(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create session\r\n *\r\n * Use this endpoint to create a session from token. Provide the **userId**\r\n * and **secret** parameters from the successful response of authentication\r\n * flows initiated by token creation. For example, magic URL and phone login.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createSession(userId: string, secret: string): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/token\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get session\r\n *\r\n * Use this endpoint to get a logged in user's session using a Session ID.\r\n * Inputting 'current' will return the current session being used.\r\n *\r\n * @param {string} sessionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getSession(sessionId: string): Promise {\r\n if (typeof sessionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/{sessionId}\".replace(\r\n \"{sessionId}\",\r\n sessionId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update session\r\n *\r\n * Use this endpoint to extend a session's length. Extending a session is\r\n * useful when session expiry is short. If the session was created using an\r\n * OAuth provider, this endpoint refreshes the access token from the provider.\r\n *\r\n * @param {string} sessionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateSession(sessionId: string): Promise {\r\n if (typeof sessionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/{sessionId}\".replace(\r\n \"{sessionId}\",\r\n sessionId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete session\r\n *\r\n * Logout the user. Use 'current' as the session ID to logout on this device,\r\n * use a session ID to logout on another device. If you're looking to logout\r\n * the user on all devices, use [Delete\r\n * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions)\r\n * instead.\r\n *\r\n * @param {string} sessionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteSession(sessionId: string): Promise<{}> {\r\n if (typeof sessionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"sessionId\"');\r\n }\r\n\r\n const apiPath = \"/account/sessions/{sessionId}\".replace(\r\n \"{sessionId}\",\r\n sessionId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update status\r\n *\r\n * Block the currently logged in user account. Behind the scene, the user\r\n * record is not deleted but permanently blocked from any access. To\r\n * completely delete a user, use the Users API instead.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateStatus(): Promise<\r\n Models.User\r\n > {\r\n const apiPath = \"/account/status\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create push target\r\n *\r\n *\r\n * @param {string} targetId\r\n * @param {string} identifier\r\n * @param {string} providerId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createPushTarget(\r\n targetId: string,\r\n identifier: string,\r\n providerId?: string\r\n ): Promise {\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n if (typeof identifier === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"identifier\"');\r\n }\r\n\r\n const apiPath = \"/account/targets/push\";\r\n const payload: Payload = {};\r\n\r\n if (typeof targetId !== \"undefined\") {\r\n payload[\"targetId\"] = targetId;\r\n }\r\n\r\n if (typeof identifier !== \"undefined\") {\r\n payload[\"identifier\"] = identifier;\r\n }\r\n\r\n if (typeof providerId !== \"undefined\") {\r\n payload[\"providerId\"] = providerId;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update push target\r\n *\r\n *\r\n * @param {string} targetId\r\n * @param {string} identifier\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePushTarget(\r\n targetId: string,\r\n identifier: string\r\n ): Promise {\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n if (typeof identifier === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"identifier\"');\r\n }\r\n\r\n const apiPath = \"/account/targets/{targetId}/push\".replace(\r\n \"{targetId}\",\r\n targetId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof identifier !== \"undefined\") {\r\n payload[\"identifier\"] = identifier;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete push target\r\n *\r\n *\r\n * @param {string} targetId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deletePushTarget(targetId: string): Promise<{}> {\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n const apiPath = \"/account/targets/{targetId}/push\".replace(\r\n \"{targetId}\",\r\n targetId\r\n );\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email token (OTP)\r\n *\r\n * Sends the user an email with a secret key for creating a session. If the\r\n * provided user ID has not be registered, a new user will be created. Use the\r\n * returned user ID and secret and submit a request to the [POST\r\n * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint to complete the login process. The secret sent to the user's email\r\n * is valid for 15 minutes.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {string} userId\r\n * @param {string} email\r\n * @param {boolean} phrase\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createEmailToken(\r\n userId: string,\r\n email: string,\r\n phrase?: boolean\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/email\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof phrase !== \"undefined\") {\r\n payload[\"phrase\"] = phrase;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create magic URL token\r\n *\r\n * Sends the user an email with a secret key for creating a session. If the\r\n * provided user ID has not been registered, a new user will be created. When\r\n * the user clicks the link in the email, the user is redirected back to the\r\n * URL you provided with the secret key and userId values attached to the URL\r\n * query string. Use the query string parameters to submit a request to the\r\n * [POST\r\n * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint to complete the login process. The link sent to the user's email\r\n * address is valid for 1 hour. If you are on a mobile device you can leave\r\n * the URL parameter empty, so that the login completion will be handled by\r\n * your Appwrite instance by default.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n *\r\n * @param {string} userId\r\n * @param {string} email\r\n * @param {string} url\r\n * @param {boolean} phrase\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMagicURLToken(\r\n userId: string,\r\n email: string,\r\n url?: string,\r\n phrase?: boolean\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof email === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"email\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/magic-url\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n if (typeof phrase !== \"undefined\") {\r\n payload[\"phrase\"] = phrase;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create OAuth2 token\r\n *\r\n * Allow the user to login to their account using the OAuth2 provider of their\r\n * choice. Each OAuth2 provider should be enabled from the Appwrite console\r\n * first. Use the success and failure arguments to provide a redirect URL's\r\n * back to your app when login is completed.\r\n *\r\n * If authentication succeeds, `userId` and `secret` of a token will be\r\n * appended to the success URL as query parameters. These can be used to\r\n * create a new session using the [Create\r\n * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {OAuthProvider} provider\r\n * @param {string} success\r\n * @param {string} failure\r\n * @param {string[]} scopes\r\n * @throws {AppwriteException}\r\n * @returns {void|string}\r\n */\r\n createOAuth2Token(\r\n provider: OAuthProvider,\r\n success?: string,\r\n failure?: string,\r\n scopes?: string[]\r\n ): void | URL {\r\n if (typeof provider === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"provider\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/oauth2/{provider}\".replace(\r\n \"{provider}\",\r\n provider\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof success !== \"undefined\") {\r\n payload[\"success\"] = success;\r\n }\r\n\r\n if (typeof failure !== \"undefined\") {\r\n payload[\"failure\"] = failure;\r\n }\r\n\r\n if (typeof scopes !== \"undefined\") {\r\n payload[\"scopes\"] = scopes;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Create phone token\r\n *\r\n * Sends the user an SMS with a secret key for creating a session. If the\r\n * provided user ID has not be registered, a new user will be created. Use the\r\n * returned user ID and secret and submit a request to the [POST\r\n * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)\r\n * endpoint to complete the login process. The secret sent to the user's phone\r\n * is valid for 15 minutes.\r\n *\r\n * A user is limited to 10 active sessions at a time by default. [Learn more\r\n * about session\r\n * limits](https://appwrite.io/docs/authentication-security#limits).\r\n *\r\n * @param {string} userId\r\n * @param {string} phone\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createPhoneToken(userId: string, phone: string): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof phone === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"phone\"');\r\n }\r\n\r\n const apiPath = \"/account/tokens/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof phone !== \"undefined\") {\r\n payload[\"phone\"] = phone;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email verification\r\n *\r\n * Use this endpoint to send a verification message to your user email address\r\n * to confirm they are the valid owners of that address. Both the **userId**\r\n * and **secret** arguments will be passed as query parameters to the URL you\r\n * have provided to be attached to the verification email. The provided URL\r\n * should redirect the user back to your app and allow you to complete the\r\n * verification process by verifying both the **userId** and **secret**\r\n * parameters. Learn more about how to [complete the verification\r\n * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification).\r\n * The verification link sent to the user's email address is valid for 7 days.\r\n *\r\n * Please note that in order to avoid a [Redirect\r\n * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),\r\n * the only valid redirect URLs are the ones from domains you have set when\r\n * adding your platforms in the console interface.\r\n *\r\n *\r\n * @param {string} url\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createVerification(url: string): Promise {\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/account/verification\";\r\n const payload: Payload = {};\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create email verification (confirmation)\r\n *\r\n * Use this endpoint to complete the user email verification process. Use both\r\n * the **userId** and **secret** parameters that were attached to your app URL\r\n * to verify the user email ownership. If confirmed this route will return a\r\n * 200 status code.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateVerification(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/verification\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create phone verification\r\n *\r\n * Use this endpoint to send a verification SMS to the currently logged in\r\n * user. This endpoint is meant for use after updating a user's phone number\r\n * using the\r\n * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone)\r\n * endpoint. Learn more about how to [complete the verification\r\n * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification).\r\n * The verification code sent to the user's phone number is valid for 15\r\n * minutes.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createPhoneVerification(): Promise {\r\n const apiPath = \"/account/verification/phone\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create phone verification (confirmation)\r\n *\r\n * Use this endpoint to complete the user phone verification process. Use the\r\n * **userId** and **secret** that were sent to your user's phone number to\r\n * verify the user email ownership. If confirmed this route will return a 200\r\n * status code.\r\n *\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePhoneVerification(\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/account/verification/phone\";\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { Browser } from \"../enums/browser\";\r\nimport { CreditCard } from \"../enums/credit-card\";\r\nimport { Flag } from \"../enums/flag\";\r\n\r\nexport class Avatars extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Get browser icon\r\n *\r\n * You can use this endpoint to show different browser icons to your users.\r\n * The code argument receives the browser code as it appears in your user [GET\r\n * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions)\r\n * endpoint. Use width, height and quality arguments to change the output\r\n * settings.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n * @param {Browser} code\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} quality\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getBrowser(\r\n code: Browser,\r\n width?: number,\r\n height?: number,\r\n quality?: number\r\n ): URL {\r\n if (typeof code === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"code\"');\r\n }\r\n\r\n const apiPath = \"/avatars/browsers/{code}\".replace(\"{code}\", code);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get credit card icon\r\n *\r\n * The credit card endpoint will return you the icon of the credit card\r\n * provider you need. Use width, height and quality arguments to change the\r\n * output settings.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n *\r\n * @param {CreditCard} code\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} quality\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getCreditCard(\r\n code: CreditCard,\r\n width?: number,\r\n height?: number,\r\n quality?: number\r\n ): URL {\r\n if (typeof code === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"code\"');\r\n }\r\n\r\n const apiPath = \"/avatars/credit-cards/{code}\".replace(\"{code}\", code);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get favicon\r\n *\r\n * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote\r\n * website URL.\r\n *\r\n *\r\n * @param {string} url\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFavicon(url: string): URL {\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/avatars/favicon\";\r\n const payload: Payload = {};\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get country flag\r\n *\r\n * You can use this endpoint to show different country flags icons to your\r\n * users. The code argument receives the 2 letter country code. Use width,\r\n * height and quality arguments to change the output settings. Country codes\r\n * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n *\r\n * @param {Flag} code\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} quality\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFlag(code: Flag, width?: number, height?: number, quality?: number): URL {\r\n if (typeof code === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"code\"');\r\n }\r\n\r\n const apiPath = \"/avatars/flags/{code}\".replace(\"{code}\", code);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get image from URL\r\n *\r\n * Use this endpoint to fetch a remote image URL and crop it to any image size\r\n * you want. This endpoint is very useful if you need to crop and display\r\n * remote images in your app or in case you want to make sure a 3rd party\r\n * image is properly served using a TLS protocol.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 400x400px.\r\n *\r\n *\r\n * @param {string} url\r\n * @param {number} width\r\n * @param {number} height\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getImage(url: string, width?: number, height?: number): URL {\r\n if (typeof url === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"url\"');\r\n }\r\n\r\n const apiPath = \"/avatars/image\";\r\n const payload: Payload = {};\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get user initials\r\n *\r\n * Use this endpoint to show your user initials avatar icon on your website or\r\n * app. By default, this route will try to print your logged-in user name or\r\n * email initials. You can also overwrite the user name if you pass the 'name'\r\n * parameter. If no name is given and no user is logged, an empty avatar will\r\n * be returned.\r\n *\r\n * You can use the color and background params to change the avatar colors. By\r\n * default, a random theme will be selected. The random theme will persist for\r\n * the user's initials when reloading the same theme will always return for\r\n * the same initials.\r\n *\r\n * When one dimension is specified and the other is 0, the image is scaled\r\n * with preserved aspect ratio. If both dimensions are 0, the API provides an\r\n * image at source quality. If dimensions are not specified, the default size\r\n * of image returned is 100x100px.\r\n *\r\n *\r\n * @param {string} name\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {string} background\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getInitials(\r\n name?: string,\r\n width?: number,\r\n height?: number,\r\n background?: string\r\n ): URL {\r\n const apiPath = \"/avatars/initials\";\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof background !== \"undefined\") {\r\n payload[\"background\"] = background;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get QR code\r\n *\r\n * Converts a given plain text to a QR code image. You can use the query\r\n * parameters to change the size and style of the resulting image.\r\n *\r\n *\r\n * @param {string} text\r\n * @param {number} size\r\n * @param {number} margin\r\n * @param {boolean} download\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getQR(text: string, size?: number, margin?: number, download?: boolean): URL {\r\n if (typeof text === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"text\"');\r\n }\r\n\r\n const apiPath = \"/avatars/qr\";\r\n const payload: Payload = {};\r\n\r\n if (typeof text !== \"undefined\") {\r\n payload[\"text\"] = text;\r\n }\r\n\r\n if (typeof size !== \"undefined\") {\r\n payload[\"size\"] = size;\r\n }\r\n\r\n if (typeof margin !== \"undefined\") {\r\n payload[\"margin\"] = margin;\r\n }\r\n\r\n if (typeof download !== \"undefined\") {\r\n payload[\"download\"] = download;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Databases extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List documents\r\n *\r\n * Get a list of all the user's documents in a given collection. You can use\r\n * the query params to filter your results.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listDocuments(\r\n databaseId: string,\r\n collectionId: string,\r\n queries?: string[]\r\n ): Promise> {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId);\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create document\r\n *\r\n * Create a new Document. Before using this route, you should create a new\r\n * collection resource using either a [server\r\n * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)\r\n * API or directly from your database console.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @param {object} data\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string,\r\n data: object,\r\n permissions?: string[]\r\n ): Promise {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n if (typeof data === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"data\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId);\r\n const payload: Payload = {};\r\n\r\n if (typeof documentId !== \"undefined\") {\r\n payload[\"documentId\"] = documentId;\r\n }\r\n\r\n if (typeof data !== \"undefined\") {\r\n payload[\"data\"] = data;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get document\r\n *\r\n * Get a document by its unique ID. This endpoint response returns a JSON\r\n * object with the document data.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @param {string[]} queries\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string,\r\n queries?: string[]\r\n ): Promise {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents/{documentId}\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId)\r\n .replace(\"{documentId}\", documentId);\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update document\r\n *\r\n * Update a document by its unique ID. Using the patch method you can pass\r\n * only specific fields that will get updated.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @param {object} data\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string,\r\n data?: object,\r\n permissions?: string[]\r\n ): Promise {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents/{documentId}\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId)\r\n .replace(\"{documentId}\", documentId);\r\n const payload: Payload = {};\r\n\r\n if (typeof data !== \"undefined\") {\r\n payload[\"data\"] = data;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete document\r\n *\r\n * Delete a document by its unique ID.\r\n *\r\n * @param {string} databaseId\r\n * @param {string} collectionId\r\n * @param {string} documentId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteDocument(\r\n databaseId: string,\r\n collectionId: string,\r\n documentId: string\r\n ): Promise<{}> {\r\n if (typeof databaseId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"databaseId\"');\r\n }\r\n\r\n if (typeof collectionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"collectionId\"');\r\n }\r\n\r\n if (typeof documentId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"documentId\"');\r\n }\r\n\r\n const apiPath =\r\n \"/databases/{databaseId}/collections/{collectionId}/documents/{documentId}\"\r\n .replace(\"{databaseId}\", databaseId)\r\n .replace(\"{collectionId}\", collectionId)\r\n .replace(\"{documentId}\", documentId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { ExecutionMethod } from \"../enums/execution-method\";\r\n\r\nexport class Functions extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List executions\r\n *\r\n * Get a list of all the current user function execution logs. You can use the\r\n * query params to filter your results.\r\n *\r\n * @param {string} functionId\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listExecutions(\r\n functionId: string,\r\n queries?: string[],\r\n search?: string\r\n ): Promise {\r\n if (typeof functionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"functionId\"');\r\n }\r\n\r\n const apiPath = \"/functions/{functionId}/executions\".replace(\r\n \"{functionId}\",\r\n functionId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create execution\r\n *\r\n * Trigger a function execution. The returned object will return you the\r\n * current execution status. You can ping the `Get Execution` endpoint to get\r\n * updates on the current execution status. Once this endpoint is called, your\r\n * function execution process will start asynchronously.\r\n *\r\n * @param {string} functionId\r\n * @param {string} body\r\n * @param {boolean} async\r\n * @param {string} xpath\r\n * @param {ExecutionMethod} method\r\n * @param {object} headers\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createExecution(\r\n functionId: string,\r\n body?: string,\r\n async?: boolean,\r\n xpath?: string,\r\n method?: ExecutionMethod,\r\n headers?: object\r\n ): Promise {\r\n if (typeof functionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"functionId\"');\r\n }\r\n\r\n const apiPath = \"/functions/{functionId}/executions\".replace(\r\n \"{functionId}\",\r\n functionId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof body !== \"undefined\") {\r\n payload[\"body\"] = body;\r\n }\r\n\r\n if (typeof async !== \"undefined\") {\r\n payload[\"async\"] = async;\r\n }\r\n\r\n if (typeof xpath !== \"undefined\") {\r\n payload[\"path\"] = xpath;\r\n }\r\n\r\n if (typeof method !== \"undefined\") {\r\n payload[\"method\"] = method;\r\n }\r\n\r\n if (typeof headers !== \"undefined\") {\r\n payload[\"headers\"] = headers;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get execution\r\n *\r\n * Get a function execution log by its unique ID.\r\n *\r\n * @param {string} functionId\r\n * @param {string} executionId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getExecution(\r\n functionId: string,\r\n executionId: string\r\n ): Promise {\r\n if (typeof functionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"functionId\"');\r\n }\r\n\r\n if (typeof executionId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"executionId\"');\r\n }\r\n\r\n const apiPath = \"/functions/{functionId}/executions/{executionId}\"\r\n .replace(\"{functionId}\", functionId)\r\n .replace(\"{executionId}\", executionId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Graphql extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * GraphQL endpoint\r\n *\r\n * Execute a GraphQL mutation.\r\n *\r\n * @param {object} query\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async query(query: object): Promise<{}> {\r\n if (typeof query === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"query\"');\r\n }\r\n\r\n const apiPath = \"/graphql\";\r\n const payload: Payload = {};\r\n\r\n if (typeof query !== \"undefined\") {\r\n payload[\"query\"] = query;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"x-sdk-graphql\": \"true\",\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * GraphQL endpoint\r\n *\r\n * Execute a GraphQL mutation.\r\n *\r\n * @param {object} query\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async mutation(query: object): Promise<{}> {\r\n if (typeof query === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"query\"');\r\n }\r\n\r\n const apiPath = \"/graphql/mutation\";\r\n const payload: Payload = {};\r\n\r\n if (typeof query !== \"undefined\") {\r\n payload[\"query\"] = query;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"x-sdk-graphql\": \"true\",\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Locale extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Get user locale\r\n *\r\n * Get the current user location based on IP. Returns an object with user\r\n * country code, country name, continent name, continent code, ip address and\r\n * suggested currency. You can use the locale header to get the data in a\r\n * supported language.\r\n *\r\n * ([IP Geolocation by DB-IP](https://db-ip.com))\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async get(): Promise {\r\n const apiPath = \"/locale\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List Locale Codes\r\n *\r\n * List of all locale codes in [ISO\r\n * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCodes(): Promise {\r\n const apiPath = \"/locale/codes\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List continents\r\n *\r\n * List of all continents. You can use the locale header to get the data in a\r\n * supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listContinents(): Promise {\r\n const apiPath = \"/locale/continents\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List countries\r\n *\r\n * List of all countries. You can use the locale header to get the data in a\r\n * supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCountries(): Promise {\r\n const apiPath = \"/locale/countries\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List EU countries\r\n *\r\n * List of all countries that are currently members of the EU. You can use the\r\n * locale header to get the data in a supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCountriesEU(): Promise {\r\n const apiPath = \"/locale/countries/eu\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List countries phone codes\r\n *\r\n * List of all countries phone codes. You can use the locale header to get the\r\n * data in a supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCountriesPhones(): Promise {\r\n const apiPath = \"/locale/countries/phones\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List currencies\r\n *\r\n * List of all currencies, including currency symbol, name, plural, and\r\n * decimal digits for all major and minor currencies. You can use the locale\r\n * header to get the data in a supported language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listCurrencies(): Promise {\r\n const apiPath = \"/locale/currencies\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List languages\r\n *\r\n * List of all languages classified by ISO 639-1 including 2-letter code, name\r\n * in English, and name in the respective language.\r\n *\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listLanguages(): Promise {\r\n const apiPath = \"/locale/languages\";\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Messaging extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * Create subscriber\r\n *\r\n * Create a new subscriber.\r\n *\r\n * @param {string} topicId\r\n * @param {string} subscriberId\r\n * @param {string} targetId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createSubscriber(\r\n topicId: string,\r\n subscriberId: string,\r\n targetId: string\r\n ): Promise {\r\n if (typeof topicId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"topicId\"');\r\n }\r\n\r\n if (typeof subscriberId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"subscriberId\"');\r\n }\r\n\r\n if (typeof targetId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"targetId\"');\r\n }\r\n\r\n const apiPath = \"/messaging/topics/{topicId}/subscribers\".replace(\r\n \"{topicId}\",\r\n topicId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof subscriberId !== \"undefined\") {\r\n payload[\"subscriberId\"] = subscriberId;\r\n }\r\n\r\n if (typeof targetId !== \"undefined\") {\r\n payload[\"targetId\"] = targetId;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete subscriber\r\n *\r\n * Delete a subscriber by its unique ID.\r\n *\r\n * @param {string} topicId\r\n * @param {string} subscriberId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {\r\n if (typeof topicId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"topicId\"');\r\n }\r\n\r\n if (typeof subscriberId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"subscriberId\"');\r\n }\r\n\r\n const apiPath = \"/messaging/topics/{topicId}/subscribers/{subscriberId}\"\r\n .replace(\"{topicId}\", topicId)\r\n .replace(\"{subscriberId}\", subscriberId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\nimport fs from \"react-native-fs\";\r\nimport { Platform } from \"react-native\";\r\n\r\nimport { ImageGravity } from \"../enums/image-gravity\";\r\nimport { ImageFormat } from \"../enums/image-format\";\r\n\r\nexport class Storage extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List files\r\n *\r\n * Get a list of all the user files. You can use the query params to filter\r\n * your results.\r\n *\r\n * @param {string} bucketId\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listFiles(\r\n bucketId: string,\r\n queries?: string[],\r\n search?: string\r\n ): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files\".replace(\r\n \"{bucketId}\",\r\n bucketId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create file\r\n *\r\n * Create a new file. Before using this route, you should create a new bucket\r\n * resource using either a [server\r\n * integration](https://appwrite.io/docs/server/storage#storageCreateBucket)\r\n * API or directly from your Appwrite console.\r\n *\r\n * Larger files should be uploaded using multiple requests with the\r\n * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)\r\n * header to send a partial request with a maximum supported chunk of `5MB`.\r\n * The `content-range` header values should always be in bytes.\r\n *\r\n * When the first request is sent, the server will return the **File** object,\r\n * and the subsequent part request must include the file's **id** in\r\n * `x-appwrite-id` header to allow the server to know that the partial upload\r\n * is for the existing file and not for a new one.\r\n *\r\n * If you're creating a new file using one of the Appwrite SDKs, all the\r\n * chunking logic will be managed by the SDK internally.\r\n *\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @param {{name: string, type: string, size: number, uri: string}} file\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createFile(\r\n bucketId: string,\r\n fileId: string,\r\n file: { name: string; type: string; size: number; uri: string },\r\n permissions?: string[],\r\n onProgress = (progress: UploadProgress) => {}\r\n ): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n if (typeof file === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"file\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files\".replace(\r\n \"{bucketId}\",\r\n bucketId\r\n );\r\n const payload: Payload = {};\r\n\r\n if (typeof fileId !== \"undefined\") {\r\n payload[\"fileId\"] = fileId;\r\n }\r\n\r\n if (typeof file !== \"undefined\") {\r\n payload[\"file\"] = file;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n\r\n const size = file.size;\r\n\r\n if (size <= Service.CHUNK_SIZE) {\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"multipart/form-data\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n const apiHeaders: { [header: string]: string } = {\r\n \"content-type\": \"multipart/form-data\",\r\n };\r\n\r\n let offset = 0;\r\n let response = undefined;\r\n if (fileId != \"unique()\") {\r\n try {\r\n response = await this.client.call(\r\n \"GET\",\r\n new URL(this.client.config.endpoint + apiPath + \"/\" + fileId),\r\n apiHeaders\r\n );\r\n offset = response.chunksUploaded * Service.CHUNK_SIZE;\r\n } catch (e) {}\r\n }\r\n\r\n let timestamp = new Date().getTime();\r\n while (offset < size) {\r\n let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);\r\n\r\n apiHeaders[\"content-range\"] = \"bytes \" + offset + \"-\" + end + \"/\" + size;\r\n if (response && response.$id) {\r\n apiHeaders[\"x-appwrite-id\"] = response.$id;\r\n }\r\n\r\n let chunk = await fs.read(file.uri, Service.CHUNK_SIZE, offset, \"base64\");\r\n // let chunk = await FileSystem.readAsStringAsync(file.uri, {\r\n // encoding: FileSystem.EncodingType.Base64,\r\n // position: offset,\r\n // length: Service.CHUNK_SIZE\r\n // });\r\n var path = `data:${file.type};base64,${chunk}`;\r\n if (Platform.OS.toLowerCase() === \"android\") {\r\n path = \"file://\" + fs.CachesDirectoryPath + \"/tmp_chunk_\" + timestamp;\r\n await fs.writeFile(path, chunk, \"base64\");\r\n }\r\n\r\n payload[\"file\"] = { uri: path, name: file.name, type: file.type };\r\n\r\n response = await this.client.call(\"post\", uri, apiHeaders, payload);\r\n\r\n if (onProgress) {\r\n onProgress({\r\n $id: response.$id,\r\n progress: (offset / size) * 100,\r\n sizeUploaded: offset,\r\n chunksTotal: response.chunksTotal,\r\n chunksUploaded: response.chunksUploaded,\r\n });\r\n }\r\n offset += Service.CHUNK_SIZE;\r\n }\r\n return response;\r\n }\r\n\r\n /**\r\n * Get file\r\n *\r\n * Get a file by its unique ID. This endpoint response returns a JSON object\r\n * with the file metadata.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getFile(bucketId: string, fileId: string): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update file\r\n *\r\n * Update a file by its unique ID. Only users with write permissions have\r\n * access to update this resource.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @param {string} name\r\n * @param {string[]} permissions\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateFile(\r\n bucketId: string,\r\n fileId: string,\r\n name?: string,\r\n permissions?: string[]\r\n ): Promise {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n if (typeof permissions !== \"undefined\") {\r\n payload[\"permissions\"] = permissions;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete File\r\n *\r\n * Delete a file by its unique ID. Only users with write permissions have\r\n * access to delete this resource.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteFile(bucketId: string, fileId: string): Promise<{}> {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get file for download\r\n *\r\n * Get a file content by its unique ID. The endpoint response return with a\r\n * 'Content-Disposition: attachment' header that tells the browser to start\r\n * downloading the file to user downloads directory.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFileDownload(bucketId: string, fileId: string): URL {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}/download\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get file preview\r\n *\r\n * Get a file preview image. Currently, this method supports preview for image\r\n * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,\r\n * and spreadsheets, will return the file icon image. You can also pass query\r\n * string arguments for cutting and resizing your preview image. Preview is\r\n * supported only for image files smaller than 10MB.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {ImageGravity} gravity\r\n * @param {number} quality\r\n * @param {number} borderWidth\r\n * @param {string} borderColor\r\n * @param {number} borderRadius\r\n * @param {number} opacity\r\n * @param {number} rotation\r\n * @param {string} background\r\n * @param {ImageFormat} output\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFilePreview(\r\n bucketId: string,\r\n fileId: string,\r\n width?: number,\r\n height?: number,\r\n gravity?: ImageGravity,\r\n quality?: number,\r\n borderWidth?: number,\r\n borderColor?: string,\r\n borderRadius?: number,\r\n opacity?: number,\r\n rotation?: number,\r\n background?: string,\r\n output?: ImageFormat\r\n ): URL {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}/preview\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n if (typeof width !== \"undefined\") {\r\n payload[\"width\"] = width;\r\n }\r\n\r\n if (typeof height !== \"undefined\") {\r\n payload[\"height\"] = height;\r\n }\r\n\r\n if (typeof gravity !== \"undefined\") {\r\n payload[\"gravity\"] = gravity;\r\n }\r\n\r\n if (typeof quality !== \"undefined\") {\r\n payload[\"quality\"] = quality;\r\n }\r\n\r\n if (typeof borderWidth !== \"undefined\") {\r\n payload[\"borderWidth\"] = borderWidth;\r\n }\r\n\r\n if (typeof borderColor !== \"undefined\") {\r\n payload[\"borderColor\"] = borderColor;\r\n }\r\n\r\n if (typeof borderRadius !== \"undefined\") {\r\n payload[\"borderRadius\"] = borderRadius;\r\n }\r\n\r\n if (typeof opacity !== \"undefined\") {\r\n payload[\"opacity\"] = opacity;\r\n }\r\n\r\n if (typeof rotation !== \"undefined\") {\r\n payload[\"rotation\"] = rotation;\r\n }\r\n\r\n if (typeof background !== \"undefined\") {\r\n payload[\"background\"] = background;\r\n }\r\n\r\n if (typeof output !== \"undefined\") {\r\n payload[\"output\"] = output;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n\r\n /**\r\n * Get file for view\r\n *\r\n * Get a file content by its unique ID. This endpoint is similar to the\r\n * download method but returns with no 'Content-Disposition: attachment'\r\n * header.\r\n *\r\n * @param {string} bucketId\r\n * @param {string} fileId\r\n * @throws {AppwriteException}\r\n * @returns {URL}\r\n */\r\n getFileView(bucketId: string, fileId: string): URL {\r\n if (typeof bucketId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"bucketId\"');\r\n }\r\n\r\n if (typeof fileId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"fileId\"');\r\n }\r\n\r\n const apiPath = \"/storage/buckets/{bucketId}/files/{fileId}/view\"\r\n .replace(\"{bucketId}\", bucketId)\r\n .replace(\"{fileId}\", fileId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n payload[\"project\"] = this.client.config.project;\r\n\r\n for (const [key, value] of Object.entries(Service.flatten(payload))) {\r\n uri.searchParams.append(key, value);\r\n }\r\n return uri;\r\n }\r\n}\r\n","import { Service } from \"../service\";\r\nimport { AppwriteException, Client } from \"../client\";\r\nimport type { Models } from \"../models\";\r\nimport type { UploadProgress, Payload } from \"../client\";\r\n\r\nimport { Platform } from \"react-native\";\r\n\r\nexport class Teams extends Service {\r\n constructor(client: Client) {\r\n super(client);\r\n }\r\n\r\n /**\r\n * List teams\r\n *\r\n * Get a list of all the teams in which the current user is a member. You can\r\n * use the parameters to filter your results.\r\n *\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async list(\r\n queries?: string[],\r\n search?: string\r\n ): Promise> {\r\n const apiPath = \"/teams\";\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create team\r\n *\r\n * Create a new team. The user who creates the team will automatically be\r\n * assigned as the owner of the team. Only the users with the owner role can\r\n * invite new members, add new owners and delete or update the team.\r\n *\r\n * @param {string} teamId\r\n * @param {string} name\r\n * @param {string[]} roles\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async create(\r\n teamId: string,\r\n name: string,\r\n roles?: string[]\r\n ): Promise> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof name === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"name\"');\r\n }\r\n\r\n const apiPath = \"/teams\";\r\n const payload: Payload = {};\r\n\r\n if (typeof teamId !== \"undefined\") {\r\n payload[\"teamId\"] = teamId;\r\n }\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n if (typeof roles !== \"undefined\") {\r\n payload[\"roles\"] = roles;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get team\r\n *\r\n * Get a team by its ID. All team members have read access for this resource.\r\n *\r\n * @param {string} teamId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async get(\r\n teamId: string\r\n ): Promise> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update name\r\n *\r\n * Update the team's name by its unique ID.\r\n *\r\n * @param {string} teamId\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateName(\r\n teamId: string,\r\n name: string\r\n ): Promise> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof name === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"name\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete team\r\n *\r\n * Delete a team using its ID. Only team members with the owner role can\r\n * delete the team.\r\n *\r\n * @param {string} teamId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async delete(teamId: string): Promise<{}> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * List team memberships\r\n *\r\n * Use this endpoint to list a team's members using the team's ID. All team\r\n * members have read access to this endpoint.\r\n *\r\n * @param {string} teamId\r\n * @param {string[]} queries\r\n * @param {string} search\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async listMemberships(\r\n teamId: string,\r\n queries?: string[],\r\n search?: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof queries !== \"undefined\") {\r\n payload[\"queries\"] = queries;\r\n }\r\n\r\n if (typeof search !== \"undefined\") {\r\n payload[\"search\"] = search;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Create team membership\r\n *\r\n * Invite a new member to join your team. Provide an ID for existing users, or\r\n * invite unregistered users using an email or phone number. If initiated from\r\n * a Client SDK, Appwrite will send an email or sms with a link to join the\r\n * team to the invited user, and an account will be created for them if one\r\n * doesn't exist. If initiated from a Server SDK, the new member will be added\r\n * automatically to the team.\r\n *\r\n * You only need to provide one of a user ID, email, or phone number. Appwrite\r\n * will prioritize accepting the user ID > email > phone number if you provide\r\n * more than one of these parameters.\r\n *\r\n * Use the `url` parameter to redirect the user from the invitation email to\r\n * your app. After the user is redirected, use the [Update Team Membership\r\n * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus)\r\n * endpoint to allow the user to accept the invitation to the team.\r\n *\r\n * Please note that to avoid a [Redirect\r\n * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)\r\n * Appwrite will accept the only redirect URLs under the domains you have\r\n * added as a platform on the Appwrite Console.\r\n *\r\n *\r\n * @param {string} teamId\r\n * @param {string[]} roles\r\n * @param {string} email\r\n * @param {string} userId\r\n * @param {string} phone\r\n * @param {string} url\r\n * @param {string} name\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async createMembership(\r\n teamId: string,\r\n roles: string[],\r\n email?: string,\r\n userId?: string,\r\n phone?: string,\r\n url?: string,\r\n name?: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof roles === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"roles\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof email !== \"undefined\") {\r\n payload[\"email\"] = email;\r\n }\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof phone !== \"undefined\") {\r\n payload[\"phone\"] = phone;\r\n }\r\n\r\n if (typeof roles !== \"undefined\") {\r\n payload[\"roles\"] = roles;\r\n }\r\n\r\n if (typeof url !== \"undefined\") {\r\n payload[\"url\"] = url;\r\n }\r\n\r\n if (typeof name !== \"undefined\") {\r\n payload[\"name\"] = name;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"post\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get team membership\r\n *\r\n * Get a team member by the membership unique id. All team members have read\r\n * access for this resource.\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getMembership(\r\n teamId: string,\r\n membershipId: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update membership\r\n *\r\n * Modify the roles of a team member. Only team members with the owner role\r\n * have access to this endpoint. Learn more about [roles and\r\n * permissions](https://appwrite.io/docs/permissions).\r\n *\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @param {string[]} roles\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMembership(\r\n teamId: string,\r\n membershipId: string,\r\n roles: string[]\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n if (typeof roles === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"roles\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n if (typeof roles !== \"undefined\") {\r\n payload[\"roles\"] = roles;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Delete team membership\r\n *\r\n * This endpoint allows a user to leave a team or for a team owner to delete\r\n * the membership of any other team member. You can also use this endpoint to\r\n * delete a user membership even if it is not accepted.\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async deleteMembership(teamId: string, membershipId: string): Promise<{}> {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"delete\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update team membership status\r\n *\r\n * Use this endpoint to allow a user to accept an invitation to join a team\r\n * after being redirected back to your app from the invitation email received\r\n * by the user.\r\n *\r\n * If the request is successful, a session for the user is automatically\r\n * created.\r\n *\r\n *\r\n * @param {string} teamId\r\n * @param {string} membershipId\r\n * @param {string} userId\r\n * @param {string} secret\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updateMembershipStatus(\r\n teamId: string,\r\n membershipId: string,\r\n userId: string,\r\n secret: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof membershipId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"membershipId\"');\r\n }\r\n\r\n if (typeof userId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"userId\"');\r\n }\r\n\r\n if (typeof secret === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"secret\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/memberships/{membershipId}/status\"\r\n .replace(\"{teamId}\", teamId)\r\n .replace(\"{membershipId}\", membershipId);\r\n const payload: Payload = {};\r\n\r\n if (typeof userId !== \"undefined\") {\r\n payload[\"userId\"] = userId;\r\n }\r\n\r\n if (typeof secret !== \"undefined\") {\r\n payload[\"secret\"] = secret;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"patch\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Get team preferences\r\n *\r\n * Get the team's shared preferences by its unique ID. If a preference doesn't\r\n * need to be shared by all team members, prefer storing them in [user\r\n * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).\r\n *\r\n * @param {string} teamId\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async getPrefs(\r\n teamId: string\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/prefs\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"get\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n\r\n /**\r\n * Update preferences\r\n *\r\n * Update the team's preferences by its unique ID. The object you pass is\r\n * stored as is and replaces any previous value. The maximum allowed prefs\r\n * size is 64kB and throws an error if exceeded.\r\n *\r\n * @param {string} teamId\r\n * @param {object} prefs\r\n * @throws {AppwriteException}\r\n * @returns {Promise}\r\n */\r\n async updatePrefs(\r\n teamId: string,\r\n prefs: object\r\n ): Promise {\r\n if (typeof teamId === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"teamId\"');\r\n }\r\n\r\n if (typeof prefs === \"undefined\") {\r\n throw new AppwriteException('Missing required parameter: \"prefs\"');\r\n }\r\n\r\n const apiPath = \"/teams/{teamId}/prefs\".replace(\"{teamId}\", teamId);\r\n const payload: Payload = {};\r\n\r\n if (typeof prefs !== \"undefined\") {\r\n payload[\"prefs\"] = prefs;\r\n }\r\n\r\n const uri = new URL(this.client.config.endpoint + apiPath);\r\n return await this.client.call(\r\n \"put\",\r\n uri,\r\n {\r\n \"content-type\": \"application/json\",\r\n },\r\n payload\r\n );\r\n }\r\n}\r\n","type QueryTypesSingle = string | number | boolean;\r\nexport type QueryTypesList = string[] | number[] | boolean[] | Query[];\r\nexport type QueryTypes = QueryTypesSingle | QueryTypesList;\r\ntype AttributesTypes = string | string[];\r\n\r\nexport class Query {\r\n method: string;\r\n attribute: AttributesTypes | undefined;\r\n values: QueryTypesList | undefined;\r\n\r\n constructor(\r\n method: string,\r\n attribute?: AttributesTypes,\r\n values?: QueryTypes\r\n ) {\r\n this.method = method;\r\n this.attribute = attribute;\r\n\r\n if (values !== undefined) {\r\n if (Array.isArray(values)) {\r\n this.values = values;\r\n } else {\r\n this.values = [values] as QueryTypesList;\r\n }\r\n }\r\n }\r\n\r\n toString(): string {\r\n return JSON.stringify({\r\n method: this.method,\r\n attribute: this.attribute,\r\n values: this.values,\r\n });\r\n }\r\n\r\n static equal = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"equal\", attribute, value).toString();\r\n\r\n static notEqual = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"notEqual\", attribute, value).toString();\r\n\r\n static lessThan = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"lessThan\", attribute, value).toString();\r\n\r\n static lessThanEqual = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"lessThanEqual\", attribute, value).toString();\r\n\r\n static greaterThan = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"greaterThan\", attribute, value).toString();\r\n\r\n static greaterThanEqual = (attribute: string, value: QueryTypes): string =>\r\n new Query(\"greaterThanEqual\", attribute, value).toString();\r\n\r\n static isNull = (attribute: string): string =>\r\n new Query(\"isNull\", attribute).toString();\r\n\r\n static isNotNull = (attribute: string): string =>\r\n new Query(\"isNotNull\", attribute).toString();\r\n\r\n static between = (attribute: string, start: string | number, end: string | number) =>\r\n new Query(\"between\", attribute, [start, end] as QueryTypesList).toString();\r\n\r\n static startsWith = (attribute: string, value: string): string =>\r\n new Query(\"startsWith\", attribute, value).toString();\r\n\r\n static endsWith = (attribute: string, value: string): string =>\r\n new Query(\"endsWith\", attribute, value).toString();\r\n\r\n static select = (attributes: string[]): string =>\r\n new Query(\"select\", undefined, attributes).toString();\r\n\r\n static search = (attribute: string, value: string): string =>\r\n new Query(\"search\", attribute, value).toString();\r\n\r\n static orderDesc = (attribute: string): string =>\r\n new Query(\"orderDesc\", attribute).toString();\r\n\r\n static orderAsc = (attribute: string): string =>\r\n new Query(\"orderAsc\", attribute).toString();\r\n\r\n static cursorAfter = (documentId: string): string =>\r\n new Query(\"cursorAfter\", undefined, documentId).toString();\r\n\r\n static cursorBefore = (documentId: string): string =>\r\n new Query(\"cursorBefore\", undefined, documentId).toString();\r\n\r\n static limit = (limit: number): string =>\r\n new Query(\"limit\", undefined, limit).toString();\r\n\r\n static offset = (offset: number): string =>\r\n new Query(\"offset\", undefined, offset).toString();\r\n\r\n static contains = (attribute: string, value: string | string[]): string =>\r\n new Query(\"contains\", attribute, value).toString();\r\n\r\n static or = (queries: string[]) =>\r\n new Query(\"or\", undefined, queries.map((query) => JSON.parse(query))).toString();\r\n\r\n static and = (queries: string[]) =>\r\n new Query(\"and\", undefined, queries.map((query) => JSON.parse(query))).toString();\r\n}\r\n","export class Permission {\r\n\r\n static read = (role: string): string => {\r\n return `read(\"${role}\")`\r\n }\r\n\r\n static write = (role: string): string => {\r\n return `write(\"${role}\")`\r\n }\r\n\r\n static create = (role: string): string => {\r\n return `create(\"${role}\")`\r\n }\r\n\r\n static update = (role: string): string => {\r\n return `update(\"${role}\")`\r\n }\r\n\r\n static delete = (role: string): string => {\r\n return `delete(\"${role}\")`\r\n }\r\n}\r\n","/**\r\n * Helper class to generate role strings for `Permission`.\r\n */\r\nexport class Role {\r\n\r\n /**\r\n * Grants access to anyone.\r\n * \r\n * This includes authenticated and unauthenticated users.\r\n * \r\n * @returns {string}\r\n */\r\n public static any(): string {\r\n return 'any'\r\n }\r\n\r\n /**\r\n * Grants access to a specific user by user ID.\r\n * \r\n * You can optionally pass verified or unverified for\r\n * `status` to target specific types of users.\r\n *\r\n * @param {string} id \r\n * @param {string} status \r\n * @returns {string}\r\n */\r\n public static user(id: string, status: string = ''): string {\r\n if (status === '') {\r\n return `user:${id}`\r\n }\r\n return `user:${id}/${status}`\r\n }\r\n\r\n /**\r\n * Grants access to any authenticated or anonymous user.\r\n * \r\n * You can optionally pass verified or unverified for\r\n * `status` to target specific types of users.\r\n * \r\n * @param {string} status \r\n * @returns {string}\r\n */\r\n public static users(status: string = ''): string {\r\n if (status === '') {\r\n return 'users'\r\n }\r\n return `users/${status}`\r\n }\r\n\r\n /**\r\n * Grants access to any guest user without a session.\r\n * \r\n * Authenticated users don't have access to this role.\r\n * \r\n * @returns {string}\r\n */\r\n public static guests(): string {\r\n return 'guests'\r\n }\r\n\r\n /**\r\n * Grants access to a team by team ID.\r\n * \r\n * You can optionally pass a role for `role` to target\r\n * team members with the specified role.\r\n * \r\n * @param {string} id \r\n * @param {string} role \r\n * @returns {string}\r\n */\r\n public static team(id: string, role: string = ''): string {\r\n if (role === '') {\r\n return `team:${id}`\r\n }\r\n return `team:${id}/${role}`\r\n }\r\n\r\n /**\r\n * Grants access to a specific member of a team.\r\n * \r\n * When the member is removed from the team, they will\r\n * no longer have access.\r\n * \r\n * @param {string} id \r\n * @returns {string}\r\n */\r\n public static member(id: string): string {\r\n return `member:${id}`\r\n }\r\n\r\n /**\r\n * Grants access to a user with the specified label.\r\n * \r\n * @param {string} name \r\n * @returns {string}\r\n */\r\n public static label(name: string): string {\r\n return `label:${name}`\r\n }\r\n}","export class ID {\r\n // Generate an hex ID based on timestamp\r\n // Recreated from https://www.php.net/manual/en/function.uniqid.php\r\n static #hexTimestamp(): string {\r\n const now = new Date();\r\n const sec = Math.floor(now.getTime() / 1000);\r\n const msec = now.getMilliseconds();\r\n\r\n // Convert to hexadecimal\r\n const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');\r\n return hexTimestamp;\r\n }\r\n\r\n public static custom(id: string): string {\r\n return id\r\n }\r\n\r\n public static unique(padding: number = 7): string {\r\n // Generate a unique ID with padding to have a longer ID\r\n const baseId = ID.#hexTimestamp();\r\n let randomPadding = '';\r\n for (let i = 0; i < padding; i++) {\r\n const randomHexDigit = Math.floor(Math.random() * 16).toString(16);\r\n randomPadding += randomHexDigit;\r\n }\r\n return baseId + randomPadding;\r\n }\r\n}\r\n","export enum AuthenticatorType {\r\n Totp = 'totp',\r\n}","export enum AuthenticationFactor {\r\n Email = 'email',\r\n Phone = 'phone',\r\n Totp = 'totp',\r\n Recoverycode = 'recoverycode',\r\n}","export enum OAuthProvider {\r\n Amazon = 'amazon',\r\n Apple = 'apple',\r\n Auth0 = 'auth0',\r\n Authentik = 'authentik',\r\n Autodesk = 'autodesk',\r\n Bitbucket = 'bitbucket',\r\n Bitly = 'bitly',\r\n Box = 'box',\r\n Dailymotion = 'dailymotion',\r\n Discord = 'discord',\r\n Disqus = 'disqus',\r\n Dropbox = 'dropbox',\r\n Etsy = 'etsy',\r\n Facebook = 'facebook',\r\n Github = 'github',\r\n Gitlab = 'gitlab',\r\n Google = 'google',\r\n Linkedin = 'linkedin',\r\n Microsoft = 'microsoft',\r\n Notion = 'notion',\r\n Oidc = 'oidc',\r\n Okta = 'okta',\r\n Paypal = 'paypal',\r\n PaypalSandbox = 'paypalSandbox',\r\n Podio = 'podio',\r\n Salesforce = 'salesforce',\r\n Slack = 'slack',\r\n Spotify = 'spotify',\r\n Stripe = 'stripe',\r\n Tradeshift = 'tradeshift',\r\n TradeshiftBox = 'tradeshiftBox',\r\n Twitch = 'twitch',\r\n Wordpress = 'wordpress',\r\n Yahoo = 'yahoo',\r\n Yammer = 'yammer',\r\n Yandex = 'yandex',\r\n Zoho = 'zoho',\r\n Zoom = 'zoom',\r\n Mock = 'mock',\r\n}","export enum Browser {\r\n AvantBrowser = 'aa',\r\n AndroidWebViewBeta = 'an',\r\n GoogleChrome = 'ch',\r\n GoogleChromeIOS = 'ci',\r\n GoogleChromeMobile = 'cm',\r\n Chromium = 'cr',\r\n MozillaFirefox = 'ff',\r\n Safari = 'sf',\r\n MobileSafari = 'mf',\r\n MicrosoftEdge = 'ps',\r\n MicrosoftEdgeIOS = 'oi',\r\n OperaMini = 'om',\r\n Opera = 'op',\r\n OperaNext = 'on',\r\n}","export enum CreditCard {\r\n AmericanExpress = 'amex',\r\n Argencard = 'argencard',\r\n Cabal = 'cabal',\r\n Cencosud = 'cencosud',\r\n DinersClub = 'diners',\r\n Discover = 'discover',\r\n Elo = 'elo',\r\n Hipercard = 'hipercard',\r\n JCB = 'jcb',\r\n Mastercard = 'mastercard',\r\n Naranja = 'naranja',\r\n TarjetaShopping = 'targeta-shopping',\r\n UnionChinaPay = 'union-china-pay',\r\n Visa = 'visa',\r\n MIR = 'mir',\r\n Maestro = 'maestro',\r\n}","export enum Flag {\r\n Afghanistan = 'af',\r\n Angola = 'ao',\r\n Albania = 'al',\r\n Andorra = 'ad',\r\n UnitedArabEmirates = 'ae',\r\n Argentina = 'ar',\r\n Armenia = 'am',\r\n AntiguaAndBarbuda = 'ag',\r\n Australia = 'au',\r\n Austria = 'at',\r\n Azerbaijan = 'az',\r\n Burundi = 'bi',\r\n Belgium = 'be',\r\n Benin = 'bj',\r\n BurkinaFaso = 'bf',\r\n Bangladesh = 'bd',\r\n Bulgaria = 'bg',\r\n Bahrain = 'bh',\r\n Bahamas = 'bs',\r\n BosniaAndHerzegovina = 'ba',\r\n Belarus = 'by',\r\n Belize = 'bz',\r\n Bolivia = 'bo',\r\n Brazil = 'br',\r\n Barbados = 'bb',\r\n BruneiDarussalam = 'bn',\r\n Bhutan = 'bt',\r\n Botswana = 'bw',\r\n CentralAfricanRepublic = 'cf',\r\n Canada = 'ca',\r\n Switzerland = 'ch',\r\n Chile = 'cl',\r\n China = 'cn',\r\n CoteDIvoire = 'ci',\r\n Cameroon = 'cm',\r\n DemocraticRepublicOfTheCongo = 'cd',\r\n RepublicOfTheCongo = 'cg',\r\n Colombia = 'co',\r\n Comoros = 'km',\r\n CapeVerde = 'cv',\r\n CostaRica = 'cr',\r\n Cuba = 'cu',\r\n Cyprus = 'cy',\r\n CzechRepublic = 'cz',\r\n Germany = 'de',\r\n Djibouti = 'dj',\r\n Dominica = 'dm',\r\n Denmark = 'dk',\r\n DominicanRepublic = 'do',\r\n Algeria = 'dz',\r\n Ecuador = 'ec',\r\n Egypt = 'eg',\r\n Eritrea = 'er',\r\n Spain = 'es',\r\n Estonia = 'ee',\r\n Ethiopia = 'et',\r\n Finland = 'fi',\r\n Fiji = 'fj',\r\n France = 'fr',\r\n MicronesiaFederatedStatesOf = 'fm',\r\n Gabon = 'ga',\r\n UnitedKingdom = 'gb',\r\n Georgia = 'ge',\r\n Ghana = 'gh',\r\n Guinea = 'gn',\r\n Gambia = 'gm',\r\n GuineaBissau = 'gw',\r\n EquatorialGuinea = 'gq',\r\n Greece = 'gr',\r\n Grenada = 'gd',\r\n Guatemala = 'gt',\r\n Guyana = 'gy',\r\n Honduras = 'hn',\r\n Croatia = 'hr',\r\n Haiti = 'ht',\r\n Hungary = 'hu',\r\n Indonesia = 'id',\r\n India = 'in',\r\n Ireland = 'ie',\r\n IranIslamicRepublicOf = 'ir',\r\n Iraq = 'iq',\r\n Iceland = 'is',\r\n Israel = 'il',\r\n Italy = 'it',\r\n Jamaica = 'jm',\r\n Jordan = 'jo',\r\n Japan = 'jp',\r\n Kazakhstan = 'kz',\r\n Kenya = 'ke',\r\n Kyrgyzstan = 'kg',\r\n Cambodia = 'kh',\r\n Kiribati = 'ki',\r\n SaintKittsAndNevis = 'kn',\r\n SouthKorea = 'kr',\r\n Kuwait = 'kw',\r\n LaoPeopleSDemocraticRepublic = 'la',\r\n Lebanon = 'lb',\r\n Liberia = 'lr',\r\n Libya = 'ly',\r\n SaintLucia = 'lc',\r\n Liechtenstein = 'li',\r\n SriLanka = 'lk',\r\n Lesotho = 'ls',\r\n Lithuania = 'lt',\r\n Luxembourg = 'lu',\r\n Latvia = 'lv',\r\n Morocco = 'ma',\r\n Monaco = 'mc',\r\n Moldova = 'md',\r\n Madagascar = 'mg',\r\n Maldives = 'mv',\r\n Mexico = 'mx',\r\n MarshallIslands = 'mh',\r\n NorthMacedonia = 'mk',\r\n Mali = 'ml',\r\n Malta = 'mt',\r\n Myanmar = 'mm',\r\n Montenegro = 'me',\r\n Mongolia = 'mn',\r\n Mozambique = 'mz',\r\n Mauritania = 'mr',\r\n Mauritius = 'mu',\r\n Malawi = 'mw',\r\n Malaysia = 'my',\r\n Namibia = 'na',\r\n Niger = 'ne',\r\n Nigeria = 'ng',\r\n Nicaragua = 'ni',\r\n Netherlands = 'nl',\r\n Norway = 'no',\r\n Nepal = 'np',\r\n Nauru = 'nr',\r\n NewZealand = 'nz',\r\n Oman = 'om',\r\n Pakistan = 'pk',\r\n Panama = 'pa',\r\n Peru = 'pe',\r\n Philippines = 'ph',\r\n Palau = 'pw',\r\n PapuaNewGuinea = 'pg',\r\n Poland = 'pl',\r\n FrenchPolynesia = 'pf',\r\n NorthKorea = 'kp',\r\n Portugal = 'pt',\r\n Paraguay = 'py',\r\n Qatar = 'qa',\r\n Romania = 'ro',\r\n Russia = 'ru',\r\n Rwanda = 'rw',\r\n SaudiArabia = 'sa',\r\n Sudan = 'sd',\r\n Senegal = 'sn',\r\n Singapore = 'sg',\r\n SolomonIslands = 'sb',\r\n SierraLeone = 'sl',\r\n ElSalvador = 'sv',\r\n SanMarino = 'sm',\r\n Somalia = 'so',\r\n Serbia = 'rs',\r\n SouthSudan = 'ss',\r\n SaoTomeAndPrincipe = 'st',\r\n Suriname = 'sr',\r\n Slovakia = 'sk',\r\n Slovenia = 'si',\r\n Sweden = 'se',\r\n Eswatini = 'sz',\r\n Seychelles = 'sc',\r\n Syria = 'sy',\r\n Chad = 'td',\r\n Togo = 'tg',\r\n Thailand = 'th',\r\n Tajikistan = 'tj',\r\n Turkmenistan = 'tm',\r\n TimorLeste = 'tl',\r\n Tonga = 'to',\r\n TrinidadAndTobago = 'tt',\r\n Tunisia = 'tn',\r\n Turkey = 'tr',\r\n Tuvalu = 'tv',\r\n Tanzania = 'tz',\r\n Uganda = 'ug',\r\n Ukraine = 'ua',\r\n Uruguay = 'uy',\r\n UnitedStates = 'us',\r\n Uzbekistan = 'uz',\r\n VaticanCity = 'va',\r\n SaintVincentAndTheGrenadines = 'vc',\r\n Venezuela = 've',\r\n Vietnam = 'vn',\r\n Vanuatu = 'vu',\r\n Samoa = 'ws',\r\n Yemen = 'ye',\r\n SouthAfrica = 'za',\r\n Zambia = 'zm',\r\n Zimbabwe = 'zw',\r\n}","export enum ExecutionMethod {\r\n GET = 'GET',\r\n POST = 'POST',\r\n PUT = 'PUT',\r\n PATCH = 'PATCH',\r\n DELETE = 'DELETE',\r\n OPTIONS = 'OPTIONS',\r\n}","export enum ImageGravity {\r\n Center = 'center',\r\n TopLeft = 'top-left',\r\n Top = 'top',\r\n TopRight = 'top-right',\r\n Left = 'left',\r\n Right = 'right',\r\n BottomLeft = 'bottom-left',\r\n Bottom = 'bottom',\r\n BottomRight = 'bottom-right',\r\n}","export enum ImageFormat {\r\n Jpg = 'jpg',\r\n Jpeg = 'jpeg',\r\n Gif = 'gif',\r\n Png = 'png',\r\n Webp = 'webp',\r\n}"],"names":[],"mappings":";;;AAAA;AACA;AACA;A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B,CAAA;AACtB,IAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,YAAA,CAAA,GAAA,aAA0B,CAAA;AAC1B,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,YAAA,CAAA,aAAA,CAAA,GAAA,cAA4B,CAAA;AAChC,CAAC,EAVW,YAAY,KAAZ,YAAY,GAUvB,EAAA,CAAA,CAAA;;ICVW,YAMX;AAND,CAAA,UAAY,WAAW,EAAA;AACnB,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACjB,CAAC,EANW,WAAW,KAAX,WAAW,GAMtB,EAAA,CAAA,CAAA;;;;"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..be60c4e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,7166 @@ +{ + "name": "react-native-appwrite", + "version": "0.4.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "react-native-appwrite", + "version": "0.4.0", + "license": "BSD-3-Clause", + "dependencies": { + "react-native": "^0.73.6", + "react-native-fs": "^2.20.0" + }, + "devDependencies": { + "@rollup/plugin-typescript": "8.3.2", + "playwright": "1.15.0", + "rollup": "2.75.4", + "serve-handler": "6.1.0", + "tslib": "2.4.0", + "typescript": "4.7.2" + }, + "peerDependencies": { + "react-native": "*", + "react-native-fs": "^2.20.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.2.tgz", + "integrity": "sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.0.tgz", + "integrity": "sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==", + "dependencies": { + "@babel/types": "^7.25.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz", + "integrity": "sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==", + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz", + "integrity": "sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA==", + "peer": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "dependencies": { + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.0.tgz", + "integrity": "sha512-GYM6BxeQsETc9mnct+nIIpf63SAyzvyYN7UB/IlTyd+MBg06afFGp0mIeUqGyWgS2mxad6vqbMrHVlaL3m70sQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/traverse": "^7.25.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.2.tgz", + "integrity": "sha512-+wqVGP+DFmqwFD3EH6TMTfUNeqDehV3E/dl+Sd54eaXqm17tEUNbEIn4sVivVowbvUpOtIGxdo3GoXyDH9N/9g==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", + "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz", + "integrity": "sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==", + "dependencies": { + "@babel/traverse": "^7.24.8", + "@babel/types": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz", + "integrity": "sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==", + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.0.tgz", + "integrity": "sha512-NhavI2eWEIz/H9dbrG0TuOicDhNexze43i5z7lEqwYm0WEZVTwnPpA0EafUTP7+6/W79HWIP2cTe3Z5NiSTVpw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-wrap-function": "^7.25.0", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz", + "integrity": "sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz", + "integrity": "sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.0.tgz", + "integrity": "sha512-s6Q1ebqutSiZnEjaofc/UKDyC4SbzV5n5SrA2Gq8UawLycr3i04f1dX4OzoQVnexm6aOCh37SQNYlJ/8Ku+PMQ==", + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.0.tgz", + "integrity": "sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==", + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz", + "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==", + "dependencies": { + "@babel/types": "^7.25.2" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.3.tgz", + "integrity": "sha512-wUrcsxZg6rqBXG05HG1FPYgsP6EvwF4WpBbxIpWIIYnH8wG0gzx3yZY3dtEHas4sTAOGkbTsc9EGPxwff8lRoA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.0.tgz", + "integrity": "sha512-Bm4bH2qsX880b/3ziJ8KD711LT7z4u8CFudmjqle65AZj/HNUFhEf90dqYv6O86buWvSBmeQDjv0Tn2aF/bIBA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.0.tgz", + "integrity": "sha512-lXwdNZtTmeVOOFtwM/WDe7yg1PL8sYhRk/XH0FzbR2HDQ0xC+EnQ/JHeoMYSavtU115tnUk0q9CDyq8si+LMAA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz", + "integrity": "sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.0.tgz", + "integrity": "sha512-tggFrk1AIShG/RUQbEwt2Tr/E+ObkfwrPjR6BjbRvsx24+PSjK8zrq0GWPNCjo8qpRx4DuJzlcvWJqlm+0h3kw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", + "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.", + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-export-default-from": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.24.7.tgz", + "integrity": "sha512-CcmFwUJ3tKhLjPdt4NP+SHMshebytF8ZTYOv5ZDpkzq2sin80Wb5vJrGt8fhPrORQCfoSa0LAxC/DW+GAC5+Hw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-export-default-from": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", + "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "peer": true, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-default-from": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.24.7.tgz", + "integrity": "sha512-bTPz4/635WQ9WhwsyPdxUJDVpsi/X9BMmy/8Rf/UAlOO4jSql4CxUCjWI5PiM+jG+c4LVPTScoTw80geFj9+Bw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.24.7.tgz", + "integrity": "sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.7.tgz", + "integrity": "sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz", + "integrity": "sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", + "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz", + "integrity": "sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz", + "integrity": "sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.0.tgz", + "integrity": "sha512-uaIi2FdqzjpAMvVqvB51S42oC2JEVgh0LDsGfZVDysWE8LrJtQC2jvKmOqEYThKyB7bDEb7BP1GYWDm7tABA0Q==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-remap-async-to-generator": "^7.25.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz", + "integrity": "sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA==", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-remap-async-to-generator": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz", + "integrity": "sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.0.tgz", + "integrity": "sha512-yBQjYoOjXlFv9nlXb3f1casSHOZkWr29NX+zChVanLg5Nc157CrbEX9D7hxxtTpuFy7Q0YzmmWfJxzvps4kXrQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.7.tgz", + "integrity": "sha512-vKbfawVYayKcSeSR5YYzzyXvsDFWU2mD8U5TFeXtbCPLFUqe7GyCgvO6XDHzje862ODrOwy6WCPmKeWHbCFJ4w==", + "peer": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz", + "integrity": "sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ==", + "peer": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.0.tgz", + "integrity": "sha512-xyi6qjr/fYU304fiRwFbekzkqVJZ6A7hOjWZd+89FVcBqPV3S9Wuozz82xdpLspckeaafntbzglaW4pqpzvtSw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-compilation-targets": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-replace-supers": "^7.25.0", + "@babel/traverse": "^7.25.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz", + "integrity": "sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/template": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz", + "integrity": "sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz", + "integrity": "sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw==", + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz", + "integrity": "sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.0.tgz", + "integrity": "sha512-YLpb4LlYSc3sCUa35un84poXoraOiQucUTTu8X1j18JV+gNa8E0nyUf/CjZ171IRGr4jEguF+vzJU66QZhn29g==", + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz", + "integrity": "sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz", + "integrity": "sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ==", + "peer": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz", + "integrity": "sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.25.2.tgz", + "integrity": "sha512-InBZ0O8tew5V0K6cHcQ+wgxlrjOw1W4wDXLkOTjLRD8GYhTSkxTVBtdy3MMtvYBrbAWa1Qm3hNoTc1620Yj+Mg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/plugin-syntax-flow": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz", + "integrity": "sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.25.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.1.tgz", + "integrity": "sha512-TVVJVdW9RKMNgJJlLtHsKDTydjZAbwIsn6ySBPQaEAUU5+gVvlJt/9nRmqVbsV/IBanRjzWoaAQKLoamWVOUuA==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/traverse": "^7.25.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz", + "integrity": "sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.2.tgz", + "integrity": "sha512-HQI+HcTbm9ur3Z2DkO+jgESMAMcYLuN/A7NRw9juzxAezN9AvqvUTnpKP/9kkYANz6u7dFlAyOu44ejuGySlfw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz", + "integrity": "sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz", + "integrity": "sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz", + "integrity": "sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg==", + "peer": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz", + "integrity": "sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA==", + "dependencies": { + "@babel/helper-module-transforms": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-simple-access": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.0.tgz", + "integrity": "sha512-YPJfjQPDXxyQWg/0+jHKj1llnY5f/R6a0p/vP4lPymxLu7Lvl4k2WMitqi08yxwQcCVUUdG9LCUj4TNEgAp3Jw==", + "peer": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.7.tgz", + "integrity": "sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A==", + "peer": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz", + "integrity": "sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz", + "integrity": "sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz", + "integrity": "sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz", + "integrity": "sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz", + "integrity": "sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q==", + "peer": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz", + "integrity": "sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-replace-supers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.7.tgz", + "integrity": "sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz", + "integrity": "sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz", + "integrity": "sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.7.tgz", + "integrity": "sha512-COTCOkG2hn4JKGEKBADkA8WNb35TGkkRbI5iT845dB+NyqgO8Hn+ajPbSnIQznneJTa3d30scb6iz/DhH8GsJQ==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz", + "integrity": "sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-create-class-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz", + "integrity": "sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.24.7.tgz", + "integrity": "sha512-H/Snz9PFxKsS1JLI4dJLtnJgCJRoo0AUm3chP6NYr+9En1JMKloheEiLIhlp5MDVznWo+H3AAC1Mc8lmUEpsgg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.2.tgz", + "integrity": "sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/plugin-syntax-jsx": "^7.24.7", + "@babel/types": "^7.25.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.24.7.tgz", + "integrity": "sha512-fOPQYbGSgH0HUp4UJO4sMBFjY6DuWq+2i8rixyUMb3CdGixs/gccURvYOAhajBdKDoGajFr3mUq5rH3phtkGzw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.24.7.tgz", + "integrity": "sha512-J2z+MWzZHVOemyLweMqngXrgGC42jQ//R0KdxqkIz/OrbVIIlhFI3WigZ5fO+nwFvBlncr4MGapd8vTyc7RPNQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.7.tgz", + "integrity": "sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz", + "integrity": "sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.7.tgz", + "integrity": "sha512-YqXjrk4C+a1kZjewqt+Mmu2UuV1s07y8kqcUf4qYLnoqemhR4gRQikhdAhSVJioMjVTu6Mo6pAbaypEA3jY6fw==", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.1", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz", + "integrity": "sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz", + "integrity": "sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz", + "integrity": "sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz", + "integrity": "sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz", + "integrity": "sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.8" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.2.tgz", + "integrity": "sha512-lBwRvjSmqiMYe/pS0+1gggjJleUJi7NzjvQ1Fkqtt69hBa/0t1YuW/MLQMAPixfwaQOHUXsd6jeU3Z+vdGv3+A==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.24.7", + "@babel/helper-create-class-features-plugin": "^7.25.0", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", + "@babel/plugin-syntax-typescript": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz", + "integrity": "sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz", + "integrity": "sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w==", + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz", + "integrity": "sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.7.tgz", + "integrity": "sha512-2G8aAvF4wy1w/AGZkemprdGMRg5o6zPNhbHVImRz3lss55TYCBd6xStN19rt8XJHq20sqV0JbyWjOWwQRwV/wg==", + "peer": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.3.tgz", + "integrity": "sha512-QsYW7UeAaXvLPX9tdVliMJE7MD7M6MLYVTovRTIwhoYQVFHR1rM4wO8wqAezYi3/BpSD+NzVCZ69R6smWiIi8g==", + "peer": true, + "dependencies": { + "@babel/compat-data": "^7.25.2", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-option": "^7.24.8", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.3", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.0", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.7", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.0", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.24.7", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.24.7", + "@babel/plugin-transform-async-generator-functions": "^7.25.0", + "@babel/plugin-transform-async-to-generator": "^7.24.7", + "@babel/plugin-transform-block-scoped-functions": "^7.24.7", + "@babel/plugin-transform-block-scoping": "^7.25.0", + "@babel/plugin-transform-class-properties": "^7.24.7", + "@babel/plugin-transform-class-static-block": "^7.24.7", + "@babel/plugin-transform-classes": "^7.25.0", + "@babel/plugin-transform-computed-properties": "^7.24.7", + "@babel/plugin-transform-destructuring": "^7.24.8", + "@babel/plugin-transform-dotall-regex": "^7.24.7", + "@babel/plugin-transform-duplicate-keys": "^7.24.7", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.0", + "@babel/plugin-transform-dynamic-import": "^7.24.7", + "@babel/plugin-transform-exponentiation-operator": "^7.24.7", + "@babel/plugin-transform-export-namespace-from": "^7.24.7", + "@babel/plugin-transform-for-of": "^7.24.7", + "@babel/plugin-transform-function-name": "^7.25.1", + "@babel/plugin-transform-json-strings": "^7.24.7", + "@babel/plugin-transform-literals": "^7.25.2", + "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", + "@babel/plugin-transform-member-expression-literals": "^7.24.7", + "@babel/plugin-transform-modules-amd": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", + "@babel/plugin-transform-modules-systemjs": "^7.25.0", + "@babel/plugin-transform-modules-umd": "^7.24.7", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", + "@babel/plugin-transform-new-target": "^7.24.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", + "@babel/plugin-transform-numeric-separator": "^7.24.7", + "@babel/plugin-transform-object-rest-spread": "^7.24.7", + "@babel/plugin-transform-object-super": "^7.24.7", + "@babel/plugin-transform-optional-catch-binding": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.8", + "@babel/plugin-transform-parameters": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.24.7", + "@babel/plugin-transform-private-property-in-object": "^7.24.7", + "@babel/plugin-transform-property-literals": "^7.24.7", + "@babel/plugin-transform-regenerator": "^7.24.7", + "@babel/plugin-transform-reserved-words": "^7.24.7", + "@babel/plugin-transform-shorthand-properties": "^7.24.7", + "@babel/plugin-transform-spread": "^7.24.7", + "@babel/plugin-transform-sticky-regex": "^7.24.7", + "@babel/plugin-transform-template-literals": "^7.24.7", + "@babel/plugin-transform-typeof-symbol": "^7.24.8", + "@babel/plugin-transform-unicode-escapes": "^7.24.7", + "@babel/plugin-transform-unicode-property-regex": "^7.24.7", + "@babel/plugin-transform-unicode-regex": "^7.24.7", + "@babel/plugin-transform-unicode-sets-regex": "^7.24.7", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.4", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.37.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-flow": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.24.7.tgz", + "integrity": "sha512-NL3Lo0NorCU607zU3NwRyJbpaB6E3t0xtd3LfAQKDfkeX4/ggcDXvkmkW42QWT5owUeW/jAe4hn+2qvkV1IbfQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "@babel/plugin-transform-flow-strip-types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.24.7.tgz", + "integrity": "sha512-SyXRe3OdWwIwalxDg5UtJnJQO+YPcTfwiIY2B0Xlddh9o7jpWLvv8X1RthIeDOxQ+O1ML5BLPCONToObyVQVuQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "@babel/plugin-syntax-jsx": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.7", + "@babel/plugin-transform-typescript": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/register": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.24.6.tgz", + "integrity": "sha512-WSuFCc2wCqMeXkz/i3yfAAsxwWflEgbVkZzivgAmXl/MxrXeoYFZOOPllbC8R8WTF7u61wSRQtDVZ1879cdu6w==", + "dependencies": { + "clone-deep": "^4.0.1", + "find-cache-dir": "^2.0.0", + "make-dir": "^2.1.0", + "pirates": "^4.0.6", + "source-map-support": "^0.5.16" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" + }, + "node_modules/@babel/runtime": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz", + "integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/runtime/node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/@babel/template": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.3.tgz", + "integrity": "sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ==", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/parser": "^7.25.3", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.2", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", + "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", + "dependencies": { + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + }, + "node_modules/@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@isaacs/ttlcache": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@isaacs/ttlcache/-/ttlcache-1.4.1.tgz", + "integrity": "sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/@jest/create-cache-key-function": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-29.7.0.tgz", + "integrity": "sha512-4QqS3LY5PBmTRHj9sAg1HLoPzqAI0uOX6wI/TRqHIcOxlFidy6YEmCQJk6FSZjNLGCeubDMfmkWL+qaLKhSGQA==", + "dependencies": { + "@jest/types": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@react-native-community/cli": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-12.3.7.tgz", + "integrity": "sha512-7+mOhk+3+X3BjSJZZvYrDJynA00gPYTlvT28ZjiLlbuVGfqfNiBKaxuF7rty+gjjpch4iKGvLhIhSN5cuOsdHQ==", + "dependencies": { + "@react-native-community/cli-clean": "12.3.7", + "@react-native-community/cli-config": "12.3.7", + "@react-native-community/cli-debugger-ui": "12.3.7", + "@react-native-community/cli-doctor": "12.3.7", + "@react-native-community/cli-hermes": "12.3.7", + "@react-native-community/cli-plugin-metro": "12.3.7", + "@react-native-community/cli-server-api": "12.3.7", + "@react-native-community/cli-tools": "12.3.7", + "@react-native-community/cli-types": "12.3.7", + "chalk": "^4.1.2", + "commander": "^9.4.1", + "deepmerge": "^4.3.0", + "execa": "^5.0.0", + "find-up": "^4.1.0", + "fs-extra": "^8.1.0", + "graceful-fs": "^4.1.3", + "prompts": "^2.4.2", + "semver": "^7.5.2" + }, + "bin": { + "react-native": "build/bin.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native-community/cli-clean": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-12.3.7.tgz", + "integrity": "sha512-BCYW77QqyxfhiMEBOoHyciJRNV6Rhz1RvclReIKnCA9wAwmoJBeu4Mu+AwiECA2bUITX16fvPt3NwDsSd1jwfQ==", + "dependencies": { + "@react-native-community/cli-tools": "12.3.7", + "chalk": "^4.1.2", + "execa": "^5.0.0" + } + }, + "node_modules/@react-native-community/cli-config": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-12.3.7.tgz", + "integrity": "sha512-IU2UhO9yj1rEBNhHWGzIXpPDzha4hizLP/PUOrhR4BUf6RVPUWEp+e1PXNGR0qjIf6esu7OC7t6mLOhH0NUJEw==", + "dependencies": { + "@react-native-community/cli-tools": "12.3.7", + "chalk": "^4.1.2", + "cosmiconfig": "^5.1.0", + "deepmerge": "^4.3.0", + "glob": "^7.1.3", + "joi": "^17.2.1" + } + }, + "node_modules/@react-native-community/cli-debugger-ui": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-12.3.7.tgz", + "integrity": "sha512-UHUFrRdcjWSCdWG9KIp2QjuRIahBQnb9epnQI7JCq6NFbFHYfEI4rI7msjMn+gG8/tSwKTV2PTPuPmZ5wWlE7Q==", + "dependencies": { + "serve-static": "^1.13.1" + } + }, + "node_modules/@react-native-community/cli-doctor": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-12.3.7.tgz", + "integrity": "sha512-gCamZztRoAyhciuQPqdz4Xe4t3gOdNsaADNd+rva+Rx8W2PoPeNv60i7/et06wlsn6B6Sh0/hMiAftJbiHDFkg==", + "dependencies": { + "@react-native-community/cli-config": "12.3.7", + "@react-native-community/cli-platform-android": "12.3.7", + "@react-native-community/cli-platform-ios": "12.3.7", + "@react-native-community/cli-tools": "12.3.7", + "chalk": "^4.1.2", + "command-exists": "^1.2.8", + "deepmerge": "^4.3.0", + "envinfo": "^7.10.0", + "execa": "^5.0.0", + "hermes-profile-transformer": "^0.0.6", + "node-stream-zip": "^1.9.1", + "ora": "^5.4.1", + "semver": "^7.5.2", + "strip-ansi": "^5.2.0", + "wcwidth": "^1.0.1", + "yaml": "^2.2.1" + } + }, + "node_modules/@react-native-community/cli-doctor/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@react-native-community/cli-hermes": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-hermes/-/cli-hermes-12.3.7.tgz", + "integrity": "sha512-ezzeiSKjRXK2+i1AAe7NhhN9CEHrgtRmTn2MAdBpE++N8fH5EQZgxFcGgGdwGvns2fm9ivyyeVnI5eAYwvM+jg==", + "dependencies": { + "@react-native-community/cli-platform-android": "12.3.7", + "@react-native-community/cli-tools": "12.3.7", + "chalk": "^4.1.2", + "hermes-profile-transformer": "^0.0.6" + } + }, + "node_modules/@react-native-community/cli-platform-android": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-12.3.7.tgz", + "integrity": "sha512-mOltF3cpjNdJb3WSFwEHc1GH4ibCcnOvQ34OdWyblKy9ijuvG5SjNTlYR/UW/CURaDi3OUKAhxQMTY5d27bzGQ==", + "dependencies": { + "@react-native-community/cli-tools": "12.3.7", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "fast-xml-parser": "^4.2.4", + "glob": "^7.1.3", + "logkitty": "^0.7.1" + } + }, + "node_modules/@react-native-community/cli-platform-ios": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-12.3.7.tgz", + "integrity": "sha512-2WnVsMH4ORZIhBm/5nCms1NeeKG4KarNC7PMLmrXWXB/bibDcaNsjrJiqnmCUcpTEvTQTokRfoO7Aj6NM0Cqow==", + "dependencies": { + "@react-native-community/cli-tools": "12.3.7", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "fast-xml-parser": "^4.0.12", + "glob": "^7.1.3", + "ora": "^5.4.1" + } + }, + "node_modules/@react-native-community/cli-plugin-metro": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-12.3.7.tgz", + "integrity": "sha512-ahEw0Vfnv2Nv/jdZ2QDuGjQ9l2SczO4lXjb3ubu5vEYNLyTw3jYsLMK6iES7YQ/ApQmKdG476HU1O9uZdpaYPg==" + }, + "node_modules/@react-native-community/cli-server-api": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-12.3.7.tgz", + "integrity": "sha512-LYETs3CCjrLn1ZU0kYv44TywiIl5IPFHZGeXhAh2TtgOk4mo3kvXxECDil9CdO3bmDra6qyiG61KHvzr8IrHdg==", + "dependencies": { + "@react-native-community/cli-debugger-ui": "12.3.7", + "@react-native-community/cli-tools": "12.3.7", + "compression": "^1.7.1", + "connect": "^3.6.5", + "errorhandler": "^1.5.1", + "nocache": "^3.0.1", + "pretty-format": "^26.6.2", + "serve-static": "^1.13.1", + "ws": "^7.5.1" + } + }, + "node_modules/@react-native-community/cli-tools": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-12.3.7.tgz", + "integrity": "sha512-7NL/1/i+wzd4fBr/FSr3ypR05tiU/Kv9l/M1sL1c6jfcDtWXAL90R161gQkQFK7shIQ8Idp0dQX1rq49tSyfQw==", + "dependencies": { + "appdirsjs": "^1.2.4", + "chalk": "^4.1.2", + "find-up": "^5.0.0", + "mime": "^2.4.1", + "node-fetch": "^2.6.0", + "open": "^6.2.0", + "ora": "^5.4.1", + "semver": "^7.5.2", + "shell-quote": "^1.7.3", + "sudo-prompt": "^9.0.0" + } + }, + "node_modules/@react-native-community/cli-tools/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@react-native-community/cli-tools/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@react-native-community/cli-tools/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@react-native-community/cli-tools/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@react-native-community/cli-tools/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@react-native-community/cli-types": { + "version": "12.3.7", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-12.3.7.tgz", + "integrity": "sha512-NFtUMyIrNfi3A5C1cjVKDVvYHvvOF7MnOMwdD8jm2NQKewQJrehKBh1eMuykKdqhWyZmuemD4KKhL8f4FxgG0w==", + "dependencies": { + "joi": "^17.2.1" + } + }, + "node_modules/@react-native-community/cli/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/@react-native-community/cli/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@react-native/assets-registry": { + "version": "0.73.1", + "resolved": "https://registry.npmjs.org/@react-native/assets-registry/-/assets-registry-0.73.1.tgz", + "integrity": "sha512-2FgAbU7uKM5SbbW9QptPPZx8N9Ke2L7bsHb+EhAanZjFZunA9PaYtyjUQ1s7HD+zDVqOQIvjkpXSv7Kejd2tqg==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/babel-plugin-codegen": { + "version": "0.73.4", + "resolved": "https://registry.npmjs.org/@react-native/babel-plugin-codegen/-/babel-plugin-codegen-0.73.4.tgz", + "integrity": "sha512-XzRd8MJGo4Zc5KsphDHBYJzS1ryOHg8I2gOZDAUCGcwLFhdyGu1zBNDJYH2GFyDrInn9TzAbRIf3d4O+eltXQQ==", + "dependencies": { + "@react-native/codegen": "0.73.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/babel-preset": { + "version": "0.73.21", + "resolved": "https://registry.npmjs.org/@react-native/babel-preset/-/babel-preset-0.73.21.tgz", + "integrity": "sha512-WlFttNnySKQMeujN09fRmrdWqh46QyJluM5jdtDNrkl/2Hx6N4XeDUGhABvConeK95OidVO7sFFf7sNebVXogA==", + "dependencies": { + "@babel/core": "^7.20.0", + "@babel/plugin-proposal-async-generator-functions": "^7.0.0", + "@babel/plugin-proposal-class-properties": "^7.18.0", + "@babel/plugin-proposal-export-default-from": "^7.0.0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.0", + "@babel/plugin-proposal-numeric-separator": "^7.0.0", + "@babel/plugin-proposal-object-rest-spread": "^7.20.0", + "@babel/plugin-proposal-optional-catch-binding": "^7.0.0", + "@babel/plugin-proposal-optional-chaining": "^7.20.0", + "@babel/plugin-syntax-dynamic-import": "^7.8.0", + "@babel/plugin-syntax-export-default-from": "^7.0.0", + "@babel/plugin-syntax-flow": "^7.18.0", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.0.0", + "@babel/plugin-syntax-optional-chaining": "^7.0.0", + "@babel/plugin-transform-arrow-functions": "^7.0.0", + "@babel/plugin-transform-async-to-generator": "^7.20.0", + "@babel/plugin-transform-block-scoping": "^7.0.0", + "@babel/plugin-transform-classes": "^7.0.0", + "@babel/plugin-transform-computed-properties": "^7.0.0", + "@babel/plugin-transform-destructuring": "^7.20.0", + "@babel/plugin-transform-flow-strip-types": "^7.20.0", + "@babel/plugin-transform-function-name": "^7.0.0", + "@babel/plugin-transform-literals": "^7.0.0", + "@babel/plugin-transform-modules-commonjs": "^7.0.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.0.0", + "@babel/plugin-transform-parameters": "^7.0.0", + "@babel/plugin-transform-private-methods": "^7.22.5", + "@babel/plugin-transform-private-property-in-object": "^7.22.11", + "@babel/plugin-transform-react-display-name": "^7.0.0", + "@babel/plugin-transform-react-jsx": "^7.0.0", + "@babel/plugin-transform-react-jsx-self": "^7.0.0", + "@babel/plugin-transform-react-jsx-source": "^7.0.0", + "@babel/plugin-transform-runtime": "^7.0.0", + "@babel/plugin-transform-shorthand-properties": "^7.0.0", + "@babel/plugin-transform-spread": "^7.0.0", + "@babel/plugin-transform-sticky-regex": "^7.0.0", + "@babel/plugin-transform-typescript": "^7.5.0", + "@babel/plugin-transform-unicode-regex": "^7.0.0", + "@babel/template": "^7.0.0", + "@react-native/babel-plugin-codegen": "0.73.4", + "babel-plugin-transform-flow-enums": "^0.0.2", + "react-refresh": "^0.14.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/@react-native/codegen": { + "version": "0.73.3", + "resolved": "https://registry.npmjs.org/@react-native/codegen/-/codegen-0.73.3.tgz", + "integrity": "sha512-sxslCAAb8kM06vGy9Jyh4TtvjhcP36k/rvj2QE2Jdhdm61KvfafCATSIsOfc0QvnduWFcpXUPvAVyYwuv7PYDg==", + "dependencies": { + "@babel/parser": "^7.20.0", + "flow-parser": "^0.206.0", + "glob": "^7.1.1", + "invariant": "^2.2.4", + "jscodeshift": "^0.14.0", + "mkdirp": "^0.5.1", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@babel/preset-env": "^7.1.6" + } + }, + "node_modules/@react-native/community-cli-plugin": { + "version": "0.73.18", + "resolved": "https://registry.npmjs.org/@react-native/community-cli-plugin/-/community-cli-plugin-0.73.18.tgz", + "integrity": "sha512-RN8piDh/eF+QT6YYmrj3Zd9uiaDsRY/kMT0FYR42j8/M/boE4hs4Xn0u91XzT8CAkU9q/ilyo3wJsXIJo2teww==", + "dependencies": { + "@react-native-community/cli-server-api": "12.3.7", + "@react-native-community/cli-tools": "12.3.7", + "@react-native/dev-middleware": "0.73.8", + "@react-native/metro-babel-transformer": "0.73.15", + "chalk": "^4.0.0", + "execa": "^5.1.1", + "metro": "^0.80.3", + "metro-config": "^0.80.3", + "metro-core": "^0.80.3", + "node-fetch": "^2.2.0", + "readline": "^1.3.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/debugger-frontend": { + "version": "0.73.3", + "resolved": "https://registry.npmjs.org/@react-native/debugger-frontend/-/debugger-frontend-0.73.3.tgz", + "integrity": "sha512-RgEKnWuoo54dh7gQhV7kvzKhXZEhpF9LlMdZolyhGxHsBqZ2gXdibfDlfcARFFifPIiaZ3lXuOVVa4ei+uPgTw==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/dev-middleware": { + "version": "0.73.8", + "resolved": "https://registry.npmjs.org/@react-native/dev-middleware/-/dev-middleware-0.73.8.tgz", + "integrity": "sha512-oph4NamCIxkMfUL/fYtSsE+JbGOnrlawfQ0kKtDQ5xbOjPKotKoXqrs1eGwozNKv7FfQ393stk1by9a6DyASSg==", + "dependencies": { + "@isaacs/ttlcache": "^1.4.1", + "@react-native/debugger-frontend": "0.73.3", + "chrome-launcher": "^0.15.2", + "chromium-edge-launcher": "^1.0.0", + "connect": "^3.6.5", + "debug": "^2.2.0", + "node-fetch": "^2.2.0", + "open": "^7.0.3", + "serve-static": "^1.13.1", + "temp-dir": "^2.0.0", + "ws": "^6.2.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/@react-native/dev-middleware/node_modules/open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "dependencies": { + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@react-native/dev-middleware/node_modules/ws": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", + "dependencies": { + "async-limiter": "~1.0.0" + } + }, + "node_modules/@react-native/gradle-plugin": { + "version": "0.73.4", + "resolved": "https://registry.npmjs.org/@react-native/gradle-plugin/-/gradle-plugin-0.73.4.tgz", + "integrity": "sha512-PMDnbsZa+tD55Ug+W8CfqXiGoGneSSyrBZCMb5JfiB3AFST3Uj5e6lw8SgI/B6SKZF7lG0BhZ6YHZsRZ5MlXmg==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/js-polyfills": { + "version": "0.73.1", + "resolved": "https://registry.npmjs.org/@react-native/js-polyfills/-/js-polyfills-0.73.1.tgz", + "integrity": "sha512-ewMwGcumrilnF87H4jjrnvGZEaPFCAC4ebraEK+CurDDmwST/bIicI4hrOAv+0Z0F7DEK4O4H7r8q9vH7IbN4g==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@react-native/metro-babel-transformer": { + "version": "0.73.15", + "resolved": "https://registry.npmjs.org/@react-native/metro-babel-transformer/-/metro-babel-transformer-0.73.15.tgz", + "integrity": "sha512-LlkSGaXCz+xdxc9819plmpsl4P4gZndoFtpjN3GMBIu6f7TBV0GVbyJAU4GE8fuAWPVSVL5ArOcdkWKSbI1klw==", + "dependencies": { + "@babel/core": "^7.20.0", + "@react-native/babel-preset": "0.73.21", + "hermes-parser": "0.15.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/@react-native/normalize-colors": { + "version": "0.73.2", + "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.73.2.tgz", + "integrity": "sha512-bRBcb2T+I88aG74LMVHaKms2p/T8aQd8+BZ7LuuzXlRfog1bMWWn/C5i0HVuvW4RPtXQYgIlGiXVDy9Ir1So/w==" + }, + "node_modules/@react-native/virtualized-lists": { + "version": "0.73.4", + "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.73.4.tgz", + "integrity": "sha512-HpmLg1FrEiDtrtAbXiwCgXFYyloK/dOIPIuWW3fsqukwJEWAiTzm1nXGJ7xPU5XTHiWZ4sKup5Ebaj8z7iyWog==", + "dependencies": { + "invariant": "^2.2.4", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "react-native": "*" + } + }, + "node_modules/@rollup/plugin-typescript": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-8.3.2.tgz", + "integrity": "sha512-MtgyR5LNHZr3GyN0tM7gNO9D0CS+Y+vflS4v/PHmrX17JCkHUYKvQ5jN5o3cz1YKllM3duXUqu3yOHwMPUxhDg==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "resolve": "^1.17.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "peerDependencies": { + "rollup": "^2.14.0", + "tslib": "*", + "typescript": ">=3.7.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "dev": true, + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@sideway/address": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", + "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" + }, + "node_modules/@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/node": { + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.1.0.tgz", + "integrity": "sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw==", + "dependencies": { + "undici-types": "~6.13.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==" + }, + "node_modules/@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "dev": true, + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/anser": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz", + "integrity": "sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==" + }, + "node_modules/ansi-fragments": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ansi-fragments/-/ansi-fragments-0.2.1.tgz", + "integrity": "sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==", + "dependencies": { + "colorette": "^1.0.7", + "slice-ansi": "^2.0.0", + "strip-ansi": "^5.0.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/appdirsjs": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/appdirsjs/-/appdirsjs-1.2.7.tgz", + "integrity": "sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw==" + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" + }, + "node_modules/ast-types": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.15.2.tgz", + "integrity": "sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/async-limiter": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" + }, + "node_modules/babel-core": { + "version": "7.0.0-bridge.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", + "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==", + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", + "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.2", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", + "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz", + "integrity": "sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-transform-flow-enums": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz", + "integrity": "sha512-g4aaCrDDOsWjbm0PUUeVnkcVd6AKJsVc/MbnPhEotEpkeJQP6b8nzewohQi7+QS8UyPehOhGWn0nOwjvWpmMvQ==", + "dependencies": { + "@babel/plugin-syntax-flow": "^7.12.1" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base-64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", + "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", + "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001646", + "electron-to-chromium": "^1.5.4", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/caller-callsite": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", + "integrity": "sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==", + "dependencies": { + "callsites": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/caller-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", + "integrity": "sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==", + "dependencies": { + "caller-callsite": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001651", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz", + "integrity": "sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chrome-launcher": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.15.2.tgz", + "integrity": "sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==", + "dependencies": { + "@types/node": "*", + "escape-string-regexp": "^4.0.0", + "is-wsl": "^2.2.0", + "lighthouse-logger": "^1.0.0" + }, + "bin": { + "print-chrome-path": "bin/print-chrome-path.js" + }, + "engines": { + "node": ">=12.13.0" + } + }, + "node_modules/chromium-edge-launcher": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/chromium-edge-launcher/-/chromium-edge-launcher-1.0.0.tgz", + "integrity": "sha512-pgtgjNKZ7i5U++1g1PWv75umkHvhVTDOQIZ+sjeUX9483S7Y6MUvO0lrd7ShGlQlFHMN4SwKTCq/X8hWrbv2KA==", + "dependencies": { + "@types/node": "*", + "escape-string-regexp": "^4.0.0", + "is-wsl": "^2.2.0", + "lighthouse-logger": "^1.0.0", + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + } + }, + "node_modules/chromium-edge-launcher/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/colorette": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", + "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" + }, + "node_modules/command-exists": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", + "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==" + }, + "node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/connect": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", + "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", + "dependencies": { + "debug": "2.6.9", + "finalhandler": "1.1.2", + "parseurl": "~1.3.3", + "utils-merge": "1.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/connect/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/connect/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/content-disposition": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", + "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + }, + "node_modules/core-js-compat": { + "version": "3.38.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.38.0.tgz", + "integrity": "sha512-75LAicdLa4OJVwFxFbQR3NdnZjNgX6ILpVcVzcC4T2smerB5lELMrJQQQoWV6TiuC/vlaFqgU2tKQx9w5s0e0A==", + "dependencies": { + "browserslist": "^4.23.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/cosmiconfig": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", + "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", + "dependencies": { + "import-fresh": "^2.0.0", + "is-directory": "^0.3.1", + "js-yaml": "^3.13.1", + "parse-json": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/dayjs": { + "version": "1.11.12", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.12.tgz", + "integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==" + }, + "node_modules/debug": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/denodeify": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz", + "integrity": "sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg==" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/deprecated-react-native-prop-types": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/deprecated-react-native-prop-types/-/deprecated-react-native-prop-types-5.0.0.tgz", + "integrity": "sha512-cIK8KYiiGVOFsKdPMmm1L3tA/Gl+JopXL6F5+C7x39MyPsQYnP57Im/D6bNUzcborD7fcMwiwZqcBdBXXZucYQ==", + "dependencies": { + "@react-native/normalize-colors": "^0.73.0", + "invariant": "^2.2.4", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.5.tgz", + "integrity": "sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/envinfo": { + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.13.0.tgz", + "integrity": "sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==", + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/errorhandler": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.5.1.tgz", + "integrity": "sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A==", + "dependencies": { + "accepts": "~1.3.7", + "escape-html": "~1.0.3" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/exponential-backoff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", + "integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==" + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/fast-url-parser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", + "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", + "dev": true, + "dependencies": { + "punycode": "^1.3.2" + } + }, + "node_modules/fast-xml-parser": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", + "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + } + ], + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flow-enums-runtime": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/flow-enums-runtime/-/flow-enums-runtime-0.0.6.tgz", + "integrity": "sha512-3PYnM29RFXwvAN6Pc/scUfkI7RwhQ/xqyLUyPNlXUp9S40zI8nup9tUSrTLSVnWGBN38FNiGWbwZOB6uR4OGdw==" + }, + "node_modules/flow-parser": { + "version": "0.206.0", + "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.206.0.tgz", + "integrity": "sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hermes-estree": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.15.0.tgz", + "integrity": "sha512-lLYvAd+6BnOqWdnNbP/Q8xfl8LOGw4wVjfrNd9Gt8eoFzhNBRVD95n4l2ksfMVOoxuVyegs85g83KS9QOsxbVQ==" + }, + "node_modules/hermes-parser": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.15.0.tgz", + "integrity": "sha512-Q1uks5rjZlE9RjMMjSUCkGrEIPI5pKJILeCtK1VmTj7U4pf3wVPoo+cxfu+s4cBAPy2JzikIIdCZgBoR6x7U1Q==", + "dependencies": { + "hermes-estree": "0.15.0" + } + }, + "node_modules/hermes-profile-transformer": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz", + "integrity": "sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==", + "dependencies": { + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-errors/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/image-size": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.1.1.tgz", + "integrity": "sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ==", + "dependencies": { + "queue": "6.0.2" + }, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=16.x" + } + }, + "node_modules/import-fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", + "integrity": "sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==", + "dependencies": { + "caller-path": "^2.0.0", + "resolve-from": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-core-module": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz", + "integrity": "sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/joi": { + "version": "17.13.3", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz", + "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==", + "dependencies": { + "@hapi/hoek": "^9.3.0", + "@hapi/topo": "^5.1.0", + "@sideway/address": "^4.1.5", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "node_modules/jpeg-js": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsc-android": { + "version": "250231.0.0", + "resolved": "https://registry.npmjs.org/jsc-android/-/jsc-android-250231.0.0.tgz", + "integrity": "sha512-rS46PvsjYmdmuz1OAWXY/1kCYG7pnf1TBqeTiOJr1iDz7s5DLxxC9n/ZMknLDxzYzNVfI7R95MH10emSSG1Wuw==" + }, + "node_modules/jsc-safe-url": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/jsc-safe-url/-/jsc-safe-url-0.2.4.tgz", + "integrity": "sha512-0wM3YBWtYePOjfyXQH5MWQ8H7sdk5EXSwZvmSLKk2RboVQ2Bu239jycHDz5J/8Blf3K0Qnoy2b6xD+z10MFB+Q==" + }, + "node_modules/jscodeshift": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.14.0.tgz", + "integrity": "sha512-7eCC1knD7bLUPuSCwXsMZUH51O8jIcoVyKtI6P0XM0IVzlGjckPy3FIwQlorzbN0Sg79oK+RlohN32Mqf/lrYA==", + "dependencies": { + "@babel/core": "^7.13.16", + "@babel/parser": "^7.13.16", + "@babel/plugin-proposal-class-properties": "^7.13.0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8", + "@babel/plugin-proposal-optional-chaining": "^7.13.12", + "@babel/plugin-transform-modules-commonjs": "^7.13.8", + "@babel/preset-flow": "^7.13.13", + "@babel/preset-typescript": "^7.13.0", + "@babel/register": "^7.13.16", + "babel-core": "^7.0.0-bridge.0", + "chalk": "^4.1.2", + "flow-parser": "0.*", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.4", + "neo-async": "^2.5.0", + "node-dir": "^0.1.17", + "recast": "^0.21.0", + "temp": "^0.8.4", + "write-file-atomic": "^2.3.0" + }, + "bin": { + "jscodeshift": "bin/jscodeshift.js" + }, + "peerDependencies": { + "@babel/preset-env": "^7.1.6" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/lighthouse-logger": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.4.2.tgz", + "integrity": "sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==", + "dependencies": { + "debug": "^2.6.9", + "marky": "^1.2.2" + } + }, + "node_modules/lighthouse-logger/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/lighthouse-logger/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/logkitty": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/logkitty/-/logkitty-0.7.1.tgz", + "integrity": "sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==", + "dependencies": { + "ansi-fragments": "^0.2.1", + "dayjs": "^1.8.15", + "yargs": "^15.1.0" + }, + "bin": { + "logkitty": "bin/logkitty.js" + } + }, + "node_modules/logkitty/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/logkitty/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/logkitty/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/logkitty/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/logkitty/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "node_modules/logkitty/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/logkitty/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/marky": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.5.tgz", + "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==" + }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/metro": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro/-/metro-0.80.10.tgz", + "integrity": "sha512-FDPi0X7wpafmDREXe1lgg3WzETxtXh6Kpq8+IwsG35R2tMyp2kFIqDdshdohuvDt1J/qDARcEPq7V/jElTb1kA==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@babel/core": "^7.20.0", + "@babel/generator": "^7.20.0", + "@babel/parser": "^7.20.0", + "@babel/template": "^7.0.0", + "@babel/traverse": "^7.20.0", + "@babel/types": "^7.20.0", + "accepts": "^1.3.7", + "chalk": "^4.0.0", + "ci-info": "^2.0.0", + "connect": "^3.6.5", + "debug": "^2.2.0", + "denodeify": "^1.2.1", + "error-stack-parser": "^2.0.6", + "flow-enums-runtime": "^0.0.6", + "graceful-fs": "^4.2.4", + "hermes-parser": "0.23.0", + "image-size": "^1.0.2", + "invariant": "^2.2.4", + "jest-worker": "^29.6.3", + "jsc-safe-url": "^0.2.2", + "lodash.throttle": "^4.1.1", + "metro-babel-transformer": "0.80.10", + "metro-cache": "0.80.10", + "metro-cache-key": "0.80.10", + "metro-config": "0.80.10", + "metro-core": "0.80.10", + "metro-file-map": "0.80.10", + "metro-resolver": "0.80.10", + "metro-runtime": "0.80.10", + "metro-source-map": "0.80.10", + "metro-symbolicate": "0.80.10", + "metro-transform-plugins": "0.80.10", + "metro-transform-worker": "0.80.10", + "mime-types": "^2.1.27", + "node-fetch": "^2.2.0", + "nullthrows": "^1.1.1", + "serialize-error": "^2.1.0", + "source-map": "^0.5.6", + "strip-ansi": "^6.0.0", + "throat": "^5.0.0", + "ws": "^7.5.10", + "yargs": "^17.6.2" + }, + "bin": { + "metro": "src/cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-babel-transformer": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-babel-transformer/-/metro-babel-transformer-0.80.10.tgz", + "integrity": "sha512-GXHueUzgzcazfzORDxDzWS9jVVRV6u+cR6TGvHOfGdfLzJCj7/D0PretLfyq+MwN20twHxLW+BUXkoaB8sCQBg==", + "dependencies": { + "@babel/core": "^7.20.0", + "flow-enums-runtime": "^0.0.6", + "hermes-parser": "0.23.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-babel-transformer/node_modules/hermes-estree": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.23.0.tgz", + "integrity": "sha512-Rkp0PNLGpORw4ktsttkVbpYJbrYKS3hAnkxu8D9nvQi6LvSbuPa+tYw/t2u3Gjc35lYd/k95YkjqyTcN4zspag==" + }, + "node_modules/metro-babel-transformer/node_modules/hermes-parser": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.23.0.tgz", + "integrity": "sha512-xLwM4ylfHGwrm+2qXfO1JT/fnqEDGSnpS/9hQ4VLtqTexSviu2ZpBgz07U8jVtndq67qdb/ps0qvaWDZ3fkTyg==", + "dependencies": { + "hermes-estree": "0.23.0" + } + }, + "node_modules/metro-cache": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-cache/-/metro-cache-0.80.10.tgz", + "integrity": "sha512-8CBtDJwMguIE5RvV3PU1QtxUG8oSSX54mIuAbRZmcQ0MYiOl9JdrMd4JCBvIyhiZLoSStph425SMyCSnjtJsdA==", + "dependencies": { + "exponential-backoff": "^3.1.1", + "flow-enums-runtime": "^0.0.6", + "metro-core": "0.80.10" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-cache-key": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-cache-key/-/metro-cache-key-0.80.10.tgz", + "integrity": "sha512-57qBhO3zQfoU/hP4ZlLW5hVej2jVfBX6B4NcSfMj4LgDPL3YknWg80IJBxzQfjQY/m+fmMLmPy8aUMHzUp/guA==", + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-config": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-config/-/metro-config-0.80.10.tgz", + "integrity": "sha512-0GYAw0LkmGbmA81FepKQepL1KU/85Cyv7sAiWm6QWeV6AcVCpsKg6jGLqGHJ0LLPL60rWzA4TV1DQAlzdJAEtA==", + "dependencies": { + "connect": "^3.6.5", + "cosmiconfig": "^5.0.5", + "flow-enums-runtime": "^0.0.6", + "jest-validate": "^29.6.3", + "metro": "0.80.10", + "metro-cache": "0.80.10", + "metro-core": "0.80.10", + "metro-runtime": "0.80.10" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-core": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-core/-/metro-core-0.80.10.tgz", + "integrity": "sha512-nwBB6HbpGlNsZMuzxVqxqGIOsn5F3JKpsp8PziS7Z4mV8a/jA1d44mVOgYmDa2q5WlH5iJfRIIhdz24XRNDlLA==", + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "lodash.throttle": "^4.1.1", + "metro-resolver": "0.80.10" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-file-map": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-file-map/-/metro-file-map-0.80.10.tgz", + "integrity": "sha512-ytsUq8coneaN7ZCVk1IogojcGhLIbzWyiI2dNmw2nnBgV/0A+M5WaTTgZ6dJEz3dzjObPryDnkqWPvIGLCPtiw==", + "dependencies": { + "anymatch": "^3.0.3", + "debug": "^2.2.0", + "fb-watchman": "^2.0.0", + "flow-enums-runtime": "^0.0.6", + "graceful-fs": "^4.2.4", + "invariant": "^2.2.4", + "jest-worker": "^29.6.3", + "micromatch": "^4.0.4", + "node-abort-controller": "^3.1.1", + "nullthrows": "^1.1.1", + "walker": "^1.0.7" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/metro-file-map/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/metro-file-map/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/metro-minify-terser": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-minify-terser/-/metro-minify-terser-0.80.10.tgz", + "integrity": "sha512-Xyv9pEYpOsAerrld7cSLIcnCCpv8ItwysOmTA+AKf1q4KyE9cxrH2O2SA0FzMCkPzwxzBWmXwHUr+A89BpEM6g==", + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "terser": "^5.15.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-resolver": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-resolver/-/metro-resolver-0.80.10.tgz", + "integrity": "sha512-EYC5CL7f+bSzrqdk1bylKqFNGabfiI5PDctxoPx70jFt89Jz+ThcOscENog8Jb4LEQFG6GkOYlwmPpsi7kx3QA==", + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-runtime": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-runtime/-/metro-runtime-0.80.10.tgz", + "integrity": "sha512-Xh0N589ZmSIgJYAM+oYwlzTXEHfASZac9TYPCNbvjNTn0EHKqpoJ/+Im5G3MZT4oZzYv4YnvzRtjqS5k0tK94A==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-source-map": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-source-map/-/metro-source-map-0.80.10.tgz", + "integrity": "sha512-EyZswqJW8Uukv/HcQr6K19vkMXW1nzHAZPWJSEyJFKIbgp708QfRZ6vnZGmrtFxeJEaFdNup4bGnu8/mIOYlyA==", + "dependencies": { + "@babel/traverse": "^7.20.0", + "@babel/types": "^7.20.0", + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "metro-symbolicate": "0.80.10", + "nullthrows": "^1.1.1", + "ob1": "0.80.10", + "source-map": "^0.5.6", + "vlq": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-source-map/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/metro-symbolicate": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-symbolicate/-/metro-symbolicate-0.80.10.tgz", + "integrity": "sha512-qAoVUoSxpfZ2DwZV7IdnQGXCSsf2cAUExUcZyuCqGlY5kaWBb0mx2BL/xbMFDJ4wBp3sVvSBPtK/rt4J7a0xBA==", + "dependencies": { + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "metro-source-map": "0.80.10", + "nullthrows": "^1.1.1", + "source-map": "^0.5.6", + "through2": "^2.0.1", + "vlq": "^1.0.0" + }, + "bin": { + "metro-symbolicate": "src/index.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-symbolicate/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/metro-transform-plugins": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-transform-plugins/-/metro-transform-plugins-0.80.10.tgz", + "integrity": "sha512-leAx9gtA+2MHLsCeWK6XTLBbv2fBnNFu/QiYhWzMq8HsOAP4u1xQAU0tSgPs8+1vYO34Plyn79xTLUtQCRSSUQ==", + "dependencies": { + "@babel/core": "^7.20.0", + "@babel/generator": "^7.20.0", + "@babel/template": "^7.0.0", + "@babel/traverse": "^7.20.0", + "flow-enums-runtime": "^0.0.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro-transform-worker": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/metro-transform-worker/-/metro-transform-worker-0.80.10.tgz", + "integrity": "sha512-zNfNLD8Rz99U+JdOTqtF2o7iTjcDMMYdVS90z6+81Tzd2D0lDWVpls7R1hadS6xwM+ymgXFQTjM6V6wFoZaC0g==", + "dependencies": { + "@babel/core": "^7.20.0", + "@babel/generator": "^7.20.0", + "@babel/parser": "^7.20.0", + "@babel/types": "^7.20.0", + "flow-enums-runtime": "^0.0.6", + "metro": "0.80.10", + "metro-babel-transformer": "0.80.10", + "metro-cache": "0.80.10", + "metro-cache-key": "0.80.10", + "metro-minify-terser": "0.80.10", + "metro-source-map": "0.80.10", + "metro-transform-plugins": "0.80.10", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/metro/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" + }, + "node_modules/metro/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/metro/node_modules/hermes-estree": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.23.0.tgz", + "integrity": "sha512-Rkp0PNLGpORw4ktsttkVbpYJbrYKS3hAnkxu8D9nvQi6LvSbuPa+tYw/t2u3Gjc35lYd/k95YkjqyTcN4zspag==" + }, + "node_modules/metro/node_modules/hermes-parser": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.23.0.tgz", + "integrity": "sha512-xLwM4ylfHGwrm+2qXfO1JT/fnqEDGSnpS/9hQ4VLtqTexSviu2ZpBgz07U8jVtndq67qdb/ps0qvaWDZ3fkTyg==", + "dependencies": { + "hermes-estree": "0.23.0" + } + }, + "node_modules/metro/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/metro/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/metro/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/micromatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", + "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "node_modules/nocache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz", + "integrity": "sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/node-abort-controller": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.1.1.tgz", + "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==" + }, + "node_modules/node-dir": { + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz", + "integrity": "sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==", + "dependencies": { + "minimatch": "^3.0.2" + }, + "engines": { + "node": ">= 0.10.5" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" + }, + "node_modules/node-releases": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==" + }, + "node_modules/node-stream-zip": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", + "integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==", + "engines": { + "node": ">=0.12.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/antelle" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nullthrows": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", + "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==" + }, + "node_modules/ob1": { + "version": "0.80.10", + "resolved": "https://registry.npmjs.org/ob1/-/ob1-0.80.10.tgz", + "integrity": "sha512-dJHyB0S6JkMorUSfSGcYGkkg9kmq3qDUu3ygZUKIfkr47XOPuG35r2Sk6tbwtHXbdKIXmcMvM8DF2CwgdyaHfQ==", + "dependencies": { + "flow-enums-runtime": "^0.0.6" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/open/-/open-6.4.0.tgz", + "integrity": "sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==", + "dependencies": { + "is-wsl": "^1.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/open/node_modules/is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", + "dev": true + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-to-regexp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", + "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==", + "dev": true + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "engines": { + "node": ">=6" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-dir/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/playwright": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.15.0.tgz", + "integrity": "sha512-JtagFVjNvccP1rIixHB/4KbR+BzMTJLty6mo71YLatvJR9ZH+PX8DLlhw1KDdIH2YGMSQGf2ihh4KAp9tsklxQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "commander": "^6.1.0", + "debug": "^4.1.1", + "extract-zip": "^2.0.1", + "https-proxy-agent": "^5.0.0", + "jpeg-js": "^0.4.2", + "mime": "^2.4.6", + "pngjs": "^5.0.0", + "progress": "^2.0.3", + "proper-lockfile": "^4.1.1", + "proxy-from-env": "^1.1.0", + "rimraf": "^3.0.2", + "stack-utils": "^2.0.3", + "ws": "^7.4.6", + "yazl": "^2.5.1" + }, + "bin": { + "playwright": "lib/cli/cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/pretty-format/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/pretty-format/node_modules/@types/yargs": { + "version": "15.0.19", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.19.tgz", + "integrity": "sha512-2XUaGVmyQjgyAZldf0D0c14vvo/yv0MhQBSTJcejMMaitsn3nxCB6TmH4G0ZQf+uxROOa9mpanoSm8h6SG/1ZA==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/promise": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", + "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "dependencies": { + "asap": "~2.0.6" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + }, + "node_modules/queue": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", + "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", + "dependencies": { + "inherits": "~2.0.3" + } + }, + "node_modules/range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-devtools-core": { + "version": "4.28.5", + "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.28.5.tgz", + "integrity": "sha512-cq/o30z9W2Wb4rzBefjv5fBalHU0rJGZCHAkf/RHSBWSSYwh8PlQTqqOJmgIIbBtpj27T6FIPXeomIjZtCNVqA==", + "dependencies": { + "shell-quote": "^1.6.1", + "ws": "^7" + } + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "node_modules/react-native": { + "version": "0.73.9", + "resolved": "https://registry.npmjs.org/react-native/-/react-native-0.73.9.tgz", + "integrity": "sha512-U9Lc6GMdANG2/9uREZe/UTQEzdVWw6NLRYxBYaFWNqiu/qZAmZ0aXSNcVF6hWw/95Ex0IGQx6EVMT4iPmuSNQw==", + "dependencies": { + "@jest/create-cache-key-function": "^29.6.3", + "@react-native-community/cli": "12.3.7", + "@react-native-community/cli-platform-android": "12.3.7", + "@react-native-community/cli-platform-ios": "12.3.7", + "@react-native/assets-registry": "0.73.1", + "@react-native/codegen": "0.73.3", + "@react-native/community-cli-plugin": "0.73.18", + "@react-native/gradle-plugin": "0.73.4", + "@react-native/js-polyfills": "0.73.1", + "@react-native/normalize-colors": "0.73.2", + "@react-native/virtualized-lists": "0.73.4", + "abort-controller": "^3.0.0", + "anser": "^1.4.9", + "ansi-regex": "^5.0.0", + "base64-js": "^1.5.1", + "chalk": "^4.0.0", + "deprecated-react-native-prop-types": "^5.0.0", + "event-target-shim": "^5.0.1", + "flow-enums-runtime": "^0.0.6", + "invariant": "^2.2.4", + "jest-environment-node": "^29.6.3", + "jsc-android": "^250231.0.0", + "memoize-one": "^5.0.0", + "metro-runtime": "^0.80.3", + "metro-source-map": "^0.80.3", + "mkdirp": "^0.5.1", + "nullthrows": "^1.1.1", + "pretty-format": "^26.5.2", + "promise": "^8.3.0", + "react-devtools-core": "^4.27.7", + "react-refresh": "^0.14.0", + "react-shallow-renderer": "^16.15.0", + "regenerator-runtime": "^0.13.2", + "scheduler": "0.24.0-canary-efb381bbf-20230505", + "stacktrace-parser": "^0.1.10", + "whatwg-fetch": "^3.0.0", + "ws": "^6.2.2", + "yargs": "^17.6.2" + }, + "bin": { + "react-native": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "react": "18.2.0" + } + }, + "node_modules/react-native-fs": { + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/react-native-fs/-/react-native-fs-2.20.0.tgz", + "integrity": "sha512-VkTBzs7fIDUiy/XajOSNk0XazFE9l+QlMAce7lGuebZcag5CnjszB+u4BdqzwaQOdcYb5wsJIsqq4kxInIRpJQ==", + "dependencies": { + "base-64": "^0.1.0", + "utf8": "^3.0.0" + }, + "peerDependencies": { + "react-native": "*", + "react-native-windows": "*" + }, + "peerDependenciesMeta": { + "react-native-windows": { + "optional": true + } + } + }, + "node_modules/react-native/node_modules/ws": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", + "dependencies": { + "async-limiter": "~1.0.0" + } + }, + "node_modules/react-refresh": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", + "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-shallow-renderer": { + "version": "16.15.0", + "resolved": "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz", + "integrity": "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==", + "dependencies": { + "object-assign": "^4.1.1", + "react-is": "^16.12.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependencies": { + "react": "^16.0.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readline": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz", + "integrity": "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==" + }, + "node_modules/recast": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.21.5.tgz", + "integrity": "sha512-hjMmLaUXAm1hIuTqOdeYObMslq/q+Xff6QE3Y2P+uoHAg2nmVlLBps2hzh1UJDdMtDTMXOFewK6ky51JQIeECg==", + "dependencies": { + "ast-types": "0.15.2", + "esprima": "~4.0.0", + "source-map": "~0.6.1", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/recast/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", + "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "node_modules/regenerator-transform": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", + "peer": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "2.75.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.4.tgz", + "integrity": "sha512-JgZiJMJkKImMZJ8ZY1zU80Z2bA/TvrL/7D9qcBCrfl2bP+HUaIw0QHUroB4E3gBpFl6CRFM1YxGbuYGtdAswbQ==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/scheduler": { + "version": "0.24.0-canary-efb381bbf-20230505", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-canary-efb381bbf-20230505.tgz", + "integrity": "sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/send/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/send/node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/send/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serialize-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", + "integrity": "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/serve-handler": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.0.tgz", + "integrity": "sha512-63N075Tn3PsFYcu0NVV7tb367UbiW3gnC+/50ohL4oqOhAG6bmbaWqiRcXQgbzqc0ALBjSAzg7VTfa0Qw4E3hA==", + "dev": true, + "dependencies": { + "bytes": "3.0.0", + "content-disposition": "0.5.2", + "fast-url-parser": "1.1.3", + "mime-types": "2.1.18", + "minimatch": "3.0.4", + "path-is-inside": "1.0.2", + "path-to-regexp": "2.2.1", + "range-parser": "1.2.0" + } + }, + "node_modules/serve-handler/node_modules/mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-handler/node_modules/mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dev": true, + "dependencies": { + "mime-db": "~1.33.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-handler/node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", + "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", + "dependencies": { + "ansi-styles": "^3.2.0", + "astral-regex": "^1.0.0", + "is-fullwidth-code-point": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" + }, + "node_modules/stacktrace-parser": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", + "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", + "dependencies": { + "type-fest": "^0.7.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" + }, + "node_modules/sudo-prompt": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz", + "integrity": "sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==" + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/temp": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz", + "integrity": "sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==", + "dependencies": { + "rimraf": "~2.6.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/temp/node_modules/rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/terser": { + "version": "5.31.5", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.5.tgz", + "integrity": "sha512-YPmas0L0rE1UyLL/llTWA0SiDOqIcAQYLeUj7cJYzXHlRTAnMSg9pPe4VJ5PlKvTrPQsdVFuiRiwyeNlYgwh2Q==", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==" + }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", + "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/typescript": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.2.tgz", + "integrity": "sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/undici-types": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", + "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", + "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", + "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vlq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/vlq/-/vlq-1.0.1.tgz", + "integrity": "sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==" + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-fetch": { + "version": "3.6.20", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/write-file-atomic": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", + "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", + "dependencies": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, + "node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "node_modules/yaml": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.0.tgz", + "integrity": "sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/yazl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", + "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index 3873c5f..dd51d90 100644 --- a/package.json +++ b/package.json @@ -33,11 +33,11 @@ "typescript": "4.7.2" }, "dependencies": { - "expo-file-system": "16.0.8", - "react-native": "^0.73.6" + "react-native": "^0.73.6", + "react-native-fs": "^2.20.0" }, "peerDependencies": { - "expo": "*", + "react-native-fs": "^2.20.0", "react-native": "*" } } diff --git a/src/services/account.ts b/src/services/account.ts index 57b7544..e80c043 100644 --- a/src/services/account.ts +++ b/src/services/account.ts @@ -1,1560 +1,1895 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; -import { AuthenticatorType } from '../enums/authenticator-type'; -import { AuthenticationFactor } from '../enums/authentication-factor'; -import { OAuthProvider } from '../enums/o-auth-provider'; +import { Platform } from "react-native"; + +import { AuthenticatorType } from "../enums/authenticator-type"; +import { AuthenticationFactor } from "../enums/authentication-factor"; +import { OAuthProvider } from "../enums/o-auth-provider"; export class Account extends Service { + constructor(client: Client) { + super(client); + } + + /** + * Get account + * + * Get the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async get(): Promise< + Models.User + > { + const apiPath = "/account"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create account + * + * Use this endpoint to allow a new user to register a new account in your + * project. After the user registration completes successfully, you can use + * the + * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) + * route to start verifying the user email address. To allow the new user to + * login to their new account, you need to create a new [account + * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession). + * + * @param {string} userId + * @param {string} email + * @param {string} password + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + async create( + userId: string, + email: string, + password: string, + name?: string + ): Promise> { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + + const apiPath = "/account"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof password !== "undefined") { + payload["password"] = password; + } + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update email + * + * Update currently logged in user account email address. After changing user + * address, the user confirmation status will get reset. A new confirmation + * email is not sent automatically however you can use the send confirmation + * email endpoint again to send the confirmation email. For security measures, + * user password is required to complete this request. + * This endpoint can also be used to convert an anonymous account to a normal + * one, by passing an email address and a new password. + * + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateEmail( + email: string, + password: string + ): Promise> { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + + const apiPath = "/account/email"; + const payload: Payload = {}; + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof password !== "undefined") { + payload["password"] = password; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List Identities + * + * Get the list of identities for the currently logged in user. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + async listIdentities(queries?: string[]): Promise { + const apiPath = "/account/identities"; + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete identity + * + * Delete an identity by its unique ID. + * + * @param {string} identityId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteIdentity(identityId: string): Promise<{}> { + if (typeof identityId === "undefined") { + throw new AppwriteException('Missing required parameter: "identityId"'); + } + + const apiPath = "/account/identities/{identityId}".replace( + "{identityId}", + identityId + ); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create JWT + * + * Use this endpoint to create a JSON Web Token. You can use the resulting JWT + * to authenticate on behalf of the current user when working with the + * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes + * from its creation and will be invalid if the user will logout in that time + * frame. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async createJWT(): Promise { + const apiPath = "/account/jwt"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List logs + * + * Get the list of latest security activity logs for the currently logged in + * user. Each log returns user IP address, location and date and time of log. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + async listLogs(queries?: string[]): Promise { + const apiPath = "/account/logs"; + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update MFA + * + * Enable or disable MFA on an account. + * + * @param {boolean} mfa + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMFA( + mfa: boolean + ): Promise> { + if (typeof mfa === "undefined") { + throw new AppwriteException('Missing required parameter: "mfa"'); + } + + const apiPath = "/account/mfa"; + const payload: Payload = {}; + + if (typeof mfa !== "undefined") { + payload["mfa"] = mfa; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Add Authenticator + * + * Add an authenticator app to be used as an MFA factor. Verify the + * authenticator using the [verify + * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) + * method. + * + * @param {AuthenticatorType} type + * @throws {AppwriteException} + * @returns {Promise} + */ + async createMfaAuthenticator( + type: AuthenticatorType + ): Promise { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + + const apiPath = "/account/mfa/authenticators/{type}".replace( + "{type}", + type + ); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Verify Authenticator + * + * Verify an authenticator app after adding it using the [add + * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) + * method. add + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMfaAuthenticator( + type: AuthenticatorType, + otp: string + ): Promise> { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + + const apiPath = "/account/mfa/authenticators/{type}".replace( + "{type}", + type + ); + const payload: Payload = {}; + + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete Authenticator + * + * Delete an authenticator for a user by ID. + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteMfaAuthenticator( + type: AuthenticatorType, + otp: string + ): Promise<{}> { + if (typeof type === "undefined") { + throw new AppwriteException('Missing required parameter: "type"'); + } + + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + + const apiPath = "/account/mfa/authenticators/{type}".replace( + "{type}", + type + ); + const payload: Payload = {}; + + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create 2FA Challenge + * + * Begin the process of MFA verification after sign-in. Finish the flow with + * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) + * method. + * + * @param {AuthenticationFactor} factor + * @throws {AppwriteException} + * @returns {Promise} + */ + async createMfaChallenge( + factor: AuthenticationFactor + ): Promise { + if (typeof factor === "undefined") { + throw new AppwriteException('Missing required parameter: "factor"'); + } + + const apiPath = "/account/mfa/challenge"; + const payload: Payload = {}; + + if (typeof factor !== "undefined") { + payload["factor"] = factor; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create MFA Challenge (confirmation) + * + * Complete the MFA challenge by providing the one-time password. Finish the + * process of MFA verification by providing the one-time password. To begin + * the flow, use + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @param {string} challengeId + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> { + if (typeof challengeId === "undefined") { + throw new AppwriteException('Missing required parameter: "challengeId"'); + } + + if (typeof otp === "undefined") { + throw new AppwriteException('Missing required parameter: "otp"'); + } + + const apiPath = "/account/mfa/challenge"; + const payload: Payload = {}; + + if (typeof challengeId !== "undefined") { + payload["challengeId"] = challengeId; + } + + if (typeof otp !== "undefined") { + payload["otp"] = otp; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List Factors + * + * List the factors available on the account to be used as a MFA challange. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listMfaFactors(): Promise { + const apiPath = "/account/mfa/factors"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get MFA Recovery Codes + * + * Get recovery codes that can be used as backup for MFA flow. Before getting + * codes, they must be generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to read recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async getMfaRecoveryCodes(): Promise { + const apiPath = "/account/mfa/recovery-codes"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create MFA Recovery Codes + * + * Generate recovery codes as backup for MFA flow. It's recommended to + * generate and show then immediately after user successfully adds their + * authehticator. Recovery codes can be used as a MFA verification type in + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async createMfaRecoveryCodes(): Promise { + const apiPath = "/account/mfa/recovery-codes"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Regenerate MFA Recovery Codes + * + * Regenerate recovery codes that can be used as backup for MFA flow. Before + * regenerating codes, they must be first generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to regenreate recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMfaRecoveryCodes(): Promise { + const apiPath = "/account/mfa/recovery-codes"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update name + * + * Update currently logged in user account name. + * + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateName( + name: string + ): Promise> { + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + + const apiPath = "/account/name"; + const payload: Payload = {}; + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update password + * + * Update currently logged in user password. For validation, user is required + * to pass in the new password, and the old password. For users created with + * OAuth, Team Invites and Magic URL, oldPassword is optional. + * + * @param {string} password + * @param {string} oldPassword + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePassword( + password: string, + oldPassword?: string + ): Promise> { + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + + const apiPath = "/account/password"; + const payload: Payload = {}; + + if (typeof password !== "undefined") { + payload["password"] = password; + } + + if (typeof oldPassword !== "undefined") { + payload["oldPassword"] = oldPassword; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update phone + * + * Update the currently logged in user's phone number. After updating the + * phone number, the phone verification status will be reset. A confirmation + * SMS is not sent automatically, however you can use the [POST + * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) + * endpoint to send a confirmation SMS. + * + * @param {string} phone + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePhone( + phone: string, + password: string + ): Promise> { + if (typeof phone === "undefined") { + throw new AppwriteException('Missing required parameter: "phone"'); + } + + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + + const apiPath = "/account/phone"; + const payload: Payload = {}; + + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + + if (typeof password !== "undefined") { + payload["password"] = password; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get account preferences + * + * Get the preferences as a key-value object for the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async getPrefs< + Preferences extends Models.Preferences + >(): Promise { + const apiPath = "/account/prefs"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update preferences + * + * Update currently logged in user account preferences. The object you pass is + * stored as is, and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws error if exceeded. + * + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePrefs( + prefs: object + ): Promise> { + if (typeof prefs === "undefined") { + throw new AppwriteException('Missing required parameter: "prefs"'); + } + + const apiPath = "/account/prefs"; + const payload: Payload = {}; + + if (typeof prefs !== "undefined") { + payload["prefs"] = prefs; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create password recovery + * + * Sends the user an email with a temporary secret key for password reset. + * When the user clicks the confirmation link he is redirected back to your + * app password reset URL with the secret key and email address values + * attached to the URL query string. Use the query string params to submit a + * request to the [PUT + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) + * endpoint to complete the process. The verification link sent to the user's + * email address is valid for 1 hour. + * + * @param {string} email + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + async createRecovery(email: string, url: string): Promise { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + + const apiPath = "/account/recovery"; + const payload: Payload = {}; + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof url !== "undefined") { + payload["url"] = url; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create password recovery (confirmation) + * + * Use this endpoint to complete the user account password reset. Both the + * **userId** and **secret** arguments will be passed as query parameters to + * the redirect URL you have provided when sending your request to the [POST + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) + * endpoint. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * @param {string} userId + * @param {string} secret + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateRecovery( + userId: string, + secret: string, + password: string + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + + const apiPath = "/account/recovery"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + + if (typeof password !== "undefined") { + payload["password"] = password; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List sessions + * + * Get the list of active sessions across different devices for the currently + * logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listSessions(): Promise { + const apiPath = "/account/sessions"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete sessions + * + * Delete all sessions from the user account and remove any sessions cookies + * from the end client. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteSessions(): Promise<{}> { + const apiPath = "/account/sessions"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create anonymous session + * + * Use this endpoint to allow a new user to register an anonymous account in + * your project. This route will also create a new session for the user. To + * allow the new user to convert an anonymous account to a normal account, you + * need to update its [email and + * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) + * or create an [OAuth2 + * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async createAnonymousSession(): Promise { + const apiPath = "/account/sessions/anonymous"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create email password session + * + * Allow the user to login into their account by providing a valid email and + * password combination. This route will create a new session for the user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + async createEmailPasswordSession( + email: string, + password: string + ): Promise { + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + + if (typeof password === "undefined") { + throw new AppwriteException('Missing required parameter: "password"'); + } + + const apiPath = "/account/sessions/email"; + const payload: Payload = {}; + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof password !== "undefined") { + payload["password"] = password; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update magic URL session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMagicURLSession( + userId: string, + secret: string + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + const apiPath = "/account/sessions/magic-url"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create OAuth2 session + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If there is already an active session, the new session will be attached to + * the logged-in account. If there are no active sessions, the server will + * attempt to look for a user with the same email address as the email + * received from the OAuth2 provider and attach the new session to the + * existing user. If no matching user is found - the server will create a new + * user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Session( + provider: OAuthProvider, + success?: string, + failure?: string, + scopes?: string[] + ): void | URL { + if (typeof provider === "undefined") { + throw new AppwriteException('Missing required parameter: "provider"'); + } + + const apiPath = "/account/sessions/oauth2/{provider}".replace( + "{provider}", + provider + ); + const payload: Payload = {}; + + if (typeof success !== "undefined") { + payload["success"] = success; + } + + if (typeof failure !== "undefined") { + payload["failure"] = failure; + } + + if (typeof scopes !== "undefined") { + payload["scopes"] = scopes; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Update phone session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePhoneSession( + userId: string, + secret: string + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + const apiPath = "/account/sessions/phone"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + async createSession(userId: string, secret: string): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + const apiPath = "/account/sessions/token"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get session + * + * Use this endpoint to get a logged in user's session using a Session ID. + * Inputting 'current' will return the current session being used. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + async getSession(sessionId: string): Promise { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + + const apiPath = "/account/sessions/{sessionId}".replace( + "{sessionId}", + sessionId + ); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update session + * + * Use this endpoint to extend a session's length. Extending a session is + * useful when session expiry is short. If the session was created using an + * OAuth provider, this endpoint refreshes the access token from the provider. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateSession(sessionId: string): Promise { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + + const apiPath = "/account/sessions/{sessionId}".replace( + "{sessionId}", + sessionId + ); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete session + * + * Logout the user. Use 'current' as the session ID to logout on this device, + * use a session ID to logout on another device. If you're looking to logout + * the user on all devices, use [Delete + * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) + * instead. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteSession(sessionId: string): Promise<{}> { + if (typeof sessionId === "undefined") { + throw new AppwriteException('Missing required parameter: "sessionId"'); + } + + const apiPath = "/account/sessions/{sessionId}".replace( + "{sessionId}", + sessionId + ); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update status + * + * Block the currently logged in user account. Behind the scene, the user + * record is not deleted but permanently blocked from any access. To + * completely delete a user, use the Users API instead. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateStatus(): Promise< + Models.User + > { + const apiPath = "/account/status"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create push target + * + * + * @param {string} targetId + * @param {string} identifier + * @param {string} providerId + * @throws {AppwriteException} + * @returns {Promise} + */ + async createPushTarget( + targetId: string, + identifier: string, + providerId?: string + ): Promise { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + + if (typeof identifier === "undefined") { + throw new AppwriteException('Missing required parameter: "identifier"'); + } + + const apiPath = "/account/targets/push"; + const payload: Payload = {}; + + if (typeof targetId !== "undefined") { + payload["targetId"] = targetId; + } + + if (typeof identifier !== "undefined") { + payload["identifier"] = identifier; + } + + if (typeof providerId !== "undefined") { + payload["providerId"] = providerId; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update push target + * + * + * @param {string} targetId + * @param {string} identifier + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePushTarget( + targetId: string, + identifier: string + ): Promise { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + + if (typeof identifier === "undefined") { + throw new AppwriteException('Missing required parameter: "identifier"'); + } + + const apiPath = "/account/targets/{targetId}/push".replace( + "{targetId}", + targetId + ); + const payload: Payload = {}; + + if (typeof identifier !== "undefined") { + payload["identifier"] = identifier; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete push target + * + * + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deletePushTarget(targetId: string): Promise<{}> { + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } + + const apiPath = "/account/targets/{targetId}/push".replace( + "{targetId}", + targetId + ); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create email token (OTP) + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's email + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} email + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + async createEmailToken( + userId: string, + email: string, + phrase?: boolean + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + + const apiPath = "/account/tokens/email"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof phrase !== "undefined") { + payload["phrase"] = phrase; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create magic URL token + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not been registered, a new user will be created. When + * the user clicks the link in the email, the user is redirected back to the + * URL you provided with the secret key and userId values attached to the URL + * query string. Use the query string parameters to submit a request to the + * [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The link sent to the user's email + * address is valid for 1 hour. If you are on a mobile device you can leave + * the URL parameter empty, so that the login completion will be handled by + * your Appwrite instance by default. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {string} userId + * @param {string} email + * @param {string} url + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + async createMagicURLToken( + userId: string, + email: string, + url?: string, + phrase?: boolean + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof email === "undefined") { + throw new AppwriteException('Missing required parameter: "email"'); + } + + const apiPath = "/account/tokens/magic-url"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof url !== "undefined") { + payload["url"] = url; + } + + if (typeof phrase !== "undefined") { + payload["phrase"] = phrase; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create OAuth2 token + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If authentication succeeds, `userId` and `secret` of a token will be + * appended to the success URL as query parameters. These can be used to + * create a new session using the [Create + * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Token( + provider: OAuthProvider, + success?: string, + failure?: string, + scopes?: string[] + ): void | URL { + if (typeof provider === "undefined") { + throw new AppwriteException('Missing required parameter: "provider"'); + } + + const apiPath = "/account/tokens/oauth2/{provider}".replace( + "{provider}", + provider + ); + const payload: Payload = {}; + + if (typeof success !== "undefined") { + payload["success"] = success; + } + + if (typeof failure !== "undefined") { + payload["failure"] = failure; + } + + if (typeof scopes !== "undefined") { + payload["scopes"] = scopes; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Create phone token + * + * Sends the user an SMS with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's phone + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} phone + * @throws {AppwriteException} + * @returns {Promise} + */ + async createPhoneToken(userId: string, phone: string): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof phone === "undefined") { + throw new AppwriteException('Missing required parameter: "phone"'); + } + + const apiPath = "/account/tokens/phone"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create email verification + * + * Use this endpoint to send a verification message to your user email address + * to confirm they are the valid owners of that address. Both the **userId** + * and **secret** arguments will be passed as query parameters to the URL you + * have provided to be attached to the verification email. The provided URL + * should redirect the user back to your app and allow you to complete the + * verification process by verifying both the **userId** and **secret** + * parameters. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). + * The verification link sent to the user's email address is valid for 7 days. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + async createVerification(url: string): Promise { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + + const apiPath = "/account/verification"; + const payload: Payload = {}; + + if (typeof url !== "undefined") { + payload["url"] = url; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create email verification (confirmation) + * + * Use this endpoint to complete the user email verification process. Use both + * the **userId** and **secret** parameters that were attached to your app URL + * to verify the user email ownership. If confirmed this route will return a + * 200 status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateVerification( + userId: string, + secret: string + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + const apiPath = "/account/verification"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create phone verification + * + * Use this endpoint to send a verification SMS to the currently logged in + * user. This endpoint is meant for use after updating a user's phone number + * using the + * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) + * endpoint. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). + * The verification code sent to the user's phone number is valid for 15 + * minutes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async createPhoneVerification(): Promise { + const apiPath = "/account/verification/phone"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create phone verification (confirmation) + * + * Use this endpoint to complete the user phone verification process. Use the + * **userId** and **secret** that were sent to your user's phone number to + * verify the user email ownership. If confirmed this route will return a 200 + * status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePhoneVerification( + userId: string, + secret: string + ): Promise { + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + const apiPath = "/account/verification/phone"; + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } - constructor(client: Client) - { - super(client); - } - - /** - * Get account - * - * Get the currently logged in user. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async get(): Promise> { - const apiPath = '/account'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create account - * - * Use this endpoint to allow a new user to register a new account in your - * project. After the user registration completes successfully, you can use - * the - * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) - * route to start verifying the user email address. To allow the new user to - * login to their new account, you need to create a new [account - * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession). - * - * @param {string} userId - * @param {string} email - * @param {string} password - * @param {string} name - * @throws {AppwriteException} - * @returns {Promise} - */ - async create(userId: string, email: string, password: string, name?: string): Promise> { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof email === 'undefined') { - throw new AppwriteException('Missing required parameter: "email"'); - } - - if (typeof password === 'undefined') { - throw new AppwriteException('Missing required parameter: "password"'); - } - - const apiPath = '/account'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof password !== 'undefined') { - payload['password'] = password; - } - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update email - * - * Update currently logged in user account email address. After changing user - * address, the user confirmation status will get reset. A new confirmation - * email is not sent automatically however you can use the send confirmation - * email endpoint again to send the confirmation email. For security measures, - * user password is required to complete this request. - * This endpoint can also be used to convert an anonymous account to a normal - * one, by passing an email address and a new password. - * - * - * @param {string} email - * @param {string} password - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateEmail(email: string, password: string): Promise> { - if (typeof email === 'undefined') { - throw new AppwriteException('Missing required parameter: "email"'); - } - - if (typeof password === 'undefined') { - throw new AppwriteException('Missing required parameter: "password"'); - } - - const apiPath = '/account/email'; - const payload: Payload = {}; - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof password !== 'undefined') { - payload['password'] = password; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List Identities - * - * Get the list of identities for the currently logged in user. - * - * @param {string[]} queries - * @throws {AppwriteException} - * @returns {Promise} - */ - async listIdentities(queries?: string[]): Promise { - const apiPath = '/account/identities'; - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete identity - * - * Delete an identity by its unique ID. - * - * @param {string} identityId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteIdentity(identityId: string): Promise<{}> { - if (typeof identityId === 'undefined') { - throw new AppwriteException('Missing required parameter: "identityId"'); - } - - const apiPath = '/account/identities/{identityId}'.replace('{identityId}', identityId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create JWT - * - * Use this endpoint to create a JSON Web Token. You can use the resulting JWT - * to authenticate on behalf of the current user when working with the - * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes - * from its creation and will be invalid if the user will logout in that time - * frame. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async createJWT(): Promise { - const apiPath = '/account/jwt'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List logs - * - * Get the list of latest security activity logs for the currently logged in - * user. Each log returns user IP address, location and date and time of log. - * - * @param {string[]} queries - * @throws {AppwriteException} - * @returns {Promise} - */ - async listLogs(queries?: string[]): Promise { - const apiPath = '/account/logs'; - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update MFA - * - * Enable or disable MFA on an account. - * - * @param {boolean} mfa - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMFA(mfa: boolean): Promise> { - if (typeof mfa === 'undefined') { - throw new AppwriteException('Missing required parameter: "mfa"'); - } - - const apiPath = '/account/mfa'; - const payload: Payload = {}; - - if (typeof mfa !== 'undefined') { - payload['mfa'] = mfa; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Add Authenticator - * - * Add an authenticator app to be used as an MFA factor. Verify the - * authenticator using the [verify - * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) - * method. - * - * @param {AuthenticatorType} type - * @throws {AppwriteException} - * @returns {Promise} - */ - async createMfaAuthenticator(type: AuthenticatorType): Promise { - if (typeof type === 'undefined') { - throw new AppwriteException('Missing required parameter: "type"'); - } - - const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Verify Authenticator - * - * Verify an authenticator app after adding it using the [add - * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) - * method. add - * - * @param {AuthenticatorType} type - * @param {string} otp - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMfaAuthenticator(type: AuthenticatorType, otp: string): Promise> { - if (typeof type === 'undefined') { - throw new AppwriteException('Missing required parameter: "type"'); - } - - if (typeof otp === 'undefined') { - throw new AppwriteException('Missing required parameter: "otp"'); - } - - const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type); - const payload: Payload = {}; - - if (typeof otp !== 'undefined') { - payload['otp'] = otp; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete Authenticator - * - * Delete an authenticator for a user by ID. - * - * @param {AuthenticatorType} type - * @param {string} otp - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteMfaAuthenticator(type: AuthenticatorType, otp: string): Promise<{}> { - if (typeof type === 'undefined') { - throw new AppwriteException('Missing required parameter: "type"'); - } - - if (typeof otp === 'undefined') { - throw new AppwriteException('Missing required parameter: "otp"'); - } - - const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type); - const payload: Payload = {}; - - if (typeof otp !== 'undefined') { - payload['otp'] = otp; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create 2FA Challenge - * - * Begin the process of MFA verification after sign-in. Finish the flow with - * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) - * method. - * - * @param {AuthenticationFactor} factor - * @throws {AppwriteException} - * @returns {Promise} - */ - async createMfaChallenge(factor: AuthenticationFactor): Promise { - if (typeof factor === 'undefined') { - throw new AppwriteException('Missing required parameter: "factor"'); - } - - const apiPath = '/account/mfa/challenge'; - const payload: Payload = {}; - - if (typeof factor !== 'undefined') { - payload['factor'] = factor; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create MFA Challenge (confirmation) - * - * Complete the MFA challenge by providing the one-time password. Finish the - * process of MFA verification by providing the one-time password. To begin - * the flow, use - * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) - * method. - * - * @param {string} challengeId - * @param {string} otp - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> { - if (typeof challengeId === 'undefined') { - throw new AppwriteException('Missing required parameter: "challengeId"'); - } - - if (typeof otp === 'undefined') { - throw new AppwriteException('Missing required parameter: "otp"'); - } - - const apiPath = '/account/mfa/challenge'; - const payload: Payload = {}; - - if (typeof challengeId !== 'undefined') { - payload['challengeId'] = challengeId; - } - - if (typeof otp !== 'undefined') { - payload['otp'] = otp; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List Factors - * - * List the factors available on the account to be used as a MFA challange. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listMfaFactors(): Promise { - const apiPath = '/account/mfa/factors'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get MFA Recovery Codes - * - * Get recovery codes that can be used as backup for MFA flow. Before getting - * codes, they must be generated using - * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) - * method. An OTP challenge is required to read recovery codes. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async getMfaRecoveryCodes(): Promise { - const apiPath = '/account/mfa/recovery-codes'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create MFA Recovery Codes - * - * Generate recovery codes as backup for MFA flow. It's recommended to - * generate and show then immediately after user successfully adds their - * authehticator. Recovery codes can be used as a MFA verification type in - * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) - * method. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async createMfaRecoveryCodes(): Promise { - const apiPath = '/account/mfa/recovery-codes'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Regenerate MFA Recovery Codes - * - * Regenerate recovery codes that can be used as backup for MFA flow. Before - * regenerating codes, they must be first generated using - * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) - * method. An OTP challenge is required to regenreate recovery codes. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMfaRecoveryCodes(): Promise { - const apiPath = '/account/mfa/recovery-codes'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update name - * - * Update currently logged in user account name. - * - * @param {string} name - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateName(name: string): Promise> { - if (typeof name === 'undefined') { - throw new AppwriteException('Missing required parameter: "name"'); - } - - const apiPath = '/account/name'; - const payload: Payload = {}; - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update password - * - * Update currently logged in user password. For validation, user is required - * to pass in the new password, and the old password. For users created with - * OAuth, Team Invites and Magic URL, oldPassword is optional. - * - * @param {string} password - * @param {string} oldPassword - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePassword(password: string, oldPassword?: string): Promise> { - if (typeof password === 'undefined') { - throw new AppwriteException('Missing required parameter: "password"'); - } - - const apiPath = '/account/password'; - const payload: Payload = {}; - - if (typeof password !== 'undefined') { - payload['password'] = password; - } - - if (typeof oldPassword !== 'undefined') { - payload['oldPassword'] = oldPassword; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update phone - * - * Update the currently logged in user's phone number. After updating the - * phone number, the phone verification status will be reset. A confirmation - * SMS is not sent automatically, however you can use the [POST - * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) - * endpoint to send a confirmation SMS. - * - * @param {string} phone - * @param {string} password - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePhone(phone: string, password: string): Promise> { - if (typeof phone === 'undefined') { - throw new AppwriteException('Missing required parameter: "phone"'); - } - - if (typeof password === 'undefined') { - throw new AppwriteException('Missing required parameter: "password"'); - } - - const apiPath = '/account/phone'; - const payload: Payload = {}; - - if (typeof phone !== 'undefined') { - payload['phone'] = phone; - } - - if (typeof password !== 'undefined') { - payload['password'] = password; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get account preferences - * - * Get the preferences as a key-value object for the currently logged in user. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async getPrefs(): Promise { - const apiPath = '/account/prefs'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update preferences - * - * Update currently logged in user account preferences. The object you pass is - * stored as is, and replaces any previous value. The maximum allowed prefs - * size is 64kB and throws error if exceeded. - * - * @param {object} prefs - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePrefs(prefs: object): Promise> { - if (typeof prefs === 'undefined') { - throw new AppwriteException('Missing required parameter: "prefs"'); - } - - const apiPath = '/account/prefs'; - const payload: Payload = {}; - - if (typeof prefs !== 'undefined') { - payload['prefs'] = prefs; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create password recovery - * - * Sends the user an email with a temporary secret key for password reset. - * When the user clicks the confirmation link he is redirected back to your - * app password reset URL with the secret key and email address values - * attached to the URL query string. Use the query string params to submit a - * request to the [PUT - * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) - * endpoint to complete the process. The verification link sent to the user's - * email address is valid for 1 hour. - * - * @param {string} email - * @param {string} url - * @throws {AppwriteException} - * @returns {Promise} - */ - async createRecovery(email: string, url: string): Promise { - if (typeof email === 'undefined') { - throw new AppwriteException('Missing required parameter: "email"'); - } - - if (typeof url === 'undefined') { - throw new AppwriteException('Missing required parameter: "url"'); - } - - const apiPath = '/account/recovery'; - const payload: Payload = {}; - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof url !== 'undefined') { - payload['url'] = url; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create password recovery (confirmation) - * - * Use this endpoint to complete the user account password reset. Both the - * **userId** and **secret** arguments will be passed as query parameters to - * the redirect URL you have provided when sending your request to the [POST - * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) - * endpoint. - * - * Please note that in order to avoid a [Redirect - * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) - * the only valid redirect URLs are the ones from domains you have set when - * adding your platforms in the console interface. - * - * @param {string} userId - * @param {string} secret - * @param {string} password - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateRecovery(userId: string, secret: string, password: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - if (typeof password === 'undefined') { - throw new AppwriteException('Missing required parameter: "password"'); - } - - const apiPath = '/account/recovery'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - if (typeof password !== 'undefined') { - payload['password'] = password; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List sessions - * - * Get the list of active sessions across different devices for the currently - * logged in user. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listSessions(): Promise { - const apiPath = '/account/sessions'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete sessions - * - * Delete all sessions from the user account and remove any sessions cookies - * from the end client. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteSessions(): Promise<{}> { - const apiPath = '/account/sessions'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create anonymous session - * - * Use this endpoint to allow a new user to register an anonymous account in - * your project. This route will also create a new session for the user. To - * allow the new user to convert an anonymous account to a normal account, you - * need to update its [email and - * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) - * or create an [OAuth2 - * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session). - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async createAnonymousSession(): Promise { - const apiPath = '/account/sessions/anonymous'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create email password session - * - * Allow the user to login into their account by providing a valid email and - * password combination. This route will create a new session for the user. - * - * A user is limited to 10 active sessions at a time by default. [Learn more - * about session - * limits](https://appwrite.io/docs/authentication-security#limits). - * - * @param {string} email - * @param {string} password - * @throws {AppwriteException} - * @returns {Promise} - */ - async createEmailPasswordSession(email: string, password: string): Promise { - if (typeof email === 'undefined') { - throw new AppwriteException('Missing required parameter: "email"'); - } - - if (typeof password === 'undefined') { - throw new AppwriteException('Missing required parameter: "password"'); - } - - const apiPath = '/account/sessions/email'; - const payload: Payload = {}; - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof password !== 'undefined') { - payload['password'] = password; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update magic URL session - * - * Use this endpoint to create a session from token. Provide the **userId** - * and **secret** parameters from the successful response of authentication - * flows initiated by token creation. For example, magic URL and phone login. - * - * @param {string} userId - * @param {string} secret - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMagicURLSession(userId: string, secret: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - const apiPath = '/account/sessions/magic-url'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create OAuth2 session - * - * Allow the user to login to their account using the OAuth2 provider of their - * choice. Each OAuth2 provider should be enabled from the Appwrite console - * first. Use the success and failure arguments to provide a redirect URL's - * back to your app when login is completed. - * - * If there is already an active session, the new session will be attached to - * the logged-in account. If there are no active sessions, the server will - * attempt to look for a user with the same email address as the email - * received from the OAuth2 provider and attach the new session to the - * existing user. If no matching user is found - the server will create a new - * user. - * - * A user is limited to 10 active sessions at a time by default. [Learn more - * about session - * limits](https://appwrite.io/docs/authentication-security#limits). - * - * - * @param {OAuthProvider} provider - * @param {string} success - * @param {string} failure - * @param {string[]} scopes - * @throws {AppwriteException} - * @returns {void|string} - */ - createOAuth2Session(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): void | URL { - if (typeof provider === 'undefined') { - throw new AppwriteException('Missing required parameter: "provider"'); - } - - const apiPath = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider); - const payload: Payload = {}; - - if (typeof success !== 'undefined') { - payload['success'] = success; - } - - if (typeof failure !== 'undefined') { - payload['failure'] = failure; - } - - if (typeof scopes !== 'undefined') { - payload['scopes'] = scopes; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Update phone session - * - * Use this endpoint to create a session from token. Provide the **userId** - * and **secret** parameters from the successful response of authentication - * flows initiated by token creation. For example, magic URL and phone login. - * - * @param {string} userId - * @param {string} secret - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePhoneSession(userId: string, secret: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - const apiPath = '/account/sessions/phone'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create session - * - * Use this endpoint to create a session from token. Provide the **userId** - * and **secret** parameters from the successful response of authentication - * flows initiated by token creation. For example, magic URL and phone login. - * - * @param {string} userId - * @param {string} secret - * @throws {AppwriteException} - * @returns {Promise} - */ - async createSession(userId: string, secret: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - const apiPath = '/account/sessions/token'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get session - * - * Use this endpoint to get a logged in user's session using a Session ID. - * Inputting 'current' will return the current session being used. - * - * @param {string} sessionId - * @throws {AppwriteException} - * @returns {Promise} - */ - async getSession(sessionId: string): Promise { - if (typeof sessionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "sessionId"'); - } - - const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update session - * - * Use this endpoint to extend a session's length. Extending a session is - * useful when session expiry is short. If the session was created using an - * OAuth provider, this endpoint refreshes the access token from the provider. - * - * @param {string} sessionId - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateSession(sessionId: string): Promise { - if (typeof sessionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "sessionId"'); - } - - const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete session - * - * Logout the user. Use 'current' as the session ID to logout on this device, - * use a session ID to logout on another device. If you're looking to logout - * the user on all devices, use [Delete - * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) - * instead. - * - * @param {string} sessionId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteSession(sessionId: string): Promise<{}> { - if (typeof sessionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "sessionId"'); - } - - const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update status - * - * Block the currently logged in user account. Behind the scene, the user - * record is not deleted but permanently blocked from any access. To - * completely delete a user, use the Users API instead. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateStatus(): Promise> { - const apiPath = '/account/status'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create push target - * - * - * @param {string} targetId - * @param {string} identifier - * @param {string} providerId - * @throws {AppwriteException} - * @returns {Promise} - */ - async createPushTarget(targetId: string, identifier: string, providerId?: string): Promise { - if (typeof targetId === 'undefined') { - throw new AppwriteException('Missing required parameter: "targetId"'); - } - - if (typeof identifier === 'undefined') { - throw new AppwriteException('Missing required parameter: "identifier"'); - } - - const apiPath = '/account/targets/push'; - const payload: Payload = {}; - - if (typeof targetId !== 'undefined') { - payload['targetId'] = targetId; - } - - if (typeof identifier !== 'undefined') { - payload['identifier'] = identifier; - } - - if (typeof providerId !== 'undefined') { - payload['providerId'] = providerId; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update push target - * - * - * @param {string} targetId - * @param {string} identifier - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePushTarget(targetId: string, identifier: string): Promise { - if (typeof targetId === 'undefined') { - throw new AppwriteException('Missing required parameter: "targetId"'); - } - - if (typeof identifier === 'undefined') { - throw new AppwriteException('Missing required parameter: "identifier"'); - } - - const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId); - const payload: Payload = {}; - - if (typeof identifier !== 'undefined') { - payload['identifier'] = identifier; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete push target - * - * - * @param {string} targetId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deletePushTarget(targetId: string): Promise<{}> { - if (typeof targetId === 'undefined') { - throw new AppwriteException('Missing required parameter: "targetId"'); - } - - const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create email token (OTP) - * - * Sends the user an email with a secret key for creating a session. If the - * provided user ID has not be registered, a new user will be created. Use the - * returned user ID and secret and submit a request to the [POST - * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) - * endpoint to complete the login process. The secret sent to the user's email - * is valid for 15 minutes. - * - * A user is limited to 10 active sessions at a time by default. [Learn more - * about session - * limits](https://appwrite.io/docs/authentication-security#limits). - * - * @param {string} userId - * @param {string} email - * @param {boolean} phrase - * @throws {AppwriteException} - * @returns {Promise} - */ - async createEmailToken(userId: string, email: string, phrase?: boolean): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof email === 'undefined') { - throw new AppwriteException('Missing required parameter: "email"'); - } - - const apiPath = '/account/tokens/email'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof phrase !== 'undefined') { - payload['phrase'] = phrase; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create magic URL token - * - * Sends the user an email with a secret key for creating a session. If the - * provided user ID has not been registered, a new user will be created. When - * the user clicks the link in the email, the user is redirected back to the - * URL you provided with the secret key and userId values attached to the URL - * query string. Use the query string parameters to submit a request to the - * [POST - * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) - * endpoint to complete the login process. The link sent to the user's email - * address is valid for 1 hour. If you are on a mobile device you can leave - * the URL parameter empty, so that the login completion will be handled by - * your Appwrite instance by default. - * - * A user is limited to 10 active sessions at a time by default. [Learn more - * about session - * limits](https://appwrite.io/docs/authentication-security#limits). - * - * - * @param {string} userId - * @param {string} email - * @param {string} url - * @param {boolean} phrase - * @throws {AppwriteException} - * @returns {Promise} - */ - async createMagicURLToken(userId: string, email: string, url?: string, phrase?: boolean): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof email === 'undefined') { - throw new AppwriteException('Missing required parameter: "email"'); - } - - const apiPath = '/account/tokens/magic-url'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof url !== 'undefined') { - payload['url'] = url; - } - - if (typeof phrase !== 'undefined') { - payload['phrase'] = phrase; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create OAuth2 token - * - * Allow the user to login to their account using the OAuth2 provider of their - * choice. Each OAuth2 provider should be enabled from the Appwrite console - * first. Use the success and failure arguments to provide a redirect URL's - * back to your app when login is completed. - * - * If authentication succeeds, `userId` and `secret` of a token will be - * appended to the success URL as query parameters. These can be used to - * create a new session using the [Create - * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) - * endpoint. - * - * A user is limited to 10 active sessions at a time by default. [Learn more - * about session - * limits](https://appwrite.io/docs/authentication-security#limits). - * - * @param {OAuthProvider} provider - * @param {string} success - * @param {string} failure - * @param {string[]} scopes - * @throws {AppwriteException} - * @returns {void|string} - */ - createOAuth2Token(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): void | URL { - if (typeof provider === 'undefined') { - throw new AppwriteException('Missing required parameter: "provider"'); - } - - const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider); - const payload: Payload = {}; - - if (typeof success !== 'undefined') { - payload['success'] = success; - } - - if (typeof failure !== 'undefined') { - payload['failure'] = failure; - } - - if (typeof scopes !== 'undefined') { - payload['scopes'] = scopes; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Create phone token - * - * Sends the user an SMS with a secret key for creating a session. If the - * provided user ID has not be registered, a new user will be created. Use the - * returned user ID and secret and submit a request to the [POST - * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) - * endpoint to complete the login process. The secret sent to the user's phone - * is valid for 15 minutes. - * - * A user is limited to 10 active sessions at a time by default. [Learn more - * about session - * limits](https://appwrite.io/docs/authentication-security#limits). - * - * @param {string} userId - * @param {string} phone - * @throws {AppwriteException} - * @returns {Promise} - */ - async createPhoneToken(userId: string, phone: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof phone === 'undefined') { - throw new AppwriteException('Missing required parameter: "phone"'); - } - - const apiPath = '/account/tokens/phone'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof phone !== 'undefined') { - payload['phone'] = phone; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create email verification - * - * Use this endpoint to send a verification message to your user email address - * to confirm they are the valid owners of that address. Both the **userId** - * and **secret** arguments will be passed as query parameters to the URL you - * have provided to be attached to the verification email. The provided URL - * should redirect the user back to your app and allow you to complete the - * verification process by verifying both the **userId** and **secret** - * parameters. Learn more about how to [complete the verification - * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). - * The verification link sent to the user's email address is valid for 7 days. - * - * Please note that in order to avoid a [Redirect - * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), - * the only valid redirect URLs are the ones from domains you have set when - * adding your platforms in the console interface. - * - * - * @param {string} url - * @throws {AppwriteException} - * @returns {Promise} - */ - async createVerification(url: string): Promise { - if (typeof url === 'undefined') { - throw new AppwriteException('Missing required parameter: "url"'); - } - - const apiPath = '/account/verification'; - const payload: Payload = {}; - - if (typeof url !== 'undefined') { - payload['url'] = url; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create email verification (confirmation) - * - * Use this endpoint to complete the user email verification process. Use both - * the **userId** and **secret** parameters that were attached to your app URL - * to verify the user email ownership. If confirmed this route will return a - * 200 status code. - * - * @param {string} userId - * @param {string} secret - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateVerification(userId: string, secret: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - const apiPath = '/account/verification'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create phone verification - * - * Use this endpoint to send a verification SMS to the currently logged in - * user. This endpoint is meant for use after updating a user's phone number - * using the - * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) - * endpoint. Learn more about how to [complete the verification - * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). - * The verification code sent to the user's phone number is valid for 15 - * minutes. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async createPhoneVerification(): Promise { - const apiPath = '/account/verification/phone'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create phone verification (confirmation) - * - * Use this endpoint to complete the user phone verification process. Use the - * **userId** and **secret** that were sent to your user's phone number to - * verify the user email ownership. If confirmed this route will return a 200 - * status code. - * - * @param {string} userId - * @param {string} secret - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePhoneVerification(userId: string, secret: string): Promise { - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - const apiPath = '/account/verification/phone'; - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } -}; + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/src/services/avatars.ts b/src/services/avatars.ts index fd6017e..53a4f33 100644 --- a/src/services/avatars.ts +++ b/src/services/avatars.ts @@ -1,358 +1,364 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; -import { Browser } from '../enums/browser'; -import { CreditCard } from '../enums/credit-card'; -import { Flag } from '../enums/flag'; +import { Platform } from "react-native"; + +import { Browser } from "../enums/browser"; +import { CreditCard } from "../enums/credit-card"; +import { Flag } from "../enums/flag"; export class Avatars extends Service { + constructor(client: Client) { + super(client); + } + + /** + * Get browser icon + * + * You can use this endpoint to show different browser icons to your users. + * The code argument receives the browser code as it appears in your user [GET + * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) + * endpoint. Use width, height and quality arguments to change the output + * settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * @param {Browser} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getBrowser( + code: Browser, + width?: number, + height?: number, + quality?: number + ): URL { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + + const apiPath = "/avatars/browsers/{code}".replace("{code}", code); + const payload: Payload = {}; + + if (typeof width !== "undefined") { + payload["width"] = width; + } + + if (typeof height !== "undefined") { + payload["height"] = height; + } + + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get credit card icon + * + * The credit card endpoint will return you the icon of the credit card + * provider you need. Use width, height and quality arguments to change the + * output settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {CreditCard} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getCreditCard( + code: CreditCard, + width?: number, + height?: number, + quality?: number + ): URL { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + + const apiPath = "/avatars/credit-cards/{code}".replace("{code}", code); + const payload: Payload = {}; + + if (typeof width !== "undefined") { + payload["width"] = width; + } + + if (typeof height !== "undefined") { + payload["height"] = height; + } + + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get favicon + * + * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote + * website URL. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {URL} + */ + getFavicon(url: string): URL { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + + const apiPath = "/avatars/favicon"; + const payload: Payload = {}; + + if (typeof url !== "undefined") { + payload["url"] = url; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get country flag + * + * You can use this endpoint to show different country flags icons to your + * users. The code argument receives the 2 letter country code. Use width, + * height and quality arguments to change the output settings. Country codes + * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {Flag} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getFlag(code: Flag, width?: number, height?: number, quality?: number): URL { + if (typeof code === "undefined") { + throw new AppwriteException('Missing required parameter: "code"'); + } + + const apiPath = "/avatars/flags/{code}".replace("{code}", code); + const payload: Payload = {}; + + if (typeof width !== "undefined") { + payload["width"] = width; + } + + if (typeof height !== "undefined") { + payload["height"] = height; + } + + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get image from URL + * + * Use this endpoint to fetch a remote image URL and crop it to any image size + * you want. This endpoint is very useful if you need to crop and display + * remote images in your app or in case you want to make sure a 3rd party + * image is properly served using a TLS protocol. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 400x400px. + * + * + * @param {string} url + * @param {number} width + * @param {number} height + * @throws {AppwriteException} + * @returns {URL} + */ + getImage(url: string, width?: number, height?: number): URL { + if (typeof url === "undefined") { + throw new AppwriteException('Missing required parameter: "url"'); + } + + const apiPath = "/avatars/image"; + const payload: Payload = {}; + + if (typeof url !== "undefined") { + payload["url"] = url; + } + + if (typeof width !== "undefined") { + payload["width"] = width; + } - constructor(client: Client) - { - super(client); - } - - /** - * Get browser icon - * - * You can use this endpoint to show different browser icons to your users. - * The code argument receives the browser code as it appears in your user [GET - * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) - * endpoint. Use width, height and quality arguments to change the output - * settings. - * - * When one dimension is specified and the other is 0, the image is scaled - * with preserved aspect ratio. If both dimensions are 0, the API provides an - * image at source quality. If dimensions are not specified, the default size - * of image returned is 100x100px. - * - * @param {Browser} code - * @param {number} width - * @param {number} height - * @param {number} quality - * @throws {AppwriteException} - * @returns {URL} - */ - getBrowser(code: Browser, width?: number, height?: number, quality?: number): URL { - if (typeof code === 'undefined') { - throw new AppwriteException('Missing required parameter: "code"'); - } - - const apiPath = '/avatars/browsers/{code}'.replace('{code}', code); - const payload: Payload = {}; - - if (typeof width !== 'undefined') { - payload['width'] = width; - } - - if (typeof height !== 'undefined') { - payload['height'] = height; - } - - if (typeof quality !== 'undefined') { - payload['quality'] = quality; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get credit card icon - * - * The credit card endpoint will return you the icon of the credit card - * provider you need. Use width, height and quality arguments to change the - * output settings. - * - * When one dimension is specified and the other is 0, the image is scaled - * with preserved aspect ratio. If both dimensions are 0, the API provides an - * image at source quality. If dimensions are not specified, the default size - * of image returned is 100x100px. - * - * - * @param {CreditCard} code - * @param {number} width - * @param {number} height - * @param {number} quality - * @throws {AppwriteException} - * @returns {URL} - */ - getCreditCard(code: CreditCard, width?: number, height?: number, quality?: number): URL { - if (typeof code === 'undefined') { - throw new AppwriteException('Missing required parameter: "code"'); - } - - const apiPath = '/avatars/credit-cards/{code}'.replace('{code}', code); - const payload: Payload = {}; - - if (typeof width !== 'undefined') { - payload['width'] = width; - } - - if (typeof height !== 'undefined') { - payload['height'] = height; - } - - if (typeof quality !== 'undefined') { - payload['quality'] = quality; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get favicon - * - * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote - * website URL. - * - * - * @param {string} url - * @throws {AppwriteException} - * @returns {URL} - */ - getFavicon(url: string): URL { - if (typeof url === 'undefined') { - throw new AppwriteException('Missing required parameter: "url"'); - } - - const apiPath = '/avatars/favicon'; - const payload: Payload = {}; - - if (typeof url !== 'undefined') { - payload['url'] = url; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get country flag - * - * You can use this endpoint to show different country flags icons to your - * users. The code argument receives the 2 letter country code. Use width, - * height and quality arguments to change the output settings. Country codes - * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard. - * - * When one dimension is specified and the other is 0, the image is scaled - * with preserved aspect ratio. If both dimensions are 0, the API provides an - * image at source quality. If dimensions are not specified, the default size - * of image returned is 100x100px. - * - * - * @param {Flag} code - * @param {number} width - * @param {number} height - * @param {number} quality - * @throws {AppwriteException} - * @returns {URL} - */ - getFlag(code: Flag, width?: number, height?: number, quality?: number): URL { - if (typeof code === 'undefined') { - throw new AppwriteException('Missing required parameter: "code"'); - } - - const apiPath = '/avatars/flags/{code}'.replace('{code}', code); - const payload: Payload = {}; - - if (typeof width !== 'undefined') { - payload['width'] = width; - } - - if (typeof height !== 'undefined') { - payload['height'] = height; - } - - if (typeof quality !== 'undefined') { - payload['quality'] = quality; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get image from URL - * - * Use this endpoint to fetch a remote image URL and crop it to any image size - * you want. This endpoint is very useful if you need to crop and display - * remote images in your app or in case you want to make sure a 3rd party - * image is properly served using a TLS protocol. - * - * When one dimension is specified and the other is 0, the image is scaled - * with preserved aspect ratio. If both dimensions are 0, the API provides an - * image at source quality. If dimensions are not specified, the default size - * of image returned is 400x400px. - * - * - * @param {string} url - * @param {number} width - * @param {number} height - * @throws {AppwriteException} - * @returns {URL} - */ - getImage(url: string, width?: number, height?: number): URL { - if (typeof url === 'undefined') { - throw new AppwriteException('Missing required parameter: "url"'); - } - - const apiPath = '/avatars/image'; - const payload: Payload = {}; - - if (typeof url !== 'undefined') { - payload['url'] = url; - } - - if (typeof width !== 'undefined') { - payload['width'] = width; - } - - if (typeof height !== 'undefined') { - payload['height'] = height; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get user initials - * - * Use this endpoint to show your user initials avatar icon on your website or - * app. By default, this route will try to print your logged-in user name or - * email initials. You can also overwrite the user name if you pass the 'name' - * parameter. If no name is given and no user is logged, an empty avatar will - * be returned. - * - * You can use the color and background params to change the avatar colors. By - * default, a random theme will be selected. The random theme will persist for - * the user's initials when reloading the same theme will always return for - * the same initials. - * - * When one dimension is specified and the other is 0, the image is scaled - * with preserved aspect ratio. If both dimensions are 0, the API provides an - * image at source quality. If dimensions are not specified, the default size - * of image returned is 100x100px. - * - * - * @param {string} name - * @param {number} width - * @param {number} height - * @param {string} background - * @throws {AppwriteException} - * @returns {URL} - */ - getInitials(name?: string, width?: number, height?: number, background?: string): URL { - const apiPath = '/avatars/initials'; - const payload: Payload = {}; - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - if (typeof width !== 'undefined') { - payload['width'] = width; - } - - if (typeof height !== 'undefined') { - payload['height'] = height; - } - - if (typeof background !== 'undefined') { - payload['background'] = background; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get QR code - * - * Converts a given plain text to a QR code image. You can use the query - * parameters to change the size and style of the resulting image. - * - * - * @param {string} text - * @param {number} size - * @param {number} margin - * @param {boolean} download - * @throws {AppwriteException} - * @returns {URL} - */ - getQR(text: string, size?: number, margin?: number, download?: boolean): URL { - if (typeof text === 'undefined') { - throw new AppwriteException('Missing required parameter: "text"'); - } - - const apiPath = '/avatars/qr'; - const payload: Payload = {}; - - if (typeof text !== 'undefined') { - payload['text'] = text; - } - - if (typeof size !== 'undefined') { - payload['size'] = size; - } - - if (typeof margin !== 'undefined') { - payload['margin'] = margin; - } - - if (typeof download !== 'undefined') { - payload['download'] = download; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } -}; + if (typeof height !== "undefined") { + payload["height"] = height; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get user initials + * + * Use this endpoint to show your user initials avatar icon on your website or + * app. By default, this route will try to print your logged-in user name or + * email initials. You can also overwrite the user name if you pass the 'name' + * parameter. If no name is given and no user is logged, an empty avatar will + * be returned. + * + * You can use the color and background params to change the avatar colors. By + * default, a random theme will be selected. The random theme will persist for + * the user's initials when reloading the same theme will always return for + * the same initials. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {string} name + * @param {number} width + * @param {number} height + * @param {string} background + * @throws {AppwriteException} + * @returns {URL} + */ + getInitials( + name?: string, + width?: number, + height?: number, + background?: string + ): URL { + const apiPath = "/avatars/initials"; + const payload: Payload = {}; + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + if (typeof width !== "undefined") { + payload["width"] = width; + } + + if (typeof height !== "undefined") { + payload["height"] = height; + } + + if (typeof background !== "undefined") { + payload["background"] = background; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get QR code + * + * Converts a given plain text to a QR code image. You can use the query + * parameters to change the size and style of the resulting image. + * + * + * @param {string} text + * @param {number} size + * @param {number} margin + * @param {boolean} download + * @throws {AppwriteException} + * @returns {URL} + */ + getQR(text: string, size?: number, margin?: number, download?: boolean): URL { + if (typeof text === "undefined") { + throw new AppwriteException('Missing required parameter: "text"'); + } + + const apiPath = "/avatars/qr"; + const payload: Payload = {}; + + if (typeof text !== "undefined") { + payload["text"] = text; + } + + if (typeof size !== "undefined") { + payload["size"] = size; + } + + if (typeof margin !== "undefined") { + payload["margin"] = margin; + } + + if (typeof download !== "undefined") { + payload["download"] = download; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } +} diff --git a/src/services/databases.ts b/src/services/databases.ts index eb36315..47f10b3 100644 --- a/src/services/databases.ts +++ b/src/services/databases.ts @@ -1,219 +1,284 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; +import { Platform } from "react-native"; export class Databases extends Service { + constructor(client: Client) { + super(client); + } + + /** + * List documents + * + * Get a list of all the user's documents in a given collection. You can use + * the query params to filter your results. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + async listDocuments( + databaseId: string, + collectionId: string, + queries?: string[] + ): Promise> { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + + const apiPath = + "/databases/{databaseId}/collections/{collectionId}/documents" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId); + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create document + * + * Create a new Document. Before using this route, you should create a new + * collection resource using either a [server + * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) + * API or directly from your database console. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + async createDocument( + databaseId: string, + collectionId: string, + documentId: string, + data: object, + permissions?: string[] + ): Promise { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + + if (typeof data === "undefined") { + throw new AppwriteException('Missing required parameter: "data"'); + } + + const apiPath = + "/databases/{databaseId}/collections/{collectionId}/documents" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId); + const payload: Payload = {}; + + if (typeof documentId !== "undefined") { + payload["documentId"] = documentId; + } + + if (typeof data !== "undefined") { + payload["data"] = data; + } + + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get document + * + * Get a document by its unique ID. This endpoint response returns a JSON + * object with the document data. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + async getDocument( + databaseId: string, + collectionId: string, + documentId: string, + queries?: string[] + ): Promise { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + + const apiPath = + "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update document + * + * Update a document by its unique ID. Using the patch method you can pass + * only specific fields that will get updated. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateDocument( + databaseId: string, + collectionId: string, + documentId: string, + data?: object, + permissions?: string[] + ): Promise { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } + + const apiPath = + "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload: Payload = {}; + + if (typeof data !== "undefined") { + payload["data"] = data; + } + + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete document + * + * Delete a document by its unique ID. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteDocument( + databaseId: string, + collectionId: string, + documentId: string + ): Promise<{}> { + if (typeof databaseId === "undefined") { + throw new AppwriteException('Missing required parameter: "databaseId"'); + } + + if (typeof collectionId === "undefined") { + throw new AppwriteException('Missing required parameter: "collectionId"'); + } + + if (typeof documentId === "undefined") { + throw new AppwriteException('Missing required parameter: "documentId"'); + } - constructor(client: Client) - { - super(client); - } - - /** - * List documents - * - * Get a list of all the user's documents in a given collection. You can use - * the query params to filter your results. - * - * @param {string} databaseId - * @param {string} collectionId - * @param {string[]} queries - * @throws {AppwriteException} - * @returns {Promise} - */ - async listDocuments(databaseId: string, collectionId: string, queries?: string[]): Promise> { - if (typeof databaseId === 'undefined') { - throw new AppwriteException('Missing required parameter: "databaseId"'); - } - - if (typeof collectionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "collectionId"'); - } - - const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId); - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create document - * - * Create a new Document. Before using this route, you should create a new - * collection resource using either a [server - * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) - * API or directly from your database console. - * - * @param {string} databaseId - * @param {string} collectionId - * @param {string} documentId - * @param {object} data - * @param {string[]} permissions - * @throws {AppwriteException} - * @returns {Promise} - */ - async createDocument(databaseId: string, collectionId: string, documentId: string, data: object, permissions?: string[]): Promise { - if (typeof databaseId === 'undefined') { - throw new AppwriteException('Missing required parameter: "databaseId"'); - } - - if (typeof collectionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "collectionId"'); - } - - if (typeof documentId === 'undefined') { - throw new AppwriteException('Missing required parameter: "documentId"'); - } - - if (typeof data === 'undefined') { - throw new AppwriteException('Missing required parameter: "data"'); - } - - const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId); - const payload: Payload = {}; - - if (typeof documentId !== 'undefined') { - payload['documentId'] = documentId; - } - - if (typeof data !== 'undefined') { - payload['data'] = data; - } - - if (typeof permissions !== 'undefined') { - payload['permissions'] = permissions; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get document - * - * Get a document by its unique ID. This endpoint response returns a JSON - * object with the document data. - * - * @param {string} databaseId - * @param {string} collectionId - * @param {string} documentId - * @param {string[]} queries - * @throws {AppwriteException} - * @returns {Promise} - */ - async getDocument(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise { - if (typeof databaseId === 'undefined') { - throw new AppwriteException('Missing required parameter: "databaseId"'); - } - - if (typeof collectionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "collectionId"'); - } - - if (typeof documentId === 'undefined') { - throw new AppwriteException('Missing required parameter: "documentId"'); - } - - const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId); - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update document - * - * Update a document by its unique ID. Using the patch method you can pass - * only specific fields that will get updated. - * - * @param {string} databaseId - * @param {string} collectionId - * @param {string} documentId - * @param {object} data - * @param {string[]} permissions - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateDocument(databaseId: string, collectionId: string, documentId: string, data?: object, permissions?: string[]): Promise { - if (typeof databaseId === 'undefined') { - throw new AppwriteException('Missing required parameter: "databaseId"'); - } - - if (typeof collectionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "collectionId"'); - } - - if (typeof documentId === 'undefined') { - throw new AppwriteException('Missing required parameter: "documentId"'); - } - - const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId); - const payload: Payload = {}; - - if (typeof data !== 'undefined') { - payload['data'] = data; - } - - if (typeof permissions !== 'undefined') { - payload['permissions'] = permissions; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete document - * - * Delete a document by its unique ID. - * - * @param {string} databaseId - * @param {string} collectionId - * @param {string} documentId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> { - if (typeof databaseId === 'undefined') { - throw new AppwriteException('Missing required parameter: "databaseId"'); - } - - if (typeof collectionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "collectionId"'); - } - - if (typeof documentId === 'undefined') { - throw new AppwriteException('Missing required parameter: "documentId"'); - } - - const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } -}; + const apiPath = + "/databases/{databaseId}/collections/{collectionId}/documents/{documentId}" + .replace("{databaseId}", databaseId) + .replace("{collectionId}", collectionId) + .replace("{documentId}", documentId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/src/services/functions.ts b/src/services/functions.ts index a31f273..90ef07e 100644 --- a/src/services/functions.ts +++ b/src/services/functions.ts @@ -1,129 +1,164 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; -import { ExecutionMethod } from '../enums/execution-method'; +import { Platform } from "react-native"; + +import { ExecutionMethod } from "../enums/execution-method"; export class Functions extends Service { + constructor(client: Client) { + super(client); + } + + /** + * List executions + * + * Get a list of all the current user function execution logs. You can use the + * query params to filter your results. + * + * @param {string} functionId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + async listExecutions( + functionId: string, + queries?: string[], + search?: string + ): Promise { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + + const apiPath = "/functions/{functionId}/executions".replace( + "{functionId}", + functionId + ); + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + if (typeof search !== "undefined") { + payload["search"] = search; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create execution + * + * Trigger a function execution. The returned object will return you the + * current execution status. You can ping the `Get Execution` endpoint to get + * updates on the current execution status. Once this endpoint is called, your + * function execution process will start asynchronously. + * + * @param {string} functionId + * @param {string} body + * @param {boolean} async + * @param {string} xpath + * @param {ExecutionMethod} method + * @param {object} headers + * @throws {AppwriteException} + * @returns {Promise} + */ + async createExecution( + functionId: string, + body?: string, + async?: boolean, + xpath?: string, + method?: ExecutionMethod, + headers?: object + ): Promise { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + + const apiPath = "/functions/{functionId}/executions".replace( + "{functionId}", + functionId + ); + const payload: Payload = {}; - constructor(client: Client) - { - super(client); - } - - /** - * List executions - * - * Get a list of all the current user function execution logs. You can use the - * query params to filter your results. - * - * @param {string} functionId - * @param {string[]} queries - * @param {string} search - * @throws {AppwriteException} - * @returns {Promise} - */ - async listExecutions(functionId: string, queries?: string[], search?: string): Promise { - if (typeof functionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "functionId"'); - } - - const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId); - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - if (typeof search !== 'undefined') { - payload['search'] = search; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); + if (typeof body !== "undefined") { + payload["body"] = body; } - /** - * Create execution - * - * Trigger a function execution. The returned object will return you the - * current execution status. You can ping the `Get Execution` endpoint to get - * updates on the current execution status. Once this endpoint is called, your - * function execution process will start asynchronously. - * - * @param {string} functionId - * @param {string} body - * @param {boolean} async - * @param {string} xpath - * @param {ExecutionMethod} method - * @param {object} headers - * @throws {AppwriteException} - * @returns {Promise} - */ - async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object): Promise { - if (typeof functionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "functionId"'); - } - - const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId); - const payload: Payload = {}; - - if (typeof body !== 'undefined') { - payload['body'] = body; - } - - if (typeof async !== 'undefined') { - payload['async'] = async; - } - - if (typeof xpath !== 'undefined') { - payload['path'] = xpath; - } - - if (typeof method !== 'undefined') { - payload['method'] = method; - } - - if (typeof headers !== 'undefined') { - payload['headers'] = headers; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); + if (typeof async !== "undefined") { + payload["async"] = async; } - /** - * Get execution - * - * Get a function execution log by its unique ID. - * - * @param {string} functionId - * @param {string} executionId - * @throws {AppwriteException} - * @returns {Promise} - */ - async getExecution(functionId: string, executionId: string): Promise { - if (typeof functionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "functionId"'); - } - - if (typeof executionId === 'undefined') { - throw new AppwriteException('Missing required parameter: "executionId"'); - } - - const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); + if (typeof xpath !== "undefined") { + payload["path"] = xpath; } -}; + + if (typeof method !== "undefined") { + payload["method"] = method; + } + + if (typeof headers !== "undefined") { + payload["headers"] = headers; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get execution + * + * Get a function execution log by its unique ID. + * + * @param {string} functionId + * @param {string} executionId + * @throws {AppwriteException} + * @returns {Promise} + */ + async getExecution( + functionId: string, + executionId: string + ): Promise { + if (typeof functionId === "undefined") { + throw new AppwriteException('Missing required parameter: "functionId"'); + } + + if (typeof executionId === "undefined") { + throw new AppwriteException('Missing required parameter: "executionId"'); + } + + const apiPath = "/functions/{functionId}/executions/{executionId}" + .replace("{functionId}", functionId) + .replace("{executionId}", executionId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/src/services/graphql.ts b/src/services/graphql.ts index 8b1f2b8..093a841 100644 --- a/src/services/graphql.ts +++ b/src/services/graphql.ts @@ -1,71 +1,78 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; +import { Platform } from "react-native"; export class Graphql extends Service { + constructor(client: Client) { + super(client); + } - constructor(client: Client) - { - super(client); - } - - /** - * GraphQL endpoint - * - * Execute a GraphQL mutation. - * - * @param {object} query - * @throws {AppwriteException} - * @returns {Promise} - */ - async query(query: object): Promise<{}> { - if (typeof query === 'undefined') { - throw new AppwriteException('Missing required parameter: "query"'); - } - - const apiPath = '/graphql'; - const payload: Payload = {}; + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + async query(query: object): Promise<{}> { + if (typeof query === "undefined") { + throw new AppwriteException('Missing required parameter: "query"'); + } - if (typeof query !== 'undefined') { - payload['query'] = query; - } + const apiPath = "/graphql"; + const payload: Payload = {}; - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'x-sdk-graphql': 'true', - 'content-type': 'application/json', - }, payload); + if (typeof query !== "undefined") { + payload["query"] = query; } - /** - * GraphQL endpoint - * - * Execute a GraphQL mutation. - * - * @param {object} query - * @throws {AppwriteException} - * @returns {Promise} - */ - async mutation(query: object): Promise<{}> { - if (typeof query === 'undefined') { - throw new AppwriteException('Missing required parameter: "query"'); - } + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "x-sdk-graphql": "true", + "content-type": "application/json", + }, + payload + ); + } - const apiPath = '/graphql/mutation'; - const payload: Payload = {}; + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + async mutation(query: object): Promise<{}> { + if (typeof query === "undefined") { + throw new AppwriteException('Missing required parameter: "query"'); + } - if (typeof query !== 'undefined') { - payload['query'] = query; - } + const apiPath = "/graphql/mutation"; + const payload: Payload = {}; - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'x-sdk-graphql': 'true', - 'content-type': 'application/json', - }, payload); + if (typeof query !== "undefined") { + payload["query"] = query; } -}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "x-sdk-graphql": "true", + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/src/services/locale.ts b/src/services/locale.ts index de62cfb..d55f175 100644 --- a/src/services/locale.ts +++ b/src/services/locale.ts @@ -1,172 +1,209 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; +import { Platform } from "react-native"; export class Locale extends Service { - - constructor(client: Client) - { - super(client); - } - - /** - * Get user locale - * - * Get the current user location based on IP. Returns an object with user - * country code, country name, continent name, continent code, ip address and - * suggested currency. You can use the locale header to get the data in a - * supported language. - * - * ([IP Geolocation by DB-IP](https://db-ip.com)) - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async get(): Promise { - const apiPath = '/locale'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List Locale Codes - * - * List of all locale codes in [ISO - * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listCodes(): Promise { - const apiPath = '/locale/codes'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List continents - * - * List of all continents. You can use the locale header to get the data in a - * supported language. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listContinents(): Promise { - const apiPath = '/locale/continents'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List countries - * - * List of all countries. You can use the locale header to get the data in a - * supported language. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listCountries(): Promise { - const apiPath = '/locale/countries'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List EU countries - * - * List of all countries that are currently members of the EU. You can use the - * locale header to get the data in a supported language. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listCountriesEU(): Promise { - const apiPath = '/locale/countries/eu'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List countries phone codes - * - * List of all countries phone codes. You can use the locale header to get the - * data in a supported language. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listCountriesPhones(): Promise { - const apiPath = '/locale/countries/phones'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List currencies - * - * List of all currencies, including currency symbol, name, plural, and - * decimal digits for all major and minor currencies. You can use the locale - * header to get the data in a supported language. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listCurrencies(): Promise { - const apiPath = '/locale/currencies'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List languages - * - * List of all languages classified by ISO 639-1 including 2-letter code, name - * in English, and name in the respective language. - * - * @throws {AppwriteException} - * @returns {Promise} - */ - async listLanguages(): Promise { - const apiPath = '/locale/languages'; - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } -}; + constructor(client: Client) { + super(client); + } + + /** + * Get user locale + * + * Get the current user location based on IP. Returns an object with user + * country code, country name, continent name, continent code, ip address and + * suggested currency. You can use the locale header to get the data in a + * supported language. + * + * ([IP Geolocation by DB-IP](https://db-ip.com)) + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async get(): Promise { + const apiPath = "/locale"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List Locale Codes + * + * List of all locale codes in [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listCodes(): Promise { + const apiPath = "/locale/codes"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List continents + * + * List of all continents. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listContinents(): Promise { + const apiPath = "/locale/continents"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List countries + * + * List of all countries. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listCountries(): Promise { + const apiPath = "/locale/countries"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List EU countries + * + * List of all countries that are currently members of the EU. You can use the + * locale header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listCountriesEU(): Promise { + const apiPath = "/locale/countries/eu"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List countries phone codes + * + * List of all countries phone codes. You can use the locale header to get the + * data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listCountriesPhones(): Promise { + const apiPath = "/locale/countries/phones"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List currencies + * + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listCurrencies(): Promise { + const apiPath = "/locale/currencies"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List languages + * + * List of all languages classified by ISO 639-1 including 2-letter code, name + * in English, and name in the respective language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + async listLanguages(): Promise { + const apiPath = "/locale/languages"; + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/src/services/messaging.ts b/src/services/messaging.ts index 26ceb31..c4d94a3 100644 --- a/src/services/messaging.ts +++ b/src/services/messaging.ts @@ -1,84 +1,100 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; +import { Platform } from "react-native"; export class Messaging extends Service { + constructor(client: Client) { + super(client); + } - constructor(client: Client) - { - super(client); - } + /** + * Create subscriber + * + * Create a new subscriber. + * + * @param {string} topicId + * @param {string} subscriberId + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + async createSubscriber( + topicId: string, + subscriberId: string, + targetId: string + ): Promise { + if (typeof topicId === "undefined") { + throw new AppwriteException('Missing required parameter: "topicId"'); + } - /** - * Create subscriber - * - * Create a new subscriber. - * - * @param {string} topicId - * @param {string} subscriberId - * @param {string} targetId - * @throws {AppwriteException} - * @returns {Promise} - */ - async createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise { - if (typeof topicId === 'undefined') { - throw new AppwriteException('Missing required parameter: "topicId"'); - } + if (typeof subscriberId === "undefined") { + throw new AppwriteException('Missing required parameter: "subscriberId"'); + } - if (typeof subscriberId === 'undefined') { - throw new AppwriteException('Missing required parameter: "subscriberId"'); - } + if (typeof targetId === "undefined") { + throw new AppwriteException('Missing required parameter: "targetId"'); + } - if (typeof targetId === 'undefined') { - throw new AppwriteException('Missing required parameter: "targetId"'); - } + const apiPath = "/messaging/topics/{topicId}/subscribers".replace( + "{topicId}", + topicId + ); + const payload: Payload = {}; - const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId); - const payload: Payload = {}; + if (typeof subscriberId !== "undefined") { + payload["subscriberId"] = subscriberId; + } - if (typeof subscriberId !== 'undefined') { - payload['subscriberId'] = subscriberId; - } + if (typeof targetId !== "undefined") { + payload["targetId"] = targetId; + } - if (typeof targetId !== 'undefined') { - payload['targetId'] = targetId; - } + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); + /** + * Delete subscriber + * + * Delete a subscriber by its unique ID. + * + * @param {string} topicId + * @param {string} subscriberId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> { + if (typeof topicId === "undefined") { + throw new AppwriteException('Missing required parameter: "topicId"'); } - /** - * Delete subscriber - * - * Delete a subscriber by its unique ID. - * - * @param {string} topicId - * @param {string} subscriberId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> { - if (typeof topicId === 'undefined') { - throw new AppwriteException('Missing required parameter: "topicId"'); - } - - if (typeof subscriberId === 'undefined') { - throw new AppwriteException('Missing required parameter: "subscriberId"'); - } + if (typeof subscriberId === "undefined") { + throw new AppwriteException('Missing required parameter: "subscriberId"'); + } - const apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId); - const payload: Payload = {}; + const apiPath = "/messaging/topics/{topicId}/subscribers/{subscriberId}" + .replace("{topicId}", topicId) + .replace("{subscriberId}", subscriberId); + const payload: Payload = {}; - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } -}; + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/src/services/storage.ts b/src/services/storage.ts index 1f1ebd4..0f93943 100644 --- a/src/services/storage.ts +++ b/src/services/storage.ts @@ -1,426 +1,497 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; +import fs from "react-native-fs"; +import { Platform } from "react-native"; -import { ImageGravity } from '../enums/image-gravity'; -import { ImageFormat } from '../enums/image-format'; +import { ImageGravity } from "../enums/image-gravity"; +import { ImageFormat } from "../enums/image-format"; export class Storage extends Service { + constructor(client: Client) { + super(client); + } + + /** + * List files + * + * Get a list of all the user files. You can use the query params to filter + * your results. + * + * @param {string} bucketId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + async listFiles( + bucketId: string, + queries?: string[], + search?: string + ): Promise { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files".replace( + "{bucketId}", + bucketId + ); + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + if (typeof search !== "undefined") { + payload["search"] = search; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create file + * + * Create a new file. Before using this route, you should create a new bucket + * resource using either a [server + * integration](https://appwrite.io/docs/server/storage#storageCreateBucket) + * API or directly from your Appwrite console. + * + * Larger files should be uploaded using multiple requests with the + * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) + * header to send a partial request with a maximum supported chunk of `5MB`. + * The `content-range` header values should always be in bytes. + * + * When the first request is sent, the server will return the **File** object, + * and the subsequent part request must include the file's **id** in + * `x-appwrite-id` header to allow the server to know that the partial upload + * is for the existing file and not for a new one. + * + * If you're creating a new file using one of the Appwrite SDKs, all the + * chunking logic will be managed by the SDK internally. + * + * + * @param {string} bucketId + * @param {string} fileId + * @param {{name: string, type: string, size: number, uri: string}} file + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + async createFile( + bucketId: string, + fileId: string, + file: { name: string; type: string; size: number; uri: string }, + permissions?: string[], + onProgress = (progress: UploadProgress) => {} + ): Promise { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + + if (typeof file === "undefined") { + throw new AppwriteException('Missing required parameter: "file"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files".replace( + "{bucketId}", + bucketId + ); + const payload: Payload = {}; + + if (typeof fileId !== "undefined") { + payload["fileId"] = fileId; + } + + if (typeof file !== "undefined") { + payload["file"] = file; + } + + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + + const size = file.size; + + if (size <= Service.CHUNK_SIZE) { + return await this.client.call( + "post", + uri, + { + "content-type": "multipart/form-data", + }, + payload + ); + } + + const apiHeaders: { [header: string]: string } = { + "content-type": "multipart/form-data", + }; + + let offset = 0; + let response = undefined; + if (fileId != "unique()") { + try { + response = await this.client.call( + "GET", + new URL(this.client.config.endpoint + apiPath + "/" + fileId), + apiHeaders + ); + offset = response.chunksUploaded * Service.CHUNK_SIZE; + } catch (e) {} + } + + let timestamp = new Date().getTime(); + while (offset < size) { + let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1); + + apiHeaders["content-range"] = "bytes " + offset + "-" + end + "/" + size; + if (response && response.$id) { + apiHeaders["x-appwrite-id"] = response.$id; + } + + let chunk = await fs.read(file.uri, Service.CHUNK_SIZE, offset, "base64"); + // let chunk = await FileSystem.readAsStringAsync(file.uri, { + // encoding: FileSystem.EncodingType.Base64, + // position: offset, + // length: Service.CHUNK_SIZE + // }); + var path = `data:${file.type};base64,${chunk}`; + if (Platform.OS.toLowerCase() === "android") { + path = "file://" + fs.CachesDirectoryPath + "/tmp_chunk_" + timestamp; + await fs.writeFile(path, chunk, "base64"); + } + + payload["file"] = { uri: path, name: file.name, type: file.type }; + + response = await this.client.call("post", uri, apiHeaders, payload); + + if (onProgress) { + onProgress({ + $id: response.$id, + progress: (offset / size) * 100, + sizeUploaded: offset, + chunksTotal: response.chunksTotal, + chunksUploaded: response.chunksUploaded, + }); + } + offset += Service.CHUNK_SIZE; + } + return response; + } + + /** + * Get file + * + * Get a file by its unique ID. This endpoint response returns a JSON object + * with the file metadata. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + async getFile(bucketId: string, fileId: string): Promise { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update file + * + * Update a file by its unique ID. Only users with write permissions have + * access to update this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @param {string} name + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateFile( + bucketId: string, + fileId: string, + name?: string, + permissions?: string[] + ): Promise { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload: Payload = {}; + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + if (typeof permissions !== "undefined") { + payload["permissions"] = permissions; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete File + * + * Delete a file by its unique ID. Only users with write permissions have + * access to delete this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteFile(bucketId: string, fileId: string): Promise<{}> { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } - constructor(client: Client) - { - super(client); - } - - /** - * List files - * - * Get a list of all the user files. You can use the query params to filter - * your results. - * - * @param {string} bucketId - * @param {string[]} queries - * @param {string} search - * @throws {AppwriteException} - * @returns {Promise} - */ - async listFiles(bucketId: string, queries?: string[], search?: string): Promise { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId); - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - if (typeof search !== 'undefined') { - payload['search'] = search; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create file - * - * Create a new file. Before using this route, you should create a new bucket - * resource using either a [server - * integration](https://appwrite.io/docs/server/storage#storageCreateBucket) - * API or directly from your Appwrite console. - * - * Larger files should be uploaded using multiple requests with the - * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) - * header to send a partial request with a maximum supported chunk of `5MB`. - * The `content-range` header values should always be in bytes. - * - * When the first request is sent, the server will return the **File** object, - * and the subsequent part request must include the file's **id** in - * `x-appwrite-id` header to allow the server to know that the partial upload - * is for the existing file and not for a new one. - * - * If you're creating a new file using one of the Appwrite SDKs, all the - * chunking logic will be managed by the SDK internally. - * - * - * @param {string} bucketId - * @param {string} fileId - * @param {{name: string, type: string, size: number, uri: string}} file - * @param {string[]} permissions - * @throws {AppwriteException} - * @returns {Promise} - */ - async createFile(bucketId: string, fileId: string, file: {name: string, type: string, size: number, uri: string}, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - if (typeof file === 'undefined') { - throw new AppwriteException('Missing required parameter: "file"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId); - const payload: Payload = {}; - - if (typeof fileId !== 'undefined') { - payload['fileId'] = fileId; - } - - if (typeof file !== 'undefined') { - payload['file'] = file; - } - - if (typeof permissions !== 'undefined') { - payload['permissions'] = permissions; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - - const size = file.size; - - if (size <= Service.CHUNK_SIZE) { - return await this.client.call('post', uri, { - 'content-type': 'multipart/form-data', - }, payload); - } - - const apiHeaders: { [header: string]: string } = { - 'content-type': 'multipart/form-data', - } - - let offset = 0; - let response = undefined; - if(fileId != 'unique()') { - try { - response = await this.client.call('GET', new URL(this.client.config.endpoint + apiPath + '/' + fileId), apiHeaders); - offset = response.chunksUploaded * Service.CHUNK_SIZE; - } catch(e) { - } - } - - let timestamp = new Date().getTime(); - while (offset < size) { - let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1); - - apiHeaders['content-range'] = 'bytes ' + offset + '-' + end + '/' + size; - if (response && response.$id) { - apiHeaders['x-appwrite-id'] = response.$id; - } - - let chunk = await FileSystem.readAsStringAsync(file.uri, { - encoding: FileSystem.EncodingType.Base64, - position: offset, - length: Service.CHUNK_SIZE - }); - var path = `data:${file.type};base64,${chunk}`; - if (Platform.OS.toLowerCase() === 'android') { - path = FileSystem.cacheDirectory + '/tmp_chunk_' + timestamp; - await FileSystem.writeAsStringAsync(path, chunk, {encoding: FileSystem.EncodingType.Base64}); - } - - payload['file'] = { uri: path, name: file.name, type: file.type }; - - response = await this.client.call('post', uri, apiHeaders, payload); - - if (onProgress) { - onProgress({ - $id: response.$id, - progress: (offset / size) * 100, - sizeUploaded: offset, - chunksTotal: response.chunksTotal, - chunksUploaded: response.chunksUploaded - }); - } - offset += Service.CHUNK_SIZE; - } - return response; - } - - /** - * Get file - * - * Get a file by its unique ID. This endpoint response returns a JSON object - * with the file metadata. - * - * @param {string} bucketId - * @param {string} fileId - * @throws {AppwriteException} - * @returns {Promise} - */ - async getFile(bucketId: string, fileId: string): Promise { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update file - * - * Update a file by its unique ID. Only users with write permissions have - * access to update this resource. - * - * @param {string} bucketId - * @param {string} fileId - * @param {string} name - * @param {string[]} permissions - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId); - const payload: Payload = {}; - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - if (typeof permissions !== 'undefined') { - payload['permissions'] = permissions; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete File - * - * Delete a file by its unique ID. Only users with write permissions have - * access to delete this resource. - * - * @param {string} bucketId - * @param {string} fileId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteFile(bucketId: string, fileId: string): Promise<{}> { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get file for download - * - * Get a file content by its unique ID. The endpoint response return with a - * 'Content-Disposition: attachment' header that tells the browser to start - * downloading the file to user downloads directory. - * - * @param {string} bucketId - * @param {string} fileId - * @throws {AppwriteException} - * @returns {URL} - */ - getFileDownload(bucketId: string, fileId: string): URL { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get file preview - * - * Get a file preview image. Currently, this method supports preview for image - * files (jpg, png, and gif), other supported formats, like pdf, docs, slides, - * and spreadsheets, will return the file icon image. You can also pass query - * string arguments for cutting and resizing your preview image. Preview is - * supported only for image files smaller than 10MB. - * - * @param {string} bucketId - * @param {string} fileId - * @param {number} width - * @param {number} height - * @param {ImageGravity} gravity - * @param {number} quality - * @param {number} borderWidth - * @param {string} borderColor - * @param {number} borderRadius - * @param {number} opacity - * @param {number} rotation - * @param {string} background - * @param {ImageFormat} output - * @throws {AppwriteException} - * @returns {URL} - */ - getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: ImageGravity, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: ImageFormat): URL { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId); - const payload: Payload = {}; - - if (typeof width !== 'undefined') { - payload['width'] = width; - } - - if (typeof height !== 'undefined') { - payload['height'] = height; - } - - if (typeof gravity !== 'undefined') { - payload['gravity'] = gravity; - } - - if (typeof quality !== 'undefined') { - payload['quality'] = quality; - } - - if (typeof borderWidth !== 'undefined') { - payload['borderWidth'] = borderWidth; - } - - if (typeof borderColor !== 'undefined') { - payload['borderColor'] = borderColor; - } - - if (typeof borderRadius !== 'undefined') { - payload['borderRadius'] = borderRadius; - } - - if (typeof opacity !== 'undefined') { - payload['opacity'] = opacity; - } - - if (typeof rotation !== 'undefined') { - payload['rotation'] = rotation; - } - - if (typeof background !== 'undefined') { - payload['background'] = background; - } - - if (typeof output !== 'undefined') { - payload['output'] = output; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } - - /** - * Get file for view - * - * Get a file content by its unique ID. This endpoint is similar to the - * download method but returns with no 'Content-Disposition: attachment' - * header. - * - * @param {string} bucketId - * @param {string} fileId - * @throws {AppwriteException} - * @returns {URL} - */ - getFileView(bucketId: string, fileId: string): URL { - if (typeof bucketId === 'undefined') { - throw new AppwriteException('Missing required parameter: "bucketId"'); - } - - if (typeof fileId === 'undefined') { - throw new AppwriteException('Missing required parameter: "fileId"'); - } - - const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - payload['project'] = this.client.config.project; - - - for (const [key, value] of Object.entries(Service.flatten(payload))) { - uri.searchParams.append(key, value); - } - return uri; - } -}; + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get file for download + * + * Get a file content by its unique ID. The endpoint response return with a + * 'Content-Disposition: attachment' header that tells the browser to start + * downloading the file to user downloads directory. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileDownload(bucketId: string, fileId: string): URL { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/download" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get file preview + * + * Get a file preview image. Currently, this method supports preview for image + * files (jpg, png, and gif), other supported formats, like pdf, docs, slides, + * and spreadsheets, will return the file icon image. You can also pass query + * string arguments for cutting and resizing your preview image. Preview is + * supported only for image files smaller than 10MB. + * + * @param {string} bucketId + * @param {string} fileId + * @param {number} width + * @param {number} height + * @param {ImageGravity} gravity + * @param {number} quality + * @param {number} borderWidth + * @param {string} borderColor + * @param {number} borderRadius + * @param {number} opacity + * @param {number} rotation + * @param {string} background + * @param {ImageFormat} output + * @throws {AppwriteException} + * @returns {URL} + */ + getFilePreview( + bucketId: string, + fileId: string, + width?: number, + height?: number, + gravity?: ImageGravity, + quality?: number, + borderWidth?: number, + borderColor?: string, + borderRadius?: number, + opacity?: number, + rotation?: number, + background?: string, + output?: ImageFormat + ): URL { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/preview" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload: Payload = {}; + + if (typeof width !== "undefined") { + payload["width"] = width; + } + + if (typeof height !== "undefined") { + payload["height"] = height; + } + + if (typeof gravity !== "undefined") { + payload["gravity"] = gravity; + } + + if (typeof quality !== "undefined") { + payload["quality"] = quality; + } + + if (typeof borderWidth !== "undefined") { + payload["borderWidth"] = borderWidth; + } + + if (typeof borderColor !== "undefined") { + payload["borderColor"] = borderColor; + } + + if (typeof borderRadius !== "undefined") { + payload["borderRadius"] = borderRadius; + } + + if (typeof opacity !== "undefined") { + payload["opacity"] = opacity; + } + + if (typeof rotation !== "undefined") { + payload["rotation"] = rotation; + } + + if (typeof background !== "undefined") { + payload["background"] = background; + } + + if (typeof output !== "undefined") { + payload["output"] = output; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } + + /** + * Get file for view + * + * Get a file content by its unique ID. This endpoint is similar to the + * download method but returns with no 'Content-Disposition: attachment' + * header. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileView(bucketId: string, fileId: string): URL { + if (typeof bucketId === "undefined") { + throw new AppwriteException('Missing required parameter: "bucketId"'); + } + + if (typeof fileId === "undefined") { + throw new AppwriteException('Missing required parameter: "fileId"'); + } + + const apiPath = "/storage/buckets/{bucketId}/files/{fileId}/view" + .replace("{bucketId}", bucketId) + .replace("{fileId}", fileId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + payload["project"] = this.client.config.project; + + for (const [key, value] of Object.entries(Service.flatten(payload))) { + uri.searchParams.append(key, value); + } + return uri; + } +} diff --git a/src/services/teams.ts b/src/services/teams.ts index 88a71ec..850d133 100644 --- a/src/services/teams.ts +++ b/src/services/teams.ts @@ -1,487 +1,598 @@ -import { Service } from '../service'; -import { AppwriteException, Client } from '../client'; -import type { Models } from '../models'; -import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; -import { Platform } from 'react-native'; +import { Service } from "../service"; +import { AppwriteException, Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress, Payload } from "../client"; +import { Platform } from "react-native"; export class Teams extends Service { + constructor(client: Client) { + super(client); + } + + /** + * List teams + * + * Get a list of all the teams in which the current user is a member. You can + * use the parameters to filter your results. + * + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + async list( + queries?: string[], + search?: string + ): Promise> { + const apiPath = "/teams"; + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + if (typeof search !== "undefined") { + payload["search"] = search; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create team + * + * Create a new team. The user who creates the team will automatically be + * assigned as the owner of the team. Only the users with the owner role can + * invite new members, add new owners and delete or update the team. + * + * @param {string} teamId + * @param {string} name + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + async create( + teamId: string, + name: string, + roles?: string[] + ): Promise> { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + + const apiPath = "/teams"; + const payload: Payload = {}; + + if (typeof teamId !== "undefined") { + payload["teamId"] = teamId; + } + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get team + * + * Get a team by its ID. All team members have read access for this resource. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + async get( + teamId: string + ): Promise> { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update name + * + * Update the team's name by its unique ID. + * + * @param {string} teamId + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateName( + teamId: string, + name: string + ): Promise> { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof name === "undefined") { + throw new AppwriteException('Missing required parameter: "name"'); + } + + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload: Payload = {}; + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete team + * + * Delete a team using its ID. Only team members with the owner role can + * delete the team. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + async delete(teamId: string): Promise<{}> { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + const apiPath = "/teams/{teamId}".replace("{teamId}", teamId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * List team memberships + * + * Use this endpoint to list a team's members using the team's ID. All team + * members have read access to this endpoint. + * + * @param {string} teamId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + async listMemberships( + teamId: string, + queries?: string[], + search?: string + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + const apiPath = "/teams/{teamId}/memberships".replace("{teamId}", teamId); + const payload: Payload = {}; + + if (typeof queries !== "undefined") { + payload["queries"] = queries; + } + + if (typeof search !== "undefined") { + payload["search"] = search; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Create team membership + * + * Invite a new member to join your team. Provide an ID for existing users, or + * invite unregistered users using an email or phone number. If initiated from + * a Client SDK, Appwrite will send an email or sms with a link to join the + * team to the invited user, and an account will be created for them if one + * doesn't exist. If initiated from a Server SDK, the new member will be added + * automatically to the team. + * + * You only need to provide one of a user ID, email, or phone number. Appwrite + * will prioritize accepting the user ID > email > phone number if you provide + * more than one of these parameters. + * + * Use the `url` parameter to redirect the user from the invitation email to + * your app. After the user is redirected, use the [Update Team Membership + * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) + * endpoint to allow the user to accept the invitation to the team. + * + * Please note that to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * Appwrite will accept the only redirect URLs under the domains you have + * added as a platform on the Appwrite Console. + * + * + * @param {string} teamId + * @param {string[]} roles + * @param {string} email + * @param {string} userId + * @param {string} phone + * @param {string} url + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + async createMembership( + teamId: string, + roles: string[], + email?: string, + userId?: string, + phone?: string, + url?: string, + name?: string + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof roles === "undefined") { + throw new AppwriteException('Missing required parameter: "roles"'); + } + + const apiPath = "/teams/{teamId}/memberships".replace("{teamId}", teamId); + const payload: Payload = {}; + + if (typeof email !== "undefined") { + payload["email"] = email; + } + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof phone !== "undefined") { + payload["phone"] = phone; + } + + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + + if (typeof url !== "undefined") { + payload["url"] = url; + } + + if (typeof name !== "undefined") { + payload["name"] = name; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "post", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get team membership + * + * Get a team member by the membership unique id. All team members have read + * access for this resource. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + async getMembership( + teamId: string, + membershipId: string + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update membership + * + * Modify the roles of a team member. Only team members with the owner role + * have access to this endpoint. Learn more about [roles and + * permissions](https://appwrite.io/docs/permissions). + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMembership( + teamId: string, + membershipId: string, + roles: string[] + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + + if (typeof roles === "undefined") { + throw new AppwriteException('Missing required parameter: "roles"'); + } + + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload: Payload = {}; + + if (typeof roles !== "undefined") { + payload["roles"] = roles; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Delete team membership + * + * This endpoint allows a user to leave a team or for a team owner to delete + * the membership of any other team member. You can also use this endpoint to + * delete a user membership even if it is not accepted. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + async deleteMembership(teamId: string, membershipId: string): Promise<{}> { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + + const apiPath = "/teams/{teamId}/memberships/{membershipId}" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "delete", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update team membership status + * + * Use this endpoint to allow a user to accept an invitation to join a team + * after being redirected back to your app from the invitation email received + * by the user. + * + * If the request is successful, a session for the user is automatically + * created. + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + async updateMembershipStatus( + teamId: string, + membershipId: string, + userId: string, + secret: string + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof membershipId === "undefined") { + throw new AppwriteException('Missing required parameter: "membershipId"'); + } + + if (typeof userId === "undefined") { + throw new AppwriteException('Missing required parameter: "userId"'); + } + + if (typeof secret === "undefined") { + throw new AppwriteException('Missing required parameter: "secret"'); + } + + const apiPath = "/teams/{teamId}/memberships/{membershipId}/status" + .replace("{teamId}", teamId) + .replace("{membershipId}", membershipId); + const payload: Payload = {}; + + if (typeof userId !== "undefined") { + payload["userId"] = userId; + } + + if (typeof secret !== "undefined") { + payload["secret"] = secret; + } + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "patch", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Get team preferences + * + * Get the team's shared preferences by its unique ID. If a preference doesn't + * need to be shared by all team members, prefer storing them in [user + * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs). + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + async getPrefs( + teamId: string + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + const apiPath = "/teams/{teamId}/prefs".replace("{teamId}", teamId); + const payload: Payload = {}; + + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "get", + uri, + { + "content-type": "application/json", + }, + payload + ); + } + + /** + * Update preferences + * + * Update the team's preferences by its unique ID. The object you pass is + * stored as is and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws an error if exceeded. + * + * @param {string} teamId + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + async updatePrefs( + teamId: string, + prefs: object + ): Promise { + if (typeof teamId === "undefined") { + throw new AppwriteException('Missing required parameter: "teamId"'); + } + + if (typeof prefs === "undefined") { + throw new AppwriteException('Missing required parameter: "prefs"'); + } + + const apiPath = "/teams/{teamId}/prefs".replace("{teamId}", teamId); + const payload: Payload = {}; + + if (typeof prefs !== "undefined") { + payload["prefs"] = prefs; + } - constructor(client: Client) - { - super(client); - } - - /** - * List teams - * - * Get a list of all the teams in which the current user is a member. You can - * use the parameters to filter your results. - * - * @param {string[]} queries - * @param {string} search - * @throws {AppwriteException} - * @returns {Promise} - */ - async list(queries?: string[], search?: string): Promise> { - const apiPath = '/teams'; - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - if (typeof search !== 'undefined') { - payload['search'] = search; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create team - * - * Create a new team. The user who creates the team will automatically be - * assigned as the owner of the team. Only the users with the owner role can - * invite new members, add new owners and delete or update the team. - * - * @param {string} teamId - * @param {string} name - * @param {string[]} roles - * @throws {AppwriteException} - * @returns {Promise} - */ - async create(teamId: string, name: string, roles?: string[]): Promise> { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof name === 'undefined') { - throw new AppwriteException('Missing required parameter: "name"'); - } - - const apiPath = '/teams'; - const payload: Payload = {}; - - if (typeof teamId !== 'undefined') { - payload['teamId'] = teamId; - } - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - if (typeof roles !== 'undefined') { - payload['roles'] = roles; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get team - * - * Get a team by its ID. All team members have read access for this resource. - * - * @param {string} teamId - * @throws {AppwriteException} - * @returns {Promise} - */ - async get(teamId: string): Promise> { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update name - * - * Update the team's name by its unique ID. - * - * @param {string} teamId - * @param {string} name - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateName(teamId: string, name: string): Promise> { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof name === 'undefined') { - throw new AppwriteException('Missing required parameter: "name"'); - } - - const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId); - const payload: Payload = {}; - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete team - * - * Delete a team using its ID. Only team members with the owner role can - * delete the team. - * - * @param {string} teamId - * @throws {AppwriteException} - * @returns {Promise} - */ - async delete(teamId: string): Promise<{}> { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * List team memberships - * - * Use this endpoint to list a team's members using the team's ID. All team - * members have read access to this endpoint. - * - * @param {string} teamId - * @param {string[]} queries - * @param {string} search - * @throws {AppwriteException} - * @returns {Promise} - */ - async listMemberships(teamId: string, queries?: string[], search?: string): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId); - const payload: Payload = {}; - - if (typeof queries !== 'undefined') { - payload['queries'] = queries; - } - - if (typeof search !== 'undefined') { - payload['search'] = search; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Create team membership - * - * Invite a new member to join your team. Provide an ID for existing users, or - * invite unregistered users using an email or phone number. If initiated from - * a Client SDK, Appwrite will send an email or sms with a link to join the - * team to the invited user, and an account will be created for them if one - * doesn't exist. If initiated from a Server SDK, the new member will be added - * automatically to the team. - * - * You only need to provide one of a user ID, email, or phone number. Appwrite - * will prioritize accepting the user ID > email > phone number if you provide - * more than one of these parameters. - * - * Use the `url` parameter to redirect the user from the invitation email to - * your app. After the user is redirected, use the [Update Team Membership - * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) - * endpoint to allow the user to accept the invitation to the team. - * - * Please note that to avoid a [Redirect - * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) - * Appwrite will accept the only redirect URLs under the domains you have - * added as a platform on the Appwrite Console. - * - * - * @param {string} teamId - * @param {string[]} roles - * @param {string} email - * @param {string} userId - * @param {string} phone - * @param {string} url - * @param {string} name - * @throws {AppwriteException} - * @returns {Promise} - */ - async createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof roles === 'undefined') { - throw new AppwriteException('Missing required parameter: "roles"'); - } - - const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId); - const payload: Payload = {}; - - if (typeof email !== 'undefined') { - payload['email'] = email; - } - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof phone !== 'undefined') { - payload['phone'] = phone; - } - - if (typeof roles !== 'undefined') { - payload['roles'] = roles; - } - - if (typeof url !== 'undefined') { - payload['url'] = url; - } - - if (typeof name !== 'undefined') { - payload['name'] = name; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('post', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get team membership - * - * Get a team member by the membership unique id. All team members have read - * access for this resource. - * - * @param {string} teamId - * @param {string} membershipId - * @throws {AppwriteException} - * @returns {Promise} - */ - async getMembership(teamId: string, membershipId: string): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof membershipId === 'undefined') { - throw new AppwriteException('Missing required parameter: "membershipId"'); - } - - const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update membership - * - * Modify the roles of a team member. Only team members with the owner role - * have access to this endpoint. Learn more about [roles and - * permissions](https://appwrite.io/docs/permissions). - * - * - * @param {string} teamId - * @param {string} membershipId - * @param {string[]} roles - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMembership(teamId: string, membershipId: string, roles: string[]): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof membershipId === 'undefined') { - throw new AppwriteException('Missing required parameter: "membershipId"'); - } - - if (typeof roles === 'undefined') { - throw new AppwriteException('Missing required parameter: "roles"'); - } - - const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId); - const payload: Payload = {}; - - if (typeof roles !== 'undefined') { - payload['roles'] = roles; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Delete team membership - * - * This endpoint allows a user to leave a team or for a team owner to delete - * the membership of any other team member. You can also use this endpoint to - * delete a user membership even if it is not accepted. - * - * @param {string} teamId - * @param {string} membershipId - * @throws {AppwriteException} - * @returns {Promise} - */ - async deleteMembership(teamId: string, membershipId: string): Promise<{}> { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof membershipId === 'undefined') { - throw new AppwriteException('Missing required parameter: "membershipId"'); - } - - const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('delete', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update team membership status - * - * Use this endpoint to allow a user to accept an invitation to join a team - * after being redirected back to your app from the invitation email received - * by the user. - * - * If the request is successful, a session for the user is automatically - * created. - * - * - * @param {string} teamId - * @param {string} membershipId - * @param {string} userId - * @param {string} secret - * @throws {AppwriteException} - * @returns {Promise} - */ - async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof membershipId === 'undefined') { - throw new AppwriteException('Missing required parameter: "membershipId"'); - } - - if (typeof userId === 'undefined') { - throw new AppwriteException('Missing required parameter: "userId"'); - } - - if (typeof secret === 'undefined') { - throw new AppwriteException('Missing required parameter: "secret"'); - } - - const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId); - const payload: Payload = {}; - - if (typeof userId !== 'undefined') { - payload['userId'] = userId; - } - - if (typeof secret !== 'undefined') { - payload['secret'] = secret; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('patch', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Get team preferences - * - * Get the team's shared preferences by its unique ID. If a preference doesn't - * need to be shared by all team members, prefer storing them in [user - * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs). - * - * @param {string} teamId - * @throws {AppwriteException} - * @returns {Promise} - */ - async getPrefs(teamId: string): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId); - const payload: Payload = {}; - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('get', uri, { - 'content-type': 'application/json', - }, payload); - } - - /** - * Update preferences - * - * Update the team's preferences by its unique ID. The object you pass is - * stored as is and replaces any previous value. The maximum allowed prefs - * size is 64kB and throws an error if exceeded. - * - * @param {string} teamId - * @param {object} prefs - * @throws {AppwriteException} - * @returns {Promise} - */ - async updatePrefs(teamId: string, prefs: object): Promise { - if (typeof teamId === 'undefined') { - throw new AppwriteException('Missing required parameter: "teamId"'); - } - - if (typeof prefs === 'undefined') { - throw new AppwriteException('Missing required parameter: "prefs"'); - } - - const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId); - const payload: Payload = {}; - - if (typeof prefs !== 'undefined') { - payload['prefs'] = prefs; - } - - const uri = new URL(this.client.config.endpoint + apiPath); - return await this.client.call('put', uri, { - 'content-type': 'application/json', - }, payload); - } -}; + const uri = new URL(this.client.config.endpoint + apiPath); + return await this.client.call( + "put", + uri, + { + "content-type": "application/json", + }, + payload + ); + } +} diff --git a/types/client.d.ts b/types/client.d.ts new file mode 100644 index 0000000..82b8fba --- /dev/null +++ b/types/client.d.ts @@ -0,0 +1,133 @@ +import { Models } from './models'; +declare type Payload = { + [key: string]: any; +}; +declare type Headers = { + [key: string]: string; +}; +export declare type RealtimeResponseEvent = { + events: string[]; + channels: string[]; + timestamp: number; + payload: T; +}; +export declare type UploadProgress = { + $id: string; + progress: number; + sizeUploaded: number; + chunksTotal: number; + chunksUploaded: number; +}; +declare class AppwriteException extends Error { + code: number; + response: string; + type: string; + constructor(message: string, code?: number, type?: string, response?: string); +} +declare class Client { + config: { + endpoint: string; + endpointRealtime: string; + project: string; + jwt: string; + locale: string; + session: string; + platform: string; + }; + headers: Headers; + /** + * Set Endpoint + * + * Your project endpoint + * + * @param {string} endpoint + * + * @returns {this} + */ + setEndpoint(endpoint: string): this; + /** + * Set Realtime Endpoint + * + * @param {string} endpointRealtime + * + * @returns {this} + */ + setEndpointRealtime(endpointRealtime: string): this; + /** + * Set platform + * + * Set platform. Will be used as origin for all requests. + * + * @param {string} platform + * @returns {this} + */ + setPlatform(platform: string): this; + /** + * Set Project + * + * Your project ID + * + * @param value string + * + * @return {this} + */ + setProject(value: string): this; + /** + * Set JWT + * + * Your secret JSON Web Token + * + * @param value string + * + * @return {this} + */ + setJWT(value: string): this; + /** + * Set Locale + * + * @param value string + * + * @return {this} + */ + setLocale(value: string): this; + /** + * Set Session + * + * The user session to authenticate with + * + * @param value string + * + * @return {this} + */ + setSession(value: string): this; + private realtime; + /** + * Subscribes to Appwrite events and passes you the payload in realtime. + * + * @param {string|string[]} channels + * Channel to subscribe - pass a single channel as a string or multiple with an array of strings. + * + * Possible channels are: + * - account + * - collections + * - collections.[ID] + * - collections.[ID].documents + * - documents + * - documents.[ID] + * - files + * - files.[ID] + * - executions + * - executions.[ID] + * - functions.[ID] + * - teams + * - teams.[ID] + * - memberships + * - memberships.[ID] + * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update. + * @returns {() => void} Unsubscribes from events. + */ + subscribe(channels: string | string[], callback: (payload: RealtimeResponseEvent) => void): () => void; + call(method: string, url: URL, headers?: Headers, params?: Payload): Promise; +} +export { Client, AppwriteException }; +export type { Models, Payload }; diff --git a/types/enums/authentication-factor.d.ts b/types/enums/authentication-factor.d.ts new file mode 100644 index 0000000..3cc303a --- /dev/null +++ b/types/enums/authentication-factor.d.ts @@ -0,0 +1,6 @@ +export declare enum AuthenticationFactor { + Email = "email", + Phone = "phone", + Totp = "totp", + Recoverycode = "recoverycode" +} diff --git a/types/enums/authenticator-type.d.ts b/types/enums/authenticator-type.d.ts new file mode 100644 index 0000000..74663ab --- /dev/null +++ b/types/enums/authenticator-type.d.ts @@ -0,0 +1,3 @@ +export declare enum AuthenticatorType { + Totp = "totp" +} diff --git a/types/enums/browser.d.ts b/types/enums/browser.d.ts new file mode 100644 index 0000000..cfaf8e9 --- /dev/null +++ b/types/enums/browser.d.ts @@ -0,0 +1,16 @@ +export declare enum Browser { + AvantBrowser = "aa", + AndroidWebViewBeta = "an", + GoogleChrome = "ch", + GoogleChromeIOS = "ci", + GoogleChromeMobile = "cm", + Chromium = "cr", + MozillaFirefox = "ff", + Safari = "sf", + MobileSafari = "mf", + MicrosoftEdge = "ps", + MicrosoftEdgeIOS = "oi", + OperaMini = "om", + Opera = "op", + OperaNext = "on" +} diff --git a/types/enums/credit-card.d.ts b/types/enums/credit-card.d.ts new file mode 100644 index 0000000..59d1584 --- /dev/null +++ b/types/enums/credit-card.d.ts @@ -0,0 +1,18 @@ +export declare enum CreditCard { + AmericanExpress = "amex", + Argencard = "argencard", + Cabal = "cabal", + Cencosud = "cencosud", + DinersClub = "diners", + Discover = "discover", + Elo = "elo", + Hipercard = "hipercard", + JCB = "jcb", + Mastercard = "mastercard", + Naranja = "naranja", + TarjetaShopping = "targeta-shopping", + UnionChinaPay = "union-china-pay", + Visa = "visa", + MIR = "mir", + Maestro = "maestro" +} diff --git a/types/enums/execution-method.d.ts b/types/enums/execution-method.d.ts new file mode 100644 index 0000000..2eed463 --- /dev/null +++ b/types/enums/execution-method.d.ts @@ -0,0 +1,8 @@ +export declare enum ExecutionMethod { + GET = "GET", + POST = "POST", + PUT = "PUT", + PATCH = "PATCH", + DELETE = "DELETE", + OPTIONS = "OPTIONS" +} diff --git a/types/enums/flag.d.ts b/types/enums/flag.d.ts new file mode 100644 index 0000000..ca72bc2 --- /dev/null +++ b/types/enums/flag.d.ts @@ -0,0 +1,197 @@ +export declare enum Flag { + Afghanistan = "af", + Angola = "ao", + Albania = "al", + Andorra = "ad", + UnitedArabEmirates = "ae", + Argentina = "ar", + Armenia = "am", + AntiguaAndBarbuda = "ag", + Australia = "au", + Austria = "at", + Azerbaijan = "az", + Burundi = "bi", + Belgium = "be", + Benin = "bj", + BurkinaFaso = "bf", + Bangladesh = "bd", + Bulgaria = "bg", + Bahrain = "bh", + Bahamas = "bs", + BosniaAndHerzegovina = "ba", + Belarus = "by", + Belize = "bz", + Bolivia = "bo", + Brazil = "br", + Barbados = "bb", + BruneiDarussalam = "bn", + Bhutan = "bt", + Botswana = "bw", + CentralAfricanRepublic = "cf", + Canada = "ca", + Switzerland = "ch", + Chile = "cl", + China = "cn", + CoteDIvoire = "ci", + Cameroon = "cm", + DemocraticRepublicOfTheCongo = "cd", + RepublicOfTheCongo = "cg", + Colombia = "co", + Comoros = "km", + CapeVerde = "cv", + CostaRica = "cr", + Cuba = "cu", + Cyprus = "cy", + CzechRepublic = "cz", + Germany = "de", + Djibouti = "dj", + Dominica = "dm", + Denmark = "dk", + DominicanRepublic = "do", + Algeria = "dz", + Ecuador = "ec", + Egypt = "eg", + Eritrea = "er", + Spain = "es", + Estonia = "ee", + Ethiopia = "et", + Finland = "fi", + Fiji = "fj", + France = "fr", + MicronesiaFederatedStatesOf = "fm", + Gabon = "ga", + UnitedKingdom = "gb", + Georgia = "ge", + Ghana = "gh", + Guinea = "gn", + Gambia = "gm", + GuineaBissau = "gw", + EquatorialGuinea = "gq", + Greece = "gr", + Grenada = "gd", + Guatemala = "gt", + Guyana = "gy", + Honduras = "hn", + Croatia = "hr", + Haiti = "ht", + Hungary = "hu", + Indonesia = "id", + India = "in", + Ireland = "ie", + IranIslamicRepublicOf = "ir", + Iraq = "iq", + Iceland = "is", + Israel = "il", + Italy = "it", + Jamaica = "jm", + Jordan = "jo", + Japan = "jp", + Kazakhstan = "kz", + Kenya = "ke", + Kyrgyzstan = "kg", + Cambodia = "kh", + Kiribati = "ki", + SaintKittsAndNevis = "kn", + SouthKorea = "kr", + Kuwait = "kw", + LaoPeopleSDemocraticRepublic = "la", + Lebanon = "lb", + Liberia = "lr", + Libya = "ly", + SaintLucia = "lc", + Liechtenstein = "li", + SriLanka = "lk", + Lesotho = "ls", + Lithuania = "lt", + Luxembourg = "lu", + Latvia = "lv", + Morocco = "ma", + Monaco = "mc", + Moldova = "md", + Madagascar = "mg", + Maldives = "mv", + Mexico = "mx", + MarshallIslands = "mh", + NorthMacedonia = "mk", + Mali = "ml", + Malta = "mt", + Myanmar = "mm", + Montenegro = "me", + Mongolia = "mn", + Mozambique = "mz", + Mauritania = "mr", + Mauritius = "mu", + Malawi = "mw", + Malaysia = "my", + Namibia = "na", + Niger = "ne", + Nigeria = "ng", + Nicaragua = "ni", + Netherlands = "nl", + Norway = "no", + Nepal = "np", + Nauru = "nr", + NewZealand = "nz", + Oman = "om", + Pakistan = "pk", + Panama = "pa", + Peru = "pe", + Philippines = "ph", + Palau = "pw", + PapuaNewGuinea = "pg", + Poland = "pl", + FrenchPolynesia = "pf", + NorthKorea = "kp", + Portugal = "pt", + Paraguay = "py", + Qatar = "qa", + Romania = "ro", + Russia = "ru", + Rwanda = "rw", + SaudiArabia = "sa", + Sudan = "sd", + Senegal = "sn", + Singapore = "sg", + SolomonIslands = "sb", + SierraLeone = "sl", + ElSalvador = "sv", + SanMarino = "sm", + Somalia = "so", + Serbia = "rs", + SouthSudan = "ss", + SaoTomeAndPrincipe = "st", + Suriname = "sr", + Slovakia = "sk", + Slovenia = "si", + Sweden = "se", + Eswatini = "sz", + Seychelles = "sc", + Syria = "sy", + Chad = "td", + Togo = "tg", + Thailand = "th", + Tajikistan = "tj", + Turkmenistan = "tm", + TimorLeste = "tl", + Tonga = "to", + TrinidadAndTobago = "tt", + Tunisia = "tn", + Turkey = "tr", + Tuvalu = "tv", + Tanzania = "tz", + Uganda = "ug", + Ukraine = "ua", + Uruguay = "uy", + UnitedStates = "us", + Uzbekistan = "uz", + VaticanCity = "va", + SaintVincentAndTheGrenadines = "vc", + Venezuela = "ve", + Vietnam = "vn", + Vanuatu = "vu", + Samoa = "ws", + Yemen = "ye", + SouthAfrica = "za", + Zambia = "zm", + Zimbabwe = "zw" +} diff --git a/types/enums/image-format.d.ts b/types/enums/image-format.d.ts new file mode 100644 index 0000000..0e68852 --- /dev/null +++ b/types/enums/image-format.d.ts @@ -0,0 +1,7 @@ +export declare enum ImageFormat { + Jpg = "jpg", + Jpeg = "jpeg", + Gif = "gif", + Png = "png", + Webp = "webp" +} diff --git a/types/enums/image-gravity.d.ts b/types/enums/image-gravity.d.ts new file mode 100644 index 0000000..dacae59 --- /dev/null +++ b/types/enums/image-gravity.d.ts @@ -0,0 +1,11 @@ +export declare enum ImageGravity { + Center = "center", + TopLeft = "top-left", + Top = "top", + TopRight = "top-right", + Left = "left", + Right = "right", + BottomLeft = "bottom-left", + Bottom = "bottom", + BottomRight = "bottom-right" +} diff --git a/types/enums/o-auth-provider.d.ts b/types/enums/o-auth-provider.d.ts new file mode 100644 index 0000000..74b800d --- /dev/null +++ b/types/enums/o-auth-provider.d.ts @@ -0,0 +1,41 @@ +export declare enum OAuthProvider { + Amazon = "amazon", + Apple = "apple", + Auth0 = "auth0", + Authentik = "authentik", + Autodesk = "autodesk", + Bitbucket = "bitbucket", + Bitly = "bitly", + Box = "box", + Dailymotion = "dailymotion", + Discord = "discord", + Disqus = "disqus", + Dropbox = "dropbox", + Etsy = "etsy", + Facebook = "facebook", + Github = "github", + Gitlab = "gitlab", + Google = "google", + Linkedin = "linkedin", + Microsoft = "microsoft", + Notion = "notion", + Oidc = "oidc", + Okta = "okta", + Paypal = "paypal", + PaypalSandbox = "paypalSandbox", + Podio = "podio", + Salesforce = "salesforce", + Slack = "slack", + Spotify = "spotify", + Stripe = "stripe", + Tradeshift = "tradeshift", + TradeshiftBox = "tradeshiftBox", + Twitch = "twitch", + Wordpress = "wordpress", + Yahoo = "yahoo", + Yammer = "yammer", + Yandex = "yandex", + Zoho = "zoho", + Zoom = "zoom", + Mock = "mock" +} diff --git a/types/id.d.ts b/types/id.d.ts new file mode 100644 index 0000000..0a6a4f2 --- /dev/null +++ b/types/id.d.ts @@ -0,0 +1,5 @@ +export declare class ID { + #private; + static custom(id: string): string; + static unique(padding?: number): string; +} diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..bbc74cc --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,25 @@ +export { Client, AppwriteException } from './client'; +export { Account } from './services/account'; +export { Avatars } from './services/avatars'; +export { Databases } from './services/databases'; +export { Functions } from './services/functions'; +export { Graphql } from './services/graphql'; +export { Locale } from './services/locale'; +export { Messaging } from './services/messaging'; +export { Storage } from './services/storage'; +export { Teams } from './services/teams'; +export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client'; +export type { QueryTypes, QueryTypesList } from './query'; +export { Query } from './query'; +export { Permission } from './permission'; +export { Role } from './role'; +export { ID } from './id'; +export { AuthenticatorType } from './enums/authenticator-type'; +export { AuthenticationFactor } from './enums/authentication-factor'; +export { OAuthProvider } from './enums/o-auth-provider'; +export { Browser } from './enums/browser'; +export { CreditCard } from './enums/credit-card'; +export { Flag } from './enums/flag'; +export { ExecutionMethod } from './enums/execution-method'; +export { ImageGravity } from './enums/image-gravity'; +export { ImageFormat } from './enums/image-format'; diff --git a/types/models.d.ts b/types/models.d.ts new file mode 100644 index 0000000..b8f585c --- /dev/null +++ b/types/models.d.ts @@ -0,0 +1,1195 @@ +export declare namespace Models { + /** + * Documents List + */ + type DocumentList = { + /** + * Total number of documents documents that matched your query. + */ + total: number; + /** + * List of documents. + */ + documents: Document[]; + }; + /** + * Sessions List + */ + type SessionList = { + /** + * Total number of sessions documents that matched your query. + */ + total: number; + /** + * List of sessions. + */ + sessions: Session[]; + }; + /** + * Identities List + */ + type IdentityList = { + /** + * Total number of identities documents that matched your query. + */ + total: number; + /** + * List of identities. + */ + identities: Identity[]; + }; + /** + * Logs List + */ + type LogList = { + /** + * Total number of logs documents that matched your query. + */ + total: number; + /** + * List of logs. + */ + logs: Log[]; + }; + /** + * Files List + */ + type FileList = { + /** + * Total number of files documents that matched your query. + */ + total: number; + /** + * List of files. + */ + files: File[]; + }; + /** + * Teams List + */ + type TeamList = { + /** + * Total number of teams documents that matched your query. + */ + total: number; + /** + * List of teams. + */ + teams: Team[]; + }; + /** + * Memberships List + */ + type MembershipList = { + /** + * Total number of memberships documents that matched your query. + */ + total: number; + /** + * List of memberships. + */ + memberships: Membership[]; + }; + /** + * Executions List + */ + type ExecutionList = { + /** + * Total number of executions documents that matched your query. + */ + total: number; + /** + * List of executions. + */ + executions: Execution[]; + }; + /** + * Countries List + */ + type CountryList = { + /** + * Total number of countries documents that matched your query. + */ + total: number; + /** + * List of countries. + */ + countries: Country[]; + }; + /** + * Continents List + */ + type ContinentList = { + /** + * Total number of continents documents that matched your query. + */ + total: number; + /** + * List of continents. + */ + continents: Continent[]; + }; + /** + * Languages List + */ + type LanguageList = { + /** + * Total number of languages documents that matched your query. + */ + total: number; + /** + * List of languages. + */ + languages: Language[]; + }; + /** + * Currencies List + */ + type CurrencyList = { + /** + * Total number of currencies documents that matched your query. + */ + total: number; + /** + * List of currencies. + */ + currencies: Currency[]; + }; + /** + * Phones List + */ + type PhoneList = { + /** + * Total number of phones documents that matched your query. + */ + total: number; + /** + * List of phones. + */ + phones: Phone[]; + }; + /** + * Locale codes list + */ + type LocaleCodeList = { + /** + * Total number of localeCodes documents that matched your query. + */ + total: number; + /** + * List of localeCodes. + */ + localeCodes: LocaleCode[]; + }; + /** + * Document + */ + type Document = { + /** + * Document ID. + */ + $id: string; + /** + * Collection ID. + */ + $collectionId: string; + /** + * Database ID. + */ + $databaseId: string; + /** + * Document creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Document update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). + */ + $permissions: string[]; + [key: string]: any; + }; + /** + * Log + */ + type Log = { + /** + * Event name. + */ + event: string; + /** + * User ID. + */ + userId: string; + /** + * User Email. + */ + userEmail: string; + /** + * User Name. + */ + userName: string; + /** + * API mode when event triggered. + */ + mode: string; + /** + * IP session in use when the session was created. + */ + ip: string; + /** + * Log creation date in ISO 8601 format. + */ + time: string; + /** + * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json). + */ + osCode: string; + /** + * Operating system name. + */ + osName: string; + /** + * Operating system version. + */ + osVersion: string; + /** + * Client type. + */ + clientType: string; + /** + * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json). + */ + clientCode: string; + /** + * Client name. + */ + clientName: string; + /** + * Client version. + */ + clientVersion: string; + /** + * Client engine name. + */ + clientEngine: string; + /** + * Client engine name. + */ + clientEngineVersion: string; + /** + * Device name. + */ + deviceName: string; + /** + * Device brand name. + */ + deviceBrand: string; + /** + * Device model name. + */ + deviceModel: string; + /** + * Country two-character ISO 3166-1 alpha code. + */ + countryCode: string; + /** + * Country name. + */ + countryName: string; + }; + /** + * User + */ + type User = { + /** + * User ID. + */ + $id: string; + /** + * User creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * User update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * User name. + */ + name: string; + /** + * Hashed user password. + */ + password?: string; + /** + * Password hashing algorithm. + */ + hash?: string; + /** + * Password hashing algorithm configuration. + */ + hashOptions?: object; + /** + * User registration date in ISO 8601 format. + */ + registration: string; + /** + * User status. Pass `true` for enabled and `false` for disabled. + */ + status: boolean; + /** + * Labels for the user. + */ + labels: string[]; + /** + * Password update time in ISO 8601 format. + */ + passwordUpdate: string; + /** + * User email address. + */ + email: string; + /** + * User phone number in E.164 format. + */ + phone: string; + /** + * Email verification status. + */ + emailVerification: boolean; + /** + * Phone verification status. + */ + phoneVerification: boolean; + /** + * Multi factor authentication status. + */ + mfa: boolean; + /** + * User preferences as a key-value object + */ + prefs: Preferences; + /** + * A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider. + */ + targets: Target[]; + /** + * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours. + */ + accessedAt: string; + }; + /** + * AlgoMD5 + */ + type AlgoMd5 = { + /** + * Algo type. + */ + type: string; + }; + /** + * AlgoSHA + */ + type AlgoSha = { + /** + * Algo type. + */ + type: string; + }; + /** + * AlgoPHPass + */ + type AlgoPhpass = { + /** + * Algo type. + */ + type: string; + }; + /** + * AlgoBcrypt + */ + type AlgoBcrypt = { + /** + * Algo type. + */ + type: string; + }; + /** + * AlgoScrypt + */ + type AlgoScrypt = { + /** + * Algo type. + */ + type: string; + /** + * CPU complexity of computed hash. + */ + costCpu: number; + /** + * Memory complexity of computed hash. + */ + costMemory: number; + /** + * Parallelization of computed hash. + */ + costParallel: number; + /** + * Length used to compute hash. + */ + length: number; + }; + /** + * AlgoScryptModified + */ + type AlgoScryptModified = { + /** + * Algo type. + */ + type: string; + /** + * Salt used to compute hash. + */ + salt: string; + /** + * Separator used to compute hash. + */ + saltSeparator: string; + /** + * Key used to compute hash. + */ + signerKey: string; + }; + /** + * AlgoArgon2 + */ + type AlgoArgon2 = { + /** + * Algo type. + */ + type: string; + /** + * Memory used to compute hash. + */ + memoryCost: number; + /** + * Amount of time consumed to compute hash + */ + timeCost: number; + /** + * Number of threads used to compute hash. + */ + threads: number; + }; + /** + * Preferences + */ + type Preferences = { + [key: string]: any; + }; + /** + * Session + */ + type Session = { + /** + * Session ID. + */ + $id: string; + /** + * Session creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Session update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * User ID. + */ + userId: string; + /** + * Session expiration date in ISO 8601 format. + */ + expire: string; + /** + * Session Provider. + */ + provider: string; + /** + * Session Provider User ID. + */ + providerUid: string; + /** + * Session Provider Access Token. + */ + providerAccessToken: string; + /** + * The date of when the access token expires in ISO 8601 format. + */ + providerAccessTokenExpiry: string; + /** + * Session Provider Refresh Token. + */ + providerRefreshToken: string; + /** + * IP in use when the session was created. + */ + ip: string; + /** + * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json). + */ + osCode: string; + /** + * Operating system name. + */ + osName: string; + /** + * Operating system version. + */ + osVersion: string; + /** + * Client type. + */ + clientType: string; + /** + * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json). + */ + clientCode: string; + /** + * Client name. + */ + clientName: string; + /** + * Client version. + */ + clientVersion: string; + /** + * Client engine name. + */ + clientEngine: string; + /** + * Client engine name. + */ + clientEngineVersion: string; + /** + * Device name. + */ + deviceName: string; + /** + * Device brand name. + */ + deviceBrand: string; + /** + * Device model name. + */ + deviceModel: string; + /** + * Country two-character ISO 3166-1 alpha code. + */ + countryCode: string; + /** + * Country name. + */ + countryName: string; + /** + * Returns true if this the current user session. + */ + current: boolean; + /** + * Returns a list of active session factors. + */ + factors: string[]; + /** + * Secret used to authenticate the user. Only included if the request was made with an API key + */ + secret: string; + /** + * Most recent date in ISO 8601 format when the session successfully passed MFA challenge. + */ + mfaUpdatedAt: string; + }; + /** + * Identity + */ + type Identity = { + /** + * Identity ID. + */ + $id: string; + /** + * Identity creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Identity update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * User ID. + */ + userId: string; + /** + * Identity Provider. + */ + provider: string; + /** + * ID of the User in the Identity Provider. + */ + providerUid: string; + /** + * Email of the User in the Identity Provider. + */ + providerEmail: string; + /** + * Identity Provider Access Token. + */ + providerAccessToken: string; + /** + * The date of when the access token expires in ISO 8601 format. + */ + providerAccessTokenExpiry: string; + /** + * Identity Provider Refresh Token. + */ + providerRefreshToken: string; + }; + /** + * Token + */ + type Token = { + /** + * Token ID. + */ + $id: string; + /** + * Token creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * User ID. + */ + userId: string; + /** + * Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. + */ + secret: string; + /** + * Token expiration date in ISO 8601 format. + */ + expire: string; + /** + * Security phrase of a token. Empty if security phrase was not requested when creating a token. It includes randomly generated phrase which is also sent in the external resource such as email. + */ + phrase: string; + }; + /** + * JWT + */ + type Jwt = { + /** + * JWT encoded string. + */ + jwt: string; + }; + /** + * Locale + */ + type Locale = { + /** + * User IP address. + */ + ip: string; + /** + * Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format + */ + countryCode: string; + /** + * Country name. This field support localization. + */ + country: string; + /** + * Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America. + */ + continentCode: string; + /** + * Continent name. This field support localization. + */ + continent: string; + /** + * True if country is part of the European Union. + */ + eu: boolean; + /** + * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format + */ + currency: string; + }; + /** + * LocaleCode + */ + type LocaleCode = { + /** + * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) + */ + code: string; + /** + * Locale name + */ + name: string; + }; + /** + * File + */ + type File = { + /** + * File ID. + */ + $id: string; + /** + * Bucket ID. + */ + bucketId: string; + /** + * File creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * File update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). + */ + $permissions: string[]; + /** + * File name. + */ + name: string; + /** + * File MD5 signature. + */ + signature: string; + /** + * File mime type. + */ + mimeType: string; + /** + * File original size in bytes. + */ + sizeOriginal: number; + /** + * Total number of chunks available + */ + chunksTotal: number; + /** + * Total number of chunks uploaded + */ + chunksUploaded: number; + }; + /** + * Team + */ + type Team = { + /** + * Team ID. + */ + $id: string; + /** + * Team creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Team update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * Team name. + */ + name: string; + /** + * Total number of team members. + */ + total: number; + /** + * Team preferences as a key-value object + */ + prefs: Preferences; + }; + /** + * Membership + */ + type Membership = { + /** + * Membership ID. + */ + $id: string; + /** + * Membership creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Membership update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * User ID. + */ + userId: string; + /** + * User name. + */ + userName: string; + /** + * User email address. + */ + userEmail: string; + /** + * Team ID. + */ + teamId: string; + /** + * Team name. + */ + teamName: string; + /** + * Date, the user has been invited to join the team in ISO 8601 format. + */ + invited: string; + /** + * Date, the user has accepted the invitation to join the team in ISO 8601 format. + */ + joined: string; + /** + * User confirmation status, true if the user has joined the team or false otherwise. + */ + confirm: boolean; + /** + * Multi factor authentication status, true if the user has MFA enabled or false otherwise. + */ + mfa: boolean; + /** + * User list of roles + */ + roles: string[]; + }; + /** + * Execution + */ + type Execution = { + /** + * Execution ID. + */ + $id: string; + /** + * Execution creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * Execution upate date in ISO 8601 format. + */ + $updatedAt: string; + /** + * Execution roles. + */ + $permissions: string[]; + /** + * Function ID. + */ + functionId: string; + /** + * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`. + */ + trigger: string; + /** + * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`. + */ + status: string; + /** + * HTTP request method type. + */ + requestMethod: string; + /** + * HTTP request path and query. + */ + requestPath: string; + /** + * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. + */ + requestHeaders: Headers[]; + /** + * HTTP response status code. + */ + responseStatusCode: number; + /** + * HTTP response body. This will return empty unless execution is created as synchronous. + */ + responseBody: string; + /** + * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. + */ + responseHeaders: Headers[]; + /** + * Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. + */ + logs: string; + /** + * Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. + */ + errors: string; + /** + * Function execution duration in seconds. + */ + duration: number; + }; + /** + * Country + */ + type Country = { + /** + * Country name. + */ + name: string; + /** + * Country two-character ISO 3166-1 alpha code. + */ + code: string; + }; + /** + * Continent + */ + type Continent = { + /** + * Continent name. + */ + name: string; + /** + * Continent two letter code. + */ + code: string; + }; + /** + * Language + */ + type Language = { + /** + * Language name. + */ + name: string; + /** + * Language two-character ISO 639-1 codes. + */ + code: string; + /** + * Language native name. + */ + nativeName: string; + }; + /** + * Currency + */ + type Currency = { + /** + * Currency symbol. + */ + symbol: string; + /** + * Currency name. + */ + name: string; + /** + * Currency native symbol. + */ + symbolNative: string; + /** + * Number of decimal digits. + */ + decimalDigits: number; + /** + * Currency digit rounding. + */ + rounding: number; + /** + * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format. + */ + code: string; + /** + * Currency plural name + */ + namePlural: string; + }; + /** + * Phone + */ + type Phone = { + /** + * Phone code. + */ + code: string; + /** + * Country two-character ISO 3166-1 alpha code. + */ + countryCode: string; + /** + * Country name. + */ + countryName: string; + }; + /** + * Headers + */ + type Headers = { + /** + * Header name. + */ + name: string; + /** + * Header value. + */ + value: string; + }; + /** + * MFA Challenge + */ + type MfaChallenge = { + /** + * Token ID. + */ + $id: string; + /** + * Token creation date in ISO 8601 format. + */ + $createdAt: string; + /** + * User ID. + */ + userId: string; + /** + * Token expiration date in ISO 8601 format. + */ + expire: string; + }; + /** + * MFA Recovery Codes + */ + type MfaRecoveryCodes = { + /** + * Recovery codes. + */ + recoveryCodes: string[]; + }; + /** + * MFAType + */ + type MfaType = { + /** + * Secret token used for TOTP factor. + */ + secret: string; + /** + * URI for authenticator apps. + */ + uri: string; + }; + /** + * MFAFactors + */ + type MfaFactors = { + /** + * Can TOTP be used for MFA challenge for this account. + */ + totp: boolean; + /** + * Can phone (SMS) be used for MFA challenge for this account. + */ + phone: boolean; + /** + * Can email be used for MFA challenge for this account. + */ + email: boolean; + /** + * Can recovery code be used for MFA challenge for this account. + */ + recoveryCode: boolean; + }; + /** + * Subscriber + */ + type Subscriber = { + /** + * Subscriber ID. + */ + $id: string; + /** + * Subscriber creation time in ISO 8601 format. + */ + $createdAt: string; + /** + * Subscriber update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * Target ID. + */ + targetId: string; + /** + * Target. + */ + target: Target; + /** + * Topic ID. + */ + userId: string; + /** + * User Name. + */ + userName: string; + /** + * Topic ID. + */ + topicId: string; + /** + * The target provider type. Can be one of the following: `email`, `sms` or `push`. + */ + providerType: string; + }; + /** + * Target + */ + type Target = { + /** + * Target ID. + */ + $id: string; + /** + * Target creation time in ISO 8601 format. + */ + $createdAt: string; + /** + * Target update date in ISO 8601 format. + */ + $updatedAt: string; + /** + * Target Name. + */ + name: string; + /** + * User ID. + */ + userId: string; + /** + * Provider ID. + */ + providerId?: string; + /** + * The target provider type. Can be one of the following: `email`, `sms` or `push`. + */ + providerType: string; + /** + * The target identifier. + */ + identifier: string; + }; +} diff --git a/types/permission.d.ts b/types/permission.d.ts new file mode 100644 index 0000000..57cfd23 --- /dev/null +++ b/types/permission.d.ts @@ -0,0 +1,7 @@ +export declare class Permission { + static read: (role: string) => string; + static write: (role: string) => string; + static create: (role: string) => string; + static update: (role: string) => string; + static delete: (role: string) => string; +} diff --git a/types/query.d.ts b/types/query.d.ts new file mode 100644 index 0000000..67e7aa9 --- /dev/null +++ b/types/query.d.ts @@ -0,0 +1,34 @@ +declare type QueryTypesSingle = string | number | boolean; +export declare type QueryTypesList = string[] | number[] | boolean[] | Query[]; +export declare type QueryTypes = QueryTypesSingle | QueryTypesList; +declare type AttributesTypes = string | string[]; +export declare class Query { + method: string; + attribute: AttributesTypes | undefined; + values: QueryTypesList | undefined; + constructor(method: string, attribute?: AttributesTypes, values?: QueryTypes); + toString(): string; + static equal: (attribute: string, value: QueryTypes) => string; + static notEqual: (attribute: string, value: QueryTypes) => string; + static lessThan: (attribute: string, value: QueryTypes) => string; + static lessThanEqual: (attribute: string, value: QueryTypes) => string; + static greaterThan: (attribute: string, value: QueryTypes) => string; + static greaterThanEqual: (attribute: string, value: QueryTypes) => string; + static isNull: (attribute: string) => string; + static isNotNull: (attribute: string) => string; + static between: (attribute: string, start: string | number, end: string | number) => string; + static startsWith: (attribute: string, value: string) => string; + static endsWith: (attribute: string, value: string) => string; + static select: (attributes: string[]) => string; + static search: (attribute: string, value: string) => string; + static orderDesc: (attribute: string) => string; + static orderAsc: (attribute: string) => string; + static cursorAfter: (documentId: string) => string; + static cursorBefore: (documentId: string) => string; + static limit: (limit: number) => string; + static offset: (offset: number) => string; + static contains: (attribute: string, value: string | string[]) => string; + static or: (queries: string[]) => string; + static and: (queries: string[]) => string; +} +export {}; diff --git a/types/role.d.ts b/types/role.d.ts new file mode 100644 index 0000000..fc02aac --- /dev/null +++ b/types/role.d.ts @@ -0,0 +1,70 @@ +/** + * Helper class to generate role strings for `Permission`. + */ +export declare class Role { + /** + * Grants access to anyone. + * + * This includes authenticated and unauthenticated users. + * + * @returns {string} + */ + static any(): string; + /** + * Grants access to a specific user by user ID. + * + * You can optionally pass verified or unverified for + * `status` to target specific types of users. + * + * @param {string} id + * @param {string} status + * @returns {string} + */ + static user(id: string, status?: string): string; + /** + * Grants access to any authenticated or anonymous user. + * + * You can optionally pass verified or unverified for + * `status` to target specific types of users. + * + * @param {string} status + * @returns {string} + */ + static users(status?: string): string; + /** + * Grants access to any guest user without a session. + * + * Authenticated users don't have access to this role. + * + * @returns {string} + */ + static guests(): string; + /** + * Grants access to a team by team ID. + * + * You can optionally pass a role for `role` to target + * team members with the specified role. + * + * @param {string} id + * @param {string} role + * @returns {string} + */ + static team(id: string, role?: string): string; + /** + * Grants access to a specific member of a team. + * + * When the member is removed from the team, they will + * no longer have access. + * + * @param {string} id + * @returns {string} + */ + static member(id: string): string; + /** + * Grants access to a user with the specified label. + * + * @param {string} name + * @returns {string} + */ + static label(name: string): string; +} diff --git a/types/service.d.ts b/types/service.d.ts new file mode 100644 index 0000000..31edfde --- /dev/null +++ b/types/service.d.ts @@ -0,0 +1,8 @@ +import { Client } from './client'; +import type { Payload } from './client'; +export declare class Service { + static CHUNK_SIZE: number; + client: Client; + constructor(client: Client); + static flatten(data: Payload, prefix?: string): Payload; +} diff --git a/types/services/account.d.ts b/types/services/account.d.ts new file mode 100644 index 0000000..124f2bb --- /dev/null +++ b/types/services/account.d.ts @@ -0,0 +1,676 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +import { AuthenticatorType } from "../enums/authenticator-type"; +import { AuthenticationFactor } from "../enums/authentication-factor"; +import { OAuthProvider } from "../enums/o-auth-provider"; +export declare class Account extends Service { + constructor(client: Client); + /** + * Get account + * + * Get the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + get(): Promise>; + /** + * Create account + * + * Use this endpoint to allow a new user to register a new account in your + * project. After the user registration completes successfully, you can use + * the + * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) + * route to start verifying the user email address. To allow the new user to + * login to their new account, you need to create a new [account + * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession). + * + * @param {string} userId + * @param {string} email + * @param {string} password + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + create(userId: string, email: string, password: string, name?: string): Promise>; + /** + * Update email + * + * Update currently logged in user account email address. After changing user + * address, the user confirmation status will get reset. A new confirmation + * email is not sent automatically however you can use the send confirmation + * email endpoint again to send the confirmation email. For security measures, + * user password is required to complete this request. + * This endpoint can also be used to convert an anonymous account to a normal + * one, by passing an email address and a new password. + * + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updateEmail(email: string, password: string): Promise>; + /** + * List Identities + * + * Get the list of identities for the currently logged in user. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listIdentities(queries?: string[]): Promise; + /** + * Delete identity + * + * Delete an identity by its unique ID. + * + * @param {string} identityId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteIdentity(identityId: string): Promise<{}>; + /** + * Create JWT + * + * Use this endpoint to create a JSON Web Token. You can use the resulting JWT + * to authenticate on behalf of the current user when working with the + * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes + * from its creation and will be invalid if the user will logout in that time + * frame. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createJWT(): Promise; + /** + * List logs + * + * Get the list of latest security activity logs for the currently logged in + * user. Each log returns user IP address, location and date and time of log. + * + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listLogs(queries?: string[]): Promise; + /** + * Update MFA + * + * Enable or disable MFA on an account. + * + * @param {boolean} mfa + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMFA(mfa: boolean): Promise>; + /** + * Add Authenticator + * + * Add an authenticator app to be used as an MFA factor. Verify the + * authenticator using the [verify + * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) + * method. + * + * @param {AuthenticatorType} type + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaAuthenticator(type: AuthenticatorType): Promise; + /** + * Verify Authenticator + * + * Verify an authenticator app after adding it using the [add + * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) + * method. add + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaAuthenticator(type: AuthenticatorType, otp: string): Promise>; + /** + * Delete Authenticator + * + * Delete an authenticator for a user by ID. + * + * @param {AuthenticatorType} type + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteMfaAuthenticator(type: AuthenticatorType, otp: string): Promise<{}>; + /** + * Create 2FA Challenge + * + * Begin the process of MFA verification after sign-in. Finish the flow with + * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) + * method. + * + * @param {AuthenticationFactor} factor + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaChallenge(factor: AuthenticationFactor): Promise; + /** + * Create MFA Challenge (confirmation) + * + * Complete the MFA challenge by providing the one-time password. Finish the + * process of MFA verification by providing the one-time password. To begin + * the flow, use + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @param {string} challengeId + * @param {string} otp + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaChallenge(challengeId: string, otp: string): Promise<{}>; + /** + * List Factors + * + * List the factors available on the account to be used as a MFA challange. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listMfaFactors(): Promise; + /** + * Get MFA Recovery Codes + * + * Get recovery codes that can be used as backup for MFA flow. Before getting + * codes, they must be generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to read recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + getMfaRecoveryCodes(): Promise; + /** + * Create MFA Recovery Codes + * + * Generate recovery codes as backup for MFA flow. It's recommended to + * generate and show then immediately after user successfully adds their + * authehticator. Recovery codes can be used as a MFA verification type in + * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) + * method. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createMfaRecoveryCodes(): Promise; + /** + * Regenerate MFA Recovery Codes + * + * Regenerate recovery codes that can be used as backup for MFA flow. Before + * regenerating codes, they must be first generated using + * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) + * method. An OTP challenge is required to regenreate recovery codes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMfaRecoveryCodes(): Promise; + /** + * Update name + * + * Update currently logged in user account name. + * + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + updateName(name: string): Promise>; + /** + * Update password + * + * Update currently logged in user password. For validation, user is required + * to pass in the new password, and the old password. For users created with + * OAuth, Team Invites and Magic URL, oldPassword is optional. + * + * @param {string} password + * @param {string} oldPassword + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePassword(password: string, oldPassword?: string): Promise>; + /** + * Update phone + * + * Update the currently logged in user's phone number. After updating the + * phone number, the phone verification status will be reset. A confirmation + * SMS is not sent automatically, however you can use the [POST + * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) + * endpoint to send a confirmation SMS. + * + * @param {string} phone + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhone(phone: string, password: string): Promise>; + /** + * Get account preferences + * + * Get the preferences as a key-value object for the currently logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + getPrefs(): Promise; + /** + * Update preferences + * + * Update currently logged in user account preferences. The object you pass is + * stored as is, and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws error if exceeded. + * + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePrefs(prefs: object): Promise>; + /** + * Create password recovery + * + * Sends the user an email with a temporary secret key for password reset. + * When the user clicks the confirmation link he is redirected back to your + * app password reset URL with the secret key and email address values + * attached to the URL query string. Use the query string params to submit a + * request to the [PUT + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) + * endpoint to complete the process. The verification link sent to the user's + * email address is valid for 1 hour. + * + * @param {string} email + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + createRecovery(email: string, url: string): Promise; + /** + * Create password recovery (confirmation) + * + * Use this endpoint to complete the user account password reset. Both the + * **userId** and **secret** arguments will be passed as query parameters to + * the redirect URL you have provided when sending your request to the [POST + * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) + * endpoint. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * @param {string} userId + * @param {string} secret + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + updateRecovery(userId: string, secret: string, password: string): Promise; + /** + * List sessions + * + * Get the list of active sessions across different devices for the currently + * logged in user. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listSessions(): Promise; + /** + * Delete sessions + * + * Delete all sessions from the user account and remove any sessions cookies + * from the end client. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSessions(): Promise<{}>; + /** + * Create anonymous session + * + * Use this endpoint to allow a new user to register an anonymous account in + * your project. This route will also create a new session for the user. To + * allow the new user to convert an anonymous account to a normal account, you + * need to update its [email and + * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) + * or create an [OAuth2 + * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createAnonymousSession(): Promise; + /** + * Create email password session + * + * Allow the user to login into their account by providing a valid email and + * password combination. This route will create a new session for the user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} email + * @param {string} password + * @throws {AppwriteException} + * @returns {Promise} + */ + createEmailPasswordSession(email: string, password: string): Promise; + /** + * Update magic URL session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMagicURLSession(userId: string, secret: string): Promise; + /** + * Create OAuth2 session + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If there is already an active session, the new session will be attached to + * the logged-in account. If there are no active sessions, the server will + * attempt to look for a user with the same email address as the email + * received from the OAuth2 provider and attach the new session to the + * existing user. If no matching user is found - the server will create a new + * user. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Session(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): void | URL; + /** + * Update phone session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhoneSession(userId: string, secret: string): Promise; + /** + * Create session + * + * Use this endpoint to create a session from token. Provide the **userId** + * and **secret** parameters from the successful response of authentication + * flows initiated by token creation. For example, magic URL and phone login. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + createSession(userId: string, secret: string): Promise; + /** + * Get session + * + * Use this endpoint to get a logged in user's session using a Session ID. + * Inputting 'current' will return the current session being used. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + getSession(sessionId: string): Promise; + /** + * Update session + * + * Use this endpoint to extend a session's length. Extending a session is + * useful when session expiry is short. If the session was created using an + * OAuth provider, this endpoint refreshes the access token from the provider. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + updateSession(sessionId: string): Promise; + /** + * Delete session + * + * Logout the user. Use 'current' as the session ID to logout on this device, + * use a session ID to logout on another device. If you're looking to logout + * the user on all devices, use [Delete + * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) + * instead. + * + * @param {string} sessionId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSession(sessionId: string): Promise<{}>; + /** + * Update status + * + * Block the currently logged in user account. Behind the scene, the user + * record is not deleted but permanently blocked from any access. To + * completely delete a user, use the Users API instead. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + updateStatus(): Promise>; + /** + * Create push target + * + * + * @param {string} targetId + * @param {string} identifier + * @param {string} providerId + * @throws {AppwriteException} + * @returns {Promise} + */ + createPushTarget(targetId: string, identifier: string, providerId?: string): Promise; + /** + * Update push target + * + * + * @param {string} targetId + * @param {string} identifier + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePushTarget(targetId: string, identifier: string): Promise; + /** + * Delete push target + * + * + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + deletePushTarget(targetId: string): Promise<{}>; + /** + * Create email token (OTP) + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's email + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} email + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + createEmailToken(userId: string, email: string, phrase?: boolean): Promise; + /** + * Create magic URL token + * + * Sends the user an email with a secret key for creating a session. If the + * provided user ID has not been registered, a new user will be created. When + * the user clicks the link in the email, the user is redirected back to the + * URL you provided with the secret key and userId values attached to the URL + * query string. Use the query string parameters to submit a request to the + * [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The link sent to the user's email + * address is valid for 1 hour. If you are on a mobile device you can leave + * the URL parameter empty, so that the login completion will be handled by + * your Appwrite instance by default. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * + * @param {string} userId + * @param {string} email + * @param {string} url + * @param {boolean} phrase + * @throws {AppwriteException} + * @returns {Promise} + */ + createMagicURLToken(userId: string, email: string, url?: string, phrase?: boolean): Promise; + /** + * Create OAuth2 token + * + * Allow the user to login to their account using the OAuth2 provider of their + * choice. Each OAuth2 provider should be enabled from the Appwrite console + * first. Use the success and failure arguments to provide a redirect URL's + * back to your app when login is completed. + * + * If authentication succeeds, `userId` and `secret` of a token will be + * appended to the success URL as query parameters. These can be used to + * create a new session using the [Create + * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {OAuthProvider} provider + * @param {string} success + * @param {string} failure + * @param {string[]} scopes + * @throws {AppwriteException} + * @returns {void|string} + */ + createOAuth2Token(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): void | URL; + /** + * Create phone token + * + * Sends the user an SMS with a secret key for creating a session. If the + * provided user ID has not be registered, a new user will be created. Use the + * returned user ID and secret and submit a request to the [POST + * /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) + * endpoint to complete the login process. The secret sent to the user's phone + * is valid for 15 minutes. + * + * A user is limited to 10 active sessions at a time by default. [Learn more + * about session + * limits](https://appwrite.io/docs/authentication-security#limits). + * + * @param {string} userId + * @param {string} phone + * @throws {AppwriteException} + * @returns {Promise} + */ + createPhoneToken(userId: string, phone: string): Promise; + /** + * Create email verification + * + * Use this endpoint to send a verification message to your user email address + * to confirm they are the valid owners of that address. Both the **userId** + * and **secret** arguments will be passed as query parameters to the URL you + * have provided to be attached to the verification email. The provided URL + * should redirect the user back to your app and allow you to complete the + * verification process by verifying both the **userId** and **secret** + * parameters. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). + * The verification link sent to the user's email address is valid for 7 days. + * + * Please note that in order to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), + * the only valid redirect URLs are the ones from domains you have set when + * adding your platforms in the console interface. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {Promise} + */ + createVerification(url: string): Promise; + /** + * Create email verification (confirmation) + * + * Use this endpoint to complete the user email verification process. Use both + * the **userId** and **secret** parameters that were attached to your app URL + * to verify the user email ownership. If confirmed this route will return a + * 200 status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateVerification(userId: string, secret: string): Promise; + /** + * Create phone verification + * + * Use this endpoint to send a verification SMS to the currently logged in + * user. This endpoint is meant for use after updating a user's phone number + * using the + * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) + * endpoint. Learn more about how to [complete the verification + * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). + * The verification code sent to the user's phone number is valid for 15 + * minutes. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + createPhoneVerification(): Promise; + /** + * Create phone verification (confirmation) + * + * Use this endpoint to complete the user phone verification process. Use the + * **userId** and **secret** that were sent to your user's phone number to + * verify the user email ownership. If confirmed this route will return a 200 + * status code. + * + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePhoneVerification(userId: string, secret: string): Promise; +} diff --git a/types/services/avatars.d.ts b/types/services/avatars.d.ts new file mode 100644 index 0000000..5765d98 --- /dev/null +++ b/types/services/avatars.d.ts @@ -0,0 +1,149 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import { Browser } from "../enums/browser"; +import { CreditCard } from "../enums/credit-card"; +import { Flag } from "../enums/flag"; +export declare class Avatars extends Service { + constructor(client: Client); + /** + * Get browser icon + * + * You can use this endpoint to show different browser icons to your users. + * The code argument receives the browser code as it appears in your user [GET + * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) + * endpoint. Use width, height and quality arguments to change the output + * settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * @param {Browser} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getBrowser(code: Browser, width?: number, height?: number, quality?: number): URL; + /** + * Get credit card icon + * + * The credit card endpoint will return you the icon of the credit card + * provider you need. Use width, height and quality arguments to change the + * output settings. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {CreditCard} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getCreditCard(code: CreditCard, width?: number, height?: number, quality?: number): URL; + /** + * Get favicon + * + * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote + * website URL. + * + * + * @param {string} url + * @throws {AppwriteException} + * @returns {URL} + */ + getFavicon(url: string): URL; + /** + * Get country flag + * + * You can use this endpoint to show different country flags icons to your + * users. The code argument receives the 2 letter country code. Use width, + * height and quality arguments to change the output settings. Country codes + * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {Flag} code + * @param {number} width + * @param {number} height + * @param {number} quality + * @throws {AppwriteException} + * @returns {URL} + */ + getFlag(code: Flag, width?: number, height?: number, quality?: number): URL; + /** + * Get image from URL + * + * Use this endpoint to fetch a remote image URL and crop it to any image size + * you want. This endpoint is very useful if you need to crop and display + * remote images in your app or in case you want to make sure a 3rd party + * image is properly served using a TLS protocol. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 400x400px. + * + * + * @param {string} url + * @param {number} width + * @param {number} height + * @throws {AppwriteException} + * @returns {URL} + */ + getImage(url: string, width?: number, height?: number): URL; + /** + * Get user initials + * + * Use this endpoint to show your user initials avatar icon on your website or + * app. By default, this route will try to print your logged-in user name or + * email initials. You can also overwrite the user name if you pass the 'name' + * parameter. If no name is given and no user is logged, an empty avatar will + * be returned. + * + * You can use the color and background params to change the avatar colors. By + * default, a random theme will be selected. The random theme will persist for + * the user's initials when reloading the same theme will always return for + * the same initials. + * + * When one dimension is specified and the other is 0, the image is scaled + * with preserved aspect ratio. If both dimensions are 0, the API provides an + * image at source quality. If dimensions are not specified, the default size + * of image returned is 100x100px. + * + * + * @param {string} name + * @param {number} width + * @param {number} height + * @param {string} background + * @throws {AppwriteException} + * @returns {URL} + */ + getInitials(name?: string, width?: number, height?: number, background?: string): URL; + /** + * Get QR code + * + * Converts a given plain text to a QR code image. You can use the query + * parameters to change the size and style of the resulting image. + * + * + * @param {string} text + * @param {number} size + * @param {number} margin + * @param {boolean} download + * @throws {AppwriteException} + * @returns {URL} + */ + getQR(text: string, size?: number, margin?: number, download?: boolean): URL; +} diff --git a/types/services/databases.d.ts b/types/services/databases.d.ts new file mode 100644 index 0000000..aafb88c --- /dev/null +++ b/types/services/databases.d.ts @@ -0,0 +1,77 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +export declare class Databases extends Service { + constructor(client: Client); + /** + * List documents + * + * Get a list of all the user's documents in a given collection. You can use + * the query params to filter your results. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + listDocuments(databaseId: string, collectionId: string, queries?: string[]): Promise>; + /** + * Create document + * + * Create a new Document. Before using this route, you should create a new + * collection resource using either a [server + * integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) + * API or directly from your database console. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + createDocument(databaseId: string, collectionId: string, documentId: string, data: object, permissions?: string[]): Promise; + /** + * Get document + * + * Get a document by its unique ID. This endpoint response returns a JSON + * object with the document data. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {string[]} queries + * @throws {AppwriteException} + * @returns {Promise} + */ + getDocument(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise; + /** + * Update document + * + * Update a document by its unique ID. Using the patch method you can pass + * only specific fields that will get updated. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @param {object} data + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + updateDocument(databaseId: string, collectionId: string, documentId: string, data?: object, permissions?: string[]): Promise; + /** + * Delete document + * + * Delete a document by its unique ID. + * + * @param {string} databaseId + * @param {string} collectionId + * @param {string} documentId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}>; +} diff --git a/types/services/functions.d.ts b/types/services/functions.d.ts new file mode 100644 index 0000000..d716acc --- /dev/null +++ b/types/services/functions.d.ts @@ -0,0 +1,49 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +import { ExecutionMethod } from "../enums/execution-method"; +export declare class Functions extends Service { + constructor(client: Client); + /** + * List executions + * + * Get a list of all the current user function execution logs. You can use the + * query params to filter your results. + * + * @param {string} functionId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listExecutions(functionId: string, queries?: string[], search?: string): Promise; + /** + * Create execution + * + * Trigger a function execution. The returned object will return you the + * current execution status. You can ping the `Get Execution` endpoint to get + * updates on the current execution status. Once this endpoint is called, your + * function execution process will start asynchronously. + * + * @param {string} functionId + * @param {string} body + * @param {boolean} async + * @param {string} xpath + * @param {ExecutionMethod} method + * @param {object} headers + * @throws {AppwriteException} + * @returns {Promise} + */ + createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object): Promise; + /** + * Get execution + * + * Get a function execution log by its unique ID. + * + * @param {string} functionId + * @param {string} executionId + * @throws {AppwriteException} + * @returns {Promise} + */ + getExecution(functionId: string, executionId: string): Promise; +} diff --git a/types/services/graphql.d.ts b/types/services/graphql.d.ts new file mode 100644 index 0000000..298a67e --- /dev/null +++ b/types/services/graphql.d.ts @@ -0,0 +1,25 @@ +import { Service } from "../service"; +import { Client } from "../client"; +export declare class Graphql extends Service { + constructor(client: Client); + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + query(query: object): Promise<{}>; + /** + * GraphQL endpoint + * + * Execute a GraphQL mutation. + * + * @param {object} query + * @throws {AppwriteException} + * @returns {Promise} + */ + mutation(query: object): Promise<{}>; +} diff --git a/types/services/locale.d.ts b/types/services/locale.d.ts new file mode 100644 index 0000000..5c2f449 --- /dev/null +++ b/types/services/locale.d.ts @@ -0,0 +1,91 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +export declare class Locale extends Service { + constructor(client: Client); + /** + * Get user locale + * + * Get the current user location based on IP. Returns an object with user + * country code, country name, continent name, continent code, ip address and + * suggested currency. You can use the locale header to get the data in a + * supported language. + * + * ([IP Geolocation by DB-IP](https://db-ip.com)) + * + * @throws {AppwriteException} + * @returns {Promise} + */ + get(): Promise; + /** + * List Locale Codes + * + * List of all locale codes in [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCodes(): Promise; + /** + * List continents + * + * List of all continents. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listContinents(): Promise; + /** + * List countries + * + * List of all countries. You can use the locale header to get the data in a + * supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountries(): Promise; + /** + * List EU countries + * + * List of all countries that are currently members of the EU. You can use the + * locale header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountriesEU(): Promise; + /** + * List countries phone codes + * + * List of all countries phone codes. You can use the locale header to get the + * data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCountriesPhones(): Promise; + /** + * List currencies + * + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in a supported language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listCurrencies(): Promise; + /** + * List languages + * + * List of all languages classified by ISO 639-1 including 2-letter code, name + * in English, and name in the respective language. + * + * @throws {AppwriteException} + * @returns {Promise} + */ + listLanguages(): Promise; +} diff --git a/types/services/messaging.d.ts b/types/services/messaging.d.ts new file mode 100644 index 0000000..91b1620 --- /dev/null +++ b/types/services/messaging.d.ts @@ -0,0 +1,29 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +export declare class Messaging extends Service { + constructor(client: Client); + /** + * Create subscriber + * + * Create a new subscriber. + * + * @param {string} topicId + * @param {string} subscriberId + * @param {string} targetId + * @throws {AppwriteException} + * @returns {Promise} + */ + createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise; + /** + * Delete subscriber + * + * Delete a subscriber by its unique ID. + * + * @param {string} topicId + * @param {string} subscriberId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteSubscriber(topicId: string, subscriberId: string): Promise<{}>; +} diff --git a/types/services/storage.d.ts b/types/services/storage.d.ts new file mode 100644 index 0000000..dc5ba7b --- /dev/null +++ b/types/services/storage.d.ts @@ -0,0 +1,147 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +import type { UploadProgress } from "../client"; +import { ImageGravity } from "../enums/image-gravity"; +import { ImageFormat } from "../enums/image-format"; +export declare class Storage extends Service { + constructor(client: Client); + /** + * List files + * + * Get a list of all the user files. You can use the query params to filter + * your results. + * + * @param {string} bucketId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listFiles(bucketId: string, queries?: string[], search?: string): Promise; + /** + * Create file + * + * Create a new file. Before using this route, you should create a new bucket + * resource using either a [server + * integration](https://appwrite.io/docs/server/storage#storageCreateBucket) + * API or directly from your Appwrite console. + * + * Larger files should be uploaded using multiple requests with the + * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) + * header to send a partial request with a maximum supported chunk of `5MB`. + * The `content-range` header values should always be in bytes. + * + * When the first request is sent, the server will return the **File** object, + * and the subsequent part request must include the file's **id** in + * `x-appwrite-id` header to allow the server to know that the partial upload + * is for the existing file and not for a new one. + * + * If you're creating a new file using one of the Appwrite SDKs, all the + * chunking logic will be managed by the SDK internally. + * + * + * @param {string} bucketId + * @param {string} fileId + * @param {{name: string, type: string, size: number, uri: string}} file + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + createFile(bucketId: string, fileId: string, file: { + name: string; + type: string; + size: number; + uri: string; + }, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise; + /** + * Get file + * + * Get a file by its unique ID. This endpoint response returns a JSON object + * with the file metadata. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + getFile(bucketId: string, fileId: string): Promise; + /** + * Update file + * + * Update a file by its unique ID. Only users with write permissions have + * access to update this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @param {string} name + * @param {string[]} permissions + * @throws {AppwriteException} + * @returns {Promise} + */ + updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise; + /** + * Delete File + * + * Delete a file by its unique ID. Only users with write permissions have + * access to delete this resource. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteFile(bucketId: string, fileId: string): Promise<{}>; + /** + * Get file for download + * + * Get a file content by its unique ID. The endpoint response return with a + * 'Content-Disposition: attachment' header that tells the browser to start + * downloading the file to user downloads directory. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileDownload(bucketId: string, fileId: string): URL; + /** + * Get file preview + * + * Get a file preview image. Currently, this method supports preview for image + * files (jpg, png, and gif), other supported formats, like pdf, docs, slides, + * and spreadsheets, will return the file icon image. You can also pass query + * string arguments for cutting and resizing your preview image. Preview is + * supported only for image files smaller than 10MB. + * + * @param {string} bucketId + * @param {string} fileId + * @param {number} width + * @param {number} height + * @param {ImageGravity} gravity + * @param {number} quality + * @param {number} borderWidth + * @param {string} borderColor + * @param {number} borderRadius + * @param {number} opacity + * @param {number} rotation + * @param {string} background + * @param {ImageFormat} output + * @throws {AppwriteException} + * @returns {URL} + */ + getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: ImageGravity, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: ImageFormat): URL; + /** + * Get file for view + * + * Get a file content by its unique ID. This endpoint is similar to the + * download method but returns with no 'Content-Disposition: attachment' + * header. + * + * @param {string} bucketId + * @param {string} fileId + * @throws {AppwriteException} + * @returns {URL} + */ + getFileView(bucketId: string, fileId: string): URL; +} diff --git a/types/services/teams.d.ts b/types/services/teams.d.ts new file mode 100644 index 0000000..337546d --- /dev/null +++ b/types/services/teams.d.ts @@ -0,0 +1,197 @@ +import { Service } from "../service"; +import { Client } from "../client"; +import type { Models } from "../models"; +export declare class Teams extends Service { + constructor(client: Client); + /** + * List teams + * + * Get a list of all the teams in which the current user is a member. You can + * use the parameters to filter your results. + * + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + list(queries?: string[], search?: string): Promise>; + /** + * Create team + * + * Create a new team. The user who creates the team will automatically be + * assigned as the owner of the team. Only the users with the owner role can + * invite new members, add new owners and delete or update the team. + * + * @param {string} teamId + * @param {string} name + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + create(teamId: string, name: string, roles?: string[]): Promise>; + /** + * Get team + * + * Get a team by its ID. All team members have read access for this resource. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + get(teamId: string): Promise>; + /** + * Update name + * + * Update the team's name by its unique ID. + * + * @param {string} teamId + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + updateName(teamId: string, name: string): Promise>; + /** + * Delete team + * + * Delete a team using its ID. Only team members with the owner role can + * delete the team. + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + delete(teamId: string): Promise<{}>; + /** + * List team memberships + * + * Use this endpoint to list a team's members using the team's ID. All team + * members have read access to this endpoint. + * + * @param {string} teamId + * @param {string[]} queries + * @param {string} search + * @throws {AppwriteException} + * @returns {Promise} + */ + listMemberships(teamId: string, queries?: string[], search?: string): Promise; + /** + * Create team membership + * + * Invite a new member to join your team. Provide an ID for existing users, or + * invite unregistered users using an email or phone number. If initiated from + * a Client SDK, Appwrite will send an email or sms with a link to join the + * team to the invited user, and an account will be created for them if one + * doesn't exist. If initiated from a Server SDK, the new member will be added + * automatically to the team. + * + * You only need to provide one of a user ID, email, or phone number. Appwrite + * will prioritize accepting the user ID > email > phone number if you provide + * more than one of these parameters. + * + * Use the `url` parameter to redirect the user from the invitation email to + * your app. After the user is redirected, use the [Update Team Membership + * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) + * endpoint to allow the user to accept the invitation to the team. + * + * Please note that to avoid a [Redirect + * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) + * Appwrite will accept the only redirect URLs under the domains you have + * added as a platform on the Appwrite Console. + * + * + * @param {string} teamId + * @param {string[]} roles + * @param {string} email + * @param {string} userId + * @param {string} phone + * @param {string} url + * @param {string} name + * @throws {AppwriteException} + * @returns {Promise} + */ + createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise; + /** + * Get team membership + * + * Get a team member by the membership unique id. All team members have read + * access for this resource. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + getMembership(teamId: string, membershipId: string): Promise; + /** + * Update membership + * + * Modify the roles of a team member. Only team members with the owner role + * have access to this endpoint. Learn more about [roles and + * permissions](https://appwrite.io/docs/permissions). + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string[]} roles + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMembership(teamId: string, membershipId: string, roles: string[]): Promise; + /** + * Delete team membership + * + * This endpoint allows a user to leave a team or for a team owner to delete + * the membership of any other team member. You can also use this endpoint to + * delete a user membership even if it is not accepted. + * + * @param {string} teamId + * @param {string} membershipId + * @throws {AppwriteException} + * @returns {Promise} + */ + deleteMembership(teamId: string, membershipId: string): Promise<{}>; + /** + * Update team membership status + * + * Use this endpoint to allow a user to accept an invitation to join a team + * after being redirected back to your app from the invitation email received + * by the user. + * + * If the request is successful, a session for the user is automatically + * created. + * + * + * @param {string} teamId + * @param {string} membershipId + * @param {string} userId + * @param {string} secret + * @throws {AppwriteException} + * @returns {Promise} + */ + updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise; + /** + * Get team preferences + * + * Get the team's shared preferences by its unique ID. If a preference doesn't + * need to be shared by all team members, prefer storing them in [user + * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs). + * + * @param {string} teamId + * @throws {AppwriteException} + * @returns {Promise} + */ + getPrefs(teamId: string): Promise; + /** + * Update preferences + * + * Update the team's preferences by its unique ID. The object you pass is + * stored as is and replaces any previous value. The maximum allowed prefs + * size is 64kB and throws an error if exceeded. + * + * @param {string} teamId + * @param {object} prefs + * @throws {AppwriteException} + * @returns {Promise} + */ + updatePrefs(teamId: string, prefs: object): Promise; +} From d8a15d5a84894c941dcbc6b385139a5b583b70dd Mon Sep 17 00:00:00 2001 From: Pratham Date: Fri, 9 Aug 2024 04:06:20 +0530 Subject: [PATCH 2/3] changed package name --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd51d90..a383f0b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-appwrite", + "name": "@imprathamdev/react-native-appwrite", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API", "version": "0.4.0", From 6386b082bf4f7afea22d7ed58cbd8bb7560ab128 Mon Sep 17 00:00:00 2001 From: Pratham Sharma <65003151+imPrathamDev@users.noreply.github.com> Date: Sat, 28 Sep 2024 11:00:34 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94816ac..f7c5b1a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Appwrite React Native SDK +# Appwrite React Native (Bare) SDK +## NOTE: I fork this repo for supporting bare react native currently (the time I am writing this) appwrite react native package support expo apps, you can use this package for bare react native apps. ![License](https://img.shields.io/github/license/appwrite/sdk-for-react-native.svg?style=flat-square) ![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square) @@ -113,4 +114,4 @@ This library is auto-generated by Appwrite custom [SDK Generator](https://github ## License -Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. \ No newline at end of file +Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.