@appwrite.io/console 1.4.6 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/sdk.js +218 -18
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +219 -19
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +218 -18
- package/docs/examples/health/get-queue-usage-count.md +13 -0
- package/docs/examples/messaging/create-push.md +8 -5
- package/docs/examples/messaging/update-push.md +5 -2
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/image-format.ts +1 -0
- package/src/enums/message-priority.ts +4 -0
- package/src/index.ts +1 -0
- package/src/models.ts +16 -0
- package/src/services/account.ts +19 -2
- package/src/services/assistant.ts +1 -0
- package/src/services/backups.ts +14 -2
- package/src/services/console.ts +8 -2
- package/src/services/databases.ts +3 -0
- package/src/services/functions.ts +4 -0
- package/src/services/health.ts +31 -0
- package/src/services/messaging.ts +29 -10
- package/src/services/migrations.ts +12 -0
- package/src/services/organizations.ts +30 -2
- package/src/services/project.ts +1 -0
- package/src/services/projects.ts +48 -2
- package/src/services/proxy.ts +1 -0
- package/src/services/storage.ts +4 -0
- package/src/services/users.ts +4 -2
- package/src/services/vcs.ts +13 -0
- package/types/enums/image-format.d.ts +1 -0
- package/types/enums/message-priority.d.ts +4 -0
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +16 -0
- package/types/services/account.d.ts +19 -2
- package/types/services/assistant.d.ts +1 -0
- package/types/services/backups.d.ts +14 -2
- package/types/services/console.d.ts +8 -2
- package/types/services/databases.d.ts +3 -0
- package/types/services/functions.d.ts +4 -0
- package/types/services/health.d.ts +12 -0
- package/types/services/messaging.d.ts +11 -4
- package/types/services/migrations.d.ts +12 -0
- package/types/services/organizations.d.ts +30 -2
- package/types/services/project.d.ts +1 -0
- package/types/services/projects.d.ts +48 -2
- package/types/services/proxy.d.ts +1 -0
- package/types/services/storage.d.ts +4 -0
- package/types/services/users.d.ts +4 -2
- package/types/services/vcs.d.ts +13 -0
|
@@ -12,6 +12,7 @@ export class Migrations {
|
|
|
12
12
|
/**
|
|
13
13
|
* List migrations
|
|
14
14
|
*
|
|
15
|
+
* List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.
|
|
15
16
|
*
|
|
16
17
|
* @param {string[]} queries
|
|
17
18
|
* @param {string} search
|
|
@@ -44,6 +45,7 @@ export class Migrations {
|
|
|
44
45
|
/**
|
|
45
46
|
* Migrate Appwrite data
|
|
46
47
|
*
|
|
48
|
+
* Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project.
|
|
47
49
|
*
|
|
48
50
|
* @param {string[]} resources
|
|
49
51
|
* @param {string} endpoint
|
|
@@ -96,6 +98,7 @@ export class Migrations {
|
|
|
96
98
|
/**
|
|
97
99
|
* Generate a report on Appwrite data
|
|
98
100
|
*
|
|
101
|
+
* Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
|
|
99
102
|
*
|
|
100
103
|
* @param {string[]} resources
|
|
101
104
|
* @param {string} endpoint
|
|
@@ -148,6 +151,7 @@ export class Migrations {
|
|
|
148
151
|
/**
|
|
149
152
|
* Migrate Firebase data
|
|
150
153
|
*
|
|
154
|
+
* Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
|
|
151
155
|
*
|
|
152
156
|
* @param {string[]} resources
|
|
153
157
|
* @param {string} serviceAccount
|
|
@@ -186,6 +190,7 @@ export class Migrations {
|
|
|
186
190
|
/**
|
|
187
191
|
* Generate a report on Firebase data
|
|
188
192
|
*
|
|
193
|
+
* Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
|
|
189
194
|
*
|
|
190
195
|
* @param {string[]} resources
|
|
191
196
|
* @param {string} serviceAccount
|
|
@@ -224,6 +229,7 @@ export class Migrations {
|
|
|
224
229
|
/**
|
|
225
230
|
* Migrate NHost data
|
|
226
231
|
*
|
|
232
|
+
* Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
|
|
227
233
|
*
|
|
228
234
|
* @param {string[]} resources
|
|
229
235
|
* @param {string} subdomain
|
|
@@ -301,6 +307,7 @@ export class Migrations {
|
|
|
301
307
|
/**
|
|
302
308
|
* Generate a report on NHost Data
|
|
303
309
|
*
|
|
310
|
+
* Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
|
|
304
311
|
*
|
|
305
312
|
* @param {string[]} resources
|
|
306
313
|
* @param {string} subdomain
|
|
@@ -378,6 +385,7 @@ export class Migrations {
|
|
|
378
385
|
/**
|
|
379
386
|
* Migrate Supabase data
|
|
380
387
|
*
|
|
388
|
+
* Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project.
|
|
381
389
|
*
|
|
382
390
|
* @param {string[]} resources
|
|
383
391
|
* @param {string} endpoint
|
|
@@ -448,6 +456,7 @@ export class Migrations {
|
|
|
448
456
|
/**
|
|
449
457
|
* Generate a report on Supabase Data
|
|
450
458
|
*
|
|
459
|
+
* Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
|
|
451
460
|
*
|
|
452
461
|
* @param {string[]} resources
|
|
453
462
|
* @param {string} endpoint
|
|
@@ -518,6 +527,7 @@ export class Migrations {
|
|
|
518
527
|
/**
|
|
519
528
|
* Get migration
|
|
520
529
|
*
|
|
530
|
+
* Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process.
|
|
521
531
|
*
|
|
522
532
|
* @param {string} migrationId
|
|
523
533
|
* @throws {AppwriteException}
|
|
@@ -546,6 +556,7 @@ export class Migrations {
|
|
|
546
556
|
/**
|
|
547
557
|
* Retry migration
|
|
548
558
|
*
|
|
559
|
+
* Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
|
|
549
560
|
*
|
|
550
561
|
* @param {string} migrationId
|
|
551
562
|
* @throws {AppwriteException}
|
|
@@ -574,6 +585,7 @@ export class Migrations {
|
|
|
574
585
|
/**
|
|
575
586
|
* Delete migration
|
|
576
587
|
*
|
|
588
|
+
* Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history.
|
|
577
589
|
*
|
|
578
590
|
* @param {string} migrationId
|
|
579
591
|
* @throws {AppwriteException}
|
|
@@ -46,7 +46,8 @@ export class Organizations {
|
|
|
46
46
|
/**
|
|
47
47
|
* Create Organization
|
|
48
48
|
*
|
|
49
|
-
* Create a new
|
|
49
|
+
* Create a new organization.
|
|
50
|
+
|
|
50
51
|
*
|
|
51
52
|
* @param {string} organizationId
|
|
52
53
|
* @param {string} name
|
|
@@ -100,7 +101,7 @@ export class Organizations {
|
|
|
100
101
|
/**
|
|
101
102
|
* Delete team
|
|
102
103
|
*
|
|
103
|
-
* Delete
|
|
104
|
+
* Delete an organization.
|
|
104
105
|
*
|
|
105
106
|
* @param {string} organizationId
|
|
106
107
|
* @throws {AppwriteException}
|
|
@@ -129,6 +130,7 @@ export class Organizations {
|
|
|
129
130
|
/**
|
|
130
131
|
* List aggregations
|
|
131
132
|
*
|
|
133
|
+
* Get a list of all aggregations for an organization.
|
|
132
134
|
*
|
|
133
135
|
* @param {string} organizationId
|
|
134
136
|
* @param {string[]} queries
|
|
@@ -161,6 +163,7 @@ export class Organizations {
|
|
|
161
163
|
/**
|
|
162
164
|
* Get invoice
|
|
163
165
|
*
|
|
166
|
+
* Get a specific aggregation using it's aggregation ID.
|
|
164
167
|
*
|
|
165
168
|
* @param {string} organizationId
|
|
166
169
|
* @param {string} aggregationId
|
|
@@ -193,6 +196,7 @@ export class Organizations {
|
|
|
193
196
|
/**
|
|
194
197
|
* Set team's billing address
|
|
195
198
|
*
|
|
199
|
+
* Set a billing address for an organization.
|
|
196
200
|
*
|
|
197
201
|
* @param {string} organizationId
|
|
198
202
|
* @param {string} billingAddressId
|
|
@@ -228,6 +232,7 @@ export class Organizations {
|
|
|
228
232
|
/**
|
|
229
233
|
* Delete team's billing address
|
|
230
234
|
*
|
|
235
|
+
* Delete a team's billing address.
|
|
231
236
|
*
|
|
232
237
|
* @param {string} organizationId
|
|
233
238
|
* @throws {AppwriteException}
|
|
@@ -256,6 +261,7 @@ export class Organizations {
|
|
|
256
261
|
/**
|
|
257
262
|
* Get billing address
|
|
258
263
|
*
|
|
264
|
+
* Get a billing address using it's ID.
|
|
259
265
|
*
|
|
260
266
|
* @param {string} organizationId
|
|
261
267
|
* @param {string} billingAddressId
|
|
@@ -288,6 +294,7 @@ export class Organizations {
|
|
|
288
294
|
/**
|
|
289
295
|
* Set team's billing email
|
|
290
296
|
*
|
|
297
|
+
* Set the current billing email for the organization.
|
|
291
298
|
*
|
|
292
299
|
* @param {string} organizationId
|
|
293
300
|
* @param {string} billingEmail
|
|
@@ -323,6 +330,7 @@ export class Organizations {
|
|
|
323
330
|
/**
|
|
324
331
|
* Update organization budget
|
|
325
332
|
*
|
|
333
|
+
* Update the budget limit for an organization.
|
|
326
334
|
*
|
|
327
335
|
* @param {string} organizationId
|
|
328
336
|
* @param {number} budget
|
|
@@ -362,6 +370,8 @@ export class Organizations {
|
|
|
362
370
|
/**
|
|
363
371
|
* List credits
|
|
364
372
|
*
|
|
373
|
+
* List all credits for an organization.
|
|
374
|
+
|
|
365
375
|
*
|
|
366
376
|
* @param {string} organizationId
|
|
367
377
|
* @param {string[]} queries
|
|
@@ -394,6 +404,7 @@ export class Organizations {
|
|
|
394
404
|
/**
|
|
395
405
|
* Add credits from coupon
|
|
396
406
|
*
|
|
407
|
+
* Add credit to an organization using a coupon.
|
|
397
408
|
*
|
|
398
409
|
* @param {string} organizationId
|
|
399
410
|
* @param {string} couponId
|
|
@@ -429,6 +440,7 @@ export class Organizations {
|
|
|
429
440
|
/**
|
|
430
441
|
* Get credit details
|
|
431
442
|
*
|
|
443
|
+
* Get credit details.
|
|
432
444
|
*
|
|
433
445
|
* @param {string} organizationId
|
|
434
446
|
* @param {string} creditId
|
|
@@ -461,6 +473,7 @@ export class Organizations {
|
|
|
461
473
|
/**
|
|
462
474
|
* List invoices
|
|
463
475
|
*
|
|
476
|
+
* List all invoices for an organization.
|
|
464
477
|
*
|
|
465
478
|
* @param {string} organizationId
|
|
466
479
|
* @param {string[]} queries
|
|
@@ -493,6 +506,7 @@ export class Organizations {
|
|
|
493
506
|
/**
|
|
494
507
|
* Get invoice
|
|
495
508
|
*
|
|
509
|
+
* Get an invoice by its unique ID.
|
|
496
510
|
*
|
|
497
511
|
* @param {string} organizationId
|
|
498
512
|
* @param {string} invoiceId
|
|
@@ -525,6 +539,7 @@ export class Organizations {
|
|
|
525
539
|
/**
|
|
526
540
|
* Download invoice in PDF
|
|
527
541
|
*
|
|
542
|
+
* Download invoice in PDF
|
|
528
543
|
*
|
|
529
544
|
* @param {string} organizationId
|
|
530
545
|
* @param {string} invoiceId
|
|
@@ -557,6 +572,7 @@ export class Organizations {
|
|
|
557
572
|
/**
|
|
558
573
|
* Initiate payment for failed invoice to pay live from console
|
|
559
574
|
*
|
|
575
|
+
* Initiate payment for failed invoice to pay live from console
|
|
560
576
|
*
|
|
561
577
|
* @param {string} organizationId
|
|
562
578
|
* @param {string} invoiceId
|
|
@@ -596,6 +612,7 @@ export class Organizations {
|
|
|
596
612
|
/**
|
|
597
613
|
* View invoice in PDF
|
|
598
614
|
*
|
|
615
|
+
* View invoice in PDF
|
|
599
616
|
*
|
|
600
617
|
* @param {string} organizationId
|
|
601
618
|
* @param {string} invoiceId
|
|
@@ -628,6 +645,7 @@ export class Organizations {
|
|
|
628
645
|
/**
|
|
629
646
|
* Set team's payment method
|
|
630
647
|
*
|
|
648
|
+
* Set a organization's default payment method.
|
|
631
649
|
*
|
|
632
650
|
* @param {string} organizationId
|
|
633
651
|
* @param {string} paymentMethodId
|
|
@@ -663,6 +681,7 @@ export class Organizations {
|
|
|
663
681
|
/**
|
|
664
682
|
* Delete team's default payment method
|
|
665
683
|
*
|
|
684
|
+
* Delete the default payment method for an organization.
|
|
666
685
|
*
|
|
667
686
|
* @param {string} organizationId
|
|
668
687
|
* @throws {AppwriteException}
|
|
@@ -691,6 +710,8 @@ export class Organizations {
|
|
|
691
710
|
/**
|
|
692
711
|
* Set team's backup payment method
|
|
693
712
|
*
|
|
713
|
+
* Set an organization's backup payment method.
|
|
714
|
+
|
|
694
715
|
*
|
|
695
716
|
* @param {string} organizationId
|
|
696
717
|
* @param {string} paymentMethodId
|
|
@@ -726,6 +747,7 @@ export class Organizations {
|
|
|
726
747
|
/**
|
|
727
748
|
* Delete team's backup payment method
|
|
728
749
|
*
|
|
750
|
+
* Delete a backup payment method for an organization.
|
|
729
751
|
*
|
|
730
752
|
* @param {string} organizationId
|
|
731
753
|
* @throws {AppwriteException}
|
|
@@ -754,6 +776,7 @@ export class Organizations {
|
|
|
754
776
|
/**
|
|
755
777
|
* Get payment method
|
|
756
778
|
*
|
|
779
|
+
* Get an organization's payment method using it's payment method ID.
|
|
757
780
|
*
|
|
758
781
|
* @param {string} organizationId
|
|
759
782
|
* @param {string} paymentMethodId
|
|
@@ -786,6 +809,7 @@ export class Organizations {
|
|
|
786
809
|
/**
|
|
787
810
|
* Get organization billing plan details
|
|
788
811
|
*
|
|
812
|
+
* Get the details of the current billing plan for an organization.
|
|
789
813
|
*
|
|
790
814
|
* @param {string} organizationId
|
|
791
815
|
* @throws {AppwriteException}
|
|
@@ -814,6 +838,7 @@ export class Organizations {
|
|
|
814
838
|
/**
|
|
815
839
|
* Update organization billing plan
|
|
816
840
|
*
|
|
841
|
+
* Update the billing plan for an organization.
|
|
817
842
|
*
|
|
818
843
|
* @param {string} organizationId
|
|
819
844
|
* @param {BillingPlan} billingPlan
|
|
@@ -857,6 +882,7 @@ export class Organizations {
|
|
|
857
882
|
/**
|
|
858
883
|
* Get Scopes
|
|
859
884
|
*
|
|
885
|
+
* Get Scopes
|
|
860
886
|
*
|
|
861
887
|
* @param {string} organizationId
|
|
862
888
|
* @throws {AppwriteException}
|
|
@@ -885,6 +911,7 @@ export class Organizations {
|
|
|
885
911
|
/**
|
|
886
912
|
* Set team's tax Id
|
|
887
913
|
*
|
|
914
|
+
* Set an organization's billing tax ID.
|
|
888
915
|
*
|
|
889
916
|
* @param {string} organizationId
|
|
890
917
|
* @param {string} taxId
|
|
@@ -920,6 +947,7 @@ export class Organizations {
|
|
|
920
947
|
/**
|
|
921
948
|
* Get team's usage data
|
|
922
949
|
*
|
|
950
|
+
* Get the usage data for an organization.
|
|
923
951
|
*
|
|
924
952
|
* @param {string} organizationId
|
|
925
953
|
* @param {string} startDate
|
package/src/services/project.ts
CHANGED
|
@@ -13,6 +13,7 @@ export class Project {
|
|
|
13
13
|
/**
|
|
14
14
|
* Get project usage stats
|
|
15
15
|
*
|
|
16
|
+
* Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.
|
|
16
17
|
*
|
|
17
18
|
* @param {string} startDate
|
|
18
19
|
* @param {string} endDate
|
package/src/services/projects.ts
CHANGED
|
@@ -23,6 +23,7 @@ export class Projects {
|
|
|
23
23
|
/**
|
|
24
24
|
* List projects
|
|
25
25
|
*
|
|
26
|
+
* Get a list of all projects. You can use the query params to filter your results.
|
|
26
27
|
*
|
|
27
28
|
* @param {string[]} queries
|
|
28
29
|
* @param {string} search
|
|
@@ -55,6 +56,7 @@ export class Projects {
|
|
|
55
56
|
/**
|
|
56
57
|
* Create project
|
|
57
58
|
*
|
|
59
|
+
* Create a new project. You can create a maximum of 100 projects per account.
|
|
58
60
|
*
|
|
59
61
|
* @param {string} projectId
|
|
60
62
|
* @param {string} name
|
|
@@ -140,6 +142,7 @@ export class Projects {
|
|
|
140
142
|
/**
|
|
141
143
|
* Get project
|
|
142
144
|
*
|
|
145
|
+
* Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata.
|
|
143
146
|
*
|
|
144
147
|
* @param {string} projectId
|
|
145
148
|
* @throws {AppwriteException}
|
|
@@ -168,6 +171,7 @@ export class Projects {
|
|
|
168
171
|
/**
|
|
169
172
|
* Update project
|
|
170
173
|
*
|
|
174
|
+
* Update a project by its unique ID.
|
|
171
175
|
*
|
|
172
176
|
* @param {string} projectId
|
|
173
177
|
* @param {string} name
|
|
@@ -239,6 +243,7 @@ export class Projects {
|
|
|
239
243
|
/**
|
|
240
244
|
* Delete project
|
|
241
245
|
*
|
|
246
|
+
* Delete a project by its unique ID.
|
|
242
247
|
*
|
|
243
248
|
* @param {string} projectId
|
|
244
249
|
* @throws {AppwriteException}
|
|
@@ -267,6 +272,7 @@ export class Projects {
|
|
|
267
272
|
/**
|
|
268
273
|
* Update API status
|
|
269
274
|
*
|
|
275
|
+
* Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
|
|
270
276
|
*
|
|
271
277
|
* @param {string} projectId
|
|
272
278
|
* @param {Api} api
|
|
@@ -309,6 +315,7 @@ export class Projects {
|
|
|
309
315
|
/**
|
|
310
316
|
* Update all API status
|
|
311
317
|
*
|
|
318
|
+
* Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.
|
|
312
319
|
*
|
|
313
320
|
* @param {string} projectId
|
|
314
321
|
* @param {boolean} status
|
|
@@ -344,6 +351,7 @@ export class Projects {
|
|
|
344
351
|
/**
|
|
345
352
|
* Update project authentication duration
|
|
346
353
|
*
|
|
354
|
+
* Update how long sessions created within a project should stay active for.
|
|
347
355
|
*
|
|
348
356
|
* @param {string} projectId
|
|
349
357
|
* @param {number} duration
|
|
@@ -379,6 +387,7 @@ export class Projects {
|
|
|
379
387
|
/**
|
|
380
388
|
* Update project users limit
|
|
381
389
|
*
|
|
390
|
+
* Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
|
|
382
391
|
*
|
|
383
392
|
* @param {string} projectId
|
|
384
393
|
* @param {number} limit
|
|
@@ -414,6 +423,7 @@ export class Projects {
|
|
|
414
423
|
/**
|
|
415
424
|
* Update project user sessions limit
|
|
416
425
|
*
|
|
426
|
+
* Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.
|
|
417
427
|
*
|
|
418
428
|
* @param {string} projectId
|
|
419
429
|
* @param {number} limit
|
|
@@ -449,6 +459,7 @@ export class Projects {
|
|
|
449
459
|
/**
|
|
450
460
|
* Update project memberships privacy attributes
|
|
451
461
|
*
|
|
462
|
+
* Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status.
|
|
452
463
|
*
|
|
453
464
|
* @param {string} projectId
|
|
454
465
|
* @param {boolean} userName
|
|
@@ -498,6 +509,7 @@ export class Projects {
|
|
|
498
509
|
/**
|
|
499
510
|
* Update the mock numbers for the project
|
|
500
511
|
*
|
|
512
|
+
* Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
|
|
501
513
|
*
|
|
502
514
|
* @param {string} projectId
|
|
503
515
|
* @param {object[]} numbers
|
|
@@ -533,6 +545,7 @@ export class Projects {
|
|
|
533
545
|
/**
|
|
534
546
|
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
535
547
|
*
|
|
548
|
+
* Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords.
|
|
536
549
|
*
|
|
537
550
|
* @param {string} projectId
|
|
538
551
|
* @param {boolean} enabled
|
|
@@ -568,6 +581,7 @@ export class Projects {
|
|
|
568
581
|
/**
|
|
569
582
|
* Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
|
|
570
583
|
*
|
|
584
|
+
* Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.
|
|
571
585
|
*
|
|
572
586
|
* @param {string} projectId
|
|
573
587
|
* @param {number} limit
|
|
@@ -603,6 +617,7 @@ export class Projects {
|
|
|
603
617
|
/**
|
|
604
618
|
* Enable or disable checking user passwords for similarity with their personal data.
|
|
605
619
|
*
|
|
620
|
+
* Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
|
|
606
621
|
*
|
|
607
622
|
* @param {string} projectId
|
|
608
623
|
* @param {boolean} enabled
|
|
@@ -638,6 +653,7 @@ export class Projects {
|
|
|
638
653
|
/**
|
|
639
654
|
* Update project sessions emails
|
|
640
655
|
*
|
|
656
|
+
* Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
|
|
641
657
|
*
|
|
642
658
|
* @param {string} projectId
|
|
643
659
|
* @param {boolean} alerts
|
|
@@ -673,6 +689,7 @@ export class Projects {
|
|
|
673
689
|
/**
|
|
674
690
|
* Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
|
675
691
|
*
|
|
692
|
+
* Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
|
|
676
693
|
*
|
|
677
694
|
* @param {string} projectId
|
|
678
695
|
* @param {AuthMethod} method
|
|
@@ -712,6 +729,7 @@ export class Projects {
|
|
|
712
729
|
/**
|
|
713
730
|
* Create JWT
|
|
714
731
|
*
|
|
732
|
+
* Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
|
|
715
733
|
*
|
|
716
734
|
* @param {string} projectId
|
|
717
735
|
* @param {string[]} scopes
|
|
@@ -751,6 +769,7 @@ export class Projects {
|
|
|
751
769
|
/**
|
|
752
770
|
* List keys
|
|
753
771
|
*
|
|
772
|
+
* Get a list of all API keys from the current project.
|
|
754
773
|
*
|
|
755
774
|
* @param {string} projectId
|
|
756
775
|
* @throws {AppwriteException}
|
|
@@ -779,6 +798,7 @@ export class Projects {
|
|
|
779
798
|
/**
|
|
780
799
|
* Create key
|
|
781
800
|
*
|
|
801
|
+
* Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
|
|
782
802
|
*
|
|
783
803
|
* @param {string} projectId
|
|
784
804
|
* @param {string} name
|
|
@@ -825,6 +845,7 @@ export class Projects {
|
|
|
825
845
|
/**
|
|
826
846
|
* Get key
|
|
827
847
|
*
|
|
848
|
+
* Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
|
|
828
849
|
*
|
|
829
850
|
* @param {string} projectId
|
|
830
851
|
* @param {string} keyId
|
|
@@ -857,6 +878,7 @@ export class Projects {
|
|
|
857
878
|
/**
|
|
858
879
|
* Update key
|
|
859
880
|
*
|
|
881
|
+
* Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
|
|
860
882
|
*
|
|
861
883
|
* @param {string} projectId
|
|
862
884
|
* @param {string} keyId
|
|
@@ -907,6 +929,7 @@ export class Projects {
|
|
|
907
929
|
/**
|
|
908
930
|
* Delete key
|
|
909
931
|
*
|
|
932
|
+
* Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
|
|
910
933
|
*
|
|
911
934
|
* @param {string} projectId
|
|
912
935
|
* @param {string} keyId
|
|
@@ -939,6 +962,7 @@ export class Projects {
|
|
|
939
962
|
/**
|
|
940
963
|
* Update project OAuth2
|
|
941
964
|
*
|
|
965
|
+
* Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
|
|
942
966
|
*
|
|
943
967
|
* @param {string} projectId
|
|
944
968
|
* @param {OAuthProvider} provider
|
|
@@ -986,6 +1010,7 @@ export class Projects {
|
|
|
986
1010
|
/**
|
|
987
1011
|
* List platforms
|
|
988
1012
|
*
|
|
1013
|
+
* Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
|
|
989
1014
|
*
|
|
990
1015
|
* @param {string} projectId
|
|
991
1016
|
* @throws {AppwriteException}
|
|
@@ -1014,6 +1039,7 @@ export class Projects {
|
|
|
1014
1039
|
/**
|
|
1015
1040
|
* Create platform
|
|
1016
1041
|
*
|
|
1042
|
+
* Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.
|
|
1017
1043
|
*
|
|
1018
1044
|
* @param {string} projectId
|
|
1019
1045
|
* @param {PlatformType} type
|
|
@@ -1068,6 +1094,7 @@ export class Projects {
|
|
|
1068
1094
|
/**
|
|
1069
1095
|
* Get platform
|
|
1070
1096
|
*
|
|
1097
|
+
* Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations.
|
|
1071
1098
|
*
|
|
1072
1099
|
* @param {string} projectId
|
|
1073
1100
|
* @param {string} platformId
|
|
@@ -1100,6 +1127,7 @@ export class Projects {
|
|
|
1100
1127
|
/**
|
|
1101
1128
|
* Update platform
|
|
1102
1129
|
*
|
|
1130
|
+
* Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname.
|
|
1103
1131
|
*
|
|
1104
1132
|
* @param {string} projectId
|
|
1105
1133
|
* @param {string} platformId
|
|
@@ -1151,6 +1179,7 @@ export class Projects {
|
|
|
1151
1179
|
/**
|
|
1152
1180
|
* Delete platform
|
|
1153
1181
|
*
|
|
1182
|
+
* Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
|
|
1154
1183
|
*
|
|
1155
1184
|
* @param {string} projectId
|
|
1156
1185
|
* @param {string} platformId
|
|
@@ -1183,6 +1212,7 @@ export class Projects {
|
|
|
1183
1212
|
/**
|
|
1184
1213
|
* Update service status
|
|
1185
1214
|
*
|
|
1215
|
+
* Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
|
|
1186
1216
|
*
|
|
1187
1217
|
* @param {string} projectId
|
|
1188
1218
|
* @param {ApiService} service
|
|
@@ -1225,6 +1255,7 @@ export class Projects {
|
|
|
1225
1255
|
/**
|
|
1226
1256
|
* Update all service status
|
|
1227
1257
|
*
|
|
1258
|
+
* Update the status of all services. Use this endpoint to enable or disable all optional services at once.
|
|
1228
1259
|
*
|
|
1229
1260
|
* @param {string} projectId
|
|
1230
1261
|
* @param {boolean} status
|
|
@@ -1260,6 +1291,7 @@ export class Projects {
|
|
|
1260
1291
|
/**
|
|
1261
1292
|
* Update SMTP
|
|
1262
1293
|
*
|
|
1294
|
+
* Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
|
|
1263
1295
|
*
|
|
1264
1296
|
* @param {string} projectId
|
|
1265
1297
|
* @param {boolean} enabled
|
|
@@ -1327,6 +1359,7 @@ export class Projects {
|
|
|
1327
1359
|
/**
|
|
1328
1360
|
* Create SMTP test
|
|
1329
1361
|
*
|
|
1362
|
+
* Send a test email to verify SMTP configuration.
|
|
1330
1363
|
*
|
|
1331
1364
|
* @param {string} projectId
|
|
1332
1365
|
* @param {string[]} emails
|
|
@@ -1403,6 +1436,7 @@ export class Projects {
|
|
|
1403
1436
|
/**
|
|
1404
1437
|
* Update project team
|
|
1405
1438
|
*
|
|
1439
|
+
* Update the team ID of a project allowing for it to be transferred to another team.
|
|
1406
1440
|
*
|
|
1407
1441
|
* @param {string} projectId
|
|
1408
1442
|
* @param {string} teamId
|
|
@@ -1438,6 +1472,7 @@ export class Projects {
|
|
|
1438
1472
|
/**
|
|
1439
1473
|
* Get custom email template
|
|
1440
1474
|
*
|
|
1475
|
+
* Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
|
|
1441
1476
|
*
|
|
1442
1477
|
* @param {string} projectId
|
|
1443
1478
|
* @param {EmailTemplateType} type
|
|
@@ -1474,6 +1509,7 @@ export class Projects {
|
|
|
1474
1509
|
/**
|
|
1475
1510
|
* Update custom email templates
|
|
1476
1511
|
*
|
|
1512
|
+
* Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
|
|
1477
1513
|
*
|
|
1478
1514
|
* @param {string} projectId
|
|
1479
1515
|
* @param {EmailTemplateType} type
|
|
@@ -1484,9 +1520,9 @@ export class Projects {
|
|
|
1484
1520
|
* @param {string} senderEmail
|
|
1485
1521
|
* @param {string} replyTo
|
|
1486
1522
|
* @throws {AppwriteException}
|
|
1487
|
-
* @returns {Promise<Models.
|
|
1523
|
+
* @returns {Promise<Models.EmailTemplate>}
|
|
1488
1524
|
*/
|
|
1489
|
-
async updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.
|
|
1525
|
+
async updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.EmailTemplate> {
|
|
1490
1526
|
if (typeof projectId === 'undefined') {
|
|
1491
1527
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
1492
1528
|
}
|
|
@@ -1536,6 +1572,7 @@ export class Projects {
|
|
|
1536
1572
|
/**
|
|
1537
1573
|
* Reset custom email template
|
|
1538
1574
|
*
|
|
1575
|
+
* Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
|
|
1539
1576
|
*
|
|
1540
1577
|
* @param {string} projectId
|
|
1541
1578
|
* @param {EmailTemplateType} type
|
|
@@ -1572,6 +1609,7 @@ export class Projects {
|
|
|
1572
1609
|
/**
|
|
1573
1610
|
* Get custom SMS template
|
|
1574
1611
|
*
|
|
1612
|
+
* Get a custom SMS template for the specified locale and type returning it's contents.
|
|
1575
1613
|
*
|
|
1576
1614
|
* @param {string} projectId
|
|
1577
1615
|
* @param {SmsTemplateType} type
|
|
@@ -1608,6 +1646,7 @@ export class Projects {
|
|
|
1608
1646
|
/**
|
|
1609
1647
|
* Update custom SMS template
|
|
1610
1648
|
*
|
|
1649
|
+
* Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
|
|
1611
1650
|
*
|
|
1612
1651
|
* @param {string} projectId
|
|
1613
1652
|
* @param {SmsTemplateType} type
|
|
@@ -1651,6 +1690,7 @@ export class Projects {
|
|
|
1651
1690
|
/**
|
|
1652
1691
|
* Reset custom SMS template
|
|
1653
1692
|
*
|
|
1693
|
+
* Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
|
|
1654
1694
|
*
|
|
1655
1695
|
* @param {string} projectId
|
|
1656
1696
|
* @param {SmsTemplateType} type
|
|
@@ -1687,6 +1727,7 @@ export class Projects {
|
|
|
1687
1727
|
/**
|
|
1688
1728
|
* List webhooks
|
|
1689
1729
|
*
|
|
1730
|
+
* Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
|
|
1690
1731
|
*
|
|
1691
1732
|
* @param {string} projectId
|
|
1692
1733
|
* @throws {AppwriteException}
|
|
@@ -1715,6 +1756,7 @@ export class Projects {
|
|
|
1715
1756
|
/**
|
|
1716
1757
|
* Create webhook
|
|
1717
1758
|
*
|
|
1759
|
+
* Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
|
|
1718
1760
|
*
|
|
1719
1761
|
* @param {string} projectId
|
|
1720
1762
|
* @param {string} name
|
|
@@ -1783,6 +1825,7 @@ export class Projects {
|
|
|
1783
1825
|
/**
|
|
1784
1826
|
* Get webhook
|
|
1785
1827
|
*
|
|
1828
|
+
* Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
|
|
1786
1829
|
*
|
|
1787
1830
|
* @param {string} projectId
|
|
1788
1831
|
* @param {string} webhookId
|
|
@@ -1815,6 +1858,7 @@ export class Projects {
|
|
|
1815
1858
|
/**
|
|
1816
1859
|
* Update webhook
|
|
1817
1860
|
*
|
|
1861
|
+
* Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
|
|
1818
1862
|
*
|
|
1819
1863
|
* @param {string} projectId
|
|
1820
1864
|
* @param {string} webhookId
|
|
@@ -1887,6 +1931,7 @@ export class Projects {
|
|
|
1887
1931
|
/**
|
|
1888
1932
|
* Delete webhook
|
|
1889
1933
|
*
|
|
1934
|
+
* Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
|
|
1890
1935
|
*
|
|
1891
1936
|
* @param {string} projectId
|
|
1892
1937
|
* @param {string} webhookId
|
|
@@ -1919,6 +1964,7 @@ export class Projects {
|
|
|
1919
1964
|
/**
|
|
1920
1965
|
* Update webhook signature key
|
|
1921
1966
|
*
|
|
1967
|
+
* Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
|
|
1922
1968
|
*
|
|
1923
1969
|
* @param {string} projectId
|
|
1924
1970
|
* @param {string} webhookId
|
package/src/services/proxy.ts
CHANGED
|
@@ -147,6 +147,7 @@ export class Proxy {
|
|
|
147
147
|
/**
|
|
148
148
|
* Update rule verification status
|
|
149
149
|
*
|
|
150
|
+
* Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.
|
|
150
151
|
*
|
|
151
152
|
* @param {string} ruleId
|
|
152
153
|
* @throws {AppwriteException}
|
package/src/services/storage.ts
CHANGED
|
@@ -603,6 +603,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
|
|
|
603
603
|
/**
|
|
604
604
|
* Get storage usage stats
|
|
605
605
|
*
|
|
606
|
+
* Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
|
|
607
|
+
|
|
606
608
|
*
|
|
607
609
|
* @param {StorageUsageRange} range
|
|
608
610
|
* @throws {AppwriteException}
|
|
@@ -631,6 +633,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
|
|
|
631
633
|
/**
|
|
632
634
|
* Get bucket usage stats
|
|
633
635
|
*
|
|
636
|
+
* Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
|
|
637
|
+
|
|
634
638
|
*
|
|
635
639
|
* @param {string} bucketId
|
|
636
640
|
* @param {StorageUsageRange} range
|