@appwrite.io/console 1.4.5 → 1.4.7
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 +217 -18
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +218 -19
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +217 -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/message-priority.ts +4 -0
- package/src/index.ts +1 -0
- package/src/models.ts +31 -7
- 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/message-priority.d.ts +4 -0
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +31 -7
- 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
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
|
package/src/services/users.ts
CHANGED
|
@@ -569,6 +569,8 @@ export class Users {
|
|
|
569
569
|
/**
|
|
570
570
|
* Get users usage stats
|
|
571
571
|
*
|
|
572
|
+
* Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. 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.
|
|
573
|
+
|
|
572
574
|
*
|
|
573
575
|
* @param {UserUsageRange} range
|
|
574
576
|
* @throws {AppwriteException}
|
|
@@ -869,9 +871,9 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
869
871
|
* @param {string} userId
|
|
870
872
|
* @param {AuthenticatorType} type
|
|
871
873
|
* @throws {AppwriteException}
|
|
872
|
-
* @returns {Promise<
|
|
874
|
+
* @returns {Promise<{}>}
|
|
873
875
|
*/
|
|
874
|
-
async deleteMfaAuthenticator
|
|
876
|
+
async deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise<{}> {
|
|
875
877
|
if (typeof userId === 'undefined') {
|
|
876
878
|
throw new AppwriteException('Missing required parameter: "userId"');
|
|
877
879
|
}
|
package/src/services/vcs.ts
CHANGED
|
@@ -12,6 +12,7 @@ export class Vcs {
|
|
|
12
12
|
/**
|
|
13
13
|
* List repositories
|
|
14
14
|
*
|
|
15
|
+
* Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.
|
|
15
16
|
*
|
|
16
17
|
* @param {string} installationId
|
|
17
18
|
* @param {string} search
|
|
@@ -44,6 +45,7 @@ export class Vcs {
|
|
|
44
45
|
/**
|
|
45
46
|
* Create repository
|
|
46
47
|
*
|
|
48
|
+
* Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.
|
|
47
49
|
*
|
|
48
50
|
* @param {string} installationId
|
|
49
51
|
* @param {string} name
|
|
@@ -86,6 +88,7 @@ export class Vcs {
|
|
|
86
88
|
/**
|
|
87
89
|
* Get repository
|
|
88
90
|
*
|
|
91
|
+
* Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
|
|
89
92
|
*
|
|
90
93
|
* @param {string} installationId
|
|
91
94
|
* @param {string} providerRepositoryId
|
|
@@ -118,6 +121,8 @@ export class Vcs {
|
|
|
118
121
|
/**
|
|
119
122
|
* List repository branches
|
|
120
123
|
*
|
|
124
|
+
* Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
|
|
125
|
+
|
|
121
126
|
*
|
|
122
127
|
* @param {string} installationId
|
|
123
128
|
* @param {string} providerRepositoryId
|
|
@@ -150,6 +155,8 @@ export class Vcs {
|
|
|
150
155
|
/**
|
|
151
156
|
* Get files and directories of a VCS repository
|
|
152
157
|
*
|
|
158
|
+
* Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
159
|
+
|
|
153
160
|
*
|
|
154
161
|
* @param {string} installationId
|
|
155
162
|
* @param {string} providerRepositoryId
|
|
@@ -186,6 +193,7 @@ export class Vcs {
|
|
|
186
193
|
/**
|
|
187
194
|
* Detect runtime settings from source code
|
|
188
195
|
*
|
|
196
|
+
* Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
189
197
|
*
|
|
190
198
|
* @param {string} installationId
|
|
191
199
|
* @param {string} providerRepositoryId
|
|
@@ -222,6 +230,7 @@ export class Vcs {
|
|
|
222
230
|
/**
|
|
223
231
|
* Authorize external deployment
|
|
224
232
|
*
|
|
233
|
+
* Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.
|
|
225
234
|
*
|
|
226
235
|
* @param {string} installationId
|
|
227
236
|
* @param {string} repositoryId
|
|
@@ -261,6 +270,8 @@ export class Vcs {
|
|
|
261
270
|
/**
|
|
262
271
|
* List installations
|
|
263
272
|
*
|
|
273
|
+
* List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
|
|
274
|
+
|
|
264
275
|
*
|
|
265
276
|
* @param {string[]} queries
|
|
266
277
|
* @param {string} search
|
|
@@ -293,6 +304,7 @@ export class Vcs {
|
|
|
293
304
|
/**
|
|
294
305
|
* Get installation
|
|
295
306
|
*
|
|
307
|
+
* Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
|
|
296
308
|
*
|
|
297
309
|
* @param {string} installationId
|
|
298
310
|
* @throws {AppwriteException}
|
|
@@ -321,6 +333,7 @@ export class Vcs {
|
|
|
321
333
|
/**
|
|
322
334
|
* Delete installation
|
|
323
335
|
*
|
|
336
|
+
* Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
|
|
324
337
|
*
|
|
325
338
|
* @param {string} installationId
|
|
326
339
|
* @throws {AppwriteException}
|
package/types/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { Runtime } from './enums/runtime';
|
|
|
45
45
|
export { FunctionUsageRange } from './enums/function-usage-range';
|
|
46
46
|
export { ExecutionMethod } from './enums/execution-method';
|
|
47
47
|
export { Name } from './enums/name';
|
|
48
|
+
export { MessagePriority } from './enums/message-priority';
|
|
48
49
|
export { SmtpEncryption } from './enums/smtp-encryption';
|
|
49
50
|
export { BillingPlan } from './enums/billing-plan';
|
|
50
51
|
export { ProjectUsageRange } from './enums/project-usage-range';
|
package/types/models.d.ts
CHANGED
|
@@ -3097,7 +3097,7 @@ export declare namespace Models {
|
|
|
3097
3097
|
/**
|
|
3098
3098
|
* Resource ID.
|
|
3099
3099
|
*/
|
|
3100
|
-
resourceId
|
|
3100
|
+
resourceId?: string;
|
|
3101
3101
|
/**
|
|
3102
3102
|
* Resource name.
|
|
3103
3103
|
*/
|
|
@@ -3106,6 +3106,10 @@ export declare namespace Models {
|
|
|
3106
3106
|
* The value of this metric at the timestamp.
|
|
3107
3107
|
*/
|
|
3108
3108
|
value: number;
|
|
3109
|
+
/**
|
|
3110
|
+
* The estimated value of this metric at the end of the period.
|
|
3111
|
+
*/
|
|
3112
|
+
estimate?: number;
|
|
3109
3113
|
};
|
|
3110
3114
|
/**
|
|
3111
3115
|
* UsageDatabases
|
|
@@ -3543,6 +3547,18 @@ export declare namespace Models {
|
|
|
3543
3547
|
* Aggregated breakdown in totals of functions storage size (in bytes).
|
|
3544
3548
|
*/
|
|
3545
3549
|
functionsStorageBreakdown: MetricBreakdown[];
|
|
3550
|
+
/**
|
|
3551
|
+
* Total aggregated number of phone auth.
|
|
3552
|
+
*/
|
|
3553
|
+
authPhoneTotal: number;
|
|
3554
|
+
/**
|
|
3555
|
+
* Estimated total aggregated cost of phone auth.
|
|
3556
|
+
*/
|
|
3557
|
+
authPhoneEstimate: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* Aggregated breakdown in totals of phone auth by country.
|
|
3560
|
+
*/
|
|
3561
|
+
authPhoneCountryBreakdown: MetricBreakdown[];
|
|
3546
3562
|
};
|
|
3547
3563
|
/**
|
|
3548
3564
|
* Headers
|
|
@@ -5026,10 +5042,6 @@ export declare namespace Models {
|
|
|
5026
5042
|
* Aggregated stats for function executions.
|
|
5027
5043
|
*/
|
|
5028
5044
|
executions: Metric[];
|
|
5029
|
-
/**
|
|
5030
|
-
* Aggregated stats for phone authentication.
|
|
5031
|
-
*/
|
|
5032
|
-
authPhone: Metric;
|
|
5033
5045
|
/**
|
|
5034
5046
|
* Aggregated stats for total users.
|
|
5035
5047
|
*/
|
|
@@ -5071,9 +5083,13 @@ export declare namespace Models {
|
|
|
5071
5083
|
*/
|
|
5072
5084
|
storageTotal: number;
|
|
5073
5085
|
/**
|
|
5074
|
-
*
|
|
5086
|
+
* Aggregated stats for total phone authentication SMS.
|
|
5087
|
+
*/
|
|
5088
|
+
authPhoneTotal: number;
|
|
5089
|
+
/**
|
|
5090
|
+
* Aggregated stats for estimated phone authentication SMS cost.
|
|
5075
5091
|
*/
|
|
5076
|
-
|
|
5092
|
+
authPhoneEstimate: number;
|
|
5077
5093
|
/**
|
|
5078
5094
|
* Aggregated stats for each projects.
|
|
5079
5095
|
*/
|
|
@@ -5111,6 +5127,14 @@ export declare namespace Models {
|
|
|
5111
5127
|
* Aggregated stats for number of documents.
|
|
5112
5128
|
*/
|
|
5113
5129
|
storage: number;
|
|
5130
|
+
/**
|
|
5131
|
+
* Aggregated stats for phone authentication.
|
|
5132
|
+
*/
|
|
5133
|
+
authPhoneTotal: number;
|
|
5134
|
+
/**
|
|
5135
|
+
* Aggregated stats for phone authentication estimated cost.
|
|
5136
|
+
*/
|
|
5137
|
+
authPhoneEstimate: number;
|
|
5114
5138
|
};
|
|
5115
5139
|
/**
|
|
5116
5140
|
* Aggregation team list
|