node-appwrite 22.0.0 → 22.1.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 (74) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +2 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +2 -2
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/backup-services.d.mts +7 -0
  7. package/dist/enums/backup-services.d.ts +7 -0
  8. package/dist/enums/backup-services.js +12 -0
  9. package/dist/enums/backup-services.js.map +1 -0
  10. package/dist/enums/backup-services.mjs +11 -0
  11. package/dist/enums/backup-services.mjs.map +1 -0
  12. package/dist/enums/build-runtime.d.mts +3 -4
  13. package/dist/enums/build-runtime.d.ts +3 -4
  14. package/dist/enums/build-runtime.js +2 -3
  15. package/dist/enums/build-runtime.js.map +1 -1
  16. package/dist/enums/build-runtime.mjs +2 -3
  17. package/dist/enums/build-runtime.mjs.map +1 -1
  18. package/dist/enums/runtime.d.mts +3 -4
  19. package/dist/enums/runtime.d.ts +3 -4
  20. package/dist/enums/runtime.js +2 -3
  21. package/dist/enums/runtime.js.map +1 -1
  22. package/dist/enums/runtime.mjs +2 -3
  23. package/dist/enums/runtime.mjs.map +1 -1
  24. package/dist/enums/scopes.d.mts +9 -1
  25. package/dist/enums/scopes.d.ts +9 -1
  26. package/dist/enums/scopes.js +8 -0
  27. package/dist/enums/scopes.js.map +1 -1
  28. package/dist/enums/scopes.mjs +8 -0
  29. package/dist/enums/scopes.mjs.map +1 -1
  30. package/dist/index.d.mts +2 -1
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +10 -5
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +2 -1
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/models.d.mts +216 -2
  37. package/dist/models.d.ts +216 -2
  38. package/dist/services/account.js +3 -3
  39. package/dist/services/account.js.map +1 -1
  40. package/dist/services/account.mjs +3 -3
  41. package/dist/services/account.mjs.map +1 -1
  42. package/dist/services/avatars.js +3 -3
  43. package/dist/services/avatars.js.map +1 -1
  44. package/dist/services/avatars.mjs +3 -3
  45. package/dist/services/avatars.mjs.map +1 -1
  46. package/dist/services/backups.d.mts +291 -0
  47. package/dist/services/backups.d.ts +291 -0
  48. package/dist/services/backups.js +404 -0
  49. package/dist/services/backups.js.map +1 -0
  50. package/dist/services/backups.mjs +403 -0
  51. package/dist/services/backups.mjs.map +1 -0
  52. package/dist/services/graphql.js.map +1 -1
  53. package/dist/services/graphql.mjs.map +1 -1
  54. package/dist/services/health.d.mts +95 -0
  55. package/dist/services/health.d.ts +95 -0
  56. package/dist/services/health.js +121 -1
  57. package/dist/services/health.js.map +1 -1
  58. package/dist/services/health.mjs +121 -1
  59. package/dist/services/health.mjs.map +1 -1
  60. package/dist/services/storage.d.mts +4 -4
  61. package/dist/services/storage.d.ts +4 -4
  62. package/dist/services/storage.js.map +1 -1
  63. package/dist/services/storage.mjs.map +1 -1
  64. package/dist/services/teams.d.mts +8 -9
  65. package/dist/services/teams.d.ts +8 -9
  66. package/dist/services/teams.js.map +1 -1
  67. package/dist/services/teams.mjs.map +1 -1
  68. package/package.json +1 -1
  69. package/dist/enums/roles.d.mts +0 -7
  70. package/dist/enums/roles.d.ts +0 -7
  71. package/dist/enums/roles.js +0 -12
  72. package/dist/enums/roles.js.map +0 -1
  73. package/dist/enums/roles.mjs +0 -11
  74. package/dist/enums/roles.mjs.map +0 -1
@@ -89,6 +89,44 @@ declare class Health {
89
89
  * @deprecated Use the object parameter style method for a better developer experience.
90
90
  */
91
91
  getQueueAudits(threshold?: number): Promise<Models.HealthQueue>;
92
+ /**
93
+ * Get billing project aggregation queue.
94
+ *
95
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
96
+ * @throws {AppwriteException}
97
+ * @returns {Promise<Models.HealthQueue>}
98
+ */
99
+ getQueueBillingProjectAggregation(params?: {
100
+ threshold?: number;
101
+ }): Promise<Models.HealthQueue>;
102
+ /**
103
+ * Get billing project aggregation queue.
104
+ *
105
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
106
+ * @throws {AppwriteException}
107
+ * @returns {Promise<Models.HealthQueue>}
108
+ * @deprecated Use the object parameter style method for a better developer experience.
109
+ */
110
+ getQueueBillingProjectAggregation(threshold?: number): Promise<Models.HealthQueue>;
111
+ /**
112
+ * Get billing team aggregation queue.
113
+ *
114
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
115
+ * @throws {AppwriteException}
116
+ * @returns {Promise<Models.HealthQueue>}
117
+ */
118
+ getQueueBillingTeamAggregation(params?: {
119
+ threshold?: number;
120
+ }): Promise<Models.HealthQueue>;
121
+ /**
122
+ * Get billing team aggregation queue.
123
+ *
124
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
125
+ * @throws {AppwriteException}
126
+ * @returns {Promise<Models.HealthQueue>}
127
+ * @deprecated Use the object parameter style method for a better developer experience.
128
+ */
129
+ getQueueBillingTeamAggregation(threshold?: number): Promise<Models.HealthQueue>;
92
130
  /**
93
131
  * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
94
132
  *
@@ -108,6 +146,25 @@ declare class Health {
108
146
  * @deprecated Use the object parameter style method for a better developer experience.
109
147
  */
110
148
  getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
149
+ /**
150
+ * Get the priority builds queue size.
151
+ *
152
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
153
+ * @throws {AppwriteException}
154
+ * @returns {Promise<Models.HealthQueue>}
155
+ */
156
+ getQueuePriorityBuilds(params?: {
157
+ threshold?: number;
158
+ }): Promise<Models.HealthQueue>;
159
+ /**
160
+ * Get the priority builds queue size.
161
+ *
162
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
163
+ * @throws {AppwriteException}
164
+ * @returns {Promise<Models.HealthQueue>}
165
+ * @deprecated Use the object parameter style method for a better developer experience.
166
+ */
167
+ getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;
111
168
  /**
112
169
  * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
113
170
  *
@@ -287,6 +344,25 @@ declare class Health {
287
344
  * @deprecated Use the object parameter style method for a better developer experience.
288
345
  */
289
346
  getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
347
+ /**
348
+ * Get region manager queue.
349
+ *
350
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
351
+ * @throws {AppwriteException}
352
+ * @returns {Promise<Models.HealthQueue>}
353
+ */
354
+ getQueueRegionManager(params?: {
355
+ threshold?: number;
356
+ }): Promise<Models.HealthQueue>;
357
+ /**
358
+ * Get region manager queue.
359
+ *
360
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
361
+ * @throws {AppwriteException}
362
+ * @returns {Promise<Models.HealthQueue>}
363
+ * @deprecated Use the object parameter style method for a better developer experience.
364
+ */
365
+ getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue>;
290
366
  /**
291
367
  * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
292
368
  *
@@ -325,6 +401,25 @@ declare class Health {
325
401
  * @deprecated Use the object parameter style method for a better developer experience.
326
402
  */
327
403
  getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
404
+ /**
405
+ * Get threats queue.
406
+ *
407
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
408
+ * @throws {AppwriteException}
409
+ * @returns {Promise<Models.HealthQueue>}
410
+ */
411
+ getQueueThreats(params?: {
412
+ threshold?: number;
413
+ }): Promise<Models.HealthQueue>;
414
+ /**
415
+ * Get threats queue.
416
+ *
417
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
418
+ * @throws {AppwriteException}
419
+ * @returns {Promise<Models.HealthQueue>}
420
+ * @deprecated Use the object parameter style method for a better developer experience.
421
+ */
422
+ getQueueThreats(threshold?: number): Promise<Models.HealthQueue>;
328
423
  /**
329
424
  * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
330
425
  *
@@ -89,6 +89,44 @@ declare class Health {
89
89
  * @deprecated Use the object parameter style method for a better developer experience.
90
90
  */
91
91
  getQueueAudits(threshold?: number): Promise<Models.HealthQueue>;
92
+ /**
93
+ * Get billing project aggregation queue.
94
+ *
95
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
96
+ * @throws {AppwriteException}
97
+ * @returns {Promise<Models.HealthQueue>}
98
+ */
99
+ getQueueBillingProjectAggregation(params?: {
100
+ threshold?: number;
101
+ }): Promise<Models.HealthQueue>;
102
+ /**
103
+ * Get billing project aggregation queue.
104
+ *
105
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
106
+ * @throws {AppwriteException}
107
+ * @returns {Promise<Models.HealthQueue>}
108
+ * @deprecated Use the object parameter style method for a better developer experience.
109
+ */
110
+ getQueueBillingProjectAggregation(threshold?: number): Promise<Models.HealthQueue>;
111
+ /**
112
+ * Get billing team aggregation queue.
113
+ *
114
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
115
+ * @throws {AppwriteException}
116
+ * @returns {Promise<Models.HealthQueue>}
117
+ */
118
+ getQueueBillingTeamAggregation(params?: {
119
+ threshold?: number;
120
+ }): Promise<Models.HealthQueue>;
121
+ /**
122
+ * Get billing team aggregation queue.
123
+ *
124
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
125
+ * @throws {AppwriteException}
126
+ * @returns {Promise<Models.HealthQueue>}
127
+ * @deprecated Use the object parameter style method for a better developer experience.
128
+ */
129
+ getQueueBillingTeamAggregation(threshold?: number): Promise<Models.HealthQueue>;
92
130
  /**
93
131
  * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
94
132
  *
@@ -108,6 +146,25 @@ declare class Health {
108
146
  * @deprecated Use the object parameter style method for a better developer experience.
109
147
  */
110
148
  getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
149
+ /**
150
+ * Get the priority builds queue size.
151
+ *
152
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
153
+ * @throws {AppwriteException}
154
+ * @returns {Promise<Models.HealthQueue>}
155
+ */
156
+ getQueuePriorityBuilds(params?: {
157
+ threshold?: number;
158
+ }): Promise<Models.HealthQueue>;
159
+ /**
160
+ * Get the priority builds queue size.
161
+ *
162
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
163
+ * @throws {AppwriteException}
164
+ * @returns {Promise<Models.HealthQueue>}
165
+ * @deprecated Use the object parameter style method for a better developer experience.
166
+ */
167
+ getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;
111
168
  /**
112
169
  * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
113
170
  *
@@ -287,6 +344,25 @@ declare class Health {
287
344
  * @deprecated Use the object parameter style method for a better developer experience.
288
345
  */
289
346
  getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
347
+ /**
348
+ * Get region manager queue.
349
+ *
350
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
351
+ * @throws {AppwriteException}
352
+ * @returns {Promise<Models.HealthQueue>}
353
+ */
354
+ getQueueRegionManager(params?: {
355
+ threshold?: number;
356
+ }): Promise<Models.HealthQueue>;
357
+ /**
358
+ * Get region manager queue.
359
+ *
360
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
361
+ * @throws {AppwriteException}
362
+ * @returns {Promise<Models.HealthQueue>}
363
+ * @deprecated Use the object parameter style method for a better developer experience.
364
+ */
365
+ getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue>;
290
366
  /**
291
367
  * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
292
368
  *
@@ -325,6 +401,25 @@ declare class Health {
325
401
  * @deprecated Use the object parameter style method for a better developer experience.
326
402
  */
327
403
  getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
404
+ /**
405
+ * Get threats queue.
406
+ *
407
+ * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
408
+ * @throws {AppwriteException}
409
+ * @returns {Promise<Models.HealthQueue>}
410
+ */
411
+ getQueueThreats(params?: {
412
+ threshold?: number;
413
+ }): Promise<Models.HealthQueue>;
414
+ /**
415
+ * Get threats queue.
416
+ *
417
+ * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
418
+ * @throws {AppwriteException}
419
+ * @returns {Promise<Models.HealthQueue>}
420
+ * @deprecated Use the object parameter style method for a better developer experience.
421
+ */
422
+ getQueueThreats(threshold?: number): Promise<Models.HealthQueue>;
328
423
  /**
329
424
  * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
330
425
  *
@@ -144,6 +144,54 @@ class Health {
144
144
  payload
145
145
  );
146
146
  }
147
+ getQueueBillingProjectAggregation(paramsOrFirst) {
148
+ let params;
149
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
150
+ params = paramsOrFirst || {};
151
+ } else {
152
+ params = {
153
+ threshold: paramsOrFirst
154
+ };
155
+ }
156
+ const threshold = params.threshold;
157
+ const apiPath = "/health/queue/billing-project-aggregation";
158
+ const payload = {};
159
+ if (typeof threshold !== "undefined") {
160
+ payload["threshold"] = threshold;
161
+ }
162
+ const uri = new URL(this.client.config.endpoint + apiPath);
163
+ const apiHeaders = {};
164
+ return this.client.call(
165
+ "get",
166
+ uri,
167
+ apiHeaders,
168
+ payload
169
+ );
170
+ }
171
+ getQueueBillingTeamAggregation(paramsOrFirst) {
172
+ let params;
173
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
174
+ params = paramsOrFirst || {};
175
+ } else {
176
+ params = {
177
+ threshold: paramsOrFirst
178
+ };
179
+ }
180
+ const threshold = params.threshold;
181
+ const apiPath = "/health/queue/billing-team-aggregation";
182
+ const payload = {};
183
+ if (typeof threshold !== "undefined") {
184
+ payload["threshold"] = threshold;
185
+ }
186
+ const uri = new URL(this.client.config.endpoint + apiPath);
187
+ const apiHeaders = {};
188
+ return this.client.call(
189
+ "get",
190
+ uri,
191
+ apiHeaders,
192
+ payload
193
+ );
194
+ }
147
195
  getQueueBuilds(paramsOrFirst) {
148
196
  let params;
149
197
  if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -168,6 +216,30 @@ class Health {
168
216
  payload
169
217
  );
170
218
  }
219
+ getQueuePriorityBuilds(paramsOrFirst) {
220
+ let params;
221
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
222
+ params = paramsOrFirst || {};
223
+ } else {
224
+ params = {
225
+ threshold: paramsOrFirst
226
+ };
227
+ }
228
+ const threshold = params.threshold;
229
+ const apiPath = "/health/queue/builds-priority";
230
+ const payload = {};
231
+ if (typeof threshold !== "undefined") {
232
+ payload["threshold"] = threshold;
233
+ }
234
+ const uri = new URL(this.client.config.endpoint + apiPath);
235
+ const apiHeaders = {};
236
+ return this.client.call(
237
+ "get",
238
+ uri,
239
+ apiHeaders,
240
+ payload
241
+ );
242
+ }
171
243
  getQueueCertificates(paramsOrFirst) {
172
244
  let params;
173
245
  if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -247,7 +319,7 @@ class Health {
247
319
  }
248
320
  getFailedJobs(paramsOrFirst, ...rest) {
249
321
  let params;
250
- if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && "name" in paramsOrFirst) {
322
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("name" in paramsOrFirst || "threshold" in paramsOrFirst)) {
251
323
  params = paramsOrFirst || {};
252
324
  } else {
253
325
  params = {
@@ -394,6 +466,30 @@ class Health {
394
466
  payload
395
467
  );
396
468
  }
469
+ getQueueRegionManager(paramsOrFirst) {
470
+ let params;
471
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
472
+ params = paramsOrFirst || {};
473
+ } else {
474
+ params = {
475
+ threshold: paramsOrFirst
476
+ };
477
+ }
478
+ const threshold = params.threshold;
479
+ const apiPath = "/health/queue/region-manager";
480
+ const payload = {};
481
+ if (typeof threshold !== "undefined") {
482
+ payload["threshold"] = threshold;
483
+ }
484
+ const uri = new URL(this.client.config.endpoint + apiPath);
485
+ const apiHeaders = {};
486
+ return this.client.call(
487
+ "get",
488
+ uri,
489
+ apiHeaders,
490
+ payload
491
+ );
492
+ }
397
493
  getQueueStatsResources(paramsOrFirst) {
398
494
  let params;
399
495
  if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -442,6 +538,30 @@ class Health {
442
538
  payload
443
539
  );
444
540
  }
541
+ getQueueThreats(paramsOrFirst) {
542
+ let params;
543
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
544
+ params = paramsOrFirst || {};
545
+ } else {
546
+ params = {
547
+ threshold: paramsOrFirst
548
+ };
549
+ }
550
+ const threshold = params.threshold;
551
+ const apiPath = "/health/queue/threats";
552
+ const payload = {};
553
+ if (typeof threshold !== "undefined") {
554
+ payload["threshold"] = threshold;
555
+ }
556
+ const uri = new URL(this.client.config.endpoint + apiPath);
557
+ const apiHeaders = {};
558
+ return this.client.call(
559
+ "get",
560
+ uri,
561
+ apiHeaders,
562
+ payload
563
+ );
564
+ }
445
565
  getQueueWebhooks(paramsOrFirst) {
446
566
  let params;
447
567
  if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/services/health.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAKjE,MAAM,OAAO;AAAA,EAGhB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAoC;AAEhC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAA6C;AAEzC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA,EAmBA,eACI,eACiC;AACjC,QAAI;AAEJ,QAAI,CAA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AO,cAAc,aAAa;AAClC,cAAQ,WAAW,IAAI;AAAA,IAC3B;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,aAA2C;AAEvC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,kBAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAsC;AAElC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { AppwriteException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Name } from '../enums/name';\n\nexport class Health {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Check the Appwrite HTTP server is up and responsive.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n get(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite Antivirus server is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthAntivirus>}\n */\n getAntivirus(): Promise<Models.HealthAntivirus> {\n\n const apiPath = '/health/anti-virus';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite in-memory cache servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getCache(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/cache';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} params.domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n */\n getCertificate(params?: { domain?: string }): Promise<Models.HealthCertificate>;\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getCertificate(domain?: string): Promise<Models.HealthCertificate>;\n getCertificate(\n paramsOrFirst?: { domain?: string } | string \n ): Promise<Models.HealthCertificate> {\n let params: { domain?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { domain?: string };\n } else {\n params = {\n domain: paramsOrFirst as string \n };\n }\n \n const domain = params.domain;\n\n\n const apiPath = '/health/certificate';\n const payload: Payload = {};\n if (typeof domain !== 'undefined') {\n payload['domain'] = domain;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite database servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getDB(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/db';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite pub-sub servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getPubSub(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/pubsub';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueAudits(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueAudits(threshold?: number): Promise<Models.HealthQueue>;\n getQueueAudits(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/audits';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;\n getQueueBuilds(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/builds';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueCertificates(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;\n getQueueCertificates(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/certificates';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} params.name - Queue name for which to check the queue size\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDatabases(params?: { name?: string, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} name - Queue name for which to check the queue size\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;\n getQueueDatabases(\n paramsOrFirst?: { name?: string, threshold?: number } | string,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name?: string, threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { name?: string, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as string,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/databases';\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDeletes(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;\n getQueueDeletes(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/deletes';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} params.name - The name of the queue\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getFailedJobs(params: { name: Name, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} name - The name of the queue\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;\n getFailedJobs(\n paramsOrFirst: { name: Name, threshold?: number } | Name,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name: Name, threshold?: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'name' in paramsOrFirst)) {\n params = (paramsOrFirst || {}) as { name: Name, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as Name,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueFunctions(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;\n getQueueFunctions(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/functions';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueLogs(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;\n getQueueLogs(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/logs';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMails(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMails(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMails(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/mails';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMessaging(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMessaging(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/messaging';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMigrations(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMigrations(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/migrations';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueStatsResources(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;\n getQueueStatsResources(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-resources';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueUsage(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;\n getQueueUsage(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-usage';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueWebhooks(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;\n getQueueWebhooks(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/webhooks';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorage(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite local storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorageLocal(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage/local';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthTime>}\n */\n getTime(): Promise<Models.HealthTime> {\n\n const apiPath = '/health/time';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/services/health.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAKjE,MAAM,OAAO;AAAA,EAGhB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAoC;AAEhC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OA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AA;AAAA;AAAA,EAQA,kBAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAsC;AAElC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { AppwriteException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Name } from '../enums/name';\n\nexport class Health {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Check the Appwrite HTTP server is up and responsive.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n get(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite Antivirus server is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthAntivirus>}\n */\n getAntivirus(): Promise<Models.HealthAntivirus> {\n\n const apiPath = '/health/anti-virus';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite in-memory cache servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getCache(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/cache';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} params.domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n */\n getCertificate(params?: { domain?: string }): Promise<Models.HealthCertificate>;\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getCertificate(domain?: string): Promise<Models.HealthCertificate>;\n getCertificate(\n paramsOrFirst?: { domain?: string } | string \n ): Promise<Models.HealthCertificate> {\n let params: { domain?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { domain?: string };\n } else {\n params = {\n domain: paramsOrFirst as string \n };\n }\n \n const domain = params.domain;\n\n\n const apiPath = '/health/certificate';\n const payload: Payload = {};\n if (typeof domain !== 'undefined') {\n payload['domain'] = domain;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite database servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getDB(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/db';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite pub-sub servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getPubSub(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/pubsub';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueAudits(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueAudits(threshold?: number): Promise<Models.HealthQueue>;\n getQueueAudits(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/audits';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get billing project aggregation queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueBillingProjectAggregation(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get billing project aggregation queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueBillingProjectAggregation(threshold?: number): Promise<Models.HealthQueue>;\n getQueueBillingProjectAggregation(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/billing-project-aggregation';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get billing team aggregation queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueBillingTeamAggregation(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get billing team aggregation queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueBillingTeamAggregation(threshold?: number): Promise<Models.HealthQueue>;\n getQueueBillingTeamAggregation(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/billing-team-aggregation';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;\n getQueueBuilds(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/builds';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the priority builds queue size.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueuePriorityBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the priority builds queue size.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;\n getQueuePriorityBuilds(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/builds-priority';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueCertificates(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;\n getQueueCertificates(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/certificates';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} params.name - Queue name for which to check the queue size\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDatabases(params?: { name?: string, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} name - Queue name for which to check the queue size\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;\n getQueueDatabases(\n paramsOrFirst?: { name?: string, threshold?: number } | string,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name?: string, threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { name?: string, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as string,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/databases';\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDeletes(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;\n getQueueDeletes(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/deletes';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} params.name - The name of the queue\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getFailedJobs(params: { name: Name, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} name - The name of the queue\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;\n getFailedJobs(\n paramsOrFirst: { name: Name, threshold?: number } | Name,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name: Name, threshold?: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('name' in paramsOrFirst || 'threshold' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { name: Name, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as Name,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueFunctions(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;\n getQueueFunctions(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/functions';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueLogs(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;\n getQueueLogs(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/logs';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMails(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMails(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMails(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/mails';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMessaging(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMessaging(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/messaging';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMigrations(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMigrations(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/migrations';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get region manager queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueRegionManager(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get region manager queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue>;\n getQueueRegionManager(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/region-manager';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueStatsResources(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;\n getQueueStatsResources(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-resources';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueUsage(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;\n getQueueUsage(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-usage';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get threats queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueThreats(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get threats queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueThreats(threshold?: number): Promise<Models.HealthQueue>;\n getQueueThreats(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/threats';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueWebhooks(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;\n getQueueWebhooks(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/webhooks';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorage(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite local storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorageLocal(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage/local';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthTime>}\n */\n getTime(): Promise<Models.HealthTime> {\n\n const apiPath = '/health/time';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}