Skip to content

Commit cd2b306

Browse files
authored
Merge pull request #102 from appwrite/dev
fix: pong response & chunked upload
2 parents ee5b08b + fbad585 commit cd2b306

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2025 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "node-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"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",
5-
"version": "14.2.0",
5+
"version": "15.0.0",
66
"license": "BSD-3-Clause",
77
"main": "dist/index.js",
88
"type": "commonjs",

src/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AppwriteException extends Error {
3333
}
3434

3535
function getUserAgent() {
36-
let ua = 'AppwriteNodeJSSDK/14.2.0';
36+
let ua = 'AppwriteNodeJSSDK/15.0.0';
3737

3838
// `process` is a global in Node.js, but not fully available in all runtimes.
3939
const platform: string[] = [];
@@ -82,7 +82,7 @@ class Client {
8282
'x-sdk-name': 'Node.js',
8383
'x-sdk-platform': 'server',
8484
'x-sdk-language': 'nodejs',
85-
'x-sdk-version': '14.2.0',
85+
'x-sdk-version': '15.0.0',
8686
'user-agent' : getUserAgent(),
8787
'X-Appwrite-Response-Format': '1.6.0',
8888
};

src/enums/image-format.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export enum ImageFormat {
44
Gif = 'gif',
55
Png = 'png',
66
Webp = 'webp',
7+
Heic = 'heic',
78
Avif = 'avif',
89
}

src/services/account.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ This endpoint can also be used to convert an anonymous account to a normal one,
393393
* @param {string} challengeId
394394
* @param {string} otp
395395
* @throws {AppwriteException}
396-
* @returns {Promise<{}>}
396+
* @returns {Promise<Models.Session>}
397397
*/
398-
async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> {
398+
async updateMfaChallenge(challengeId: string, otp: string): Promise<Models.Session> {
399399
if (typeof challengeId === 'undefined') {
400400
throw new AppwriteException('Missing required parameter: "challengeId"');
401401
}

src/services/functions.ts

+2
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
557557
/**
558558
* Rebuild deployment
559559
*
560+
* 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&#039;s code will be preserved and used for the new build.
560561
*
561562
* @param {string} functionId
562563
* @param {string} deploymentId
@@ -592,6 +593,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
592593
/**
593594
* Cancel deployment
594595
*
596+
* 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&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.
595597
*
596598
* @param {string} functionId
597599
* @param {string} deploymentId

src/services/messaging.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export class Messaging {
461461
/**
462462
* Update SMS
463463
*
464-
* Update an email message by its unique ID.
464+
* Update an SMS message by its unique ID.
465465
466466
*
467467
* @param {string} messageId

src/services/users.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -820,9 +820,9 @@ Labels can be used to grant access to resources. While teams are a way for user&
820820
* @param {string} userId
821821
* @param {AuthenticatorType} type
822822
* @throws {AppwriteException}
823-
* @returns {Promise<Models.User<Preferences>>}
823+
* @returns {Promise<{}>}
824824
*/
825-
async deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: AuthenticatorType): Promise<Models.User<Preferences>> {
825+
async deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise<{}> {
826826
if (typeof userId === 'undefined') {
827827
throw new AppwriteException('Missing required parameter: "userId"');
828828
}

0 commit comments

Comments
 (0)