@appwrite.io/console 15.6.0 → 15.7.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 +1 -1
- package/dist/cjs/sdk.js +163 -6
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +163 -6
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +163 -6
- package/package.json +1 -1
- package/types/models.d.ts +65 -0
- package/types/services/backups.d.ts +6 -6
- package/types/services/documents-db.d.ts +6 -3
- package/types/services/mongo.d.ts +2 -2
- package/types/services/mysql.d.ts +2 -2
- package/types/services/postgresql.d.ts +2 -2
- package/types/services/storage.d.ts +4 -1
- package/types/services/tables-db.d.ts +6 -3
- package/types/services/vectors-db.d.ts +6 -3
- package/types/services/waf.d.ts +106 -16
package/types/services/waf.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Waf {
|
|
|
31
31
|
*/
|
|
32
32
|
listRules(queries?: string[], search?: string, total?: boolean): Promise<Models.WafRuleList>;
|
|
33
33
|
/**
|
|
34
|
-
* Create a bypass WAF rule.
|
|
34
|
+
* Create a bypass WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
35
35
|
*
|
|
36
36
|
*
|
|
37
37
|
* @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -56,7 +56,7 @@ export declare class Waf {
|
|
|
56
56
|
conditions?: string;
|
|
57
57
|
}): Promise<Models.WafRuleBypass>;
|
|
58
58
|
/**
|
|
59
|
-
* Create a bypass WAF rule.
|
|
59
|
+
* Create a bypass WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
60
60
|
*
|
|
61
61
|
*
|
|
62
62
|
* @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -73,7 +73,7 @@ export declare class Waf {
|
|
|
73
73
|
*/
|
|
74
74
|
createBypassRule(ruleId: string, resourceType: string, name: string, resourceId?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleBypass>;
|
|
75
75
|
/**
|
|
76
|
-
* Update a bypass WAF rule.
|
|
76
|
+
* Update a bypass WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
77
77
|
*
|
|
78
78
|
*
|
|
79
79
|
* @param {string} params.ruleId - Rule ID.
|
|
@@ -98,7 +98,7 @@ export declare class Waf {
|
|
|
98
98
|
conditions?: string;
|
|
99
99
|
}): Promise<Models.WafRuleBypass>;
|
|
100
100
|
/**
|
|
101
|
-
* Update a bypass WAF rule.
|
|
101
|
+
* Update a bypass WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
102
102
|
*
|
|
103
103
|
*
|
|
104
104
|
* @param {string} ruleId - Rule ID.
|
|
@@ -115,7 +115,97 @@ export declare class Waf {
|
|
|
115
115
|
*/
|
|
116
116
|
updateBypassRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleBypass>;
|
|
117
117
|
/**
|
|
118
|
-
* Create a
|
|
118
|
+
* Create a challenge WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
119
|
+
*
|
|
120
|
+
*
|
|
121
|
+
* @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
122
|
+
* @param {string} params.resourceType - Resource type the rule applies to.
|
|
123
|
+
* @param {string} params.name - Rule name.
|
|
124
|
+
* @param {string} params.resourceId - Resource identifier. Required for functions and sites.
|
|
125
|
+
* @param {string} params.description - Optional description for the rule.
|
|
126
|
+
* @param {string} params.challengeType - Challenge type enforced by the rule.
|
|
127
|
+
* @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
|
|
128
|
+
* @param {boolean} params.enabled - Set to false to create the rule in a disabled state.
|
|
129
|
+
* @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
|
|
130
|
+
* @throws {AppwriteException}
|
|
131
|
+
* @returns {Promise<Models.WafRuleChallenge>}
|
|
132
|
+
*/
|
|
133
|
+
createChallengeRule(params: {
|
|
134
|
+
ruleId: string;
|
|
135
|
+
resourceType: string;
|
|
136
|
+
name: string;
|
|
137
|
+
resourceId?: string;
|
|
138
|
+
description?: string;
|
|
139
|
+
challengeType?: string;
|
|
140
|
+
priority?: number;
|
|
141
|
+
enabled?: boolean;
|
|
142
|
+
conditions?: string;
|
|
143
|
+
}): Promise<Models.WafRuleChallenge>;
|
|
144
|
+
/**
|
|
145
|
+
* Create a challenge WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
146
|
+
*
|
|
147
|
+
*
|
|
148
|
+
* @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
149
|
+
* @param {string} resourceType - Resource type the rule applies to.
|
|
150
|
+
* @param {string} name - Rule name.
|
|
151
|
+
* @param {string} resourceId - Resource identifier. Required for functions and sites.
|
|
152
|
+
* @param {string} description - Optional description for the rule.
|
|
153
|
+
* @param {string} challengeType - Challenge type enforced by the rule.
|
|
154
|
+
* @param {number} priority - Evaluation priority. Lower numbers run earlier.
|
|
155
|
+
* @param {boolean} enabled - Set to false to create the rule in a disabled state.
|
|
156
|
+
* @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
|
|
157
|
+
* @throws {AppwriteException}
|
|
158
|
+
* @returns {Promise<Models.WafRuleChallenge>}
|
|
159
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
160
|
+
*/
|
|
161
|
+
createChallengeRule(ruleId: string, resourceType: string, name: string, resourceId?: string, description?: string, challengeType?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleChallenge>;
|
|
162
|
+
/**
|
|
163
|
+
* Update a challenge WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
164
|
+
*
|
|
165
|
+
*
|
|
166
|
+
* @param {string} params.ruleId - Rule ID.
|
|
167
|
+
* @param {string} params.resourceType - Resource type the rule applies to.
|
|
168
|
+
* @param {string} params.resourceId - Resource identifier. Required for functions and sites.
|
|
169
|
+
* @param {string} params.name - Rule name.
|
|
170
|
+
* @param {string} params.description - Optional description for the rule.
|
|
171
|
+
* @param {string} params.challengeType - Challenge type enforced by the rule.
|
|
172
|
+
* @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
|
|
173
|
+
* @param {boolean} params.enabled - Set to false to disable the rule.
|
|
174
|
+
* @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
|
|
175
|
+
* @throws {AppwriteException}
|
|
176
|
+
* @returns {Promise<Models.WafRuleChallenge>}
|
|
177
|
+
*/
|
|
178
|
+
updateChallengeRule(params: {
|
|
179
|
+
ruleId: string;
|
|
180
|
+
resourceType?: string;
|
|
181
|
+
resourceId?: string;
|
|
182
|
+
name?: string;
|
|
183
|
+
description?: string;
|
|
184
|
+
challengeType?: string;
|
|
185
|
+
priority?: number;
|
|
186
|
+
enabled?: boolean;
|
|
187
|
+
conditions?: string;
|
|
188
|
+
}): Promise<Models.WafRuleChallenge>;
|
|
189
|
+
/**
|
|
190
|
+
* Update a challenge WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
191
|
+
*
|
|
192
|
+
*
|
|
193
|
+
* @param {string} ruleId - Rule ID.
|
|
194
|
+
* @param {string} resourceType - Resource type the rule applies to.
|
|
195
|
+
* @param {string} resourceId - Resource identifier. Required for functions and sites.
|
|
196
|
+
* @param {string} name - Rule name.
|
|
197
|
+
* @param {string} description - Optional description for the rule.
|
|
198
|
+
* @param {string} challengeType - Challenge type enforced by the rule.
|
|
199
|
+
* @param {number} priority - Evaluation priority. Lower numbers run earlier.
|
|
200
|
+
* @param {boolean} enabled - Set to false to disable the rule.
|
|
201
|
+
* @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
|
|
202
|
+
* @throws {AppwriteException}
|
|
203
|
+
* @returns {Promise<Models.WafRuleChallenge>}
|
|
204
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
205
|
+
*/
|
|
206
|
+
updateChallengeRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, challengeType?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleChallenge>;
|
|
207
|
+
/**
|
|
208
|
+
* Create a deny WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
119
209
|
*
|
|
120
210
|
*
|
|
121
211
|
* @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -140,7 +230,7 @@ export declare class Waf {
|
|
|
140
230
|
conditions?: string;
|
|
141
231
|
}): Promise<Models.WafRuleDeny>;
|
|
142
232
|
/**
|
|
143
|
-
* Create a deny WAF rule.
|
|
233
|
+
* Create a deny WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
144
234
|
*
|
|
145
235
|
*
|
|
146
236
|
* @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -157,7 +247,7 @@ export declare class Waf {
|
|
|
157
247
|
*/
|
|
158
248
|
createDenyRule(ruleId: string, resourceType: string, name: string, resourceId?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleDeny>;
|
|
159
249
|
/**
|
|
160
|
-
* Update a deny WAF rule.
|
|
250
|
+
* Update a deny WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
161
251
|
*
|
|
162
252
|
*
|
|
163
253
|
* @param {string} params.ruleId - Rule ID.
|
|
@@ -182,7 +272,7 @@ export declare class Waf {
|
|
|
182
272
|
conditions?: string;
|
|
183
273
|
}): Promise<Models.WafRuleDeny>;
|
|
184
274
|
/**
|
|
185
|
-
* Update a deny WAF rule.
|
|
275
|
+
* Update a deny WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
186
276
|
*
|
|
187
277
|
*
|
|
188
278
|
* @param {string} ruleId - Rule ID.
|
|
@@ -199,7 +289,7 @@ export declare class Waf {
|
|
|
199
289
|
*/
|
|
200
290
|
updateDenyRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleDeny>;
|
|
201
291
|
/**
|
|
202
|
-
* Create a rate limit WAF rule.
|
|
292
|
+
* Create a rate limit WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
203
293
|
*
|
|
204
294
|
*
|
|
205
295
|
* @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -228,7 +318,7 @@ export declare class Waf {
|
|
|
228
318
|
conditions?: string;
|
|
229
319
|
}): Promise<Models.WafRuleRateLimit>;
|
|
230
320
|
/**
|
|
231
|
-
* Create a rate limit WAF rule.
|
|
321
|
+
* Create a rate limit WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
232
322
|
*
|
|
233
323
|
*
|
|
234
324
|
* @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -247,7 +337,7 @@ export declare class Waf {
|
|
|
247
337
|
*/
|
|
248
338
|
createRateLimitRule(ruleId: string, resourceType: string, name: string, limit: number, interval: number, resourceId?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleRateLimit>;
|
|
249
339
|
/**
|
|
250
|
-
* Update a rate limit WAF rule.
|
|
340
|
+
* Update a rate limit WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
251
341
|
*
|
|
252
342
|
*
|
|
253
343
|
* @param {string} params.ruleId - Rule ID.
|
|
@@ -276,7 +366,7 @@ export declare class Waf {
|
|
|
276
366
|
conditions?: string;
|
|
277
367
|
}): Promise<Models.WafRuleRateLimit>;
|
|
278
368
|
/**
|
|
279
|
-
* Update a rate limit WAF rule.
|
|
369
|
+
* Update a rate limit WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
280
370
|
*
|
|
281
371
|
*
|
|
282
372
|
* @param {string} ruleId - Rule ID.
|
|
@@ -295,7 +385,7 @@ export declare class Waf {
|
|
|
295
385
|
*/
|
|
296
386
|
updateRateLimitRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, limit?: number, interval?: number, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleRateLimit>;
|
|
297
387
|
/**
|
|
298
|
-
* Create a redirect WAF rule.
|
|
388
|
+
* Create a redirect WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
299
389
|
*
|
|
300
390
|
*
|
|
301
391
|
* @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -324,7 +414,7 @@ export declare class Waf {
|
|
|
324
414
|
conditions?: string;
|
|
325
415
|
}): Promise<Models.WafRuleRedirect>;
|
|
326
416
|
/**
|
|
327
|
-
* Create a redirect WAF rule.
|
|
417
|
+
* Create a redirect WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
328
418
|
*
|
|
329
419
|
*
|
|
330
420
|
* @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
|
|
@@ -343,7 +433,7 @@ export declare class Waf {
|
|
|
343
433
|
*/
|
|
344
434
|
createRedirectRule(ruleId: string, resourceType: string, name: string, location: string, statusCode: number, resourceId?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleRedirect>;
|
|
345
435
|
/**
|
|
346
|
-
* Update a redirect WAF rule.
|
|
436
|
+
* Update a redirect WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
347
437
|
*
|
|
348
438
|
*
|
|
349
439
|
* @param {string} params.ruleId - Rule ID.
|
|
@@ -372,7 +462,7 @@ export declare class Waf {
|
|
|
372
462
|
conditions?: string;
|
|
373
463
|
}): Promise<Models.WafRuleRedirect>;
|
|
374
464
|
/**
|
|
375
|
-
* Update a redirect WAF rule.
|
|
465
|
+
* Update a redirect WAF rule. Conditions can match request attributes including `ip` (plain IPs or CIDR blocks like `10.0.0.0/8`), `method`, `path`, `host`, `country`, `continent`, `headers.<name>`, `query.<key>`, `queryKeys`, `userAgent`, `os`, `osVersion`, `browser`, and `browserVersion`. Conditions on `city` and `state` require the premium Geo DB addon.
|
|
376
466
|
*
|
|
377
467
|
*
|
|
378
468
|
* @param {string} ruleId - Rule ID.
|