Files
ANDJJJJJJ/server/node_modules/node-appwrite/dist/services/functions.mjs.map

1 line
117 KiB
Plaintext

{"version":3,"sources":["../../src/services/functions.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AASjE,IAAM,YAAN,MAAgB;AAAA,EAGnB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA,EAuBA,KACI,kBACG,MACyB;AAC5B,QAAI;AAEJ,QAAI,CAAC,iBAAkB,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACzG,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,SAAS;AAAA,QACT,QAAQ,KAAK,CAAC;AAAA,QACd,OAAO,KAAK,CAAC;AAAA,MACjB;AAAA,IACJ;AAEA,UAAM,UAAU,OAAO;AACvB,UAAM,SAAS,OAAO;AACtB,UAAM,QAAQ,OAAO;AAGrB,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,YAAY,aAAa;AAChC,cAAQ,SAAS,IAAI;AAAA,IACzB;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,cAAQ,QAAQ,IAAI;AAAA,IACxB;AACA,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA,EAqDA,OACI,kBACG,MACqB;AACxB,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,GAAI;AACvF,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,YAAY;AAAA,QACZ,MAAM,KAAK,CAAC;AAAA,QACZ,SA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,OAAO,eAAe,aAAa;AACnC,YAAM,IAAI,kBAAkB,0CAA0C;AAAA,IAC1E;AACA,QAAI,OAAO,eAAe,aAAa;AACnC,YAAM,IAAI,kBAAkB,0CAA0C;AAAA,IAC1E;AAEA,UAAM,UAAU,iDAAiD,QAAQ,gBAAgB,UAAU,EAAE,QAAQ,gBAAgB,UAAU;AACvI,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { AppwriteException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Runtime } from '../enums/runtime';\nimport { TemplateReferenceType } from '../enums/template-reference-type';\nimport { VCSReferenceType } from '../enums/vcs-reference-type';\nimport { DeploymentDownloadType } from '../enums/deployment-download-type';\nimport { ExecutionMethod } from '../enums/execution-method';\n\nexport class Functions {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Get a list of all the project's functions. You can use the query params to filter your results.\n *\n * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId\n * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.\n * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.\n * @throws {AppwriteException}\n * @returns {Promise<Models.FunctionList>}\n */\n list(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.FunctionList>;\n /**\n * Get a list of all the project's functions. You can use the query params to filter your results.\n *\n * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId\n * @param {string} search - Search term to filter your list results. Max length: 256 chars.\n * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.\n * @throws {AppwriteException}\n * @returns {Promise<Models.FunctionList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n list(queries?: string[], search?: string, total?: boolean): Promise<Models.FunctionList>;\n list(\n paramsOrFirst?: { queries?: string[], search?: string, total?: boolean } | string[],\n ...rest: [(string)?, (boolean)?] \n ): Promise<Models.FunctionList> {\n let params: { queries?: string[], search?: string, total?: boolean };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { queries?: string[], search?: string, total?: boolean };\n } else {\n params = {\n queries: paramsOrFirst as string[],\n search: rest[0] as string,\n total: rest[1] as boolean \n };\n }\n \n const queries = params.queries;\n const search = params.search;\n const total = params.total;\n\n\n const apiPath = '/functions';\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n if (typeof total !== 'undefined') {\n payload['total'] = total;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.\n *\n * @param {string} params.functionId - Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.\n * @param {string} params.name - Function name. Max length: 128 chars.\n * @param {Runtime} params.runtime - Execution runtime.\n * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.\n * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.\n * @param {string} params.schedule - Schedule CRON syntax.\n * @param {number} params.timeout - Function maximum execution time in seconds.\n * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.\n * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.\n * @param {string} params.entrypoint - Entrypoint File. This path is relative to the \"providerRootDirectory\".\n * @param {string} params.commands - Build Commands.\n * @param {string[]} params.scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.\n * @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.\n * @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function.\n * @param {string} params.providerBranch - Production branch for the repo linked to the function.\n * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.\n * @param {string} params.providerRootDirectory - Path to function code in the linked repo.\n * @param {string} params.specification - Runtime specification for the function and builds.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n create(params: { functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string }): Promise<Models.Function>;\n /**\n * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.\n *\n * @param {string} functionId - Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.\n * @param {string} name - Function name. Max length: 128 chars.\n * @param {Runtime} runtime - Execution runtime.\n * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.\n * @param {string[]} events - Events list. Maximum of 100 events are allowed.\n * @param {string} schedule - Schedule CRON syntax.\n * @param {number} timeout - Function maximum execution time in seconds.\n * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.\n * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.\n * @param {string} entrypoint - Entrypoint File. This path is relative to the \"providerRootDirectory\".\n * @param {string} commands - Build Commands.\n * @param {string[]} scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.\n * @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.\n * @param {string} providerRepositoryId - Repository ID of the repo linked to the function.\n * @param {string} providerBranch - Production branch for the repo linked to the function.\n * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.\n * @param {string} providerRootDirectory - Path to function code in the linked repo.\n * @param {string} specification - Runtime specification for the function and builds.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;\n create(\n paramsOrFirst: { functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string } | string,\n ...rest: [(string)?, (Runtime)?, (string[])?, (string[])?, (string)?, (number)?, (boolean)?, (boolean)?, (string)?, (string)?, (string[])?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?] \n ): Promise<Models.Function> {\n let params: { functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n name: rest[0] as string,\n runtime: rest[1] as Runtime,\n execute: rest[2] as string[],\n events: rest[3] as string[],\n schedule: rest[4] as string,\n timeout: rest[5] as number,\n enabled: rest[6] as boolean,\n logging: rest[7] as boolean,\n entrypoint: rest[8] as string,\n commands: rest[9] as string,\n scopes: rest[10] as string[],\n installationId: rest[11] as string,\n providerRepositoryId: rest[12] as string,\n providerBranch: rest[13] as string,\n providerSilentMode: rest[14] as boolean,\n providerRootDirectory: rest[15] as string,\n specification: rest[16] as string \n };\n }\n \n const functionId = params.functionId;\n const name = params.name;\n const runtime = params.runtime;\n const execute = params.execute;\n const events = params.events;\n const schedule = params.schedule;\n const timeout = params.timeout;\n const enabled = params.enabled;\n const logging = params.logging;\n const entrypoint = params.entrypoint;\n const commands = params.commands;\n const scopes = params.scopes;\n const installationId = params.installationId;\n const providerRepositoryId = params.providerRepositoryId;\n const providerBranch = params.providerBranch;\n const providerSilentMode = params.providerSilentMode;\n const providerRootDirectory = params.providerRootDirectory;\n const specification = params.specification;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n if (typeof runtime === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"runtime\"');\n }\n\n const apiPath = '/functions';\n const payload: Payload = {};\n if (typeof functionId !== 'undefined') {\n payload['functionId'] = functionId;\n }\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof runtime !== 'undefined') {\n payload['runtime'] = runtime;\n }\n if (typeof execute !== 'undefined') {\n payload['execute'] = execute;\n }\n if (typeof events !== 'undefined') {\n payload['events'] = events;\n }\n if (typeof schedule !== 'undefined') {\n payload['schedule'] = schedule;\n }\n if (typeof timeout !== 'undefined') {\n payload['timeout'] = timeout;\n }\n if (typeof enabled !== 'undefined') {\n payload['enabled'] = enabled;\n }\n if (typeof logging !== 'undefined') {\n payload['logging'] = logging;\n }\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof scopes !== 'undefined') {\n payload['scopes'] = scopes;\n }\n if (typeof installationId !== 'undefined') {\n payload['installationId'] = installationId;\n }\n if (typeof providerRepositoryId !== 'undefined') {\n payload['providerRepositoryId'] = providerRepositoryId;\n }\n if (typeof providerBranch !== 'undefined') {\n payload['providerBranch'] = providerBranch;\n }\n if (typeof providerSilentMode !== 'undefined') {\n payload['providerSilentMode'] = providerSilentMode;\n }\n if (typeof providerRootDirectory !== 'undefined') {\n payload['providerRootDirectory'] = providerRootDirectory;\n }\n if (typeof specification !== 'undefined') {\n payload['specification'] = specification;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a list of all runtimes that are currently active on your instance.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.RuntimeList>}\n */\n listRuntimes(): Promise<Models.RuntimeList> {\n\n const apiPath = '/functions/runtimes';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * List allowed function specifications for this instance.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.SpecificationList>}\n */\n listSpecifications(): Promise<Models.SpecificationList> {\n\n const apiPath = '/functions/specifications';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a function by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n get(params: { functionId: string }): Promise<Models.Function>;\n /**\n * Get a function by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n get(functionId: string): Promise<Models.Function>;\n get(\n paramsOrFirst: { functionId: string } | string \n ): Promise<Models.Function> {\n let params: { functionId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string \n };\n }\n \n const functionId = params.functionId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Update function by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.name - Function name. Max length: 128 chars.\n * @param {Runtime} params.runtime - Execution runtime.\n * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.\n * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.\n * @param {string} params.schedule - Schedule CRON syntax.\n * @param {number} params.timeout - Maximum execution time in seconds.\n * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.\n * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.\n * @param {string} params.entrypoint - Entrypoint File. This path is relative to the \"providerRootDirectory\".\n * @param {string} params.commands - Build Commands.\n * @param {string[]} params.scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.\n * @param {string} params.installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.\n * @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function\n * @param {string} params.providerBranch - Production branch for the repo linked to the function\n * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.\n * @param {string} params.providerRootDirectory - Path to function code in the linked repo.\n * @param {string} params.specification - Runtime specification for the function and builds.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n update(params: { functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string }): Promise<Models.Function>;\n /**\n * Update function by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @param {string} name - Function name. Max length: 128 chars.\n * @param {Runtime} runtime - Execution runtime.\n * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.\n * @param {string[]} events - Events list. Maximum of 100 events are allowed.\n * @param {string} schedule - Schedule CRON syntax.\n * @param {number} timeout - Maximum execution time in seconds.\n * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.\n * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.\n * @param {string} entrypoint - Entrypoint File. This path is relative to the \"providerRootDirectory\".\n * @param {string} commands - Build Commands.\n * @param {string[]} scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.\n * @param {string} installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.\n * @param {string} providerRepositoryId - Repository ID of the repo linked to the function\n * @param {string} providerBranch - Production branch for the repo linked to the function\n * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.\n * @param {string} providerRootDirectory - Path to function code in the linked repo.\n * @param {string} specification - Runtime specification for the function and builds.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;\n update(\n paramsOrFirst: { functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string } | string,\n ...rest: [(string)?, (Runtime)?, (string[])?, (string[])?, (string)?, (number)?, (boolean)?, (boolean)?, (string)?, (string)?, (string[])?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?] \n ): Promise<Models.Function> {\n let params: { functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n name: rest[0] as string,\n runtime: rest[1] as Runtime,\n execute: rest[2] as string[],\n events: rest[3] as string[],\n schedule: rest[4] as string,\n timeout: rest[5] as number,\n enabled: rest[6] as boolean,\n logging: rest[7] as boolean,\n entrypoint: rest[8] as string,\n commands: rest[9] as string,\n scopes: rest[10] as string[],\n installationId: rest[11] as string,\n providerRepositoryId: rest[12] as string,\n providerBranch: rest[13] as string,\n providerSilentMode: rest[14] as boolean,\n providerRootDirectory: rest[15] as string,\n specification: rest[16] as string \n };\n }\n \n const functionId = params.functionId;\n const name = params.name;\n const runtime = params.runtime;\n const execute = params.execute;\n const events = params.events;\n const schedule = params.schedule;\n const timeout = params.timeout;\n const enabled = params.enabled;\n const logging = params.logging;\n const entrypoint = params.entrypoint;\n const commands = params.commands;\n const scopes = params.scopes;\n const installationId = params.installationId;\n const providerRepositoryId = params.providerRepositoryId;\n const providerBranch = params.providerBranch;\n const providerSilentMode = params.providerSilentMode;\n const providerRootDirectory = params.providerRootDirectory;\n const specification = params.specification;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof runtime !== 'undefined') {\n payload['runtime'] = runtime;\n }\n if (typeof execute !== 'undefined') {\n payload['execute'] = execute;\n }\n if (typeof events !== 'undefined') {\n payload['events'] = events;\n }\n if (typeof schedule !== 'undefined') {\n payload['schedule'] = schedule;\n }\n if (typeof timeout !== 'undefined') {\n payload['timeout'] = timeout;\n }\n if (typeof enabled !== 'undefined') {\n payload['enabled'] = enabled;\n }\n if (typeof logging !== 'undefined') {\n payload['logging'] = logging;\n }\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof scopes !== 'undefined') {\n payload['scopes'] = scopes;\n }\n if (typeof installationId !== 'undefined') {\n payload['installationId'] = installationId;\n }\n if (typeof providerRepositoryId !== 'undefined') {\n payload['providerRepositoryId'] = providerRepositoryId;\n }\n if (typeof providerBranch !== 'undefined') {\n payload['providerBranch'] = providerBranch;\n }\n if (typeof providerSilentMode !== 'undefined') {\n payload['providerSilentMode'] = providerSilentMode;\n }\n if (typeof providerRootDirectory !== 'undefined') {\n payload['providerRootDirectory'] = providerRootDirectory;\n }\n if (typeof specification !== 'undefined') {\n payload['specification'] = specification;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'put',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Delete a function by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n delete(params: { functionId: string }): Promise<{}>;\n /**\n * Delete a function by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n delete(functionId: string): Promise<{}>;\n delete(\n paramsOrFirst: { functionId: string } | string \n ): Promise<{}> {\n let params: { functionId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string \n };\n }\n \n const functionId = params.functionId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n updateFunctionDeployment(params: { functionId: string, deploymentId: string }): Promise<Models.Function>;\n /**\n * Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.\n *\n * @param {string} functionId - Function ID.\n * @param {string} deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n updateFunctionDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;\n updateFunctionDeployment(\n paramsOrFirst: { functionId: string, deploymentId: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Function> {\n let params: { functionId: string, deploymentId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, deploymentId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n deploymentId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const deploymentId = params.deploymentId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployment'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof deploymentId !== 'undefined') {\n payload['deploymentId'] = deploymentId;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'patch',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a list of all the function's code deployments. You can use the query params to filter your results.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: buildSize, sourceSize, totalSize, buildDuration, status, activate, type\n * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.\n * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.\n * @throws {AppwriteException}\n * @returns {Promise<Models.DeploymentList>}\n */\n listDeployments(params: { functionId: string, queries?: string[], search?: string, total?: boolean }): Promise<Models.DeploymentList>;\n /**\n * Get a list of all the function's code deployments. You can use the query params to filter your results.\n *\n * @param {string} functionId - Function ID.\n * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: buildSize, sourceSize, totalSize, buildDuration, status, activate, type\n * @param {string} search - Search term to filter your list results. Max length: 256 chars.\n * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.\n * @throws {AppwriteException}\n * @returns {Promise<Models.DeploymentList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n listDeployments(functionId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.DeploymentList>;\n listDeployments(\n paramsOrFirst: { functionId: string, queries?: string[], search?: string, total?: boolean } | string,\n ...rest: [(string[])?, (string)?, (boolean)?] \n ): Promise<Models.DeploymentList> {\n let params: { functionId: string, queries?: string[], search?: string, total?: boolean };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, queries?: string[], search?: string, total?: boolean };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n queries: rest[0] as string[],\n search: rest[1] as string,\n total: rest[2] as boolean \n };\n }\n \n const functionId = params.functionId;\n const queries = params.queries;\n const search = params.search;\n const total = params.total;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n if (typeof total !== 'undefined') {\n payload['total'] = total;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.\n * \n * This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).\n * \n * Use the \"command\" param to set the entrypoint used to execute your code.\n *\n * @param {string} params.functionId - Function ID.\n * @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.\n * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.\n * @param {string} params.entrypoint - Entrypoint File.\n * @param {string} params.commands - Build Commands.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n createDeployment(params: { functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string , onProgress?: (progress: UploadProgress) => void }): Promise<Models.Deployment>;\n /**\n * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.\n * \n * This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).\n * \n * Use the \"command\" param to set the entrypoint used to execute your code.\n *\n * @param {string} functionId - Function ID.\n * @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.\n * @param {boolean} activate - Automatically activate the deployment when it is finished building.\n * @param {string} entrypoint - Entrypoint File.\n * @param {string} commands - Build Commands.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;\n createDeployment(\n paramsOrFirst: { functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void } | string,\n ...rest: [(File)?, (boolean)?, (string)?, (string)?,((progress: UploadProgress) => void)?] \n ): Promise<Models.Deployment> {\n let params: { functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string };\n let onProgress: ((progress: UploadProgress) => void);\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string };\n onProgress = paramsOrFirst?.onProgress as ((progress: UploadProgress) => void);\n } else {\n params = {\n functionId: paramsOrFirst as string,\n code: rest[0] as File,\n activate: rest[1] as boolean,\n entrypoint: rest[2] as string,\n commands: rest[3] as string \n };\n onProgress = rest[4] as ((progress: UploadProgress) => void);\n }\n \n const functionId = params.functionId;\n const code = params.code;\n const activate = params.activate;\n const entrypoint = params.entrypoint;\n const commands = params.commands;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n if (typeof activate === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"activate\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof code !== 'undefined') {\n payload['code'] = code;\n }\n if (typeof activate !== 'undefined') {\n payload['activate'] = activate;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'multipart/form-data',\n }\n\n return this.client.chunkedUpload(\n 'post',\n uri,\n apiHeaders,\n payload,\n onProgress\n );\n }\n\n /**\n * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.deploymentId - Deployment ID.\n * @param {string} params.buildId - Build unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n createDuplicateDeployment(params: { functionId: string, deploymentId: string, buildId?: string }): Promise<Models.Deployment>;\n /**\n * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.\n *\n * @param {string} functionId - Function ID.\n * @param {string} deploymentId - Deployment ID.\n * @param {string} buildId - Build unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;\n createDuplicateDeployment(\n paramsOrFirst: { functionId: string, deploymentId: string, buildId?: string } | string,\n ...rest: [(string)?, (string)?] \n ): Promise<Models.Deployment> {\n let params: { functionId: string, deploymentId: string, buildId?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, deploymentId: string, buildId?: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n deploymentId: rest[0] as string,\n buildId: rest[1] as string \n };\n }\n \n const functionId = params.functionId;\n const deploymentId = params.deploymentId;\n const buildId = params.buildId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/duplicate'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof deploymentId !== 'undefined') {\n payload['deploymentId'] = deploymentId;\n }\n if (typeof buildId !== 'undefined') {\n payload['buildId'] = buildId;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Create a deployment based on a template.\n * \n * Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.repository - Repository name of the template.\n * @param {string} params.owner - The name of the owner of the template.\n * @param {string} params.rootDirectory - Path to function code in the template repo.\n * @param {TemplateReferenceType} params.type - Type for the reference provided. Can be commit, branch, or tag\n * @param {string} params.reference - Reference value, can be a commit hash, branch name, or release tag\n * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n createTemplateDeployment(params: { functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean }): Promise<Models.Deployment>;\n /**\n * Create a deployment based on a template.\n * \n * Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.\n *\n * @param {string} functionId - Function ID.\n * @param {string} repository - Repository name of the template.\n * @param {string} owner - The name of the owner of the template.\n * @param {string} rootDirectory - Path to function code in the template repo.\n * @param {TemplateReferenceType} type - Type for the reference provided. Can be commit, branch, or tag\n * @param {string} reference - Reference value, can be a commit hash, branch name, or release tag\n * @param {boolean} activate - Automatically activate the deployment when it is finished building.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;\n createTemplateDeployment(\n paramsOrFirst: { functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean } | string,\n ...rest: [(string)?, (string)?, (string)?, (TemplateReferenceType)?, (string)?, (boolean)?] \n ): Promise<Models.Deployment> {\n let params: { functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n repository: rest[0] as string,\n owner: rest[1] as string,\n rootDirectory: rest[2] as string,\n type: rest[3] as TemplateReferenceType,\n reference: rest[4] as string,\n activate: rest[5] as boolean \n };\n }\n \n const functionId = params.functionId;\n const repository = params.repository;\n const owner = params.owner;\n const rootDirectory = params.rootDirectory;\n const type = params.type;\n const reference = params.reference;\n const activate = params.activate;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof repository === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"repository\"');\n }\n if (typeof owner === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"owner\"');\n }\n if (typeof rootDirectory === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"rootDirectory\"');\n }\n if (typeof type === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"type\"');\n }\n if (typeof reference === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"reference\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/template'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof repository !== 'undefined') {\n payload['repository'] = repository;\n }\n if (typeof owner !== 'undefined') {\n payload['owner'] = owner;\n }\n if (typeof rootDirectory !== 'undefined') {\n payload['rootDirectory'] = rootDirectory;\n }\n if (typeof type !== 'undefined') {\n payload['type'] = type;\n }\n if (typeof reference !== 'undefined') {\n payload['reference'] = reference;\n }\n if (typeof activate !== 'undefined') {\n payload['activate'] = activate;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Create a deployment when a function is connected to VCS.\n * \n * This endpoint lets you create deployment from a branch, commit, or a tag.\n *\n * @param {string} params.functionId - Function ID.\n * @param {VCSReferenceType} params.type - Type of reference passed. Allowed values are: branch, commit\n * @param {string} params.reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash\n * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n createVcsDeployment(params: { functionId: string, type: VCSReferenceType, reference: string, activate?: boolean }): Promise<Models.Deployment>;\n /**\n * Create a deployment when a function is connected to VCS.\n * \n * This endpoint lets you create deployment from a branch, commit, or a tag.\n *\n * @param {string} functionId - Function ID.\n * @param {VCSReferenceType} type - Type of reference passed. Allowed values are: branch, commit\n * @param {string} reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash\n * @param {boolean} activate - Automatically activate the deployment when it is finished building.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n createVcsDeployment(functionId: string, type: VCSReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;\n createVcsDeployment(\n paramsOrFirst: { functionId: string, type: VCSReferenceType, reference: string, activate?: boolean } | string,\n ...rest: [(VCSReferenceType)?, (string)?, (boolean)?] \n ): Promise<Models.Deployment> {\n let params: { functionId: string, type: VCSReferenceType, reference: string, activate?: boolean };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, type: VCSReferenceType, reference: string, activate?: boolean };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n type: rest[0] as VCSReferenceType,\n reference: rest[1] as string,\n activate: rest[2] as boolean \n };\n }\n \n const functionId = params.functionId;\n const type = params.type;\n const reference = params.reference;\n const activate = params.activate;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof type === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"type\"');\n }\n if (typeof reference === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"reference\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/vcs'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof type !== 'undefined') {\n payload['type'] = type;\n }\n if (typeof reference !== 'undefined') {\n payload['reference'] = reference;\n }\n if (typeof activate !== 'undefined') {\n payload['activate'] = activate;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a function deployment by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n getDeployment(params: { functionId: string, deploymentId: string }): Promise<Models.Deployment>;\n /**\n * Get a function deployment by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @param {string} deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;\n getDeployment(\n paramsOrFirst: { functionId: string, deploymentId: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Deployment> {\n let params: { functionId: string, deploymentId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, deploymentId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n deploymentId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const deploymentId = params.deploymentId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Delete a code deployment by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n deleteDeployment(params: { functionId: string, deploymentId: string }): Promise<{}>;\n /**\n * Delete a code deployment by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @param {string} deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;\n deleteDeployment(\n paramsOrFirst: { functionId: string, deploymentId: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { functionId: string, deploymentId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, deploymentId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n deploymentId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const deploymentId = params.deploymentId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a function deployment 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.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.deploymentId - Deployment ID.\n * @param {DeploymentDownloadType} params.type - Deployment file to download. Can be: \"source\", \"output\".\n * @throws {AppwriteException}\n * @returns {Promise<ArrayBuffer>}\n */\n getDeploymentDownload(params: { functionId: string, deploymentId: string, type?: DeploymentDownloadType }): Promise<ArrayBuffer>;\n /**\n * Get a function deployment 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.\n *\n * @param {string} functionId - Function ID.\n * @param {string} deploymentId - Deployment ID.\n * @param {DeploymentDownloadType} type - Deployment file to download. Can be: \"source\", \"output\".\n * @throws {AppwriteException}\n * @returns {Promise<ArrayBuffer>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getDeploymentDownload(functionId: string, deploymentId: string, type?: DeploymentDownloadType): Promise<ArrayBuffer>;\n getDeploymentDownload(\n paramsOrFirst: { functionId: string, deploymentId: string, type?: DeploymentDownloadType } | string,\n ...rest: [(string)?, (DeploymentDownloadType)?] \n ): Promise<ArrayBuffer> {\n let params: { functionId: string, deploymentId: string, type?: DeploymentDownloadType };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, deploymentId: string, type?: DeploymentDownloadType };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n deploymentId: rest[0] as string,\n type: rest[1] as DeploymentDownloadType \n };\n }\n \n const functionId = params.functionId;\n const deploymentId = params.deploymentId;\n const type = params.type;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n if (typeof type !== 'undefined') {\n payload['type'] = type;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n 'arrayBuffer'\n );\n }\n\n /**\n * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n updateDeploymentStatus(params: { functionId: string, deploymentId: string }): Promise<Models.Deployment>;\n /**\n * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.\n *\n * @param {string} functionId - Function ID.\n * @param {string} deploymentId - Deployment ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n updateDeploymentStatus(functionId: string, deploymentId: string): Promise<Models.Deployment>;\n updateDeploymentStatus(\n paramsOrFirst: { functionId: string, deploymentId: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Deployment> {\n let params: { functionId: string, deploymentId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, deploymentId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n deploymentId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const deploymentId = params.deploymentId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/status'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'patch',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a list of all the current user function execution logs. You can use the query params to filter your results.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId\n * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.\n * @throws {AppwriteException}\n * @returns {Promise<Models.ExecutionList>}\n */\n listExecutions(params: { functionId: string, queries?: string[], total?: boolean }): Promise<Models.ExecutionList>;\n /**\n * Get a list of all the current user function execution logs. You can use the query params to filter your results.\n *\n * @param {string} functionId - Function ID.\n * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId\n * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.\n * @throws {AppwriteException}\n * @returns {Promise<Models.ExecutionList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n listExecutions(functionId: string, queries?: string[], total?: boolean): Promise<Models.ExecutionList>;\n listExecutions(\n paramsOrFirst: { functionId: string, queries?: string[], total?: boolean } | string,\n ...rest: [(string[])?, (boolean)?] \n ): Promise<Models.ExecutionList> {\n let params: { functionId: string, queries?: string[], total?: boolean };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, queries?: string[], total?: boolean };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n queries: rest[0] as string[],\n total: rest[1] as boolean \n };\n }\n \n const functionId = params.functionId;\n const queries = params.queries;\n const total = params.total;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof total !== 'undefined') {\n payload['total'] = total;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.body - HTTP body of execution. Default value is empty string.\n * @param {boolean} params.async - Execute code in the background. Default value is false.\n * @param {string} params.xpath - HTTP path of execution. Path can include query params. Default value is /\n * @param {ExecutionMethod} params.method - HTTP method of execution. Default value is POST.\n * @param {object} params.headers - HTTP headers of execution. Defaults to empty.\n * @param {string} params.scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n */\n createExecution(params: { functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string }): Promise<Models.Execution>;\n /**\n * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.\n *\n * @param {string} functionId - Function ID.\n * @param {string} body - HTTP body of execution. Default value is empty string.\n * @param {boolean} async - Execute code in the background. Default value is false.\n * @param {string} xpath - HTTP path of execution. Path can include query params. Default value is /\n * @param {ExecutionMethod} method - HTTP method of execution. Default value is POST.\n * @param {object} headers - HTTP headers of execution. Defaults to empty.\n * @param {string} scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;\n createExecution(\n paramsOrFirst: { functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string } | string,\n ...rest: [(string)?, (boolean)?, (string)?, (ExecutionMethod)?, (object)?, (string)?] \n ): Promise<Models.Execution> {\n let params: { functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n body: rest[0] as string,\n async: rest[1] as boolean,\n xpath: rest[2] as string,\n method: rest[3] as ExecutionMethod,\n headers: rest[4] as object,\n scheduledAt: rest[5] as string \n };\n }\n \n const functionId = params.functionId;\n const body = params.body;\n const async = params.async;\n const xpath = params.xpath;\n const method = params.method;\n const headers = params.headers;\n const scheduledAt = params.scheduledAt;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof body !== 'undefined') {\n payload['body'] = body;\n }\n if (typeof async !== 'undefined') {\n payload['async'] = async;\n }\n if (typeof xpath !== 'undefined') {\n payload['path'] = xpath;\n }\n if (typeof method !== 'undefined') {\n payload['method'] = method;\n }\n if (typeof headers !== 'undefined') {\n payload['headers'] = headers;\n }\n if (typeof scheduledAt !== 'undefined') {\n payload['scheduledAt'] = scheduledAt;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a function execution log by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.executionId - Execution ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n */\n getExecution(params: { functionId: string, executionId: string }): Promise<Models.Execution>;\n /**\n * Get a function execution log by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @param {string} executionId - Execution ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getExecution(functionId: string, executionId: string): Promise<Models.Execution>;\n getExecution(\n paramsOrFirst: { functionId: string, executionId: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Execution> {\n let params: { functionId: string, executionId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, executionId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n executionId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const executionId = params.executionId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Delete a function execution by its unique ID.\n *\n * @param {string} params.functionId - Function ID.\n * @param {string} params.executionId - Execution ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n deleteExecution(params: { functionId: string, executionId: string }): Promise<{}>;\n /**\n * Delete a function execution by its unique ID.\n *\n * @param {string} functionId - Function ID.\n * @param {string} executionId - Execution ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n deleteExecution(functionId: string, executionId: string): Promise<{}>;\n deleteExecution(\n paramsOrFirst: { functionId: string, executionId: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { functionId: string, executionId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, executionId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n executionId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const executionId = params.executionId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a list of all variables of a specific function.\n *\n * @param {string} params.functionId - Function unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.VariableList>}\n */\n listVariables(params: { functionId: string }): Promise<Models.VariableList>;\n /**\n * Get a list of all variables of a specific function.\n *\n * @param {string} functionId - Function unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.VariableList>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n listVariables(functionId: string): Promise<Models.VariableList>;\n listVariables(\n paramsOrFirst: { functionId: string } | string \n ): Promise<Models.VariableList> {\n let params: { functionId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string \n };\n }\n \n const functionId = params.functionId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n\n const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.\n *\n * @param {string} params.functionId - Function unique ID.\n * @param {string} params.key - Variable key. Max length: 255 chars.\n * @param {string} params.value - Variable value. Max length: 8192 chars.\n * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n createVariable(params: { functionId: string, key: string, value: string, secret?: boolean }): Promise<Models.Variable>;\n /**\n * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.\n *\n * @param {string} functionId - Function unique ID.\n * @param {string} key - Variable key. Max length: 255 chars.\n * @param {string} value - Variable value. Max length: 8192 chars.\n * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n createVariable(functionId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;\n createVariable(\n paramsOrFirst: { functionId: string, key: string, value: string, secret?: boolean } | string,\n ...rest: [(string)?, (string)?, (boolean)?] \n ): Promise<Models.Variable> {\n let params: { functionId: string, key: string, value: string, secret?: boolean };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, key: string, value: string, secret?: boolean };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n key: rest[0] as string,\n value: rest[1] as string,\n secret: rest[2] as boolean \n };\n }\n \n const functionId = params.functionId;\n const key = params.key;\n const value = params.value;\n const secret = params.secret;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof key === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"key\"');\n }\n if (typeof value === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"value\"');\n }\n\n const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof key !== 'undefined') {\n payload['key'] = key;\n }\n if (typeof value !== 'undefined') {\n payload['value'] = value;\n }\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get a variable by its unique ID.\n *\n * @param {string} params.functionId - Function unique ID.\n * @param {string} params.variableId - Variable unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n getVariable(params: { functionId: string, variableId: string }): Promise<Models.Variable>;\n /**\n * Get a variable by its unique ID.\n *\n * @param {string} functionId - Function unique ID.\n * @param {string} variableId - Variable unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getVariable(functionId: string, variableId: string): Promise<Models.Variable>;\n getVariable(\n paramsOrFirst: { functionId: string, variableId: string } | string,\n ...rest: [(string)?] \n ): Promise<Models.Variable> {\n let params: { functionId: string, variableId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, variableId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n variableId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const variableId = params.variableId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Update variable by its unique ID.\n *\n * @param {string} params.functionId - Function unique ID.\n * @param {string} params.variableId - Variable unique ID.\n * @param {string} params.key - Variable key. Max length: 255 chars.\n * @param {string} params.value - Variable value. Max length: 8192 chars.\n * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n updateVariable(params: { functionId: string, variableId: string, key: string, value?: string, secret?: boolean }): Promise<Models.Variable>;\n /**\n * Update variable by its unique ID.\n *\n * @param {string} functionId - Function unique ID.\n * @param {string} variableId - Variable unique ID.\n * @param {string} key - Variable key. Max length: 255 chars.\n * @param {string} value - Variable value. Max length: 8192 chars.\n * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n updateVariable(functionId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;\n updateVariable(\n paramsOrFirst: { functionId: string, variableId: string, key: string, value?: string, secret?: boolean } | string,\n ...rest: [(string)?, (string)?, (string)?, (boolean)?] \n ): Promise<Models.Variable> {\n let params: { functionId: string, variableId: string, key: string, value?: string, secret?: boolean };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, variableId: string, key: string, value?: string, secret?: boolean };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n variableId: rest[0] as string,\n key: rest[1] as string,\n value: rest[2] as string,\n secret: rest[3] as boolean \n };\n }\n \n const functionId = params.functionId;\n const variableId = params.variableId;\n const key = params.key;\n const value = params.value;\n const secret = params.secret;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n if (typeof key === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"key\"');\n }\n\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n if (typeof key !== 'undefined') {\n payload['key'] = key;\n }\n if (typeof value !== 'undefined') {\n payload['value'] = value;\n }\n if (typeof secret !== 'undefined') {\n payload['secret'] = secret;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'put',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Delete a variable by its unique ID.\n *\n * @param {string} params.functionId - Function unique ID.\n * @param {string} params.variableId - Variable unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n deleteVariable(params: { functionId: string, variableId: string }): Promise<{}>;\n /**\n * Delete a variable by its unique ID.\n *\n * @param {string} functionId - Function unique ID.\n * @param {string} variableId - Variable unique ID.\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n deleteVariable(functionId: string, variableId: string): Promise<{}>;\n deleteVariable(\n paramsOrFirst: { functionId: string, variableId: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { functionId: string, variableId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { functionId: string, variableId: string };\n } else {\n params = {\n functionId: paramsOrFirst as string,\n variableId: rest[0] as string \n };\n }\n \n const functionId = params.functionId;\n const variableId = params.variableId;\n\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}