@appwrite.io/console 15.3.0-rc.1 → 15.4.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.
Files changed (39) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +2524 -2066
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +2524 -2066
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +2524 -2066
  7. package/package.json +4 -4
  8. package/types/enums/database-status.d.ts +12 -1
  9. package/types/enums/database-type.d.ts +4 -1
  10. package/types/enums/o-auth-provider.d.ts +1 -0
  11. package/types/enums/project-key-scopes.d.ts +5 -2
  12. package/types/enums/project-o-auth-provider-id.d.ts +1 -0
  13. package/types/enums/query-suggestion-resource.d.ts +6 -1
  14. package/types/enums/waf-rule-action.d.ts +7 -0
  15. package/types/index.d.ts +3 -5
  16. package/types/models.d.ts +3260 -3404
  17. package/types/services/account.d.ts +133 -4
  18. package/types/services/apps.d.ts +39 -10
  19. package/types/services/backups.d.ts +17 -8
  20. package/types/services/databases.d.ts +0 -70
  21. package/types/services/documents-db.d.ts +75 -2
  22. package/types/services/functions.d.ts +4 -43
  23. package/types/services/locale.d.ts +2 -2
  24. package/types/services/migrations.d.ts +30 -18
  25. package/types/services/mongo.d.ts +13 -4
  26. package/types/services/mysql.d.ts +13 -4
  27. package/types/services/oauth-2.d.ts +119 -15
  28. package/types/services/postgresql.d.ts +13 -4
  29. package/types/services/project.d.ts +29 -1
  30. package/types/services/sites.d.ts +4 -43
  31. package/types/services/storage.d.ts +0 -46
  32. package/types/services/tables-db.d.ts +75 -69
  33. package/types/services/usage.d.ts +10 -10
  34. package/types/services/vectors-db.d.ts +75 -2
  35. package/types/services/waf.d.ts +435 -0
  36. package/types/enums/health-antivirus-status.d.ts +0 -5
  37. package/types/enums/health-check-status.d.ts +0 -4
  38. package/types/enums/health-queue-name.d.ts +0 -16
  39. package/types/services/health.d.ts +0 -483
@@ -0,0 +1,435 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Waf {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ * List WAF rules for the current project.
8
+ *
9
+ *
10
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
11
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
12
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
13
+ * @throws {AppwriteException}
14
+ * @returns {Promise<Models.WafRuleList>}
15
+ */
16
+ listRules(params?: {
17
+ queries?: string[];
18
+ search?: string;
19
+ total?: boolean;
20
+ }): Promise<Models.WafRuleList>;
21
+ /**
22
+ * List WAF rules for the current project.
23
+ *
24
+ *
25
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
26
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
27
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
28
+ * @throws {AppwriteException}
29
+ * @returns {Promise<Models.WafRuleList>}
30
+ * @deprecated Use the object parameter style method for a better developer experience.
31
+ */
32
+ listRules(queries?: string[], search?: string, total?: boolean): Promise<Models.WafRuleList>;
33
+ /**
34
+ * Create a bypass WAF rule.
35
+ *
36
+ *
37
+ * @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
38
+ * @param {string} params.resourceType - Resource type the rule applies to.
39
+ * @param {string} params.name - Rule name.
40
+ * @param {string} params.resourceId - Resource identifier. Leave empty for the API resource type.
41
+ * @param {string} params.description - Optional description for the rule.
42
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
43
+ * @param {boolean} params.enabled - Set to false to create the rule in a disabled state.
44
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
45
+ * @throws {AppwriteException}
46
+ * @returns {Promise<Models.WafRuleBypass>}
47
+ */
48
+ createBypassRule(params: {
49
+ ruleId: string;
50
+ resourceType: string;
51
+ name: string;
52
+ resourceId?: string;
53
+ description?: string;
54
+ priority?: number;
55
+ enabled?: boolean;
56
+ conditions?: string;
57
+ }): Promise<Models.WafRuleBypass>;
58
+ /**
59
+ * Create a bypass WAF rule.
60
+ *
61
+ *
62
+ * @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
63
+ * @param {string} resourceType - Resource type the rule applies to.
64
+ * @param {string} name - Rule name.
65
+ * @param {string} resourceId - Resource identifier. Leave empty for the API resource type.
66
+ * @param {string} description - Optional description for the rule.
67
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
68
+ * @param {boolean} enabled - Set to false to create the rule in a disabled state.
69
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
70
+ * @throws {AppwriteException}
71
+ * @returns {Promise<Models.WafRuleBypass>}
72
+ * @deprecated Use the object parameter style method for a better developer experience.
73
+ */
74
+ createBypassRule(ruleId: string, resourceType: string, name: string, resourceId?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleBypass>;
75
+ /**
76
+ * Update a bypass WAF rule.
77
+ *
78
+ *
79
+ * @param {string} params.ruleId - Rule ID.
80
+ * @param {string} params.resourceType - Resource type the rule applies to.
81
+ * @param {string} params.resourceId - Resource identifier. Required for functions and sites.
82
+ * @param {string} params.name - Rule name.
83
+ * @param {string} params.description - Optional description for the rule.
84
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
85
+ * @param {boolean} params.enabled - Set to false to disable the rule.
86
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
87
+ * @throws {AppwriteException}
88
+ * @returns {Promise<Models.WafRuleBypass>}
89
+ */
90
+ updateBypassRule(params: {
91
+ ruleId: string;
92
+ resourceType?: string;
93
+ resourceId?: string;
94
+ name?: string;
95
+ description?: string;
96
+ priority?: number;
97
+ enabled?: boolean;
98
+ conditions?: string;
99
+ }): Promise<Models.WafRuleBypass>;
100
+ /**
101
+ * Update a bypass WAF rule.
102
+ *
103
+ *
104
+ * @param {string} ruleId - Rule ID.
105
+ * @param {string} resourceType - Resource type the rule applies to.
106
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
107
+ * @param {string} name - Rule name.
108
+ * @param {string} description - Optional description for the rule.
109
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
110
+ * @param {boolean} enabled - Set to false to disable the rule.
111
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
112
+ * @throws {AppwriteException}
113
+ * @returns {Promise<Models.WafRuleBypass>}
114
+ * @deprecated Use the object parameter style method for a better developer experience.
115
+ */
116
+ updateBypassRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleBypass>;
117
+ /**
118
+ * Create a deny WAF rule.
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 {number} params.priority - Evaluation priority. Lower numbers run earlier.
127
+ * @param {boolean} params.enabled - Set to false to create the rule in a disabled state.
128
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
129
+ * @throws {AppwriteException}
130
+ * @returns {Promise<Models.WafRuleDeny>}
131
+ */
132
+ createDenyRule(params: {
133
+ ruleId: string;
134
+ resourceType: string;
135
+ name: string;
136
+ resourceId?: string;
137
+ description?: string;
138
+ priority?: number;
139
+ enabled?: boolean;
140
+ conditions?: string;
141
+ }): Promise<Models.WafRuleDeny>;
142
+ /**
143
+ * Create a deny WAF rule.
144
+ *
145
+ *
146
+ * @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
147
+ * @param {string} resourceType - Resource type the rule applies to.
148
+ * @param {string} name - Rule name.
149
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
150
+ * @param {string} description - Optional description for the rule.
151
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
152
+ * @param {boolean} enabled - Set to false to create the rule in a disabled state.
153
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
154
+ * @throws {AppwriteException}
155
+ * @returns {Promise<Models.WafRuleDeny>}
156
+ * @deprecated Use the object parameter style method for a better developer experience.
157
+ */
158
+ createDenyRule(ruleId: string, resourceType: string, name: string, resourceId?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleDeny>;
159
+ /**
160
+ * Update a deny WAF rule.
161
+ *
162
+ *
163
+ * @param {string} params.ruleId - Rule ID.
164
+ * @param {string} params.resourceType - Resource type the rule applies to.
165
+ * @param {string} params.resourceId - Resource identifier. Required for functions and sites.
166
+ * @param {string} params.name - Rule name.
167
+ * @param {string} params.description - Optional description for the rule.
168
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
169
+ * @param {boolean} params.enabled - Set to false to disable the rule.
170
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
171
+ * @throws {AppwriteException}
172
+ * @returns {Promise<Models.WafRuleDeny>}
173
+ */
174
+ updateDenyRule(params: {
175
+ ruleId: string;
176
+ resourceType?: string;
177
+ resourceId?: string;
178
+ name?: string;
179
+ description?: string;
180
+ priority?: number;
181
+ enabled?: boolean;
182
+ conditions?: string;
183
+ }): Promise<Models.WafRuleDeny>;
184
+ /**
185
+ * Update a deny WAF rule.
186
+ *
187
+ *
188
+ * @param {string} ruleId - Rule ID.
189
+ * @param {string} resourceType - Resource type the rule applies to.
190
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
191
+ * @param {string} name - Rule name.
192
+ * @param {string} description - Optional description for the rule.
193
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
194
+ * @param {boolean} enabled - Set to false to disable the rule.
195
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
196
+ * @throws {AppwriteException}
197
+ * @returns {Promise<Models.WafRuleDeny>}
198
+ * @deprecated Use the object parameter style method for a better developer experience.
199
+ */
200
+ updateDenyRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleDeny>;
201
+ /**
202
+ * Create a rate limit WAF rule.
203
+ *
204
+ *
205
+ * @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
206
+ * @param {string} params.resourceType - Resource type the rule applies to.
207
+ * @param {string} params.name - Rule name.
208
+ * @param {number} params.limit - Maximum number of matching requests allowed in the configured interval.
209
+ * @param {number} params.interval - Interval in seconds used for rate limiting.
210
+ * @param {string} params.resourceId - Resource identifier. Required for functions and sites.
211
+ * @param {string} params.description - Optional description for the rule.
212
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
213
+ * @param {boolean} params.enabled - Set to false to create the rule in a disabled state.
214
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
215
+ * @throws {AppwriteException}
216
+ * @returns {Promise<Models.WafRuleRateLimit>}
217
+ */
218
+ createRateLimitRule(params: {
219
+ ruleId: string;
220
+ resourceType: string;
221
+ name: string;
222
+ limit: number;
223
+ interval: number;
224
+ resourceId?: string;
225
+ description?: string;
226
+ priority?: number;
227
+ enabled?: boolean;
228
+ conditions?: string;
229
+ }): Promise<Models.WafRuleRateLimit>;
230
+ /**
231
+ * Create a rate limit WAF rule.
232
+ *
233
+ *
234
+ * @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
235
+ * @param {string} resourceType - Resource type the rule applies to.
236
+ * @param {string} name - Rule name.
237
+ * @param {number} limit - Maximum number of matching requests allowed in the configured interval.
238
+ * @param {number} interval - Interval in seconds used for rate limiting.
239
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
240
+ * @param {string} description - Optional description for the rule.
241
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
242
+ * @param {boolean} enabled - Set to false to create the rule in a disabled state.
243
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
244
+ * @throws {AppwriteException}
245
+ * @returns {Promise<Models.WafRuleRateLimit>}
246
+ * @deprecated Use the object parameter style method for a better developer experience.
247
+ */
248
+ 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
+ /**
250
+ * Update a rate limit WAF rule.
251
+ *
252
+ *
253
+ * @param {string} params.ruleId - Rule ID.
254
+ * @param {string} params.resourceType - Resource type the rule applies to.
255
+ * @param {string} params.resourceId - Resource identifier. Required for functions and sites.
256
+ * @param {string} params.name - Rule name.
257
+ * @param {string} params.description - Optional description for the rule.
258
+ * @param {number} params.limit - Maximum number of matching requests allowed in the configured interval.
259
+ * @param {number} params.interval - Interval in seconds used for rate limiting.
260
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
261
+ * @param {boolean} params.enabled - Set to false to disable the rule.
262
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
263
+ * @throws {AppwriteException}
264
+ * @returns {Promise<Models.WafRuleRateLimit>}
265
+ */
266
+ updateRateLimitRule(params: {
267
+ ruleId: string;
268
+ resourceType?: string;
269
+ resourceId?: string;
270
+ name?: string;
271
+ description?: string;
272
+ limit?: number;
273
+ interval?: number;
274
+ priority?: number;
275
+ enabled?: boolean;
276
+ conditions?: string;
277
+ }): Promise<Models.WafRuleRateLimit>;
278
+ /**
279
+ * Update a rate limit WAF rule.
280
+ *
281
+ *
282
+ * @param {string} ruleId - Rule ID.
283
+ * @param {string} resourceType - Resource type the rule applies to.
284
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
285
+ * @param {string} name - Rule name.
286
+ * @param {string} description - Optional description for the rule.
287
+ * @param {number} limit - Maximum number of matching requests allowed in the configured interval.
288
+ * @param {number} interval - Interval in seconds used for rate limiting.
289
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
290
+ * @param {boolean} enabled - Set to false to disable the rule.
291
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
292
+ * @throws {AppwriteException}
293
+ * @returns {Promise<Models.WafRuleRateLimit>}
294
+ * @deprecated Use the object parameter style method for a better developer experience.
295
+ */
296
+ 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
+ /**
298
+ * Create a redirect WAF rule.
299
+ *
300
+ *
301
+ * @param {string} params.ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
302
+ * @param {string} params.resourceType - Resource type the rule applies to.
303
+ * @param {string} params.name - Rule name.
304
+ * @param {string} params.location - Location used for redirect responses.
305
+ * @param {number} params.statusCode - Integer status code used for redirect responses.
306
+ * @param {string} params.resourceId - Resource identifier. Required for functions and sites.
307
+ * @param {string} params.description - Optional description for the rule.
308
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
309
+ * @param {boolean} params.enabled - Set to false to create the rule in a disabled state.
310
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
311
+ * @throws {AppwriteException}
312
+ * @returns {Promise<Models.WafRuleRedirect>}
313
+ */
314
+ createRedirectRule(params: {
315
+ ruleId: string;
316
+ resourceType: string;
317
+ name: string;
318
+ location: string;
319
+ statusCode: number;
320
+ resourceId?: string;
321
+ description?: string;
322
+ priority?: number;
323
+ enabled?: boolean;
324
+ conditions?: string;
325
+ }): Promise<Models.WafRuleRedirect>;
326
+ /**
327
+ * Create a redirect WAF rule.
328
+ *
329
+ *
330
+ * @param {string} ruleId - Rule ID. Choose a custom ID or pass `ID.unique()` to generate a unique one.
331
+ * @param {string} resourceType - Resource type the rule applies to.
332
+ * @param {string} name - Rule name.
333
+ * @param {string} location - Location used for redirect responses.
334
+ * @param {number} statusCode - Integer status code used for redirect responses.
335
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
336
+ * @param {string} description - Optional description for the rule.
337
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
338
+ * @param {boolean} enabled - Set to false to create the rule in a disabled state.
339
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
340
+ * @throws {AppwriteException}
341
+ * @returns {Promise<Models.WafRuleRedirect>}
342
+ * @deprecated Use the object parameter style method for a better developer experience.
343
+ */
344
+ 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
+ /**
346
+ * Update a redirect WAF rule.
347
+ *
348
+ *
349
+ * @param {string} params.ruleId - Rule ID.
350
+ * @param {string} params.resourceType - Resource type the rule applies to.
351
+ * @param {string} params.resourceId - Resource identifier. Required for functions and sites.
352
+ * @param {string} params.name - Rule name.
353
+ * @param {string} params.description - Optional description for the rule.
354
+ * @param {string} params.location - Location used for redirect responses.
355
+ * @param {number} params.statusCode - Integer status code used for redirect responses.
356
+ * @param {number} params.priority - Evaluation priority. Lower numbers run earlier.
357
+ * @param {boolean} params.enabled - Set to false to disable the rule.
358
+ * @param {string} params.conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
359
+ * @throws {AppwriteException}
360
+ * @returns {Promise<Models.WafRuleRedirect>}
361
+ */
362
+ updateRedirectRule(params: {
363
+ ruleId: string;
364
+ resourceType?: string;
365
+ resourceId?: string;
366
+ name?: string;
367
+ description?: string;
368
+ location?: string;
369
+ statusCode?: number;
370
+ priority?: number;
371
+ enabled?: boolean;
372
+ conditions?: string;
373
+ }): Promise<Models.WafRuleRedirect>;
374
+ /**
375
+ * Update a redirect WAF rule.
376
+ *
377
+ *
378
+ * @param {string} ruleId - Rule ID.
379
+ * @param {string} resourceType - Resource type the rule applies to.
380
+ * @param {string} resourceId - Resource identifier. Required for functions and sites.
381
+ * @param {string} name - Rule name.
382
+ * @param {string} description - Optional description for the rule.
383
+ * @param {string} location - Location used for redirect responses.
384
+ * @param {number} statusCode - Integer status code used for redirect responses.
385
+ * @param {number} priority - Evaluation priority. Lower numbers run earlier.
386
+ * @param {boolean} enabled - Set to false to disable the rule.
387
+ * @param {string} conditions - Array of condition strings generated using the WAF Condition builder. Maximum of 100 conditions are allowed, each 4096 characters long.
388
+ * @throws {AppwriteException}
389
+ * @returns {Promise<Models.WafRuleRedirect>}
390
+ * @deprecated Use the object parameter style method for a better developer experience.
391
+ */
392
+ updateRedirectRule(ruleId: string, resourceType?: string, resourceId?: string, name?: string, description?: string, location?: string, statusCode?: number, priority?: number, enabled?: boolean, conditions?: string): Promise<Models.WafRuleRedirect>;
393
+ /**
394
+ * Get a WAF rule by its ID.
395
+ *
396
+ *
397
+ * @param {string} params.ruleId - Rule ID.
398
+ * @throws {AppwriteException}
399
+ * @returns {Promise<Models.WafRule>}
400
+ */
401
+ getRule(params: {
402
+ ruleId: string;
403
+ }): Promise<Models.WafRule>;
404
+ /**
405
+ * Get a WAF rule by its ID.
406
+ *
407
+ *
408
+ * @param {string} ruleId - Rule ID.
409
+ * @throws {AppwriteException}
410
+ * @returns {Promise<Models.WafRule>}
411
+ * @deprecated Use the object parameter style method for a better developer experience.
412
+ */
413
+ getRule(ruleId: string): Promise<Models.WafRule>;
414
+ /**
415
+ * Delete a WAF rule.
416
+ *
417
+ *
418
+ * @param {string} params.ruleId - Rule ID.
419
+ * @throws {AppwriteException}
420
+ * @returns {Promise<{}>}
421
+ */
422
+ deleteRule(params: {
423
+ ruleId: string;
424
+ }): Promise<{}>;
425
+ /**
426
+ * Delete a WAF rule.
427
+ *
428
+ *
429
+ * @param {string} ruleId - Rule ID.
430
+ * @throws {AppwriteException}
431
+ * @returns {Promise<{}>}
432
+ * @deprecated Use the object parameter style method for a better developer experience.
433
+ */
434
+ deleteRule(ruleId: string): Promise<{}>;
435
+ }
@@ -1,5 +0,0 @@
1
- export declare enum HealthAntivirusStatus {
2
- Disabled = "disabled",
3
- Offline = "offline",
4
- Online = "online"
5
- }
@@ -1,4 +0,0 @@
1
- export declare enum HealthCheckStatus {
2
- Pass = "pass",
3
- Fail = "fail"
4
- }
@@ -1,16 +0,0 @@
1
- export declare enum HealthQueueName {
2
- V1database = "v1-database",
3
- V1deletes = "v1-deletes",
4
- V1audits = "v1-audits",
5
- V1mails = "v1-mails",
6
- V1functions = "v1-functions",
7
- V1statsresources = "v1-stats-resources",
8
- V1statsusage = "v1-stats-usage",
9
- V1webhooks = "v1-webhooks",
10
- V1certificates = "v1-certificates",
11
- V1builds = "v1-builds",
12
- V1screenshots = "v1-screenshots",
13
- V1messaging = "v1-messaging",
14
- V1migrations = "v1-migrations",
15
- V1notifications = "v1-notifications"
16
- }