node-appwrite 15.0.0-rc1 → 15.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/dist/client.d.mts +8 -7
  4. package/dist/client.d.ts +8 -7
  5. package/dist/client.js +17 -75
  6. package/dist/client.js.map +1 -1
  7. package/dist/client.mjs +17 -55
  8. package/dist/client.mjs.map +1 -1
  9. package/dist/enums/image-format.d.mts +3 -1
  10. package/dist/enums/image-format.d.ts +3 -1
  11. package/dist/enums/image-format.js +2 -0
  12. package/dist/enums/image-format.js.map +1 -1
  13. package/dist/enums/image-format.mjs +2 -0
  14. package/dist/enums/image-format.mjs.map +1 -1
  15. package/dist/enums/message-priority.d.mts +6 -0
  16. package/dist/enums/message-priority.d.ts +6 -0
  17. package/dist/enums/message-priority.js +11 -0
  18. package/dist/enums/message-priority.js.map +1 -0
  19. package/dist/enums/message-priority.mjs +10 -0
  20. package/dist/enums/message-priority.mjs.map +1 -0
  21. package/dist/enums/runtime.d.mts +12 -2
  22. package/dist/enums/runtime.d.ts +12 -2
  23. package/dist/enums/runtime.js +11 -1
  24. package/dist/enums/runtime.js.map +1 -1
  25. package/dist/enums/runtime.mjs +11 -1
  26. package/dist/enums/runtime.mjs.map +1 -1
  27. package/dist/index.d.mts +2 -2
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.js +5 -5
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/inputFile.d.mts +9 -0
  34. package/dist/inputFile.d.ts +9 -0
  35. package/dist/inputFile.js +23 -0
  36. package/dist/inputFile.js.map +1 -0
  37. package/dist/inputFile.mjs +22 -0
  38. package/dist/inputFile.mjs.map +1 -0
  39. package/dist/models.d.mts +98 -6
  40. package/dist/models.d.ts +98 -6
  41. package/dist/services/account.d.mts +3 -89
  42. package/dist/services/account.d.ts +3 -89
  43. package/dist/services/account.js +88 -174
  44. package/dist/services/account.js.map +1 -1
  45. package/dist/services/account.mjs +88 -174
  46. package/dist/services/account.mjs.map +1 -1
  47. package/dist/services/avatars.d.mts +0 -14
  48. package/dist/services/avatars.d.ts +0 -14
  49. package/dist/services/avatars.js +14 -28
  50. package/dist/services/avatars.js.map +1 -1
  51. package/dist/services/avatars.mjs +14 -28
  52. package/dist/services/avatars.mjs.map +1 -1
  53. package/dist/services/databases.d.mts +0 -84
  54. package/dist/services/databases.d.ts +0 -84
  55. package/dist/services/databases.js +84 -168
  56. package/dist/services/databases.js.map +1 -1
  57. package/dist/services/databases.mjs +84 -168
  58. package/dist/services/databases.mjs.map +1 -1
  59. package/dist/services/functions.d.mts +6 -53
  60. package/dist/services/functions.d.ts +6 -53
  61. package/dist/services/functions.js +54 -101
  62. package/dist/services/functions.js.map +1 -1
  63. package/dist/services/functions.mjs +54 -101
  64. package/dist/services/functions.mjs.map +1 -1
  65. package/dist/services/graphql.d.mts +0 -4
  66. package/dist/services/graphql.d.ts +0 -4
  67. package/dist/services/graphql.js +4 -8
  68. package/dist/services/graphql.js.map +1 -1
  69. package/dist/services/graphql.mjs +4 -8
  70. package/dist/services/graphql.mjs.map +1 -1
  71. package/dist/services/health.d.mts +0 -46
  72. package/dist/services/health.d.ts +0 -46
  73. package/dist/services/health.js +46 -92
  74. package/dist/services/health.js.map +1 -1
  75. package/dist/services/health.mjs +46 -92
  76. package/dist/services/health.mjs.map +1 -1
  77. package/dist/services/locale.d.mts +0 -16
  78. package/dist/services/locale.d.ts +0 -16
  79. package/dist/services/locale.js +16 -32
  80. package/dist/services/locale.js.map +1 -1
  81. package/dist/services/locale.mjs +16 -32
  82. package/dist/services/locale.mjs.map +1 -1
  83. package/dist/services/messaging.d.mts +13 -98
  84. package/dist/services/messaging.d.ts +13 -98
  85. package/dist/services/messaging.js +120 -194
  86. package/dist/services/messaging.js.map +1 -1
  87. package/dist/services/messaging.mjs +120 -194
  88. package/dist/services/messaging.mjs.map +1 -1
  89. package/dist/services/storage.d.mts +2 -29
  90. package/dist/services/storage.d.ts +2 -29
  91. package/dist/services/storage.js +27 -53
  92. package/dist/services/storage.js.map +1 -1
  93. package/dist/services/storage.mjs +27 -53
  94. package/dist/services/storage.mjs.map +1 -1
  95. package/dist/services/teams.d.mts +2 -28
  96. package/dist/services/teams.d.ts +2 -28
  97. package/dist/services/teams.js +28 -54
  98. package/dist/services/teams.js.map +1 -1
  99. package/dist/services/teams.mjs +28 -54
  100. package/dist/services/teams.mjs.map +1 -1
  101. package/dist/services/users.d.mts +2 -86
  102. package/dist/services/users.d.ts +2 -86
  103. package/dist/services/users.js +85 -169
  104. package/dist/services/users.js.map +1 -1
  105. package/dist/services/users.mjs +85 -169
  106. package/dist/services/users.mjs.map +1 -1
  107. package/package.json +12 -3
  108. package/dist/payload.d.mts +0 -14
  109. package/dist/payload.d.ts +0 -14
  110. package/dist/payload.js +0 -39
  111. package/dist/payload.js.map +0 -1
  112. package/dist/payload.mjs +0 -38
  113. package/dist/payload.mjs.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import { Client, UploadProgress } from '../client.mjs';
2
- import { Payload } from '../payload.mjs';
3
2
  import { Models } from '../models.mjs';
4
3
  import { Runtime } from '../enums/runtime.mjs';
5
4
  import { ExecutionMethod } from '../enums/execution-method.mjs';
@@ -9,8 +8,6 @@ declare class Functions {
9
8
  client: Client;
10
9
  constructor(client: Client);
11
10
  /**
12
- * List functions
13
- *
14
11
  * Get a list of all the project's functions. You can use the query params to filter your results.
15
12
  *
16
13
  * @param {string[]} queries
@@ -20,8 +17,6 @@ declare class Functions {
20
17
  */
21
18
  list(queries?: string[], search?: string): Promise<Models.FunctionList>;
22
19
  /**
23
- * Create function
24
- *
25
20
  * 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.
26
21
  *
27
22
  * @param {string} functionId
@@ -51,8 +46,6 @@ declare class Functions {
51
46
  */
52
47
  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, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function>;
53
48
  /**
54
- * List runtimes
55
- *
56
49
  * Get a list of all runtimes that are currently active on your instance.
57
50
  *
58
51
  * @throws {AppwriteException}
@@ -60,8 +53,6 @@ declare class Functions {
60
53
  */
61
54
  listRuntimes(): Promise<Models.RuntimeList>;
62
55
  /**
63
- * List available function runtime specifications
64
- *
65
56
  * List allowed function specifications for this instance.
66
57
 
67
58
  *
@@ -70,8 +61,6 @@ declare class Functions {
70
61
  */
71
62
  listSpecifications(): Promise<Models.SpecificationList>;
72
63
  /**
73
- * Get function
74
- *
75
64
  * Get a function by its unique ID.
76
65
  *
77
66
  * @param {string} functionId
@@ -80,8 +69,6 @@ declare class Functions {
80
69
  */
81
70
  get(functionId: string): Promise<Models.Function>;
82
71
  /**
83
- * Update function
84
- *
85
72
  * Update function by its unique ID.
86
73
  *
87
74
  * @param {string} functionId
@@ -107,8 +94,6 @@ declare class Functions {
107
94
  */
108
95
  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>;
109
96
  /**
110
- * Delete function
111
- *
112
97
  * Delete a function by its unique ID.
113
98
  *
114
99
  * @param {string} functionId
@@ -117,8 +102,6 @@ declare class Functions {
117
102
  */
118
103
  delete(functionId: string): Promise<{}>;
119
104
  /**
120
- * List deployments
121
- *
122
105
  * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.
123
106
  *
124
107
  * @param {string} functionId
@@ -129,8 +112,6 @@ declare class Functions {
129
112
  */
130
113
  listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
131
114
  /**
132
- * Create deployment
133
- *
134
115
  * 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&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
135
116
 
136
117
  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).
@@ -138,17 +119,15 @@ This endpoint accepts a tar.gz file compressed with your code. Make sure to incl
138
119
  Use the &quot;command&quot; param to set the entrypoint used to execute your code.
139
120
  *
140
121
  * @param {string} functionId
141
- * @param {Payload} code
122
+ * @param {File} code
142
123
  * @param {boolean} activate
143
124
  * @param {string} entrypoint
144
125
  * @param {string} commands
145
126
  * @throws {AppwriteException}
146
127
  * @returns {Promise<Models.Deployment>}
147
128
  */
148
- createDeployment(functionId: string, code: Payload, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
129
+ createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
149
130
  /**
150
- * Get deployment
151
- *
152
131
  * Get a code deployment by its unique ID.
153
132
  *
154
133
  * @param {string} functionId
@@ -158,8 +137,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
158
137
  */
159
138
  getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
160
139
  /**
161
- * Update deployment
162
- *
163
140
  * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
164
141
  *
165
142
  * @param {string} functionId
@@ -169,8 +146,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
169
146
  */
170
147
  updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
171
148
  /**
172
- * Delete deployment
173
- *
174
149
  * Delete a code deployment by its unique ID.
175
150
  *
176
151
  * @param {string} functionId
@@ -180,8 +155,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
180
155
  */
181
156
  deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
182
157
  /**
183
- * Rebuild deployment
184
- *
158
+ * 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.
185
159
  *
186
160
  * @param {string} functionId
187
161
  * @param {string} deploymentId
@@ -191,8 +165,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
191
165
  */
192
166
  createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}>;
193
167
  /**
194
- * Cancel deployment
195
- *
168
+ * 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.
196
169
  *
197
170
  * @param {string} functionId
198
171
  * @param {string} deploymentId
@@ -201,8 +174,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
201
174
  */
202
175
  updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build>;
203
176
  /**
204
- * Download deployment
205
- *
206
177
  * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
207
178
  *
208
179
  * @param {string} functionId
@@ -212,8 +183,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
212
183
  */
213
184
  getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer>;
214
185
  /**
215
- * List executions
216
- *
217
186
  * Get a list of all the current user function execution logs. You can use the query params to filter your results.
218
187
  *
219
188
  * @param {string} functionId
@@ -224,12 +193,10 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
224
193
  */
225
194
  listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
226
195
  /**
227
- * Create execution
228
- *
229
196
  * 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.
230
197
  *
231
198
  * @param {string} functionId
232
- * @param {Payload} body
199
+ * @param {string} body
233
200
  * @param {boolean} async
234
201
  * @param {string} xpath
235
202
  * @param {ExecutionMethod} method
@@ -238,10 +205,8 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
238
205
  * @throws {AppwriteException}
239
206
  * @returns {Promise<Models.Execution>}
240
207
  */
241
- createExecution(functionId: string, body?: Payload, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Execution>;
208
+ createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
242
209
  /**
243
- * Get execution
244
- *
245
210
  * Get a function execution log by its unique ID.
246
211
  *
247
212
  * @param {string} functionId
@@ -251,8 +216,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
251
216
  */
252
217
  getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
253
218
  /**
254
- * Delete execution
255
- *
256
219
  * Delete a function execution by its unique ID.
257
220
 
258
221
  *
@@ -263,8 +226,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
263
226
  */
264
227
  deleteExecution(functionId: string, executionId: string): Promise<{}>;
265
228
  /**
266
- * List variables
267
- *
268
229
  * Get a list of all variables of a specific function.
269
230
  *
270
231
  * @param {string} functionId
@@ -273,8 +234,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
273
234
  */
274
235
  listVariables(functionId: string): Promise<Models.VariableList>;
275
236
  /**
276
- * Create variable
277
- *
278
237
  * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
279
238
  *
280
239
  * @param {string} functionId
@@ -285,8 +244,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
285
244
  */
286
245
  createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
287
246
  /**
288
- * Get variable
289
- *
290
247
  * Get a variable by its unique ID.
291
248
  *
292
249
  * @param {string} functionId
@@ -296,8 +253,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
296
253
  */
297
254
  getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
298
255
  /**
299
- * Update variable
300
- *
301
256
  * Update variable by its unique ID.
302
257
  *
303
258
  * @param {string} functionId
@@ -309,8 +264,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
309
264
  */
310
265
  updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
311
266
  /**
312
- * Delete variable
313
- *
314
267
  * Delete a variable by its unique ID.
315
268
  *
316
269
  * @param {string} functionId
@@ -1,5 +1,4 @@
1
1
  import { Client, UploadProgress } from '../client.js';
2
- import { Payload } from '../payload.js';
3
2
  import { Models } from '../models.js';
4
3
  import { Runtime } from '../enums/runtime.js';
5
4
  import { ExecutionMethod } from '../enums/execution-method.js';
@@ -9,8 +8,6 @@ declare class Functions {
9
8
  client: Client;
10
9
  constructor(client: Client);
11
10
  /**
12
- * List functions
13
- *
14
11
  * Get a list of all the project&#039;s functions. You can use the query params to filter your results.
15
12
  *
16
13
  * @param {string[]} queries
@@ -20,8 +17,6 @@ declare class Functions {
20
17
  */
21
18
  list(queries?: string[], search?: string): Promise<Models.FunctionList>;
22
19
  /**
23
- * Create function
24
- *
25
20
  * 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.
26
21
  *
27
22
  * @param {string} functionId
@@ -51,8 +46,6 @@ declare class Functions {
51
46
  */
52
47
  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, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function>;
53
48
  /**
54
- * List runtimes
55
- *
56
49
  * Get a list of all runtimes that are currently active on your instance.
57
50
  *
58
51
  * @throws {AppwriteException}
@@ -60,8 +53,6 @@ declare class Functions {
60
53
  */
61
54
  listRuntimes(): Promise<Models.RuntimeList>;
62
55
  /**
63
- * List available function runtime specifications
64
- *
65
56
  * List allowed function specifications for this instance.
66
57
 
67
58
  *
@@ -70,8 +61,6 @@ declare class Functions {
70
61
  */
71
62
  listSpecifications(): Promise<Models.SpecificationList>;
72
63
  /**
73
- * Get function
74
- *
75
64
  * Get a function by its unique ID.
76
65
  *
77
66
  * @param {string} functionId
@@ -80,8 +69,6 @@ declare class Functions {
80
69
  */
81
70
  get(functionId: string): Promise<Models.Function>;
82
71
  /**
83
- * Update function
84
- *
85
72
  * Update function by its unique ID.
86
73
  *
87
74
  * @param {string} functionId
@@ -107,8 +94,6 @@ declare class Functions {
107
94
  */
108
95
  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>;
109
96
  /**
110
- * Delete function
111
- *
112
97
  * Delete a function by its unique ID.
113
98
  *
114
99
  * @param {string} functionId
@@ -117,8 +102,6 @@ declare class Functions {
117
102
  */
118
103
  delete(functionId: string): Promise<{}>;
119
104
  /**
120
- * List deployments
121
- *
122
105
  * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.
123
106
  *
124
107
  * @param {string} functionId
@@ -129,8 +112,6 @@ declare class Functions {
129
112
  */
130
113
  listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
131
114
  /**
132
- * Create deployment
133
- *
134
115
  * 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&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
135
116
 
136
117
  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).
@@ -138,17 +119,15 @@ This endpoint accepts a tar.gz file compressed with your code. Make sure to incl
138
119
  Use the &quot;command&quot; param to set the entrypoint used to execute your code.
139
120
  *
140
121
  * @param {string} functionId
141
- * @param {Payload} code
122
+ * @param {File} code
142
123
  * @param {boolean} activate
143
124
  * @param {string} entrypoint
144
125
  * @param {string} commands
145
126
  * @throws {AppwriteException}
146
127
  * @returns {Promise<Models.Deployment>}
147
128
  */
148
- createDeployment(functionId: string, code: Payload, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
129
+ createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
149
130
  /**
150
- * Get deployment
151
- *
152
131
  * Get a code deployment by its unique ID.
153
132
  *
154
133
  * @param {string} functionId
@@ -158,8 +137,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
158
137
  */
159
138
  getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
160
139
  /**
161
- * Update deployment
162
- *
163
140
  * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
164
141
  *
165
142
  * @param {string} functionId
@@ -169,8 +146,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
169
146
  */
170
147
  updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
171
148
  /**
172
- * Delete deployment
173
- *
174
149
  * Delete a code deployment by its unique ID.
175
150
  *
176
151
  * @param {string} functionId
@@ -180,8 +155,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
180
155
  */
181
156
  deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
182
157
  /**
183
- * Rebuild deployment
184
- *
158
+ * 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.
185
159
  *
186
160
  * @param {string} functionId
187
161
  * @param {string} deploymentId
@@ -191,8 +165,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
191
165
  */
192
166
  createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}>;
193
167
  /**
194
- * Cancel deployment
195
- *
168
+ * 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.
196
169
  *
197
170
  * @param {string} functionId
198
171
  * @param {string} deploymentId
@@ -201,8 +174,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
201
174
  */
202
175
  updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build>;
203
176
  /**
204
- * Download deployment
205
- *
206
177
  * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
207
178
  *
208
179
  * @param {string} functionId
@@ -212,8 +183,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
212
183
  */
213
184
  getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer>;
214
185
  /**
215
- * List executions
216
- *
217
186
  * Get a list of all the current user function execution logs. You can use the query params to filter your results.
218
187
  *
219
188
  * @param {string} functionId
@@ -224,12 +193,10 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
224
193
  */
225
194
  listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
226
195
  /**
227
- * Create execution
228
- *
229
196
  * 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.
230
197
  *
231
198
  * @param {string} functionId
232
- * @param {Payload} body
199
+ * @param {string} body
233
200
  * @param {boolean} async
234
201
  * @param {string} xpath
235
202
  * @param {ExecutionMethod} method
@@ -238,10 +205,8 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
238
205
  * @throws {AppwriteException}
239
206
  * @returns {Promise<Models.Execution>}
240
207
  */
241
- createExecution(functionId: string, body?: Payload, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Execution>;
208
+ createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
242
209
  /**
243
- * Get execution
244
- *
245
210
  * Get a function execution log by its unique ID.
246
211
  *
247
212
  * @param {string} functionId
@@ -251,8 +216,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
251
216
  */
252
217
  getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
253
218
  /**
254
- * Delete execution
255
- *
256
219
  * Delete a function execution by its unique ID.
257
220
 
258
221
  *
@@ -263,8 +226,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
263
226
  */
264
227
  deleteExecution(functionId: string, executionId: string): Promise<{}>;
265
228
  /**
266
- * List variables
267
- *
268
229
  * Get a list of all variables of a specific function.
269
230
  *
270
231
  * @param {string} functionId
@@ -273,8 +234,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
273
234
  */
274
235
  listVariables(functionId: string): Promise<Models.VariableList>;
275
236
  /**
276
- * Create variable
277
- *
278
237
  * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
279
238
  *
280
239
  * @param {string} functionId
@@ -285,8 +244,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
285
244
  */
286
245
  createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
287
246
  /**
288
- * Get variable
289
- *
290
247
  * Get a variable by its unique ID.
291
248
  *
292
249
  * @param {string} functionId
@@ -296,8 +253,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
296
253
  */
297
254
  getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
298
255
  /**
299
- * Update variable
300
- *
301
256
  * Update variable by its unique ID.
302
257
  *
303
258
  * @param {string} functionId
@@ -309,8 +264,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
309
264
  */
310
265
  updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
311
266
  /**
312
- * Delete variable
313
- *
314
267
  * Delete a variable by its unique ID.
315
268
  *
316
269
  * @param {string} functionId