@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
package/dist/iife/sdk.js
CHANGED
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
'x-sdk-name': 'Console',
|
|
282
282
|
'x-sdk-platform': 'console',
|
|
283
283
|
'x-sdk-language': 'web',
|
|
284
|
-
'x-sdk-version': '1.
|
|
284
|
+
'x-sdk-version': '1.5.0',
|
|
285
285
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
286
286
|
};
|
|
287
287
|
this.realtime = {
|
|
@@ -804,6 +804,7 @@
|
|
|
804
804
|
/**
|
|
805
805
|
* List billing addresses
|
|
806
806
|
*
|
|
807
|
+
* List all billing addresses for a user.
|
|
807
808
|
*
|
|
808
809
|
* @param {string[]} queries
|
|
809
810
|
* @throws {AppwriteException}
|
|
@@ -826,6 +827,7 @@
|
|
|
826
827
|
/**
|
|
827
828
|
* Create new billing address
|
|
828
829
|
*
|
|
830
|
+
* Add a new billing address to a user's account.
|
|
829
831
|
*
|
|
830
832
|
* @param {string} country
|
|
831
833
|
* @param {string} streetAddress
|
|
@@ -880,6 +882,7 @@
|
|
|
880
882
|
/**
|
|
881
883
|
* Get billing address
|
|
882
884
|
*
|
|
885
|
+
* Get a specific billing address for a user using it's ID.
|
|
883
886
|
*
|
|
884
887
|
* @param {string} billingAddressId
|
|
885
888
|
* @throws {AppwriteException}
|
|
@@ -902,6 +905,7 @@
|
|
|
902
905
|
/**
|
|
903
906
|
* Update billing address
|
|
904
907
|
*
|
|
908
|
+
* Update a specific billing address using it's ID.
|
|
905
909
|
*
|
|
906
910
|
* @param {string} billingAddressId
|
|
907
911
|
* @param {string} country
|
|
@@ -960,6 +964,7 @@
|
|
|
960
964
|
/**
|
|
961
965
|
* Delete billing address
|
|
962
966
|
*
|
|
967
|
+
* Delete a specific billing address using it's ID.
|
|
963
968
|
*
|
|
964
969
|
* @param {string} billingAddressId
|
|
965
970
|
* @throws {AppwriteException}
|
|
@@ -982,6 +987,7 @@
|
|
|
982
987
|
/**
|
|
983
988
|
* Get coupon details
|
|
984
989
|
*
|
|
990
|
+
* Get coupon details for an account.
|
|
985
991
|
*
|
|
986
992
|
* @param {string} couponId
|
|
987
993
|
* @throws {AppwriteException}
|
|
@@ -1085,6 +1091,7 @@
|
|
|
1085
1091
|
/**
|
|
1086
1092
|
* List invoices
|
|
1087
1093
|
*
|
|
1094
|
+
* List all invoices tied to an account.
|
|
1088
1095
|
*
|
|
1089
1096
|
* @param {string[]} queries
|
|
1090
1097
|
* @throws {AppwriteException}
|
|
@@ -1282,7 +1289,7 @@
|
|
|
1282
1289
|
* @param {string} challengeId
|
|
1283
1290
|
* @param {string} otp
|
|
1284
1291
|
* @throws {AppwriteException}
|
|
1285
|
-
* @returns {Promise<
|
|
1292
|
+
* @returns {Promise<Models.Session>}
|
|
1286
1293
|
*/
|
|
1287
1294
|
updateMfaChallenge(challengeId, otp) {
|
|
1288
1295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1442,6 +1449,7 @@
|
|
|
1442
1449
|
/**
|
|
1443
1450
|
* List payment methods
|
|
1444
1451
|
*
|
|
1452
|
+
* List payment methods for this account.
|
|
1445
1453
|
*
|
|
1446
1454
|
* @param {string[]} queries
|
|
1447
1455
|
* @throws {AppwriteException}
|
|
@@ -1464,6 +1472,7 @@
|
|
|
1464
1472
|
/**
|
|
1465
1473
|
* Create new payment method
|
|
1466
1474
|
*
|
|
1475
|
+
* Create a new payment method for the current user account.
|
|
1467
1476
|
*
|
|
1468
1477
|
* @throws {AppwriteException}
|
|
1469
1478
|
* @returns {Promise<Models.PaymentMethod>}
|
|
@@ -1482,6 +1491,7 @@
|
|
|
1482
1491
|
/**
|
|
1483
1492
|
* Get payment method
|
|
1484
1493
|
*
|
|
1494
|
+
* Get a specific payment method for the user.
|
|
1485
1495
|
*
|
|
1486
1496
|
* @param {string} paymentMethodId
|
|
1487
1497
|
* @throws {AppwriteException}
|
|
@@ -1504,6 +1514,7 @@
|
|
|
1504
1514
|
/**
|
|
1505
1515
|
* Update payment method
|
|
1506
1516
|
*
|
|
1517
|
+
* Update a new payment method for the current user account.
|
|
1507
1518
|
*
|
|
1508
1519
|
* @param {string} paymentMethodId
|
|
1509
1520
|
* @param {number} expiryMonth
|
|
@@ -1540,6 +1551,7 @@
|
|
|
1540
1551
|
/**
|
|
1541
1552
|
* Delete payment method
|
|
1542
1553
|
*
|
|
1554
|
+
* Delete a specific payment method from a user's account.
|
|
1543
1555
|
*
|
|
1544
1556
|
* @param {string} paymentMethodId
|
|
1545
1557
|
* @throws {AppwriteException}
|
|
@@ -1562,6 +1574,7 @@
|
|
|
1562
1574
|
/**
|
|
1563
1575
|
* Update payment method provider id
|
|
1564
1576
|
*
|
|
1577
|
+
* Update payment method provider.
|
|
1565
1578
|
*
|
|
1566
1579
|
* @param {string} paymentMethodId
|
|
1567
1580
|
* @param {string} providerMethodId
|
|
@@ -1598,6 +1611,7 @@
|
|
|
1598
1611
|
/**
|
|
1599
1612
|
* Update payment method with new setup with mandates for indian cards
|
|
1600
1613
|
*
|
|
1614
|
+
* Update payment method mandate options.
|
|
1601
1615
|
*
|
|
1602
1616
|
* @param {string} paymentMethodId
|
|
1603
1617
|
* @throws {AppwriteException}
|
|
@@ -2099,6 +2113,7 @@
|
|
|
2099
2113
|
/**
|
|
2100
2114
|
* Create push target
|
|
2101
2115
|
*
|
|
2116
|
+
* Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.
|
|
2102
2117
|
*
|
|
2103
2118
|
* @param {string} targetId
|
|
2104
2119
|
* @param {string} identifier
|
|
@@ -2135,6 +2150,7 @@
|
|
|
2135
2150
|
/**
|
|
2136
2151
|
* Update push target
|
|
2137
2152
|
*
|
|
2153
|
+
* Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.
|
|
2138
2154
|
*
|
|
2139
2155
|
* @param {string} targetId
|
|
2140
2156
|
* @param {string} identifier
|
|
@@ -2164,6 +2180,7 @@
|
|
|
2164
2180
|
/**
|
|
2165
2181
|
* Delete push target
|
|
2166
2182
|
*
|
|
2183
|
+
* Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.
|
|
2167
2184
|
*
|
|
2168
2185
|
* @param {string} targetId
|
|
2169
2186
|
* @throws {AppwriteException}
|
|
@@ -2755,6 +2772,7 @@
|
|
|
2755
2772
|
/**
|
|
2756
2773
|
* List archives
|
|
2757
2774
|
*
|
|
2775
|
+
* List all archives for a project.
|
|
2758
2776
|
*
|
|
2759
2777
|
* @param {string[]} queries
|
|
2760
2778
|
* @throws {AppwriteException}
|
|
@@ -2777,6 +2795,7 @@
|
|
|
2777
2795
|
/**
|
|
2778
2796
|
* Create archive
|
|
2779
2797
|
*
|
|
2798
|
+
* Create a new archive asynchronously for a project.
|
|
2780
2799
|
*
|
|
2781
2800
|
* @param {string[]} services
|
|
2782
2801
|
* @param {string} resourceId
|
|
@@ -2806,6 +2825,7 @@
|
|
|
2806
2825
|
/**
|
|
2807
2826
|
* Get backup archive
|
|
2808
2827
|
*
|
|
2828
|
+
* Get a backup archive using it's ID.
|
|
2809
2829
|
*
|
|
2810
2830
|
* @param {string} archiveId
|
|
2811
2831
|
* @throws {AppwriteException}
|
|
@@ -2828,6 +2848,7 @@
|
|
|
2828
2848
|
/**
|
|
2829
2849
|
* Delete archive
|
|
2830
2850
|
*
|
|
2851
|
+
* Delete an existing archive for a project.
|
|
2831
2852
|
*
|
|
2832
2853
|
* @param {string} archiveId
|
|
2833
2854
|
* @throws {AppwriteException}
|
|
@@ -2850,6 +2871,7 @@
|
|
|
2850
2871
|
/**
|
|
2851
2872
|
* List backup policies
|
|
2852
2873
|
*
|
|
2874
|
+
* List all policies for a project.
|
|
2853
2875
|
*
|
|
2854
2876
|
* @param {string[]} queries
|
|
2855
2877
|
* @throws {AppwriteException}
|
|
@@ -2872,6 +2894,7 @@
|
|
|
2872
2894
|
/**
|
|
2873
2895
|
* Create backup policy
|
|
2874
2896
|
*
|
|
2897
|
+
* Create a new backup policy.
|
|
2875
2898
|
*
|
|
2876
2899
|
* @param {string} policyId
|
|
2877
2900
|
* @param {string[]} services
|
|
@@ -2930,6 +2953,7 @@
|
|
|
2930
2953
|
/**
|
|
2931
2954
|
* Get backup policy
|
|
2932
2955
|
*
|
|
2956
|
+
* Get a backup policy using it's ID.
|
|
2933
2957
|
*
|
|
2934
2958
|
* @param {string} policyId
|
|
2935
2959
|
* @throws {AppwriteException}
|
|
@@ -2952,6 +2976,7 @@
|
|
|
2952
2976
|
/**
|
|
2953
2977
|
* Update backup policy
|
|
2954
2978
|
*
|
|
2979
|
+
* Update an existing policy using it's ID.
|
|
2955
2980
|
*
|
|
2956
2981
|
* @param {string} policyId
|
|
2957
2982
|
* @param {string} name
|
|
@@ -2990,6 +3015,7 @@
|
|
|
2990
3015
|
/**
|
|
2991
3016
|
* Delete backup policy
|
|
2992
3017
|
*
|
|
3018
|
+
* Delete a policy using it's ID.
|
|
2993
3019
|
*
|
|
2994
3020
|
* @param {string} policyId
|
|
2995
3021
|
* @throws {AppwriteException}
|
|
@@ -3012,6 +3038,7 @@
|
|
|
3012
3038
|
/**
|
|
3013
3039
|
* Create restoration
|
|
3014
3040
|
*
|
|
3041
|
+
* Create and trigger a new restoration for a backup on a project.
|
|
3015
3042
|
*
|
|
3016
3043
|
* @param {string} archiveId
|
|
3017
3044
|
* @param {string[]} services
|
|
@@ -3052,6 +3079,7 @@
|
|
|
3052
3079
|
/**
|
|
3053
3080
|
* List restorations
|
|
3054
3081
|
*
|
|
3082
|
+
* List all backup restorations for a project.
|
|
3055
3083
|
*
|
|
3056
3084
|
* @param {string[]} queries
|
|
3057
3085
|
* @throws {AppwriteException}
|
|
@@ -3074,10 +3102,11 @@
|
|
|
3074
3102
|
/**
|
|
3075
3103
|
* Get backup restoration
|
|
3076
3104
|
*
|
|
3105
|
+
* Get the current status of a backup restoration.
|
|
3077
3106
|
*
|
|
3078
3107
|
* @param {string} restorationId
|
|
3079
3108
|
* @throws {AppwriteException}
|
|
3080
|
-
* @returns {Promise<Models.
|
|
3109
|
+
* @returns {Promise<Models.BackupRestoration>}
|
|
3081
3110
|
*/
|
|
3082
3111
|
getRestoration(restorationId) {
|
|
3083
3112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3102,6 +3131,7 @@
|
|
|
3102
3131
|
/**
|
|
3103
3132
|
* Ask query
|
|
3104
3133
|
*
|
|
3134
|
+
* Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream.
|
|
3105
3135
|
*
|
|
3106
3136
|
* @param {string} prompt
|
|
3107
3137
|
* @throws {AppwriteException}
|
|
@@ -3133,6 +3163,7 @@
|
|
|
3133
3163
|
/**
|
|
3134
3164
|
* Get campaign details
|
|
3135
3165
|
*
|
|
3166
|
+
* Recieve the details of a compaign using it's ID.
|
|
3136
3167
|
*
|
|
3137
3168
|
* @param {string} campaignId
|
|
3138
3169
|
* @throws {AppwriteException}
|
|
@@ -3155,6 +3186,7 @@
|
|
|
3155
3186
|
/**
|
|
3156
3187
|
* Get coupon details
|
|
3157
3188
|
*
|
|
3189
|
+
* Get the details of a coupon using it's coupon ID.
|
|
3158
3190
|
*
|
|
3159
3191
|
* @param {string} couponId
|
|
3160
3192
|
* @throws {AppwriteException}
|
|
@@ -3177,6 +3209,7 @@
|
|
|
3177
3209
|
/**
|
|
3178
3210
|
* Get plans
|
|
3179
3211
|
*
|
|
3212
|
+
* Return a list of all available plans.
|
|
3180
3213
|
*
|
|
3181
3214
|
* @throws {AppwriteException}
|
|
3182
3215
|
* @returns {Promise<Models.BillingPlanList>}
|
|
@@ -3195,10 +3228,11 @@
|
|
|
3195
3228
|
/**
|
|
3196
3229
|
* Create program membership
|
|
3197
3230
|
*
|
|
3231
|
+
* Create a new membership for an account to a program.
|
|
3198
3232
|
*
|
|
3199
3233
|
* @param {string} programId
|
|
3200
3234
|
* @throws {AppwriteException}
|
|
3201
|
-
* @returns {Promise<
|
|
3235
|
+
* @returns {Promise<Models.Organization<Preferences>>}
|
|
3202
3236
|
*/
|
|
3203
3237
|
createProgramMembership(programId) {
|
|
3204
3238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3217,6 +3251,7 @@
|
|
|
3217
3251
|
/**
|
|
3218
3252
|
* Get Regions
|
|
3219
3253
|
*
|
|
3254
|
+
* Get all available regions for the console.
|
|
3220
3255
|
*
|
|
3221
3256
|
* @throws {AppwriteException}
|
|
3222
3257
|
* @returns {Promise<Models.ConsoleRegionList>}
|
|
@@ -3235,6 +3270,7 @@
|
|
|
3235
3270
|
/**
|
|
3236
3271
|
* Create source
|
|
3237
3272
|
*
|
|
3273
|
+
* Create a new source.
|
|
3238
3274
|
*
|
|
3239
3275
|
* @param {string} ref
|
|
3240
3276
|
* @param {string} referrer
|
|
@@ -3363,6 +3399,7 @@
|
|
|
3363
3399
|
/**
|
|
3364
3400
|
* Get databases usage stats
|
|
3365
3401
|
*
|
|
3402
|
+
* Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and 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.
|
|
3366
3403
|
*
|
|
3367
3404
|
* @param {DatabaseUsageRange} range
|
|
3368
3405
|
* @throws {AppwriteException}
|
|
@@ -5199,6 +5236,7 @@
|
|
|
5199
5236
|
/**
|
|
5200
5237
|
* Get collection usage stats
|
|
5201
5238
|
*
|
|
5239
|
+
* Get usage metrics and statistics for a collection. Returning the total number of documents. 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.
|
|
5202
5240
|
*
|
|
5203
5241
|
* @param {string} databaseId
|
|
5204
5242
|
* @param {string} collectionId
|
|
@@ -5256,6 +5294,7 @@
|
|
|
5256
5294
|
/**
|
|
5257
5295
|
* Get database usage stats
|
|
5258
5296
|
*
|
|
5297
|
+
* Get usage metrics and statistics for a database. You can view the total number of collections, documents, and 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.
|
|
5259
5298
|
*
|
|
5260
5299
|
* @param {string} databaseId
|
|
5261
5300
|
* @param {DatabaseUsageRange} range
|
|
@@ -5528,6 +5567,7 @@
|
|
|
5528
5567
|
/**
|
|
5529
5568
|
* Get functions usage
|
|
5530
5569
|
*
|
|
5570
|
+
* Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. 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, defaults to 30 days.
|
|
5531
5571
|
*
|
|
5532
5572
|
* @param {FunctionUsageRange} range
|
|
5533
5573
|
* @throws {AppwriteException}
|
|
@@ -5851,6 +5891,7 @@
|
|
|
5851
5891
|
/**
|
|
5852
5892
|
* Rebuild deployment
|
|
5853
5893
|
*
|
|
5894
|
+
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
5854
5895
|
*
|
|
5855
5896
|
* @param {string} functionId
|
|
5856
5897
|
* @param {string} deploymentId
|
|
@@ -5881,6 +5922,7 @@
|
|
|
5881
5922
|
/**
|
|
5882
5923
|
* Cancel deployment
|
|
5883
5924
|
*
|
|
5925
|
+
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
|
|
5884
5926
|
*
|
|
5885
5927
|
* @param {string} functionId
|
|
5886
5928
|
* @param {string} deploymentId
|
|
@@ -6070,6 +6112,7 @@
|
|
|
6070
6112
|
/**
|
|
6071
6113
|
* Get function usage
|
|
6072
6114
|
*
|
|
6115
|
+
* Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. 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, defaults to 30 days.
|
|
6073
6116
|
*
|
|
6074
6117
|
* @param {string} functionId
|
|
6075
6118
|
* @param {FunctionUsageRange} range
|
|
@@ -6451,6 +6494,7 @@
|
|
|
6451
6494
|
/**
|
|
6452
6495
|
* Get billing aggregation queue
|
|
6453
6496
|
*
|
|
6497
|
+
* Get billing aggregation queue
|
|
6454
6498
|
*
|
|
6455
6499
|
* @param {number} threshold
|
|
6456
6500
|
* @throws {AppwriteException}
|
|
@@ -6496,6 +6540,7 @@
|
|
|
6496
6540
|
/**
|
|
6497
6541
|
* Get billing aggregation queue
|
|
6498
6542
|
*
|
|
6543
|
+
* Get the priority builds queue size.
|
|
6499
6544
|
*
|
|
6500
6545
|
* @param {number} threshold
|
|
6501
6546
|
* @throws {AppwriteException}
|
|
@@ -6754,6 +6799,29 @@
|
|
|
6754
6799
|
return yield this.client.call('get', uri, apiHeaders, payload);
|
|
6755
6800
|
});
|
|
6756
6801
|
}
|
|
6802
|
+
/**
|
|
6803
|
+
* Get usage count aggregation queue
|
|
6804
|
+
*
|
|
6805
|
+
* Get the usage count aggregation queue.
|
|
6806
|
+
*
|
|
6807
|
+
* @param {number} threshold
|
|
6808
|
+
* @throws {AppwriteException}
|
|
6809
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
6810
|
+
*/
|
|
6811
|
+
getQueueUsageCount(threshold) {
|
|
6812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6813
|
+
const apiPath = '/health/queue/usage-count';
|
|
6814
|
+
const payload = {};
|
|
6815
|
+
if (typeof threshold !== 'undefined') {
|
|
6816
|
+
payload['threshold'] = threshold;
|
|
6817
|
+
}
|
|
6818
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6819
|
+
const apiHeaders = {
|
|
6820
|
+
'content-type': 'application/json',
|
|
6821
|
+
};
|
|
6822
|
+
return yield this.client.call('get', uri, apiHeaders, payload);
|
|
6823
|
+
});
|
|
6824
|
+
}
|
|
6757
6825
|
/**
|
|
6758
6826
|
* Get usage dump queue
|
|
6759
6827
|
*
|
|
@@ -7212,23 +7280,20 @@
|
|
|
7212
7280
|
* @param {string} sound
|
|
7213
7281
|
* @param {string} color
|
|
7214
7282
|
* @param {string} tag
|
|
7215
|
-
* @param {
|
|
7283
|
+
* @param {number} badge
|
|
7216
7284
|
* @param {boolean} draft
|
|
7217
7285
|
* @param {string} scheduledAt
|
|
7286
|
+
* @param {boolean} contentAvailable
|
|
7287
|
+
* @param {boolean} critical
|
|
7288
|
+
* @param {MessagePriority} priority
|
|
7218
7289
|
* @throws {AppwriteException}
|
|
7219
7290
|
* @returns {Promise<Models.Message>}
|
|
7220
7291
|
*/
|
|
7221
|
-
createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
|
7292
|
+
createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
|
|
7222
7293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7223
7294
|
if (typeof messageId === 'undefined') {
|
|
7224
7295
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
7225
7296
|
}
|
|
7226
|
-
if (typeof title === 'undefined') {
|
|
7227
|
-
throw new AppwriteException('Missing required parameter: "title"');
|
|
7228
|
-
}
|
|
7229
|
-
if (typeof body === 'undefined') {
|
|
7230
|
-
throw new AppwriteException('Missing required parameter: "body"');
|
|
7231
|
-
}
|
|
7232
7297
|
const apiPath = '/messaging/messages/push';
|
|
7233
7298
|
const payload = {};
|
|
7234
7299
|
if (typeof messageId !== 'undefined') {
|
|
@@ -7279,6 +7344,15 @@
|
|
|
7279
7344
|
if (typeof scheduledAt !== 'undefined') {
|
|
7280
7345
|
payload['scheduledAt'] = scheduledAt;
|
|
7281
7346
|
}
|
|
7347
|
+
if (typeof contentAvailable !== 'undefined') {
|
|
7348
|
+
payload['contentAvailable'] = contentAvailable;
|
|
7349
|
+
}
|
|
7350
|
+
if (typeof critical !== 'undefined') {
|
|
7351
|
+
payload['critical'] = critical;
|
|
7352
|
+
}
|
|
7353
|
+
if (typeof priority !== 'undefined') {
|
|
7354
|
+
payload['priority'] = priority;
|
|
7355
|
+
}
|
|
7282
7356
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7283
7357
|
const apiHeaders = {
|
|
7284
7358
|
'content-type': 'application/json',
|
|
@@ -7308,10 +7382,13 @@
|
|
|
7308
7382
|
* @param {number} badge
|
|
7309
7383
|
* @param {boolean} draft
|
|
7310
7384
|
* @param {string} scheduledAt
|
|
7385
|
+
* @param {boolean} contentAvailable
|
|
7386
|
+
* @param {boolean} critical
|
|
7387
|
+
* @param {MessagePriority} priority
|
|
7311
7388
|
* @throws {AppwriteException}
|
|
7312
7389
|
* @returns {Promise<Models.Message>}
|
|
7313
7390
|
*/
|
|
7314
|
-
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
|
7391
|
+
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
|
|
7315
7392
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7316
7393
|
if (typeof messageId === 'undefined') {
|
|
7317
7394
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -7363,6 +7440,15 @@
|
|
|
7363
7440
|
if (typeof scheduledAt !== 'undefined') {
|
|
7364
7441
|
payload['scheduledAt'] = scheduledAt;
|
|
7365
7442
|
}
|
|
7443
|
+
if (typeof contentAvailable !== 'undefined') {
|
|
7444
|
+
payload['contentAvailable'] = contentAvailable;
|
|
7445
|
+
}
|
|
7446
|
+
if (typeof critical !== 'undefined') {
|
|
7447
|
+
payload['critical'] = critical;
|
|
7448
|
+
}
|
|
7449
|
+
if (typeof priority !== 'undefined') {
|
|
7450
|
+
payload['priority'] = priority;
|
|
7451
|
+
}
|
|
7366
7452
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7367
7453
|
const apiHeaders = {
|
|
7368
7454
|
'content-type': 'application/json',
|
|
@@ -7426,7 +7512,7 @@
|
|
|
7426
7512
|
/**
|
|
7427
7513
|
* Update SMS
|
|
7428
7514
|
*
|
|
7429
|
-
* Update an
|
|
7515
|
+
* Update an SMS message by its unique ID.
|
|
7430
7516
|
|
|
7431
7517
|
*
|
|
7432
7518
|
* @param {string} messageId
|
|
@@ -9037,6 +9123,7 @@
|
|
|
9037
9123
|
/**
|
|
9038
9124
|
* List migrations
|
|
9039
9125
|
*
|
|
9126
|
+
* 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.
|
|
9040
9127
|
*
|
|
9041
9128
|
* @param {string[]} queries
|
|
9042
9129
|
* @param {string} search
|
|
@@ -9063,6 +9150,7 @@
|
|
|
9063
9150
|
/**
|
|
9064
9151
|
* Migrate Appwrite data
|
|
9065
9152
|
*
|
|
9153
|
+
* 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.
|
|
9066
9154
|
*
|
|
9067
9155
|
* @param {string[]} resources
|
|
9068
9156
|
* @param {string} endpoint
|
|
@@ -9109,6 +9197,7 @@
|
|
|
9109
9197
|
/**
|
|
9110
9198
|
* Generate a report on Appwrite data
|
|
9111
9199
|
*
|
|
9200
|
+
* 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.
|
|
9112
9201
|
*
|
|
9113
9202
|
* @param {string[]} resources
|
|
9114
9203
|
* @param {string} endpoint
|
|
@@ -9155,6 +9244,7 @@
|
|
|
9155
9244
|
/**
|
|
9156
9245
|
* Migrate Firebase data
|
|
9157
9246
|
*
|
|
9247
|
+
* 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.
|
|
9158
9248
|
*
|
|
9159
9249
|
* @param {string[]} resources
|
|
9160
9250
|
* @param {string} serviceAccount
|
|
@@ -9187,6 +9277,7 @@
|
|
|
9187
9277
|
/**
|
|
9188
9278
|
* Generate a report on Firebase data
|
|
9189
9279
|
*
|
|
9280
|
+
* 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.
|
|
9190
9281
|
*
|
|
9191
9282
|
* @param {string[]} resources
|
|
9192
9283
|
* @param {string} serviceAccount
|
|
@@ -9219,6 +9310,7 @@
|
|
|
9219
9310
|
/**
|
|
9220
9311
|
* Migrate NHost data
|
|
9221
9312
|
*
|
|
9313
|
+
* 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.
|
|
9222
9314
|
*
|
|
9223
9315
|
* @param {string[]} resources
|
|
9224
9316
|
* @param {string} subdomain
|
|
@@ -9290,6 +9382,7 @@
|
|
|
9290
9382
|
/**
|
|
9291
9383
|
* Generate a report on NHost Data
|
|
9292
9384
|
*
|
|
9385
|
+
* 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.
|
|
9293
9386
|
*
|
|
9294
9387
|
* @param {string[]} resources
|
|
9295
9388
|
* @param {string} subdomain
|
|
@@ -9361,6 +9454,7 @@
|
|
|
9361
9454
|
/**
|
|
9362
9455
|
* Migrate Supabase data
|
|
9363
9456
|
*
|
|
9457
|
+
* 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.
|
|
9364
9458
|
*
|
|
9365
9459
|
* @param {string[]} resources
|
|
9366
9460
|
* @param {string} endpoint
|
|
@@ -9425,6 +9519,7 @@
|
|
|
9425
9519
|
/**
|
|
9426
9520
|
* Generate a report on Supabase Data
|
|
9427
9521
|
*
|
|
9522
|
+
* 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.
|
|
9428
9523
|
*
|
|
9429
9524
|
* @param {string[]} resources
|
|
9430
9525
|
* @param {string} endpoint
|
|
@@ -9489,6 +9584,7 @@
|
|
|
9489
9584
|
/**
|
|
9490
9585
|
* Get migration
|
|
9491
9586
|
*
|
|
9587
|
+
* 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.
|
|
9492
9588
|
*
|
|
9493
9589
|
* @param {string} migrationId
|
|
9494
9590
|
* @throws {AppwriteException}
|
|
@@ -9511,6 +9607,7 @@
|
|
|
9511
9607
|
/**
|
|
9512
9608
|
* Retry migration
|
|
9513
9609
|
*
|
|
9610
|
+
* Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
|
|
9514
9611
|
*
|
|
9515
9612
|
* @param {string} migrationId
|
|
9516
9613
|
* @throws {AppwriteException}
|
|
@@ -9533,6 +9630,7 @@
|
|
|
9533
9630
|
/**
|
|
9534
9631
|
* Delete migration
|
|
9535
9632
|
*
|
|
9633
|
+
* Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history.
|
|
9536
9634
|
*
|
|
9537
9635
|
* @param {string} migrationId
|
|
9538
9636
|
* @throws {AppwriteException}
|
|
@@ -9588,7 +9686,8 @@
|
|
|
9588
9686
|
/**
|
|
9589
9687
|
* Create Organization
|
|
9590
9688
|
*
|
|
9591
|
-
* Create a new
|
|
9689
|
+
* Create a new organization.
|
|
9690
|
+
|
|
9592
9691
|
*
|
|
9593
9692
|
* @param {string} organizationId
|
|
9594
9693
|
* @param {string} name
|
|
@@ -9636,7 +9735,7 @@
|
|
|
9636
9735
|
/**
|
|
9637
9736
|
* Delete team
|
|
9638
9737
|
*
|
|
9639
|
-
* Delete
|
|
9738
|
+
* Delete an organization.
|
|
9640
9739
|
*
|
|
9641
9740
|
* @param {string} organizationId
|
|
9642
9741
|
* @throws {AppwriteException}
|
|
@@ -9659,6 +9758,7 @@
|
|
|
9659
9758
|
/**
|
|
9660
9759
|
* List aggregations
|
|
9661
9760
|
*
|
|
9761
|
+
* Get a list of all aggregations for an organization.
|
|
9662
9762
|
*
|
|
9663
9763
|
* @param {string} organizationId
|
|
9664
9764
|
* @param {string[]} queries
|
|
@@ -9685,6 +9785,7 @@
|
|
|
9685
9785
|
/**
|
|
9686
9786
|
* Get invoice
|
|
9687
9787
|
*
|
|
9788
|
+
* Get a specific aggregation using it's aggregation ID.
|
|
9688
9789
|
*
|
|
9689
9790
|
* @param {string} organizationId
|
|
9690
9791
|
* @param {string} aggregationId
|
|
@@ -9711,6 +9812,7 @@
|
|
|
9711
9812
|
/**
|
|
9712
9813
|
* Set team's billing address
|
|
9713
9814
|
*
|
|
9815
|
+
* Set a billing address for an organization.
|
|
9714
9816
|
*
|
|
9715
9817
|
* @param {string} organizationId
|
|
9716
9818
|
* @param {string} billingAddressId
|
|
@@ -9740,6 +9842,7 @@
|
|
|
9740
9842
|
/**
|
|
9741
9843
|
* Delete team's billing address
|
|
9742
9844
|
*
|
|
9845
|
+
* Delete a team's billing address.
|
|
9743
9846
|
*
|
|
9744
9847
|
* @param {string} organizationId
|
|
9745
9848
|
* @throws {AppwriteException}
|
|
@@ -9762,6 +9865,7 @@
|
|
|
9762
9865
|
/**
|
|
9763
9866
|
* Get billing address
|
|
9764
9867
|
*
|
|
9868
|
+
* Get a billing address using it's ID.
|
|
9765
9869
|
*
|
|
9766
9870
|
* @param {string} organizationId
|
|
9767
9871
|
* @param {string} billingAddressId
|
|
@@ -9788,6 +9892,7 @@
|
|
|
9788
9892
|
/**
|
|
9789
9893
|
* Set team's billing email
|
|
9790
9894
|
*
|
|
9895
|
+
* Set the current billing email for the organization.
|
|
9791
9896
|
*
|
|
9792
9897
|
* @param {string} organizationId
|
|
9793
9898
|
* @param {string} billingEmail
|
|
@@ -9817,6 +9922,7 @@
|
|
|
9817
9922
|
/**
|
|
9818
9923
|
* Update organization budget
|
|
9819
9924
|
*
|
|
9925
|
+
* Update the budget limit for an organization.
|
|
9820
9926
|
*
|
|
9821
9927
|
* @param {string} organizationId
|
|
9822
9928
|
* @param {number} budget
|
|
@@ -9850,6 +9956,8 @@
|
|
|
9850
9956
|
/**
|
|
9851
9957
|
* List credits
|
|
9852
9958
|
*
|
|
9959
|
+
* List all credits for an organization.
|
|
9960
|
+
|
|
9853
9961
|
*
|
|
9854
9962
|
* @param {string} organizationId
|
|
9855
9963
|
* @param {string[]} queries
|
|
@@ -9876,6 +9984,7 @@
|
|
|
9876
9984
|
/**
|
|
9877
9985
|
* Add credits from coupon
|
|
9878
9986
|
*
|
|
9987
|
+
* Add credit to an organization using a coupon.
|
|
9879
9988
|
*
|
|
9880
9989
|
* @param {string} organizationId
|
|
9881
9990
|
* @param {string} couponId
|
|
@@ -9905,6 +10014,7 @@
|
|
|
9905
10014
|
/**
|
|
9906
10015
|
* Get credit details
|
|
9907
10016
|
*
|
|
10017
|
+
* Get credit details.
|
|
9908
10018
|
*
|
|
9909
10019
|
* @param {string} organizationId
|
|
9910
10020
|
* @param {string} creditId
|
|
@@ -9931,6 +10041,7 @@
|
|
|
9931
10041
|
/**
|
|
9932
10042
|
* List invoices
|
|
9933
10043
|
*
|
|
10044
|
+
* List all invoices for an organization.
|
|
9934
10045
|
*
|
|
9935
10046
|
* @param {string} organizationId
|
|
9936
10047
|
* @param {string[]} queries
|
|
@@ -9957,6 +10068,7 @@
|
|
|
9957
10068
|
/**
|
|
9958
10069
|
* Get invoice
|
|
9959
10070
|
*
|
|
10071
|
+
* Get an invoice by its unique ID.
|
|
9960
10072
|
*
|
|
9961
10073
|
* @param {string} organizationId
|
|
9962
10074
|
* @param {string} invoiceId
|
|
@@ -9983,6 +10095,7 @@
|
|
|
9983
10095
|
/**
|
|
9984
10096
|
* Download invoice in PDF
|
|
9985
10097
|
*
|
|
10098
|
+
* Download invoice in PDF
|
|
9986
10099
|
*
|
|
9987
10100
|
* @param {string} organizationId
|
|
9988
10101
|
* @param {string} invoiceId
|
|
@@ -10009,6 +10122,7 @@
|
|
|
10009
10122
|
/**
|
|
10010
10123
|
* Initiate payment for failed invoice to pay live from console
|
|
10011
10124
|
*
|
|
10125
|
+
* Initiate payment for failed invoice to pay live from console
|
|
10012
10126
|
*
|
|
10013
10127
|
* @param {string} organizationId
|
|
10014
10128
|
* @param {string} invoiceId
|
|
@@ -10042,6 +10156,7 @@
|
|
|
10042
10156
|
/**
|
|
10043
10157
|
* View invoice in PDF
|
|
10044
10158
|
*
|
|
10159
|
+
* View invoice in PDF
|
|
10045
10160
|
*
|
|
10046
10161
|
* @param {string} organizationId
|
|
10047
10162
|
* @param {string} invoiceId
|
|
@@ -10068,6 +10183,7 @@
|
|
|
10068
10183
|
/**
|
|
10069
10184
|
* Set team's payment method
|
|
10070
10185
|
*
|
|
10186
|
+
* Set a organization's default payment method.
|
|
10071
10187
|
*
|
|
10072
10188
|
* @param {string} organizationId
|
|
10073
10189
|
* @param {string} paymentMethodId
|
|
@@ -10097,6 +10213,7 @@
|
|
|
10097
10213
|
/**
|
|
10098
10214
|
* Delete team's default payment method
|
|
10099
10215
|
*
|
|
10216
|
+
* Delete the default payment method for an organization.
|
|
10100
10217
|
*
|
|
10101
10218
|
* @param {string} organizationId
|
|
10102
10219
|
* @throws {AppwriteException}
|
|
@@ -10119,6 +10236,8 @@
|
|
|
10119
10236
|
/**
|
|
10120
10237
|
* Set team's backup payment method
|
|
10121
10238
|
*
|
|
10239
|
+
* Set an organization's backup payment method.
|
|
10240
|
+
|
|
10122
10241
|
*
|
|
10123
10242
|
* @param {string} organizationId
|
|
10124
10243
|
* @param {string} paymentMethodId
|
|
@@ -10148,6 +10267,7 @@
|
|
|
10148
10267
|
/**
|
|
10149
10268
|
* Delete team's backup payment method
|
|
10150
10269
|
*
|
|
10270
|
+
* Delete a backup payment method for an organization.
|
|
10151
10271
|
*
|
|
10152
10272
|
* @param {string} organizationId
|
|
10153
10273
|
* @throws {AppwriteException}
|
|
@@ -10170,6 +10290,7 @@
|
|
|
10170
10290
|
/**
|
|
10171
10291
|
* Get payment method
|
|
10172
10292
|
*
|
|
10293
|
+
* Get an organization's payment method using it's payment method ID.
|
|
10173
10294
|
*
|
|
10174
10295
|
* @param {string} organizationId
|
|
10175
10296
|
* @param {string} paymentMethodId
|
|
@@ -10196,6 +10317,7 @@
|
|
|
10196
10317
|
/**
|
|
10197
10318
|
* Get organization billing plan details
|
|
10198
10319
|
*
|
|
10320
|
+
* Get the details of the current billing plan for an organization.
|
|
10199
10321
|
*
|
|
10200
10322
|
* @param {string} organizationId
|
|
10201
10323
|
* @throws {AppwriteException}
|
|
@@ -10218,6 +10340,7 @@
|
|
|
10218
10340
|
/**
|
|
10219
10341
|
* Update organization billing plan
|
|
10220
10342
|
*
|
|
10343
|
+
* Update the billing plan for an organization.
|
|
10221
10344
|
*
|
|
10222
10345
|
* @param {string} organizationId
|
|
10223
10346
|
* @param {BillingPlan} billingPlan
|
|
@@ -10255,6 +10378,7 @@
|
|
|
10255
10378
|
/**
|
|
10256
10379
|
* Get Scopes
|
|
10257
10380
|
*
|
|
10381
|
+
* Get Scopes
|
|
10258
10382
|
*
|
|
10259
10383
|
* @param {string} organizationId
|
|
10260
10384
|
* @throws {AppwriteException}
|
|
@@ -10277,6 +10401,7 @@
|
|
|
10277
10401
|
/**
|
|
10278
10402
|
* Set team's tax Id
|
|
10279
10403
|
*
|
|
10404
|
+
* Set an organization's billing tax ID.
|
|
10280
10405
|
*
|
|
10281
10406
|
* @param {string} organizationId
|
|
10282
10407
|
* @param {string} taxId
|
|
@@ -10306,6 +10431,7 @@
|
|
|
10306
10431
|
/**
|
|
10307
10432
|
* Get team's usage data
|
|
10308
10433
|
*
|
|
10434
|
+
* Get the usage data for an organization.
|
|
10309
10435
|
*
|
|
10310
10436
|
* @param {string} organizationId
|
|
10311
10437
|
* @param {string} startDate
|
|
@@ -10342,6 +10468,7 @@
|
|
|
10342
10468
|
/**
|
|
10343
10469
|
* Get project usage stats
|
|
10344
10470
|
*
|
|
10471
|
+
* 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.
|
|
10345
10472
|
*
|
|
10346
10473
|
* @param {string} startDate
|
|
10347
10474
|
* @param {string} endDate
|
|
@@ -10516,6 +10643,7 @@
|
|
|
10516
10643
|
/**
|
|
10517
10644
|
* List projects
|
|
10518
10645
|
*
|
|
10646
|
+
* Get a list of all projects. You can use the query params to filter your results.
|
|
10519
10647
|
*
|
|
10520
10648
|
* @param {string[]} queries
|
|
10521
10649
|
* @param {string} search
|
|
@@ -10542,6 +10670,7 @@
|
|
|
10542
10670
|
/**
|
|
10543
10671
|
* Create project
|
|
10544
10672
|
*
|
|
10673
|
+
* Create a new project. You can create a maximum of 100 projects per account.
|
|
10545
10674
|
*
|
|
10546
10675
|
* @param {string} projectId
|
|
10547
10676
|
* @param {string} name
|
|
@@ -10621,6 +10750,7 @@
|
|
|
10621
10750
|
/**
|
|
10622
10751
|
* Get project
|
|
10623
10752
|
*
|
|
10753
|
+
* 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.
|
|
10624
10754
|
*
|
|
10625
10755
|
* @param {string} projectId
|
|
10626
10756
|
* @throws {AppwriteException}
|
|
@@ -10643,6 +10773,7 @@
|
|
|
10643
10773
|
/**
|
|
10644
10774
|
* Update project
|
|
10645
10775
|
*
|
|
10776
|
+
* Update a project by its unique ID.
|
|
10646
10777
|
*
|
|
10647
10778
|
* @param {string} projectId
|
|
10648
10779
|
* @param {string} name
|
|
@@ -10708,6 +10839,7 @@
|
|
|
10708
10839
|
/**
|
|
10709
10840
|
* Delete project
|
|
10710
10841
|
*
|
|
10842
|
+
* Delete a project by its unique ID.
|
|
10711
10843
|
*
|
|
10712
10844
|
* @param {string} projectId
|
|
10713
10845
|
* @throws {AppwriteException}
|
|
@@ -10730,6 +10862,7 @@
|
|
|
10730
10862
|
/**
|
|
10731
10863
|
* Update API status
|
|
10732
10864
|
*
|
|
10865
|
+
* Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
|
|
10733
10866
|
*
|
|
10734
10867
|
* @param {string} projectId
|
|
10735
10868
|
* @param {Api} api
|
|
@@ -10766,6 +10899,7 @@
|
|
|
10766
10899
|
/**
|
|
10767
10900
|
* Update all API status
|
|
10768
10901
|
*
|
|
10902
|
+
* 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.
|
|
10769
10903
|
*
|
|
10770
10904
|
* @param {string} projectId
|
|
10771
10905
|
* @param {boolean} status
|
|
@@ -10795,6 +10929,7 @@
|
|
|
10795
10929
|
/**
|
|
10796
10930
|
* Update project authentication duration
|
|
10797
10931
|
*
|
|
10932
|
+
* Update how long sessions created within a project should stay active for.
|
|
10798
10933
|
*
|
|
10799
10934
|
* @param {string} projectId
|
|
10800
10935
|
* @param {number} duration
|
|
@@ -10824,6 +10959,7 @@
|
|
|
10824
10959
|
/**
|
|
10825
10960
|
* Update project users limit
|
|
10826
10961
|
*
|
|
10962
|
+
* Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
|
|
10827
10963
|
*
|
|
10828
10964
|
* @param {string} projectId
|
|
10829
10965
|
* @param {number} limit
|
|
@@ -10853,6 +10989,7 @@
|
|
|
10853
10989
|
/**
|
|
10854
10990
|
* Update project user sessions limit
|
|
10855
10991
|
*
|
|
10992
|
+
* 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.
|
|
10856
10993
|
*
|
|
10857
10994
|
* @param {string} projectId
|
|
10858
10995
|
* @param {number} limit
|
|
@@ -10882,6 +11019,7 @@
|
|
|
10882
11019
|
/**
|
|
10883
11020
|
* Update project memberships privacy attributes
|
|
10884
11021
|
*
|
|
11022
|
+
* 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.
|
|
10885
11023
|
*
|
|
10886
11024
|
* @param {string} projectId
|
|
10887
11025
|
* @param {boolean} userName
|
|
@@ -10925,6 +11063,7 @@
|
|
|
10925
11063
|
/**
|
|
10926
11064
|
* Update the mock numbers for the project
|
|
10927
11065
|
*
|
|
11066
|
+
* Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
|
|
10928
11067
|
*
|
|
10929
11068
|
* @param {string} projectId
|
|
10930
11069
|
* @param {object[]} numbers
|
|
@@ -10954,6 +11093,7 @@
|
|
|
10954
11093
|
/**
|
|
10955
11094
|
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
10956
11095
|
*
|
|
11096
|
+
* Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords.
|
|
10957
11097
|
*
|
|
10958
11098
|
* @param {string} projectId
|
|
10959
11099
|
* @param {boolean} enabled
|
|
@@ -10983,6 +11123,7 @@
|
|
|
10983
11123
|
/**
|
|
10984
11124
|
* Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
|
|
10985
11125
|
*
|
|
11126
|
+
* 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.
|
|
10986
11127
|
*
|
|
10987
11128
|
* @param {string} projectId
|
|
10988
11129
|
* @param {number} limit
|
|
@@ -11012,6 +11153,7 @@
|
|
|
11012
11153
|
/**
|
|
11013
11154
|
* Enable or disable checking user passwords for similarity with their personal data.
|
|
11014
11155
|
*
|
|
11156
|
+
* Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
|
|
11015
11157
|
*
|
|
11016
11158
|
* @param {string} projectId
|
|
11017
11159
|
* @param {boolean} enabled
|
|
@@ -11041,6 +11183,7 @@
|
|
|
11041
11183
|
/**
|
|
11042
11184
|
* Update project sessions emails
|
|
11043
11185
|
*
|
|
11186
|
+
* Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
|
|
11044
11187
|
*
|
|
11045
11188
|
* @param {string} projectId
|
|
11046
11189
|
* @param {boolean} alerts
|
|
@@ -11070,6 +11213,7 @@
|
|
|
11070
11213
|
/**
|
|
11071
11214
|
* Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
|
11072
11215
|
*
|
|
11216
|
+
* 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.
|
|
11073
11217
|
*
|
|
11074
11218
|
* @param {string} projectId
|
|
11075
11219
|
* @param {AuthMethod} method
|
|
@@ -11103,6 +11247,7 @@
|
|
|
11103
11247
|
/**
|
|
11104
11248
|
* Create JWT
|
|
11105
11249
|
*
|
|
11250
|
+
* Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
|
|
11106
11251
|
*
|
|
11107
11252
|
* @param {string} projectId
|
|
11108
11253
|
* @param {string[]} scopes
|
|
@@ -11136,6 +11281,7 @@
|
|
|
11136
11281
|
/**
|
|
11137
11282
|
* List keys
|
|
11138
11283
|
*
|
|
11284
|
+
* Get a list of all API keys from the current project.
|
|
11139
11285
|
*
|
|
11140
11286
|
* @param {string} projectId
|
|
11141
11287
|
* @throws {AppwriteException}
|
|
@@ -11158,6 +11304,7 @@
|
|
|
11158
11304
|
/**
|
|
11159
11305
|
* Create key
|
|
11160
11306
|
*
|
|
11307
|
+
* Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
|
|
11161
11308
|
*
|
|
11162
11309
|
* @param {string} projectId
|
|
11163
11310
|
* @param {string} name
|
|
@@ -11198,6 +11345,7 @@
|
|
|
11198
11345
|
/**
|
|
11199
11346
|
* Get key
|
|
11200
11347
|
*
|
|
11348
|
+
* Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
|
|
11201
11349
|
*
|
|
11202
11350
|
* @param {string} projectId
|
|
11203
11351
|
* @param {string} keyId
|
|
@@ -11224,6 +11372,7 @@
|
|
|
11224
11372
|
/**
|
|
11225
11373
|
* Update key
|
|
11226
11374
|
*
|
|
11375
|
+
* Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
|
|
11227
11376
|
*
|
|
11228
11377
|
* @param {string} projectId
|
|
11229
11378
|
* @param {string} keyId
|
|
@@ -11268,6 +11417,7 @@
|
|
|
11268
11417
|
/**
|
|
11269
11418
|
* Delete key
|
|
11270
11419
|
*
|
|
11420
|
+
* Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
|
|
11271
11421
|
*
|
|
11272
11422
|
* @param {string} projectId
|
|
11273
11423
|
* @param {string} keyId
|
|
@@ -11294,6 +11444,7 @@
|
|
|
11294
11444
|
/**
|
|
11295
11445
|
* Update project OAuth2
|
|
11296
11446
|
*
|
|
11447
|
+
* Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
|
|
11297
11448
|
*
|
|
11298
11449
|
* @param {string} projectId
|
|
11299
11450
|
* @param {OAuthProvider} provider
|
|
@@ -11335,6 +11486,7 @@
|
|
|
11335
11486
|
/**
|
|
11336
11487
|
* List platforms
|
|
11337
11488
|
*
|
|
11489
|
+
* Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
|
|
11338
11490
|
*
|
|
11339
11491
|
* @param {string} projectId
|
|
11340
11492
|
* @throws {AppwriteException}
|
|
@@ -11357,6 +11509,7 @@
|
|
|
11357
11509
|
/**
|
|
11358
11510
|
* Create platform
|
|
11359
11511
|
*
|
|
11512
|
+
* 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.
|
|
11360
11513
|
*
|
|
11361
11514
|
* @param {string} projectId
|
|
11362
11515
|
* @param {PlatformType} type
|
|
@@ -11405,6 +11558,7 @@
|
|
|
11405
11558
|
/**
|
|
11406
11559
|
* Get platform
|
|
11407
11560
|
*
|
|
11561
|
+
* Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations.
|
|
11408
11562
|
*
|
|
11409
11563
|
* @param {string} projectId
|
|
11410
11564
|
* @param {string} platformId
|
|
@@ -11431,6 +11585,7 @@
|
|
|
11431
11585
|
/**
|
|
11432
11586
|
* Update platform
|
|
11433
11587
|
*
|
|
11588
|
+
* Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname.
|
|
11434
11589
|
*
|
|
11435
11590
|
* @param {string} projectId
|
|
11436
11591
|
* @param {string} platformId
|
|
@@ -11476,6 +11631,7 @@
|
|
|
11476
11631
|
/**
|
|
11477
11632
|
* Delete platform
|
|
11478
11633
|
*
|
|
11634
|
+
* Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
|
|
11479
11635
|
*
|
|
11480
11636
|
* @param {string} projectId
|
|
11481
11637
|
* @param {string} platformId
|
|
@@ -11502,6 +11658,7 @@
|
|
|
11502
11658
|
/**
|
|
11503
11659
|
* Update service status
|
|
11504
11660
|
*
|
|
11661
|
+
* Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
|
|
11505
11662
|
*
|
|
11506
11663
|
* @param {string} projectId
|
|
11507
11664
|
* @param {ApiService} service
|
|
@@ -11538,6 +11695,7 @@
|
|
|
11538
11695
|
/**
|
|
11539
11696
|
* Update all service status
|
|
11540
11697
|
*
|
|
11698
|
+
* Update the status of all services. Use this endpoint to enable or disable all optional services at once.
|
|
11541
11699
|
*
|
|
11542
11700
|
* @param {string} projectId
|
|
11543
11701
|
* @param {boolean} status
|
|
@@ -11567,6 +11725,7 @@
|
|
|
11567
11725
|
/**
|
|
11568
11726
|
* Update SMTP
|
|
11569
11727
|
*
|
|
11728
|
+
* 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.
|
|
11570
11729
|
*
|
|
11571
11730
|
* @param {string} projectId
|
|
11572
11731
|
* @param {boolean} enabled
|
|
@@ -11628,6 +11787,7 @@
|
|
|
11628
11787
|
/**
|
|
11629
11788
|
* Create SMTP test
|
|
11630
11789
|
*
|
|
11790
|
+
* Send a test email to verify SMTP configuration.
|
|
11631
11791
|
*
|
|
11632
11792
|
* @param {string} projectId
|
|
11633
11793
|
* @param {string[]} emails
|
|
@@ -11698,6 +11858,7 @@
|
|
|
11698
11858
|
/**
|
|
11699
11859
|
* Update project team
|
|
11700
11860
|
*
|
|
11861
|
+
* Update the team ID of a project allowing for it to be transferred to another team.
|
|
11701
11862
|
*
|
|
11702
11863
|
* @param {string} projectId
|
|
11703
11864
|
* @param {string} teamId
|
|
@@ -11727,6 +11888,7 @@
|
|
|
11727
11888
|
/**
|
|
11728
11889
|
* Get custom email template
|
|
11729
11890
|
*
|
|
11891
|
+
* Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
|
|
11730
11892
|
*
|
|
11731
11893
|
* @param {string} projectId
|
|
11732
11894
|
* @param {EmailTemplateType} type
|
|
@@ -11757,6 +11919,7 @@
|
|
|
11757
11919
|
/**
|
|
11758
11920
|
* Update custom email templates
|
|
11759
11921
|
*
|
|
11922
|
+
* Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
|
|
11760
11923
|
*
|
|
11761
11924
|
* @param {string} projectId
|
|
11762
11925
|
* @param {EmailTemplateType} type
|
|
@@ -11767,7 +11930,7 @@
|
|
|
11767
11930
|
* @param {string} senderEmail
|
|
11768
11931
|
* @param {string} replyTo
|
|
11769
11932
|
* @throws {AppwriteException}
|
|
11770
|
-
* @returns {Promise<Models.
|
|
11933
|
+
* @returns {Promise<Models.EmailTemplate>}
|
|
11771
11934
|
*/
|
|
11772
11935
|
updateEmailTemplate(projectId, type, locale, subject, message, senderName, senderEmail, replyTo) {
|
|
11773
11936
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -11813,6 +11976,7 @@
|
|
|
11813
11976
|
/**
|
|
11814
11977
|
* Reset custom email template
|
|
11815
11978
|
*
|
|
11979
|
+
* Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
|
|
11816
11980
|
*
|
|
11817
11981
|
* @param {string} projectId
|
|
11818
11982
|
* @param {EmailTemplateType} type
|
|
@@ -11843,6 +12007,7 @@
|
|
|
11843
12007
|
/**
|
|
11844
12008
|
* Get custom SMS template
|
|
11845
12009
|
*
|
|
12010
|
+
* Get a custom SMS template for the specified locale and type returning it's contents.
|
|
11846
12011
|
*
|
|
11847
12012
|
* @param {string} projectId
|
|
11848
12013
|
* @param {SmsTemplateType} type
|
|
@@ -11873,6 +12038,7 @@
|
|
|
11873
12038
|
/**
|
|
11874
12039
|
* Update custom SMS template
|
|
11875
12040
|
*
|
|
12041
|
+
* Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
|
|
11876
12042
|
*
|
|
11877
12043
|
* @param {string} projectId
|
|
11878
12044
|
* @param {SmsTemplateType} type
|
|
@@ -11910,6 +12076,7 @@
|
|
|
11910
12076
|
/**
|
|
11911
12077
|
* Reset custom SMS template
|
|
11912
12078
|
*
|
|
12079
|
+
* Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
|
|
11913
12080
|
*
|
|
11914
12081
|
* @param {string} projectId
|
|
11915
12082
|
* @param {SmsTemplateType} type
|
|
@@ -11940,6 +12107,7 @@
|
|
|
11940
12107
|
/**
|
|
11941
12108
|
* List webhooks
|
|
11942
12109
|
*
|
|
12110
|
+
* Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
|
|
11943
12111
|
*
|
|
11944
12112
|
* @param {string} projectId
|
|
11945
12113
|
* @throws {AppwriteException}
|
|
@@ -11962,6 +12130,7 @@
|
|
|
11962
12130
|
/**
|
|
11963
12131
|
* Create webhook
|
|
11964
12132
|
*
|
|
12133
|
+
* Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
|
|
11965
12134
|
*
|
|
11966
12135
|
* @param {string} projectId
|
|
11967
12136
|
* @param {string} name
|
|
@@ -12024,6 +12193,7 @@
|
|
|
12024
12193
|
/**
|
|
12025
12194
|
* Get webhook
|
|
12026
12195
|
*
|
|
12196
|
+
* Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
|
|
12027
12197
|
*
|
|
12028
12198
|
* @param {string} projectId
|
|
12029
12199
|
* @param {string} webhookId
|
|
@@ -12050,6 +12220,7 @@
|
|
|
12050
12220
|
/**
|
|
12051
12221
|
* Update webhook
|
|
12052
12222
|
*
|
|
12223
|
+
* Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
|
|
12053
12224
|
*
|
|
12054
12225
|
* @param {string} projectId
|
|
12055
12226
|
* @param {string} webhookId
|
|
@@ -12116,6 +12287,7 @@
|
|
|
12116
12287
|
/**
|
|
12117
12288
|
* Delete webhook
|
|
12118
12289
|
*
|
|
12290
|
+
* Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
|
|
12119
12291
|
*
|
|
12120
12292
|
* @param {string} projectId
|
|
12121
12293
|
* @param {string} webhookId
|
|
@@ -12142,6 +12314,7 @@
|
|
|
12142
12314
|
/**
|
|
12143
12315
|
* Update webhook signature key
|
|
12144
12316
|
*
|
|
12317
|
+
* 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.
|
|
12145
12318
|
*
|
|
12146
12319
|
* @param {string} projectId
|
|
12147
12320
|
* @param {string} webhookId
|
|
@@ -12284,6 +12457,7 @@
|
|
|
12284
12457
|
/**
|
|
12285
12458
|
* Update rule verification status
|
|
12286
12459
|
*
|
|
12460
|
+
* 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.
|
|
12287
12461
|
*
|
|
12288
12462
|
* @param {string} ruleId
|
|
12289
12463
|
* @throws {AppwriteException}
|
|
@@ -12814,6 +12988,8 @@
|
|
|
12814
12988
|
/**
|
|
12815
12989
|
* Get storage usage stats
|
|
12816
12990
|
*
|
|
12991
|
+
* 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.
|
|
12992
|
+
|
|
12817
12993
|
*
|
|
12818
12994
|
* @param {StorageUsageRange} range
|
|
12819
12995
|
* @throws {AppwriteException}
|
|
@@ -12836,6 +13012,8 @@
|
|
|
12836
13012
|
/**
|
|
12837
13013
|
* Get bucket usage stats
|
|
12838
13014
|
*
|
|
13015
|
+
* 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.
|
|
13016
|
+
|
|
12839
13017
|
*
|
|
12840
13018
|
* @param {string} bucketId
|
|
12841
13019
|
* @param {StorageUsageRange} range
|
|
@@ -13802,6 +13980,8 @@
|
|
|
13802
13980
|
/**
|
|
13803
13981
|
* Get users usage stats
|
|
13804
13982
|
*
|
|
13983
|
+
* 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.
|
|
13984
|
+
|
|
13805
13985
|
*
|
|
13806
13986
|
* @param {UserUsageRange} range
|
|
13807
13987
|
* @throws {AppwriteException}
|
|
@@ -14048,7 +14228,7 @@
|
|
|
14048
14228
|
* @param {string} userId
|
|
14049
14229
|
* @param {AuthenticatorType} type
|
|
14050
14230
|
* @throws {AppwriteException}
|
|
14051
|
-
* @returns {Promise<
|
|
14231
|
+
* @returns {Promise<{}>}
|
|
14052
14232
|
*/
|
|
14053
14233
|
deleteMfaAuthenticator(userId, type) {
|
|
14054
14234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14703,6 +14883,7 @@
|
|
|
14703
14883
|
/**
|
|
14704
14884
|
* List repositories
|
|
14705
14885
|
*
|
|
14886
|
+
* 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.
|
|
14706
14887
|
*
|
|
14707
14888
|
* @param {string} installationId
|
|
14708
14889
|
* @param {string} search
|
|
@@ -14729,6 +14910,7 @@
|
|
|
14729
14910
|
/**
|
|
14730
14911
|
* Create repository
|
|
14731
14912
|
*
|
|
14913
|
+
* 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.
|
|
14732
14914
|
*
|
|
14733
14915
|
* @param {string} installationId
|
|
14734
14916
|
* @param {string} name
|
|
@@ -14765,6 +14947,7 @@
|
|
|
14765
14947
|
/**
|
|
14766
14948
|
* Get repository
|
|
14767
14949
|
*
|
|
14950
|
+
* 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.
|
|
14768
14951
|
*
|
|
14769
14952
|
* @param {string} installationId
|
|
14770
14953
|
* @param {string} providerRepositoryId
|
|
@@ -14791,6 +14974,8 @@
|
|
|
14791
14974
|
/**
|
|
14792
14975
|
* List repository branches
|
|
14793
14976
|
*
|
|
14977
|
+
* 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.
|
|
14978
|
+
|
|
14794
14979
|
*
|
|
14795
14980
|
* @param {string} installationId
|
|
14796
14981
|
* @param {string} providerRepositoryId
|
|
@@ -14817,6 +15002,8 @@
|
|
|
14817
15002
|
/**
|
|
14818
15003
|
* Get files and directories of a VCS repository
|
|
14819
15004
|
*
|
|
15005
|
+
* 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.
|
|
15006
|
+
|
|
14820
15007
|
*
|
|
14821
15008
|
* @param {string} installationId
|
|
14822
15009
|
* @param {string} providerRepositoryId
|
|
@@ -14847,6 +15034,7 @@
|
|
|
14847
15034
|
/**
|
|
14848
15035
|
* Detect runtime settings from source code
|
|
14849
15036
|
*
|
|
15037
|
+
* 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.
|
|
14850
15038
|
*
|
|
14851
15039
|
* @param {string} installationId
|
|
14852
15040
|
* @param {string} providerRepositoryId
|
|
@@ -14877,6 +15065,7 @@
|
|
|
14877
15065
|
/**
|
|
14878
15066
|
* Authorize external deployment
|
|
14879
15067
|
*
|
|
15068
|
+
* 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.
|
|
14880
15069
|
*
|
|
14881
15070
|
* @param {string} installationId
|
|
14882
15071
|
* @param {string} repositoryId
|
|
@@ -14910,6 +15099,8 @@
|
|
|
14910
15099
|
/**
|
|
14911
15100
|
* List installations
|
|
14912
15101
|
*
|
|
15102
|
+
* List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
|
|
15103
|
+
|
|
14913
15104
|
*
|
|
14914
15105
|
* @param {string[]} queries
|
|
14915
15106
|
* @param {string} search
|
|
@@ -14936,6 +15127,7 @@
|
|
|
14936
15127
|
/**
|
|
14937
15128
|
* Get installation
|
|
14938
15129
|
*
|
|
15130
|
+
* Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
|
|
14939
15131
|
*
|
|
14940
15132
|
* @param {string} installationId
|
|
14941
15133
|
* @throws {AppwriteException}
|
|
@@ -14958,6 +15150,7 @@
|
|
|
14958
15150
|
/**
|
|
14959
15151
|
* Delete installation
|
|
14960
15152
|
*
|
|
15153
|
+
* Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
|
|
14961
15154
|
*
|
|
14962
15155
|
* @param {string} installationId
|
|
14963
15156
|
* @throws {AppwriteException}
|
|
@@ -15582,6 +15775,12 @@
|
|
|
15582
15775
|
Name["V1migrations"] = "v1-migrations";
|
|
15583
15776
|
})(exports.Name || (exports.Name = {}));
|
|
15584
15777
|
|
|
15778
|
+
exports.MessagePriority = void 0;
|
|
15779
|
+
(function (MessagePriority) {
|
|
15780
|
+
MessagePriority["Normal"] = "normal";
|
|
15781
|
+
MessagePriority["High"] = "high";
|
|
15782
|
+
})(exports.MessagePriority || (exports.MessagePriority = {}));
|
|
15783
|
+
|
|
15585
15784
|
exports.SmtpEncryption = void 0;
|
|
15586
15785
|
(function (SmtpEncryption) {
|
|
15587
15786
|
SmtpEncryption["None"] = "none";
|
|
@@ -15988,6 +16187,7 @@
|
|
|
15988
16187
|
ImageFormat["Gif"] = "gif";
|
|
15989
16188
|
ImageFormat["Png"] = "png";
|
|
15990
16189
|
ImageFormat["Webp"] = "webp";
|
|
16190
|
+
ImageFormat["Heic"] = "heic";
|
|
15991
16191
|
ImageFormat["Avif"] = "avif";
|
|
15992
16192
|
})(exports.ImageFormat || (exports.ImageFormat = {}));
|
|
15993
16193
|
|