node-appwrite 16.0.0 → 17.0.0
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.
- package/README.md +2 -2
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/adapter.d.mts +6 -0
- package/dist/enums/adapter.d.ts +6 -0
- package/dist/enums/adapter.js +11 -0
- package/dist/enums/adapter.js.map +1 -0
- package/dist/enums/adapter.mjs +10 -0
- package/dist/enums/adapter.mjs.map +1 -0
- package/dist/enums/build-runtime.d.mts +67 -0
- package/dist/enums/build-runtime.d.ts +67 -0
- package/dist/enums/build-runtime.js +72 -0
- package/dist/enums/build-runtime.js.map +1 -0
- package/dist/enums/build-runtime.mjs +71 -0
- package/dist/enums/build-runtime.mjs.map +1 -0
- package/dist/enums/deployment-download-type.d.mts +6 -0
- package/dist/enums/deployment-download-type.d.ts +6 -0
- package/dist/enums/deployment-download-type.js +11 -0
- package/dist/enums/deployment-download-type.js.map +1 -0
- package/dist/enums/deployment-download-type.mjs +10 -0
- package/dist/enums/deployment-download-type.mjs.map +1 -0
- package/dist/enums/framework.d.mts +18 -0
- package/dist/enums/framework.d.ts +18 -0
- package/dist/enums/framework.js +23 -0
- package/dist/enums/framework.js.map +1 -0
- package/dist/enums/framework.mjs +22 -0
- package/dist/enums/framework.mjs.map +1 -0
- package/dist/enums/image-format.d.mts +0 -1
- package/dist/enums/image-format.d.ts +0 -1
- package/dist/enums/image-format.js +0 -1
- package/dist/enums/image-format.js.map +1 -1
- package/dist/enums/image-format.mjs +0 -1
- package/dist/enums/image-format.mjs.map +1 -1
- package/dist/enums/runtime.d.mts +5 -1
- package/dist/enums/runtime.d.ts +5 -1
- package/dist/enums/runtime.js +4 -0
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +4 -0
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/enums/v-c-s-deployment-type.d.mts +7 -0
- package/dist/enums/v-c-s-deployment-type.d.ts +7 -0
- package/dist/enums/v-c-s-deployment-type.js +12 -0
- package/dist/enums/v-c-s-deployment-type.js.map +1 -0
- package/dist/enums/v-c-s-deployment-type.mjs +11 -0
- package/dist/enums/v-c-s-deployment-type.mjs.map +1 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +286 -48
- package/dist/models.d.ts +286 -48
- package/dist/services/databases.d.mts +44 -2
- package/dist/services/databases.d.ts +44 -2
- package/dist/services/databases.js +151 -12
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +151 -12
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +56 -30
- package/dist/services/functions.d.ts +56 -30
- package/dist/services/functions.js +185 -87
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +185 -87
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/sites.d.mts +286 -0
- package/dist/services/sites.d.ts +286 -0
- package/dist/services/sites.js +923 -0
- package/dist/services/sites.js.map +1 -0
- package/dist/services/sites.mjs +922 -0
- package/dist/services/sites.mjs.map +1 -0
- package/dist/services/storage.d.mts +6 -3
- package/dist/services/storage.d.ts +6 -3
- package/dist/services/storage.js +15 -3
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +15 -3
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tokens.d.mts +55 -0
- package/dist/services/tokens.d.ts +55 -0
- package/dist/services/tokens.js +149 -0
- package/dist/services/tokens.js.map +1 -0
- package/dist/services/tokens.mjs +148 -0
- package/dist/services/tokens.mjs.map +1 -0
- package/dist/services/users.d.mts +3 -1
- package/dist/services/users.d.ts +3 -1
- package/dist/services/users.js +9 -1
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +9 -1
- package/dist/services/users.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client.mjs';
|
|
2
2
|
import { Models } from '../models.mjs';
|
|
3
3
|
import { Runtime } from '../enums/runtime.mjs';
|
|
4
|
+
import { VCSDeploymentType } from '../enums/v-c-s-deployment-type.mjs';
|
|
5
|
+
import { DeploymentDownloadType } from '../enums/deployment-download-type.mjs';
|
|
4
6
|
import { ExecutionMethod } from '../enums/execution-method.mjs';
|
|
5
7
|
import '../query.mjs';
|
|
6
8
|
|
|
@@ -36,15 +38,11 @@ declare class Functions {
|
|
|
36
38
|
* @param {string} providerBranch
|
|
37
39
|
* @param {boolean} providerSilentMode
|
|
38
40
|
* @param {string} providerRootDirectory
|
|
39
|
-
* @param {string} templateRepository
|
|
40
|
-
* @param {string} templateOwner
|
|
41
|
-
* @param {string} templateRootDirectory
|
|
42
|
-
* @param {string} templateVersion
|
|
43
41
|
* @param {string} specification
|
|
44
42
|
* @throws {AppwriteException}
|
|
45
43
|
* @returns {Promise<Models.Function>}
|
|
46
44
|
*/
|
|
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,
|
|
45
|
+
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, specification?: string): Promise<Models.Function>;
|
|
48
46
|
/**
|
|
49
47
|
* Get a list of all runtimes that are currently active on your instance.
|
|
50
48
|
*
|
|
@@ -54,7 +52,6 @@ declare class Functions {
|
|
|
54
52
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
55
53
|
/**
|
|
56
54
|
* List allowed function specifications for this instance.
|
|
57
|
-
|
|
58
55
|
*
|
|
59
56
|
* @throws {AppwriteException}
|
|
60
57
|
* @returns {Promise<Models.SpecificationList>}
|
|
@@ -102,7 +99,16 @@ declare class Functions {
|
|
|
102
99
|
*/
|
|
103
100
|
delete(functionId: string): Promise<{}>;
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
102
|
+
* Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
|
|
103
|
+
*
|
|
104
|
+
* @param {string} functionId
|
|
105
|
+
* @param {string} deploymentId
|
|
106
|
+
* @throws {AppwriteException}
|
|
107
|
+
* @returns {Promise<Models.Function>}
|
|
108
|
+
*/
|
|
109
|
+
updateFunctionDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
110
|
+
/**
|
|
111
|
+
* Get a list of all the function's code deployments. You can use the query params to filter your results.
|
|
106
112
|
*
|
|
107
113
|
* @param {string} functionId
|
|
108
114
|
* @param {string[]} queries
|
|
@@ -128,70 +134,89 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
128
134
|
*/
|
|
129
135
|
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
130
136
|
/**
|
|
131
|
-
*
|
|
137
|
+
* 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.
|
|
132
138
|
*
|
|
133
139
|
* @param {string} functionId
|
|
134
140
|
* @param {string} deploymentId
|
|
141
|
+
* @param {string} buildId
|
|
135
142
|
* @throws {AppwriteException}
|
|
136
143
|
* @returns {Promise<Models.Deployment>}
|
|
137
144
|
*/
|
|
138
|
-
|
|
145
|
+
createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;
|
|
139
146
|
/**
|
|
140
|
-
*
|
|
147
|
+
* Create a deployment based on a template.
|
|
148
|
+
|
|
149
|
+
Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.
|
|
141
150
|
*
|
|
142
151
|
* @param {string} functionId
|
|
143
|
-
* @param {string}
|
|
152
|
+
* @param {string} repository
|
|
153
|
+
* @param {string} owner
|
|
154
|
+
* @param {string} rootDirectory
|
|
155
|
+
* @param {string} version
|
|
156
|
+
* @param {boolean} activate
|
|
144
157
|
* @throws {AppwriteException}
|
|
145
|
-
* @returns {Promise<Models.
|
|
158
|
+
* @returns {Promise<Models.Deployment>}
|
|
146
159
|
*/
|
|
147
|
-
|
|
160
|
+
createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, version: string, activate?: boolean): Promise<Models.Deployment>;
|
|
148
161
|
/**
|
|
149
|
-
*
|
|
162
|
+
* Create a deployment when a function is connected to VCS.
|
|
163
|
+
|
|
164
|
+
This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
165
|
+
*
|
|
166
|
+
* @param {string} functionId
|
|
167
|
+
* @param {VCSDeploymentType} type
|
|
168
|
+
* @param {string} reference
|
|
169
|
+
* @param {boolean} activate
|
|
170
|
+
* @throws {AppwriteException}
|
|
171
|
+
* @returns {Promise<Models.Deployment>}
|
|
172
|
+
*/
|
|
173
|
+
createVcsDeployment(functionId: string, type: VCSDeploymentType, reference: string, activate?: boolean): Promise<Models.Deployment>;
|
|
174
|
+
/**
|
|
175
|
+
* Get a function deployment by its unique ID.
|
|
150
176
|
*
|
|
151
177
|
* @param {string} functionId
|
|
152
178
|
* @param {string} deploymentId
|
|
153
179
|
* @throws {AppwriteException}
|
|
154
|
-
* @returns {Promise<
|
|
180
|
+
* @returns {Promise<Models.Deployment>}
|
|
155
181
|
*/
|
|
156
|
-
|
|
182
|
+
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
157
183
|
/**
|
|
158
|
-
*
|
|
184
|
+
* Delete a code deployment by its unique ID.
|
|
159
185
|
*
|
|
160
186
|
* @param {string} functionId
|
|
161
187
|
* @param {string} deploymentId
|
|
162
|
-
* @param {string} buildId
|
|
163
188
|
* @throws {AppwriteException}
|
|
164
189
|
* @returns {Promise<{}>}
|
|
165
190
|
*/
|
|
166
|
-
|
|
191
|
+
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
167
192
|
/**
|
|
168
|
-
*
|
|
193
|
+
* Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
|
|
169
194
|
*
|
|
170
195
|
* @param {string} functionId
|
|
171
196
|
* @param {string} deploymentId
|
|
197
|
+
* @param {DeploymentDownloadType} type
|
|
172
198
|
* @throws {AppwriteException}
|
|
173
|
-
* @returns {Promise<
|
|
199
|
+
* @returns {Promise<ArrayBuffer>}
|
|
174
200
|
*/
|
|
175
|
-
|
|
201
|
+
getDeploymentDownload(functionId: string, deploymentId: string, type?: DeploymentDownloadType): Promise<ArrayBuffer>;
|
|
176
202
|
/**
|
|
177
|
-
*
|
|
203
|
+
* 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.
|
|
178
204
|
*
|
|
179
205
|
* @param {string} functionId
|
|
180
206
|
* @param {string} deploymentId
|
|
181
207
|
* @throws {AppwriteException}
|
|
182
|
-
* @returns {Promise<
|
|
208
|
+
* @returns {Promise<Models.Deployment>}
|
|
183
209
|
*/
|
|
184
|
-
|
|
210
|
+
updateDeploymentStatus(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
185
211
|
/**
|
|
186
212
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
187
213
|
*
|
|
188
214
|
* @param {string} functionId
|
|
189
215
|
* @param {string[]} queries
|
|
190
|
-
* @param {string} search
|
|
191
216
|
* @throws {AppwriteException}
|
|
192
217
|
* @returns {Promise<Models.ExecutionList>}
|
|
193
218
|
*/
|
|
194
|
-
listExecutions(functionId: string, queries?: string[]
|
|
219
|
+
listExecutions(functionId: string, queries?: string[]): Promise<Models.ExecutionList>;
|
|
195
220
|
/**
|
|
196
221
|
* 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.
|
|
197
222
|
*
|
|
@@ -217,7 +242,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
217
242
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
218
243
|
/**
|
|
219
244
|
* Delete a function execution by its unique ID.
|
|
220
|
-
|
|
221
245
|
*
|
|
222
246
|
* @param {string} functionId
|
|
223
247
|
* @param {string} executionId
|
|
@@ -239,10 +263,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
239
263
|
* @param {string} functionId
|
|
240
264
|
* @param {string} key
|
|
241
265
|
* @param {string} value
|
|
266
|
+
* @param {boolean} secret
|
|
242
267
|
* @throws {AppwriteException}
|
|
243
268
|
* @returns {Promise<Models.Variable>}
|
|
244
269
|
*/
|
|
245
|
-
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
270
|
+
createVariable(functionId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
|
|
246
271
|
/**
|
|
247
272
|
* Get a variable by its unique ID.
|
|
248
273
|
*
|
|
@@ -259,10 +284,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
259
284
|
* @param {string} variableId
|
|
260
285
|
* @param {string} key
|
|
261
286
|
* @param {string} value
|
|
287
|
+
* @param {boolean} secret
|
|
262
288
|
* @throws {AppwriteException}
|
|
263
289
|
* @returns {Promise<Models.Variable>}
|
|
264
290
|
*/
|
|
265
|
-
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
291
|
+
updateVariable(functionId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
|
|
266
292
|
/**
|
|
267
293
|
* Delete a variable by its unique ID.
|
|
268
294
|
*
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client.js';
|
|
2
2
|
import { Models } from '../models.js';
|
|
3
3
|
import { Runtime } from '../enums/runtime.js';
|
|
4
|
+
import { VCSDeploymentType } from '../enums/v-c-s-deployment-type.js';
|
|
5
|
+
import { DeploymentDownloadType } from '../enums/deployment-download-type.js';
|
|
4
6
|
import { ExecutionMethod } from '../enums/execution-method.js';
|
|
5
7
|
import '../query.js';
|
|
6
8
|
|
|
@@ -36,15 +38,11 @@ declare class Functions {
|
|
|
36
38
|
* @param {string} providerBranch
|
|
37
39
|
* @param {boolean} providerSilentMode
|
|
38
40
|
* @param {string} providerRootDirectory
|
|
39
|
-
* @param {string} templateRepository
|
|
40
|
-
* @param {string} templateOwner
|
|
41
|
-
* @param {string} templateRootDirectory
|
|
42
|
-
* @param {string} templateVersion
|
|
43
41
|
* @param {string} specification
|
|
44
42
|
* @throws {AppwriteException}
|
|
45
43
|
* @returns {Promise<Models.Function>}
|
|
46
44
|
*/
|
|
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,
|
|
45
|
+
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, specification?: string): Promise<Models.Function>;
|
|
48
46
|
/**
|
|
49
47
|
* Get a list of all runtimes that are currently active on your instance.
|
|
50
48
|
*
|
|
@@ -54,7 +52,6 @@ declare class Functions {
|
|
|
54
52
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
55
53
|
/**
|
|
56
54
|
* List allowed function specifications for this instance.
|
|
57
|
-
|
|
58
55
|
*
|
|
59
56
|
* @throws {AppwriteException}
|
|
60
57
|
* @returns {Promise<Models.SpecificationList>}
|
|
@@ -102,7 +99,16 @@ declare class Functions {
|
|
|
102
99
|
*/
|
|
103
100
|
delete(functionId: string): Promise<{}>;
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
102
|
+
* Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
|
|
103
|
+
*
|
|
104
|
+
* @param {string} functionId
|
|
105
|
+
* @param {string} deploymentId
|
|
106
|
+
* @throws {AppwriteException}
|
|
107
|
+
* @returns {Promise<Models.Function>}
|
|
108
|
+
*/
|
|
109
|
+
updateFunctionDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
110
|
+
/**
|
|
111
|
+
* Get a list of all the function's code deployments. You can use the query params to filter your results.
|
|
106
112
|
*
|
|
107
113
|
* @param {string} functionId
|
|
108
114
|
* @param {string[]} queries
|
|
@@ -128,70 +134,89 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
128
134
|
*/
|
|
129
135
|
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
130
136
|
/**
|
|
131
|
-
*
|
|
137
|
+
* 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.
|
|
132
138
|
*
|
|
133
139
|
* @param {string} functionId
|
|
134
140
|
* @param {string} deploymentId
|
|
141
|
+
* @param {string} buildId
|
|
135
142
|
* @throws {AppwriteException}
|
|
136
143
|
* @returns {Promise<Models.Deployment>}
|
|
137
144
|
*/
|
|
138
|
-
|
|
145
|
+
createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;
|
|
139
146
|
/**
|
|
140
|
-
*
|
|
147
|
+
* Create a deployment based on a template.
|
|
148
|
+
|
|
149
|
+
Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.
|
|
141
150
|
*
|
|
142
151
|
* @param {string} functionId
|
|
143
|
-
* @param {string}
|
|
152
|
+
* @param {string} repository
|
|
153
|
+
* @param {string} owner
|
|
154
|
+
* @param {string} rootDirectory
|
|
155
|
+
* @param {string} version
|
|
156
|
+
* @param {boolean} activate
|
|
144
157
|
* @throws {AppwriteException}
|
|
145
|
-
* @returns {Promise<Models.
|
|
158
|
+
* @returns {Promise<Models.Deployment>}
|
|
146
159
|
*/
|
|
147
|
-
|
|
160
|
+
createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, version: string, activate?: boolean): Promise<Models.Deployment>;
|
|
148
161
|
/**
|
|
149
|
-
*
|
|
162
|
+
* Create a deployment when a function is connected to VCS.
|
|
163
|
+
|
|
164
|
+
This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
165
|
+
*
|
|
166
|
+
* @param {string} functionId
|
|
167
|
+
* @param {VCSDeploymentType} type
|
|
168
|
+
* @param {string} reference
|
|
169
|
+
* @param {boolean} activate
|
|
170
|
+
* @throws {AppwriteException}
|
|
171
|
+
* @returns {Promise<Models.Deployment>}
|
|
172
|
+
*/
|
|
173
|
+
createVcsDeployment(functionId: string, type: VCSDeploymentType, reference: string, activate?: boolean): Promise<Models.Deployment>;
|
|
174
|
+
/**
|
|
175
|
+
* Get a function deployment by its unique ID.
|
|
150
176
|
*
|
|
151
177
|
* @param {string} functionId
|
|
152
178
|
* @param {string} deploymentId
|
|
153
179
|
* @throws {AppwriteException}
|
|
154
|
-
* @returns {Promise<
|
|
180
|
+
* @returns {Promise<Models.Deployment>}
|
|
155
181
|
*/
|
|
156
|
-
|
|
182
|
+
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
157
183
|
/**
|
|
158
|
-
*
|
|
184
|
+
* Delete a code deployment by its unique ID.
|
|
159
185
|
*
|
|
160
186
|
* @param {string} functionId
|
|
161
187
|
* @param {string} deploymentId
|
|
162
|
-
* @param {string} buildId
|
|
163
188
|
* @throws {AppwriteException}
|
|
164
189
|
* @returns {Promise<{}>}
|
|
165
190
|
*/
|
|
166
|
-
|
|
191
|
+
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
167
192
|
/**
|
|
168
|
-
*
|
|
193
|
+
* Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
|
|
169
194
|
*
|
|
170
195
|
* @param {string} functionId
|
|
171
196
|
* @param {string} deploymentId
|
|
197
|
+
* @param {DeploymentDownloadType} type
|
|
172
198
|
* @throws {AppwriteException}
|
|
173
|
-
* @returns {Promise<
|
|
199
|
+
* @returns {Promise<ArrayBuffer>}
|
|
174
200
|
*/
|
|
175
|
-
|
|
201
|
+
getDeploymentDownload(functionId: string, deploymentId: string, type?: DeploymentDownloadType): Promise<ArrayBuffer>;
|
|
176
202
|
/**
|
|
177
|
-
*
|
|
203
|
+
* 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.
|
|
178
204
|
*
|
|
179
205
|
* @param {string} functionId
|
|
180
206
|
* @param {string} deploymentId
|
|
181
207
|
* @throws {AppwriteException}
|
|
182
|
-
* @returns {Promise<
|
|
208
|
+
* @returns {Promise<Models.Deployment>}
|
|
183
209
|
*/
|
|
184
|
-
|
|
210
|
+
updateDeploymentStatus(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
185
211
|
/**
|
|
186
212
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
187
213
|
*
|
|
188
214
|
* @param {string} functionId
|
|
189
215
|
* @param {string[]} queries
|
|
190
|
-
* @param {string} search
|
|
191
216
|
* @throws {AppwriteException}
|
|
192
217
|
* @returns {Promise<Models.ExecutionList>}
|
|
193
218
|
*/
|
|
194
|
-
listExecutions(functionId: string, queries?: string[]
|
|
219
|
+
listExecutions(functionId: string, queries?: string[]): Promise<Models.ExecutionList>;
|
|
195
220
|
/**
|
|
196
221
|
* 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.
|
|
197
222
|
*
|
|
@@ -217,7 +242,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
217
242
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
218
243
|
/**
|
|
219
244
|
* Delete a function execution by its unique ID.
|
|
220
|
-
|
|
221
245
|
*
|
|
222
246
|
* @param {string} functionId
|
|
223
247
|
* @param {string} executionId
|
|
@@ -239,10 +263,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
239
263
|
* @param {string} functionId
|
|
240
264
|
* @param {string} key
|
|
241
265
|
* @param {string} value
|
|
266
|
+
* @param {boolean} secret
|
|
242
267
|
* @throws {AppwriteException}
|
|
243
268
|
* @returns {Promise<Models.Variable>}
|
|
244
269
|
*/
|
|
245
|
-
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
270
|
+
createVariable(functionId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
|
|
246
271
|
/**
|
|
247
272
|
* Get a variable by its unique ID.
|
|
248
273
|
*
|
|
@@ -259,10 +284,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
259
284
|
* @param {string} variableId
|
|
260
285
|
* @param {string} key
|
|
261
286
|
* @param {string} value
|
|
287
|
+
* @param {boolean} secret
|
|
262
288
|
* @throws {AppwriteException}
|
|
263
289
|
* @returns {Promise<Models.Variable>}
|
|
264
290
|
*/
|
|
265
|
-
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
291
|
+
updateVariable(functionId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
|
|
266
292
|
/**
|
|
267
293
|
* Delete a variable by its unique ID.
|
|
268
294
|
*
|