@appwrite.io/console 13.0.0 → 13.2.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/cjs/sdk.js +5443 -1380
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +5438 -1381
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +5451 -1388
- package/package.json +1 -1
- package/types/channel.d.ts +8 -3
- package/types/client.d.ts +1 -1
- package/types/enums/account-key-scopes.d.ts +5 -0
- package/types/enums/addon.d.ts +2 -1
- package/types/enums/appwrite-migration-resource.d.ts +14 -1
- package/types/enums/backup-services.d.ts +1 -0
- package/types/enums/{resource-type.d.ts → block-resource-type.d.ts} +2 -6
- package/types/enums/{theme.d.ts → browser-theme.d.ts} +1 -1
- package/types/enums/build-runtime.d.ts +3 -1
- package/types/enums/cache-database.d.ts +5 -0
- package/types/enums/cache-target.d.ts +8 -0
- package/types/enums/{registration-type.d.ts → domain-registration-type.d.ts} +1 -1
- package/types/enums/{filter-type.d.ts → domain-suggestion-type.d.ts} +1 -1
- package/types/enums/embedding-model.d.ts +6 -0
- package/types/enums/function-template-use-case.d.ts +9 -0
- package/types/enums/{name.d.ts → health-queue-name.d.ts} +1 -1
- package/types/enums/o-auth-provider.d.ts +1 -3
- package/types/enums/organization-key-scopes.d.ts +12 -0
- package/types/enums/{auth-method.d.ts → project-auth-method-id.d.ts} +1 -1
- package/types/enums/{email-template-type.d.ts → project-email-template-id.d.ts} +1 -1
- package/types/enums/{email-template-locale.d.ts → project-email-template-locale.d.ts} +1 -1
- package/types/enums/{scopes.d.ts → project-key-scopes.d.ts} +12 -8
- package/types/enums/{prompt.d.ts → project-o-auth-2-google-prompt.d.ts} +1 -1
- package/types/enums/project-o-auth-provider-id.d.ts +45 -0
- package/types/enums/{project-policy.d.ts → project-policy-id.d.ts} +6 -2
- package/types/enums/{protocol-id.d.ts → project-protocol-id.d.ts} +1 -1
- package/types/enums/{service-id.d.ts → project-service-id.d.ts} +3 -2
- package/types/enums/project-smtp-secure.d.ts +4 -0
- package/types/enums/query-suggestion-resource.d.ts +13 -1
- package/types/enums/runtime.d.ts +3 -1
- package/types/enums/schedule-resource-type.d.ts +6 -0
- package/types/enums/{use-cases.d.ts → site-template-use-case.d.ts} +3 -8
- package/types/enums/status-code.d.ts +4 -4
- package/types/index.d.ts +30 -19
- package/types/models.d.ts +2610 -1109
- package/types/services/account.d.ts +11 -11
- package/types/services/advisor.d.ts +123 -0
- package/types/services/apps.d.ts +266 -0
- package/types/services/avatars.d.ts +5 -5
- package/types/services/compute.d.ts +1171 -0
- package/types/services/console.d.ts +31 -0
- package/types/services/documents-db.d.ts +1 -4
- package/types/services/domains.d.ts +216 -216
- package/types/services/functions.d.ts +29 -18
- package/types/services/health.d.ts +13 -5
- package/types/services/manager.d.ts +49 -9
- package/types/services/messaging.d.ts +92 -0
- package/types/services/organization.d.ts +234 -0
- package/types/services/organizations.d.ts +0 -126
- package/types/services/presences.d.ts +166 -0
- package/types/services/project.d.ts +167 -89
- package/types/services/projects.d.ts +5 -154
- package/types/services/realtime.d.ts +45 -3
- package/types/services/sites.d.ts +22 -11
- package/types/services/usage.d.ts +50 -0
- package/types/services/vectors-db.d.ts +6 -9
- package/types/enums/frameworks.d.ts +0 -17
- package/types/enums/model.d.ts +0 -3
- package/types/enums/runtimes.d.ts +0 -91
- package/types/enums/secure.d.ts +0 -4
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
3
|
import { Runtime } from '../enums/runtime';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { UseCases } from '../enums/use-cases';
|
|
4
|
+
import { ProjectKeyScopes } from '../enums/project-key-scopes';
|
|
5
|
+
import { FunctionTemplateUseCase } from '../enums/function-template-use-case';
|
|
7
6
|
import { UsageRange } from '../enums/usage-range';
|
|
8
7
|
import { TemplateReferenceType } from '../enums/template-reference-type';
|
|
9
8
|
import { VCSReferenceType } from '../enums/vcs-reference-type';
|
|
@@ -51,12 +50,14 @@ export declare class Functions {
|
|
|
51
50
|
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
52
51
|
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
53
52
|
* @param {string} params.commands - Build Commands.
|
|
54
|
-
* @param {
|
|
53
|
+
* @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
55
54
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
56
55
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function.
|
|
57
56
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function.
|
|
58
57
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
59
58
|
* @param {string} params.providerRootDirectory - Path to function code in the linked repo.
|
|
59
|
+
* @param {string[]} params.providerBranches - List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
60
|
+
* @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
60
61
|
* @param {string} params.buildSpecification - Build specification for the function deployments.
|
|
61
62
|
* @param {string} params.runtimeSpecification - Runtime specification for the function executions.
|
|
62
63
|
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
@@ -75,12 +76,14 @@ export declare class Functions {
|
|
|
75
76
|
logging?: boolean;
|
|
76
77
|
entrypoint?: string;
|
|
77
78
|
commands?: string;
|
|
78
|
-
scopes?:
|
|
79
|
+
scopes?: ProjectKeyScopes[];
|
|
79
80
|
installationId?: string;
|
|
80
81
|
providerRepositoryId?: string;
|
|
81
82
|
providerBranch?: string;
|
|
82
83
|
providerSilentMode?: boolean;
|
|
83
84
|
providerRootDirectory?: string;
|
|
85
|
+
providerBranches?: string[];
|
|
86
|
+
providerPaths?: string[];
|
|
84
87
|
buildSpecification?: string;
|
|
85
88
|
runtimeSpecification?: string;
|
|
86
89
|
deploymentRetention?: number;
|
|
@@ -99,12 +102,14 @@ export declare class Functions {
|
|
|
99
102
|
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
100
103
|
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
101
104
|
* @param {string} commands - Build Commands.
|
|
102
|
-
* @param {
|
|
105
|
+
* @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
103
106
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
104
107
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function.
|
|
105
108
|
* @param {string} providerBranch - Production branch for the repo linked to the function.
|
|
106
109
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
107
110
|
* @param {string} providerRootDirectory - Path to function code in the linked repo.
|
|
111
|
+
* @param {string[]} providerBranches - List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
112
|
+
* @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
108
113
|
* @param {string} buildSpecification - Build specification for the function deployments.
|
|
109
114
|
* @param {string} runtimeSpecification - Runtime specification for the function executions.
|
|
110
115
|
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
@@ -112,7 +117,7 @@ export declare class Functions {
|
|
|
112
117
|
* @returns {Promise<Models.Function>}
|
|
113
118
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
114
119
|
*/
|
|
115
|
-
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?:
|
|
120
|
+
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
|
|
116
121
|
/**
|
|
117
122
|
* Get a list of all runtimes that are currently active on your instance.
|
|
118
123
|
*
|
|
@@ -130,8 +135,8 @@ export declare class Functions {
|
|
|
130
135
|
/**
|
|
131
136
|
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
132
137
|
*
|
|
133
|
-
* @param {
|
|
134
|
-
* @param {
|
|
138
|
+
* @param {Runtime[]} params.runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
|
|
139
|
+
* @param {FunctionTemplateUseCase[]} params.useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
|
|
135
140
|
* @param {number} params.limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
|
|
136
141
|
* @param {number} params.offset - Offset the list of returned templates. Maximum offset is 5000.
|
|
137
142
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
@@ -139,8 +144,8 @@ export declare class Functions {
|
|
|
139
144
|
* @returns {Promise<Models.TemplateFunctionList>}
|
|
140
145
|
*/
|
|
141
146
|
listTemplates(params?: {
|
|
142
|
-
runtimes?:
|
|
143
|
-
useCases?:
|
|
147
|
+
runtimes?: Runtime[];
|
|
148
|
+
useCases?: FunctionTemplateUseCase[];
|
|
144
149
|
limit?: number;
|
|
145
150
|
offset?: number;
|
|
146
151
|
total?: boolean;
|
|
@@ -148,8 +153,8 @@ export declare class Functions {
|
|
|
148
153
|
/**
|
|
149
154
|
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
150
155
|
*
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {
|
|
156
|
+
* @param {Runtime[]} runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
|
|
157
|
+
* @param {FunctionTemplateUseCase[]} useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
|
|
153
158
|
* @param {number} limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
|
|
154
159
|
* @param {number} offset - Offset the list of returned templates. Maximum offset is 5000.
|
|
155
160
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
@@ -157,7 +162,7 @@ export declare class Functions {
|
|
|
157
162
|
* @returns {Promise<Models.TemplateFunctionList>}
|
|
158
163
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
159
164
|
*/
|
|
160
|
-
listTemplates(runtimes?:
|
|
165
|
+
listTemplates(runtimes?: Runtime[], useCases?: FunctionTemplateUseCase[], limit?: number, offset?: number, total?: boolean): Promise<Models.TemplateFunctionList>;
|
|
161
166
|
/**
|
|
162
167
|
* Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
163
168
|
*
|
|
@@ -229,12 +234,14 @@ export declare class Functions {
|
|
|
229
234
|
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
230
235
|
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
231
236
|
* @param {string} params.commands - Build Commands.
|
|
232
|
-
* @param {
|
|
237
|
+
* @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
233
238
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
234
239
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function
|
|
235
240
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function
|
|
236
241
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
237
242
|
* @param {string} params.providerRootDirectory - Path to function code in the linked repo.
|
|
243
|
+
* @param {string[]} params.providerBranches - List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
244
|
+
* @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
238
245
|
* @param {string} params.buildSpecification - Build specification for the function deployments.
|
|
239
246
|
* @param {string} params.runtimeSpecification - Runtime specification for the function executions.
|
|
240
247
|
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
@@ -253,12 +260,14 @@ export declare class Functions {
|
|
|
253
260
|
logging?: boolean;
|
|
254
261
|
entrypoint?: string;
|
|
255
262
|
commands?: string;
|
|
256
|
-
scopes?:
|
|
263
|
+
scopes?: ProjectKeyScopes[];
|
|
257
264
|
installationId?: string;
|
|
258
265
|
providerRepositoryId?: string;
|
|
259
266
|
providerBranch?: string;
|
|
260
267
|
providerSilentMode?: boolean;
|
|
261
268
|
providerRootDirectory?: string;
|
|
269
|
+
providerBranches?: string[];
|
|
270
|
+
providerPaths?: string[];
|
|
262
271
|
buildSpecification?: string;
|
|
263
272
|
runtimeSpecification?: string;
|
|
264
273
|
deploymentRetention?: number;
|
|
@@ -277,12 +286,14 @@ export declare class Functions {
|
|
|
277
286
|
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
278
287
|
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
279
288
|
* @param {string} commands - Build Commands.
|
|
280
|
-
* @param {
|
|
289
|
+
* @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
281
290
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
282
291
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function
|
|
283
292
|
* @param {string} providerBranch - Production branch for the repo linked to the function
|
|
284
293
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
285
294
|
* @param {string} providerRootDirectory - Path to function code in the linked repo.
|
|
295
|
+
* @param {string[]} providerBranches - List of branch name patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all branches.
|
|
296
|
+
* @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
|
|
286
297
|
* @param {string} buildSpecification - Build specification for the function deployments.
|
|
287
298
|
* @param {string} runtimeSpecification - Runtime specification for the function executions.
|
|
288
299
|
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
@@ -290,7 +301,7 @@ export declare class Functions {
|
|
|
290
301
|
* @returns {Promise<Models.Function>}
|
|
291
302
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
292
303
|
*/
|
|
293
|
-
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?:
|
|
304
|
+
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
|
|
294
305
|
/**
|
|
295
306
|
* Delete a function by its unique ID.
|
|
296
307
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
-
import {
|
|
3
|
+
import { HealthQueueName } from '../enums/health-queue-name';
|
|
4
4
|
export declare class Health {
|
|
5
5
|
client: Client;
|
|
6
6
|
constructor(client: Client);
|
|
@@ -18,6 +18,14 @@ export declare class Health {
|
|
|
18
18
|
* @returns {Promise<Models.HealthAntivirus>}
|
|
19
19
|
*/
|
|
20
20
|
getAntivirus(): Promise<Models.HealthAntivirus>;
|
|
21
|
+
/**
|
|
22
|
+
* Check the database that backs the audit and activity store. When the connection is reachable the endpoint returns a passing status with its response time.
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* @throws {AppwriteException}
|
|
26
|
+
* @returns {Promise<Models.HealthStatusList>}
|
|
27
|
+
*/
|
|
28
|
+
getAuditsDB(): Promise<Models.HealthStatusList>;
|
|
21
29
|
/**
|
|
22
30
|
* Check the Appwrite in-memory cache servers are up and connection is successful.
|
|
23
31
|
*
|
|
@@ -243,26 +251,26 @@ export declare class Health {
|
|
|
243
251
|
* Returns the amount of failed jobs in a given queue.
|
|
244
252
|
*
|
|
245
253
|
*
|
|
246
|
-
* @param {
|
|
254
|
+
* @param {HealthQueueName} params.name - The name of the queue
|
|
247
255
|
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
248
256
|
* @throws {AppwriteException}
|
|
249
257
|
* @returns {Promise<Models.HealthQueue>}
|
|
250
258
|
*/
|
|
251
259
|
getFailedJobs(params: {
|
|
252
|
-
name:
|
|
260
|
+
name: HealthQueueName;
|
|
253
261
|
threshold?: number;
|
|
254
262
|
}): Promise<Models.HealthQueue>;
|
|
255
263
|
/**
|
|
256
264
|
* Returns the amount of failed jobs in a given queue.
|
|
257
265
|
*
|
|
258
266
|
*
|
|
259
|
-
* @param {
|
|
267
|
+
* @param {HealthQueueName} name - The name of the queue
|
|
260
268
|
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
261
269
|
* @throws {AppwriteException}
|
|
262
270
|
* @returns {Promise<Models.HealthQueue>}
|
|
263
271
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
264
272
|
*/
|
|
265
|
-
getFailedJobs(name:
|
|
273
|
+
getFailedJobs(name: HealthQueueName, threshold?: number): Promise<Models.HealthQueue>;
|
|
266
274
|
/**
|
|
267
275
|
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
|
|
268
276
|
*
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
-
import {
|
|
3
|
+
import { BlockResourceType } from '../enums/block-resource-type';
|
|
4
|
+
import { Region } from '../enums/region';
|
|
5
|
+
import { CacheTarget } from '../enums/cache-target';
|
|
6
|
+
import { CacheDatabase } from '../enums/cache-database';
|
|
4
7
|
export declare class Manager {
|
|
5
8
|
client: Client;
|
|
6
9
|
constructor(client: Client);
|
|
@@ -8,7 +11,7 @@ export declare class Manager {
|
|
|
8
11
|
* Creates a new resource block.
|
|
9
12
|
*
|
|
10
13
|
* @param {string} params.projectId - Project ID
|
|
11
|
-
* @param {
|
|
14
|
+
* @param {BlockResourceType} params.resourceType - Resource type to block (e.g., projects, functions, databases, storage, etc.)
|
|
12
15
|
* @param {string} params.resourceId - Optional resource ID (if omitted, all resources of this type will be blocked)
|
|
13
16
|
* @param {string} params.reason - Optional reason why the resource is blocked
|
|
14
17
|
* @param {string} params.expiredAt - Optional expiration date for the block
|
|
@@ -17,7 +20,7 @@ export declare class Manager {
|
|
|
17
20
|
*/
|
|
18
21
|
createBlock(params: {
|
|
19
22
|
projectId: string;
|
|
20
|
-
resourceType:
|
|
23
|
+
resourceType: BlockResourceType;
|
|
21
24
|
resourceId?: string;
|
|
22
25
|
reason?: string;
|
|
23
26
|
expiredAt?: string;
|
|
@@ -26,7 +29,7 @@ export declare class Manager {
|
|
|
26
29
|
* Creates a new resource block.
|
|
27
30
|
*
|
|
28
31
|
* @param {string} projectId - Project ID
|
|
29
|
-
* @param {
|
|
32
|
+
* @param {BlockResourceType} resourceType - Resource type to block (e.g., projects, functions, databases, storage, etc.)
|
|
30
33
|
* @param {string} resourceId - Optional resource ID (if omitted, all resources of this type will be blocked)
|
|
31
34
|
* @param {string} reason - Optional reason why the resource is blocked
|
|
32
35
|
* @param {string} expiredAt - Optional expiration date for the block
|
|
@@ -34,32 +37,32 @@ export declare class Manager {
|
|
|
34
37
|
* @returns {Promise<Models.Block>}
|
|
35
38
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
36
39
|
*/
|
|
37
|
-
createBlock(projectId: string, resourceType:
|
|
40
|
+
createBlock(projectId: string, resourceType: BlockResourceType, resourceId?: string, reason?: string, expiredAt?: string): Promise<Models.Block>;
|
|
38
41
|
/**
|
|
39
42
|
* Deletes resource blocks for a project.
|
|
40
43
|
*
|
|
41
44
|
* @param {string} params.projectId - Project ID
|
|
42
|
-
* @param {
|
|
45
|
+
* @param {BlockResourceType} params.resourceType - Resource type to unblock
|
|
43
46
|
* @param {string} params.resourceId - Optional resource ID (if omitted, all blocks of this type will be removed)
|
|
44
47
|
* @throws {AppwriteException}
|
|
45
48
|
* @returns {Promise<Models.BlockDelete>}
|
|
46
49
|
*/
|
|
47
50
|
deleteBlock(params: {
|
|
48
51
|
projectId: string;
|
|
49
|
-
resourceType:
|
|
52
|
+
resourceType: BlockResourceType;
|
|
50
53
|
resourceId?: string;
|
|
51
54
|
}): Promise<Models.BlockDelete>;
|
|
52
55
|
/**
|
|
53
56
|
* Deletes resource blocks for a project.
|
|
54
57
|
*
|
|
55
58
|
* @param {string} projectId - Project ID
|
|
56
|
-
* @param {
|
|
59
|
+
* @param {BlockResourceType} resourceType - Resource type to unblock
|
|
57
60
|
* @param {string} resourceId - Optional resource ID (if omitted, all blocks of this type will be removed)
|
|
58
61
|
* @throws {AppwriteException}
|
|
59
62
|
* @returns {Promise<Models.BlockDelete>}
|
|
60
63
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
61
64
|
*/
|
|
62
|
-
deleteBlock(projectId: string, resourceType:
|
|
65
|
+
deleteBlock(projectId: string, resourceType: BlockResourceType, resourceId?: string): Promise<Models.BlockDelete>;
|
|
63
66
|
/**
|
|
64
67
|
* Lists all resource blocks for a project.
|
|
65
68
|
*
|
|
@@ -79,6 +82,43 @@ export declare class Manager {
|
|
|
79
82
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
80
83
|
*/
|
|
81
84
|
listBlocks(projectId: string): Promise<Models.BlockList>;
|
|
85
|
+
/**
|
|
86
|
+
* Clears internal cache.
|
|
87
|
+
*
|
|
88
|
+
* @param {Region} params.region - Target region.
|
|
89
|
+
* @param {CacheTarget} params.cache - Cache target.
|
|
90
|
+
* @param {boolean} params.all - Clear the entire selected cache target.
|
|
91
|
+
* @param {CacheDatabase} params.database - Database cache scope.
|
|
92
|
+
* @param {string} params.projectId - Project ID for project or logs database cache.
|
|
93
|
+
* @param {string} params.collectionId - Collection ID.
|
|
94
|
+
* @param {string} params.documentId - Document ID.
|
|
95
|
+
* @throws {AppwriteException}
|
|
96
|
+
* @returns {Promise<{}>}
|
|
97
|
+
*/
|
|
98
|
+
deleteCache(params?: {
|
|
99
|
+
region?: Region;
|
|
100
|
+
cache?: CacheTarget;
|
|
101
|
+
all?: boolean;
|
|
102
|
+
database?: CacheDatabase;
|
|
103
|
+
projectId?: string;
|
|
104
|
+
collectionId?: string;
|
|
105
|
+
documentId?: string;
|
|
106
|
+
}): Promise<{}>;
|
|
107
|
+
/**
|
|
108
|
+
* Clears internal cache.
|
|
109
|
+
*
|
|
110
|
+
* @param {Region} region - Target region.
|
|
111
|
+
* @param {CacheTarget} cache - Cache target.
|
|
112
|
+
* @param {boolean} all - Clear the entire selected cache target.
|
|
113
|
+
* @param {CacheDatabase} database - Database cache scope.
|
|
114
|
+
* @param {string} projectId - Project ID for project or logs database cache.
|
|
115
|
+
* @param {string} collectionId - Collection ID.
|
|
116
|
+
* @param {string} documentId - Document ID.
|
|
117
|
+
* @throws {AppwriteException}
|
|
118
|
+
* @returns {Promise<{}>}
|
|
119
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
120
|
+
*/
|
|
121
|
+
deleteCache(region?: Region, cache?: CacheTarget, all?: boolean, database?: CacheDatabase, projectId?: string, collectionId?: string, documentId?: string): Promise<{}>;
|
|
82
122
|
/**
|
|
83
123
|
* Updates a console user status using a user ID or email address.
|
|
84
124
|
*
|
|
@@ -1149,6 +1149,98 @@ export declare class Messaging {
|
|
|
1149
1149
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1150
1150
|
*/
|
|
1151
1151
|
updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Create a new Amazon SES provider.
|
|
1154
|
+
*
|
|
1155
|
+
* @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
1156
|
+
* @param {string} params.name - Provider name.
|
|
1157
|
+
* @param {string} params.accessKey - AWS access key ID.
|
|
1158
|
+
* @param {string} params.secretKey - AWS secret access key.
|
|
1159
|
+
* @param {string} params.region - AWS region, for example us-east-1.
|
|
1160
|
+
* @param {string} params.fromName - Sender Name.
|
|
1161
|
+
* @param {string} params.fromEmail - Sender email address.
|
|
1162
|
+
* @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
|
|
1163
|
+
* @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
|
|
1164
|
+
* @param {boolean} params.enabled - Set as enabled.
|
|
1165
|
+
* @throws {AppwriteException}
|
|
1166
|
+
* @returns {Promise<Models.Provider>}
|
|
1167
|
+
*/
|
|
1168
|
+
createSesProvider(params: {
|
|
1169
|
+
providerId: string;
|
|
1170
|
+
name: string;
|
|
1171
|
+
accessKey?: string;
|
|
1172
|
+
secretKey?: string;
|
|
1173
|
+
region?: string;
|
|
1174
|
+
fromName?: string;
|
|
1175
|
+
fromEmail?: string;
|
|
1176
|
+
replyToName?: string;
|
|
1177
|
+
replyToEmail?: string;
|
|
1178
|
+
enabled?: boolean;
|
|
1179
|
+
}): Promise<Models.Provider>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Create a new Amazon SES provider.
|
|
1182
|
+
*
|
|
1183
|
+
* @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
1184
|
+
* @param {string} name - Provider name.
|
|
1185
|
+
* @param {string} accessKey - AWS access key ID.
|
|
1186
|
+
* @param {string} secretKey - AWS secret access key.
|
|
1187
|
+
* @param {string} region - AWS region, for example us-east-1.
|
|
1188
|
+
* @param {string} fromName - Sender Name.
|
|
1189
|
+
* @param {string} fromEmail - Sender email address.
|
|
1190
|
+
* @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
|
|
1191
|
+
* @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
|
|
1192
|
+
* @param {boolean} enabled - Set as enabled.
|
|
1193
|
+
* @throws {AppwriteException}
|
|
1194
|
+
* @returns {Promise<Models.Provider>}
|
|
1195
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1196
|
+
*/
|
|
1197
|
+
createSesProvider(providerId: string, name: string, accessKey?: string, secretKey?: string, region?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Update an Amazon SES provider by its unique ID.
|
|
1200
|
+
*
|
|
1201
|
+
* @param {string} params.providerId - Provider ID.
|
|
1202
|
+
* @param {string} params.name - Provider name.
|
|
1203
|
+
* @param {boolean} params.enabled - Set as enabled.
|
|
1204
|
+
* @param {string} params.accessKey - AWS access key ID.
|
|
1205
|
+
* @param {string} params.secretKey - AWS secret access key.
|
|
1206
|
+
* @param {string} params.region - AWS region, for example us-east-1.
|
|
1207
|
+
* @param {string} params.fromName - Sender Name.
|
|
1208
|
+
* @param {string} params.fromEmail - Sender email address.
|
|
1209
|
+
* @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
|
|
1210
|
+
* @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
|
|
1211
|
+
* @throws {AppwriteException}
|
|
1212
|
+
* @returns {Promise<Models.Provider>}
|
|
1213
|
+
*/
|
|
1214
|
+
updateSesProvider(params: {
|
|
1215
|
+
providerId: string;
|
|
1216
|
+
name?: string;
|
|
1217
|
+
enabled?: boolean;
|
|
1218
|
+
accessKey?: string;
|
|
1219
|
+
secretKey?: string;
|
|
1220
|
+
region?: string;
|
|
1221
|
+
fromName?: string;
|
|
1222
|
+
fromEmail?: string;
|
|
1223
|
+
replyToName?: string;
|
|
1224
|
+
replyToEmail?: string;
|
|
1225
|
+
}): Promise<Models.Provider>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Update an Amazon SES provider by its unique ID.
|
|
1228
|
+
*
|
|
1229
|
+
* @param {string} providerId - Provider ID.
|
|
1230
|
+
* @param {string} name - Provider name.
|
|
1231
|
+
* @param {boolean} enabled - Set as enabled.
|
|
1232
|
+
* @param {string} accessKey - AWS access key ID.
|
|
1233
|
+
* @param {string} secretKey - AWS secret access key.
|
|
1234
|
+
* @param {string} region - AWS region, for example us-east-1.
|
|
1235
|
+
* @param {string} fromName - Sender Name.
|
|
1236
|
+
* @param {string} fromEmail - Sender email address.
|
|
1237
|
+
* @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
|
|
1238
|
+
* @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
|
|
1239
|
+
* @throws {AppwriteException}
|
|
1240
|
+
* @returns {Promise<Models.Provider>}
|
|
1241
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1242
|
+
*/
|
|
1243
|
+
updateSesProvider(providerId: string, name?: string, enabled?: boolean, accessKey?: string, secretKey?: string, region?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
|
|
1152
1244
|
/**
|
|
1153
1245
|
* Create a new SMTP provider.
|
|
1154
1246
|
*
|