diff --git a/LICENSE b/LICENSE index 5479bb8..c1602fc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2024 Appwrite (https://appwrite.io) and individual contributors. +Copyright (c) 2025 Appwrite (https://appwrite.io) and individual contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/package.json b/package.json index 84975d6..beac70a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "node-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": "14.2.0", + "version": "15.0.0", "license": "BSD-3-Clause", "main": "dist/index.js", "type": "commonjs", diff --git a/src/client.ts b/src/client.ts index ff7673d..902ae7b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -33,7 +33,7 @@ class AppwriteException extends Error { } function getUserAgent() { - let ua = 'AppwriteNodeJSSDK/14.2.0'; + let ua = 'AppwriteNodeJSSDK/15.0.0'; // `process` is a global in Node.js, but not fully available in all runtimes. const platform: string[] = []; @@ -82,7 +82,7 @@ class Client { 'x-sdk-name': 'Node.js', 'x-sdk-platform': 'server', 'x-sdk-language': 'nodejs', - 'x-sdk-version': '14.2.0', + 'x-sdk-version': '15.0.0', 'user-agent' : getUserAgent(), 'X-Appwrite-Response-Format': '1.6.0', }; diff --git a/src/enums/image-format.ts b/src/enums/image-format.ts index 8599e30..bcbe3e9 100644 --- a/src/enums/image-format.ts +++ b/src/enums/image-format.ts @@ -4,5 +4,6 @@ export enum ImageFormat { Gif = 'gif', Png = 'png', Webp = 'webp', + Heic = 'heic', Avif = 'avif', } \ No newline at end of file diff --git a/src/services/account.ts b/src/services/account.ts index 51c11c3..1f45cc9 100644 --- a/src/services/account.ts +++ b/src/services/account.ts @@ -393,9 +393,9 @@ This endpoint can also be used to convert an anonymous account to a normal one, * @param {string} challengeId * @param {string} otp * @throws {AppwriteException} - * @returns {Promise<{}>} + * @returns {Promise} */ - async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> { + async updateMfaChallenge(challengeId: string, otp: string): Promise { if (typeof challengeId === 'undefined') { throw new AppwriteException('Missing required parameter: "challengeId"'); } diff --git a/src/services/functions.ts b/src/services/functions.ts index f78e272..7c49eaa 100644 --- a/src/services/functions.ts +++ b/src/services/functions.ts @@ -557,6 +557,7 @@ Use the "command" param to set the entrypoint used to execute your cod /** * Rebuild deployment * + * 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. * * @param {string} functionId * @param {string} deploymentId @@ -592,6 +593,7 @@ Use the "command" param to set the entrypoint used to execute your cod /** * Cancel deployment * + * 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. * * @param {string} functionId * @param {string} deploymentId diff --git a/src/services/messaging.ts b/src/services/messaging.ts index ed15db2..e076318 100644 --- a/src/services/messaging.ts +++ b/src/services/messaging.ts @@ -461,7 +461,7 @@ export class Messaging { /** * Update SMS * - * Update an email message by its unique ID. + * Update an SMS message by its unique ID. * * @param {string} messageId diff --git a/src/services/users.ts b/src/services/users.ts index 7efc333..f47662f 100644 --- a/src/services/users.ts +++ b/src/services/users.ts @@ -820,9 +820,9 @@ Labels can be used to grant access to resources. While teams are a way for user& * @param {string} userId * @param {AuthenticatorType} type * @throws {AppwriteException} - * @returns {Promise>} + * @returns {Promise<{}>} */ - async deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise> { + async deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise<{}> { if (typeof userId === 'undefined') { throw new AppwriteException('Missing required parameter: "userId"'); }