Skip to content

Commit 25efd1d

Browse files
committed
fix: pong response & chunked upload
1 parent 7c865f9 commit 25efd1d

File tree

16 files changed

+78
-54
lines changed

16 files changed

+78
-54
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
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:

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export class Client {
1111
endpoint: string = 'https://cloud.appwrite.io/v1';
1212
headers: Payload = {
1313
'content-type': '',
14-
'user-agent' : `AppwriteDenoSDK/12.2.0 (${Deno.build.os}; ${Deno.build.arch})`,
14+
'user-agent' : `AppwriteDenoSDK/12.2.1 (${Deno.build.os}; ${Deno.build.arch})`,
1515
'x-sdk-name': 'Deno',
1616
'x-sdk-platform': 'server',
1717
'x-sdk-language': 'deno',
18-
'x-sdk-version': '12.2.0',
18+
'x-sdk-version': '12.2.1',
1919
'X-Appwrite-Response-Format':'1.6.0',
2020
};
2121

src/enums/image-format.ts

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export class Account extends Service {
425425
* @throws {AppwriteException}
426426
* @returns {Promise}
427427
*/
428-
async updateMfaChallenge(challengeId: string, otp: string): Promise<Response> {
428+
async updateMfaChallenge(challengeId: string, otp: string): Promise<Models.Session> {
429429
if (typeof challengeId === 'undefined') {
430430
throw new AppwriteException('Missing required parameter: "challengeId"');
431431
}
@@ -1529,4 +1529,4 @@ export class Account extends Service {
15291529
'json'
15301530
);
15311531
}
1532-
}
1532+
}

src/services/avatars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,4 @@ export class Avatars extends Service {
366366
'arraybuffer'
367367
);
368368
}
369-
}
369+
}

src/services/databases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2149,4 +2149,4 @@ export class Databases extends Service {
21492149
'json'
21502150
);
21512151
}
2152-
}
2152+
}

src/services/functions.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export class Functions extends Service {
469469
}
470470

471471
const size = code.size;
472-
472+
473473
const apiHeaders: { [header: string]: string } = {
474474
'content-type': 'multipart/form-data',
475475
};
@@ -501,7 +501,7 @@ export class Functions extends Service {
501501
}
502502

503503
let uploadableChunkTrimmed: Uint8Array;
504-
504+
505505
if(currentPosition + 1 >= Client.CHUNK_SIZE) {
506506
uploadableChunkTrimmed = uploadableChunk;
507507
} else {
@@ -658,6 +658,12 @@ export class Functions extends Service {
658658
/**
659659
* Rebuild deployment
660660
*
661+
* Create a new build for an existing function deployment. This endpoint
662+
* allows you to rebuild a deployment with the updated function configuration,
663+
* including its entrypoint and build commands if they have been modified The
664+
* build process will be queued and executed asynchronously. The original
665+
* deployment's code will be preserved and used for the new build.
666+
*
661667
* @param {string} functionId
662668
* @param {string} deploymentId
663669
* @param {string} buildId
@@ -692,6 +698,12 @@ export class Functions extends Service {
692698
/**
693699
* Cancel deployment
694700
*
701+
* Cancel an ongoing function deployment build. If the build is already in
702+
* progress, it will be stopped and marked as canceled. If the build hasn't
703+
* started yet, it will be marked as canceled without executing. You cannot
704+
* cancel builds that have already completed (status 'ready') or failed. The
705+
* response includes the final build status and details.
706+
*
695707
* @param {string} functionId
696708
* @param {string} deploymentId
697709
* @throws {AppwriteException}
@@ -1088,4 +1100,4 @@ export class Functions extends Service {
10881100
'json'
10891101
);
10901102
}
1091-
}
1103+
}

src/services/graphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ export class Graphql extends Service {
8383
'json'
8484
);
8585
}
86-
}
86+
}

src/services/health.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,4 +630,4 @@ export class Health extends Service {
630630
'json'
631631
);
632632
}
633-
}
633+
}

src/services/locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,4 @@ export class Locale extends Service {
210210
'json'
211211
);
212212
}
213-
}
213+
}

0 commit comments

Comments
 (0)