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.
- package/README.md +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/client.mjs.map +1 -1
- package/dist/enums/backup-services.d.mts +7 -0
- package/dist/enums/backup-services.d.ts +7 -0
- package/dist/enums/backup-services.js +12 -0
- package/dist/enums/backup-services.js.map +1 -0
- package/dist/enums/backup-services.mjs +11 -0
- package/dist/enums/backup-services.mjs.map +1 -0
- package/dist/enums/build-runtime.d.mts +3 -4
- package/dist/enums/build-runtime.d.ts +3 -4
- package/dist/enums/build-runtime.js +2 -3
- package/dist/enums/build-runtime.js.map +1 -1
- package/dist/enums/build-runtime.mjs +2 -3
- package/dist/enums/build-runtime.mjs.map +1 -1
- package/dist/enums/runtime.d.mts +3 -4
- package/dist/enums/runtime.d.ts +3 -4
- package/dist/enums/runtime.js +2 -3
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +2 -3
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/enums/scopes.d.mts +9 -1
- package/dist/enums/scopes.d.ts +9 -1
- package/dist/enums/scopes.js +8 -0
- package/dist/enums/scopes.js.map +1 -1
- package/dist/enums/scopes.mjs +8 -0
- package/dist/enums/scopes.mjs.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +216 -2
- package/dist/models.d.ts +216 -2
- package/dist/services/account.js +3 -3
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +3 -3
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.js +3 -3
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +3 -3
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/backups.d.mts +291 -0
- package/dist/services/backups.d.ts +291 -0
- package/dist/services/backups.js +404 -0
- package/dist/services/backups.js.map +1 -0
- package/dist/services/backups.mjs +403 -0
- package/dist/services/backups.mjs.map +1 -0
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +95 -0
- package/dist/services/health.d.ts +95 -0
- package/dist/services/health.js +121 -1
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +121 -1
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/storage.d.mts +4 -4
- package/dist/services/storage.d.ts +4 -4
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/teams.d.mts +8 -9
- package/dist/services/teams.d.ts +8 -9
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/enums/roles.d.mts +0 -7
- package/dist/enums/roles.d.ts +0 -7
- package/dist/enums/roles.js +0 -12
- package/dist/enums/roles.js.map +0 -1
- package/dist/enums/roles.mjs +0 -11
- package/dist/enums/roles.mjs.map +0 -1
package/dist/services/health.mjs
CHANGED
|
@@ -143,6 +143,54 @@ var Health = class {
|
|
|
143
143
|
payload
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
|
+
getQueueBillingProjectAggregation(paramsOrFirst) {
|
|
147
|
+
let params;
|
|
148
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
149
|
+
params = paramsOrFirst || {};
|
|
150
|
+
} else {
|
|
151
|
+
params = {
|
|
152
|
+
threshold: paramsOrFirst
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
const threshold = params.threshold;
|
|
156
|
+
const apiPath = "/health/queue/billing-project-aggregation";
|
|
157
|
+
const payload = {};
|
|
158
|
+
if (typeof threshold !== "undefined") {
|
|
159
|
+
payload["threshold"] = threshold;
|
|
160
|
+
}
|
|
161
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
162
|
+
const apiHeaders = {};
|
|
163
|
+
return this.client.call(
|
|
164
|
+
"get",
|
|
165
|
+
uri,
|
|
166
|
+
apiHeaders,
|
|
167
|
+
payload
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
getQueueBillingTeamAggregation(paramsOrFirst) {
|
|
171
|
+
let params;
|
|
172
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
173
|
+
params = paramsOrFirst || {};
|
|
174
|
+
} else {
|
|
175
|
+
params = {
|
|
176
|
+
threshold: paramsOrFirst
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
const threshold = params.threshold;
|
|
180
|
+
const apiPath = "/health/queue/billing-team-aggregation";
|
|
181
|
+
const payload = {};
|
|
182
|
+
if (typeof threshold !== "undefined") {
|
|
183
|
+
payload["threshold"] = threshold;
|
|
184
|
+
}
|
|
185
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
186
|
+
const apiHeaders = {};
|
|
187
|
+
return this.client.call(
|
|
188
|
+
"get",
|
|
189
|
+
uri,
|
|
190
|
+
apiHeaders,
|
|
191
|
+
payload
|
|
192
|
+
);
|
|
193
|
+
}
|
|
146
194
|
getQueueBuilds(paramsOrFirst) {
|
|
147
195
|
let params;
|
|
148
196
|
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
@@ -167,6 +215,30 @@ var Health = class {
|
|
|
167
215
|
payload
|
|
168
216
|
);
|
|
169
217
|
}
|
|
218
|
+
getQueuePriorityBuilds(paramsOrFirst) {
|
|
219
|
+
let params;
|
|
220
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
221
|
+
params = paramsOrFirst || {};
|
|
222
|
+
} else {
|
|
223
|
+
params = {
|
|
224
|
+
threshold: paramsOrFirst
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
const threshold = params.threshold;
|
|
228
|
+
const apiPath = "/health/queue/builds-priority";
|
|
229
|
+
const payload = {};
|
|
230
|
+
if (typeof threshold !== "undefined") {
|
|
231
|
+
payload["threshold"] = threshold;
|
|
232
|
+
}
|
|
233
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
234
|
+
const apiHeaders = {};
|
|
235
|
+
return this.client.call(
|
|
236
|
+
"get",
|
|
237
|
+
uri,
|
|
238
|
+
apiHeaders,
|
|
239
|
+
payload
|
|
240
|
+
);
|
|
241
|
+
}
|
|
170
242
|
getQueueCertificates(paramsOrFirst) {
|
|
171
243
|
let params;
|
|
172
244
|
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
@@ -246,7 +318,7 @@ var Health = class {
|
|
|
246
318
|
}
|
|
247
319
|
getFailedJobs(paramsOrFirst, ...rest) {
|
|
248
320
|
let params;
|
|
249
|
-
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && "name" in paramsOrFirst) {
|
|
321
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && ("name" in paramsOrFirst || "threshold" in paramsOrFirst)) {
|
|
250
322
|
params = paramsOrFirst || {};
|
|
251
323
|
} else {
|
|
252
324
|
params = {
|
|
@@ -393,6 +465,30 @@ var Health = class {
|
|
|
393
465
|
payload
|
|
394
466
|
);
|
|
395
467
|
}
|
|
468
|
+
getQueueRegionManager(paramsOrFirst) {
|
|
469
|
+
let params;
|
|
470
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
471
|
+
params = paramsOrFirst || {};
|
|
472
|
+
} else {
|
|
473
|
+
params = {
|
|
474
|
+
threshold: paramsOrFirst
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
const threshold = params.threshold;
|
|
478
|
+
const apiPath = "/health/queue/region-manager";
|
|
479
|
+
const payload = {};
|
|
480
|
+
if (typeof threshold !== "undefined") {
|
|
481
|
+
payload["threshold"] = threshold;
|
|
482
|
+
}
|
|
483
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
484
|
+
const apiHeaders = {};
|
|
485
|
+
return this.client.call(
|
|
486
|
+
"get",
|
|
487
|
+
uri,
|
|
488
|
+
apiHeaders,
|
|
489
|
+
payload
|
|
490
|
+
);
|
|
491
|
+
}
|
|
396
492
|
getQueueStatsResources(paramsOrFirst) {
|
|
397
493
|
let params;
|
|
398
494
|
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
@@ -441,6 +537,30 @@ var Health = class {
|
|
|
441
537
|
payload
|
|
442
538
|
);
|
|
443
539
|
}
|
|
540
|
+
getQueueThreats(paramsOrFirst) {
|
|
541
|
+
let params;
|
|
542
|
+
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
543
|
+
params = paramsOrFirst || {};
|
|
544
|
+
} else {
|
|
545
|
+
params = {
|
|
546
|
+
threshold: paramsOrFirst
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
const threshold = params.threshold;
|
|
550
|
+
const apiPath = "/health/queue/threats";
|
|
551
|
+
const payload = {};
|
|
552
|
+
if (typeof threshold !== "undefined") {
|
|
553
|
+
payload["threshold"] = threshold;
|
|
554
|
+
}
|
|
555
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
556
|
+
const apiHeaders = {};
|
|
557
|
+
return this.client.call(
|
|
558
|
+
"get",
|
|
559
|
+
uri,
|
|
560
|
+
apiHeaders,
|
|
561
|
+
payload
|
|
562
|
+
);
|
|
563
|
+
}
|
|
444
564
|
getQueueWebhooks(paramsOrFirst) {
|
|
445
565
|
let params;
|
|
446
566
|
if (!paramsOrFirst || paramsOrFirst && type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M,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,IAAM,SAAN,MAAa;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;A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,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"]}
|
|
@@ -51,7 +51,7 @@ declare class Storage {
|
|
|
51
51
|
* @param {string[]} params.permissions - An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
52
52
|
* @param {boolean} params.fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
53
53
|
* @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
54
|
-
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
54
|
+
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
55
55
|
* @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
56
56
|
* @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
57
57
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -81,7 +81,7 @@ declare class Storage {
|
|
|
81
81
|
* @param {string[]} permissions - An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
82
82
|
* @param {boolean} fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
83
83
|
* @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
84
|
-
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
84
|
+
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
85
85
|
* @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
86
86
|
* @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
87
87
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -119,7 +119,7 @@ declare class Storage {
|
|
|
119
119
|
* @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
120
120
|
* @param {boolean} params.fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
121
121
|
* @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
122
|
-
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
122
|
+
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
123
123
|
* @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
124
124
|
* @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
125
125
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -149,7 +149,7 @@ declare class Storage {
|
|
|
149
149
|
* @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
150
150
|
* @param {boolean} fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
151
151
|
* @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
152
|
-
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
152
|
+
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
153
153
|
* @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
154
154
|
* @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
155
155
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -51,7 +51,7 @@ declare class Storage {
|
|
|
51
51
|
* @param {string[]} params.permissions - An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
52
52
|
* @param {boolean} params.fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
53
53
|
* @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
54
|
-
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
54
|
+
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
55
55
|
* @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
56
56
|
* @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
57
57
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -81,7 +81,7 @@ declare class Storage {
|
|
|
81
81
|
* @param {string[]} permissions - An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
82
82
|
* @param {boolean} fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
83
83
|
* @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
84
|
-
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
84
|
+
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
85
85
|
* @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
86
86
|
* @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
87
87
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -119,7 +119,7 @@ declare class Storage {
|
|
|
119
119
|
* @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
120
120
|
* @param {boolean} params.fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
121
121
|
* @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
122
|
-
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
122
|
+
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
123
123
|
* @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
124
124
|
* @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
125
125
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
@@ -149,7 +149,7 @@ declare class Storage {
|
|
|
149
149
|
* @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
150
150
|
* @param {boolean} fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
151
151
|
* @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
152
|
-
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is
|
|
152
|
+
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
153
153
|
* @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
154
154
|
* @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
155
155
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|