@@ -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+ }
0 commit comments