@appwrite.io/console 1.2.0 → 1.2.2

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/dist/esm/sdk.js CHANGED
@@ -278,7 +278,7 @@ class Client {
278
278
  'x-sdk-name': 'Console',
279
279
  'x-sdk-platform': 'console',
280
280
  'x-sdk-language': 'web',
281
- 'x-sdk-version': '1.1.0',
281
+ 'x-sdk-version': '1.2.2',
282
282
  'X-Appwrite-Response-Format': '1.6.0',
283
283
  };
284
284
  this.realtime = {
@@ -555,6 +555,7 @@ class Client {
555
555
  let options = {
556
556
  method,
557
557
  headers,
558
+ credentials: 'include',
558
559
  };
559
560
  if (method === 'GET') {
560
561
  for (const [key, value] of Object.entries(Client.flatten(params))) {
@@ -815,7 +816,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
815
816
  });
816
817
  }
817
818
  /**
818
- * List Identities
819
+ * List identities
819
820
  *
820
821
  * Get the list of identities for the currently logged in user.
821
822
  *
@@ -929,7 +930,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
929
930
  });
930
931
  }
931
932
  /**
932
- * Create Authenticator
933
+ * Create authenticator
933
934
  *
934
935
  * Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
935
936
  *
@@ -952,7 +953,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
952
953
  });
953
954
  }
954
955
  /**
955
- * Verify Authenticator
956
+ * Verify authenticator
956
957
  *
957
958
  * Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
958
959
  *
@@ -982,7 +983,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
982
983
  });
983
984
  }
984
985
  /**
985
- * Delete Authenticator
986
+ * Delete authenticator
986
987
  *
987
988
  * Delete an authenticator for a user by ID.
988
989
  *
@@ -1005,7 +1006,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1005
1006
  });
1006
1007
  }
1007
1008
  /**
1008
- * Create MFA Challenge
1009
+ * Create MFA challenge
1009
1010
  *
1010
1011
  * Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
1011
1012
  *
@@ -1031,7 +1032,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1031
1032
  });
1032
1033
  }
1033
1034
  /**
1034
- * Create MFA Challenge (confirmation)
1035
+ * Create MFA challenge (confirmation)
1035
1036
  *
1036
1037
  * Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
1037
1038
  *
@@ -1064,7 +1065,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1064
1065
  });
1065
1066
  }
1066
1067
  /**
1067
- * List Factors
1068
+ * List factors
1068
1069
  *
1069
1070
  * List the factors available on the account to be used as a MFA challange.
1070
1071
  *
@@ -1083,7 +1084,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1083
1084
  });
1084
1085
  }
1085
1086
  /**
1086
- * Get MFA Recovery Codes
1087
+ * Get MFA recovery codes
1087
1088
  *
1088
1089
  * Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.
1089
1090
  *
@@ -1102,7 +1103,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1102
1103
  });
1103
1104
  }
1104
1105
  /**
1105
- * Create MFA Recovery Codes
1106
+ * Create MFA recovery codes
1106
1107
  *
1107
1108
  * Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
1108
1109
  *
@@ -1121,7 +1122,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1121
1122
  });
1122
1123
  }
1123
1124
  /**
1124
- * Regenerate MFA Recovery Codes
1125
+ * Regenerate MFA recovery codes
1125
1126
  *
1126
1127
  * Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.
1127
1128
  *
@@ -2331,7 +2332,7 @@ class Assistant {
2331
2332
  this.client = client;
2332
2333
  }
2333
2334
  /**
2334
- * Ask Query
2335
+ * Ask query
2335
2336
  *
2336
2337
  *
2337
2338
  * @param {string} prompt
@@ -5932,7 +5933,7 @@ class Locale {
5932
5933
  });
5933
5934
  }
5934
5935
  /**
5935
- * List Locale Codes
5936
+ * List locale codes
5936
5937
  *
5937
5938
  * List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
5938
5939
  *
@@ -8082,7 +8083,7 @@ class Migrations {
8082
8083
  this.client = client;
8083
8084
  }
8084
8085
  /**
8085
- * List Migrations
8086
+ * List migrations
8086
8087
  *
8087
8088
  *
8088
8089
  * @param {string[]} queries
@@ -8108,7 +8109,7 @@ class Migrations {
8108
8109
  });
8109
8110
  }
8110
8111
  /**
8111
- * Migrate Appwrite Data
8112
+ * Migrate Appwrite data
8112
8113
  *
8113
8114
  *
8114
8115
  * @param {string[]} resources
@@ -8154,7 +8155,7 @@ class Migrations {
8154
8155
  });
8155
8156
  }
8156
8157
  /**
8157
- * Generate a report on Appwrite Data
8158
+ * Generate a report on Appwrite data
8158
8159
  *
8159
8160
  *
8160
8161
  * @param {string[]} resources
@@ -8200,7 +8201,7 @@ class Migrations {
8200
8201
  });
8201
8202
  }
8202
8203
  /**
8203
- * Migrate Firebase Data (Service Account)
8204
+ * Migrate Firebase data (Service Account)
8204
8205
  *
8205
8206
  *
8206
8207
  * @param {string[]} resources
@@ -8232,7 +8233,7 @@ class Migrations {
8232
8233
  });
8233
8234
  }
8234
8235
  /**
8235
- * Revoke Appwrite's authorization to access Firebase Projects
8236
+ * Revoke Appwrite's authorization to access Firebase projects
8236
8237
  *
8237
8238
  *
8238
8239
  * @throws {AppwriteException}
@@ -8250,7 +8251,7 @@ class Migrations {
8250
8251
  });
8251
8252
  }
8252
8253
  /**
8253
- * Migrate Firebase Data (OAuth)
8254
+ * Migrate Firebase data (OAuth)
8254
8255
  *
8255
8256
  *
8256
8257
  * @param {string[]} resources
@@ -8282,7 +8283,7 @@ class Migrations {
8282
8283
  });
8283
8284
  }
8284
8285
  /**
8285
- * List Firebase Projects
8286
+ * List Firebase projects
8286
8287
  *
8287
8288
  *
8288
8289
  * @throws {AppwriteException}
@@ -8300,7 +8301,7 @@ class Migrations {
8300
8301
  });
8301
8302
  }
8302
8303
  /**
8303
- * Generate a report on Firebase Data
8304
+ * Generate a report on Firebase data
8304
8305
  *
8305
8306
  *
8306
8307
  * @param {string[]} resources
@@ -8332,7 +8333,7 @@ class Migrations {
8332
8333
  });
8333
8334
  }
8334
8335
  /**
8335
- * Generate a report on Firebase Data using OAuth
8336
+ * Generate a report on Firebase data using OAuth
8336
8337
  *
8337
8338
  *
8338
8339
  * @param {string[]} resources
@@ -8364,7 +8365,7 @@ class Migrations {
8364
8365
  });
8365
8366
  }
8366
8367
  /**
8367
- * Migrate NHost Data
8368
+ * Migrate NHost data
8368
8369
  *
8369
8370
  *
8370
8371
  * @param {string[]} resources
@@ -8506,7 +8507,7 @@ class Migrations {
8506
8507
  });
8507
8508
  }
8508
8509
  /**
8509
- * Migrate Supabase Data
8510
+ * Migrate Supabase data
8510
8511
  *
8511
8512
  *
8512
8513
  * @param {string[]} resources
@@ -8634,7 +8635,7 @@ class Migrations {
8634
8635
  });
8635
8636
  }
8636
8637
  /**
8637
- * Get Migration
8638
+ * Get migration
8638
8639
  *
8639
8640
  *
8640
8641
  * @param {string} migrationId
@@ -8656,7 +8657,7 @@ class Migrations {
8656
8657
  });
8657
8658
  }
8658
8659
  /**
8659
- * Retry Migration
8660
+ * Retry migration
8660
8661
  *
8661
8662
  *
8662
8663
  * @param {string} migrationId
@@ -8678,7 +8679,7 @@ class Migrations {
8678
8679
  });
8679
8680
  }
8680
8681
  /**
8681
- * Delete Migration
8682
+ * Delete migration
8682
8683
  *
8683
8684
  *
8684
8685
  * @param {string} migrationId
@@ -8742,7 +8743,7 @@ class Project {
8742
8743
  });
8743
8744
  }
8744
8745
  /**
8745
- * List Variables
8746
+ * List variables
8746
8747
  *
8747
8748
  * Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.
8748
8749
  *
@@ -8761,7 +8762,7 @@ class Project {
8761
8762
  });
8762
8763
  }
8763
8764
  /**
8764
- * Create Variable
8765
+ * Create variable
8765
8766
  *
8766
8767
  * Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.
8767
8768
  *
@@ -8794,7 +8795,7 @@ class Project {
8794
8795
  });
8795
8796
  }
8796
8797
  /**
8797
- * Get Variable
8798
+ * Get variable
8798
8799
  *
8799
8800
  * Get a project variable by its unique ID.
8800
8801
  *
@@ -8817,7 +8818,7 @@ class Project {
8817
8818
  });
8818
8819
  }
8819
8820
  /**
8820
- * Update Variable
8821
+ * Update variable
8821
8822
  *
8822
8823
  * Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.
8823
8824
  *
@@ -8851,7 +8852,7 @@ class Project {
8851
8852
  });
8852
8853
  }
8853
8854
  /**
8854
- * Delete Variable
8855
+ * Delete variable
8855
8856
  *
8856
8857
  * Delete a project variable by its unique ID.
8857
8858
  *
@@ -10495,7 +10496,7 @@ class Proxy {
10495
10496
  this.client = client;
10496
10497
  }
10497
10498
  /**
10498
- * List Rules
10499
+ * List rules
10499
10500
  *
10500
10501
  * Get a list of all the proxy rules. You can use the query params to filter your results.
10501
10502
  *
@@ -10522,7 +10523,7 @@ class Proxy {
10522
10523
  });
10523
10524
  }
10524
10525
  /**
10525
- * Create Rule
10526
+ * Create rule
10526
10527
  *
10527
10528
  * Create a new proxy rule.
10528
10529
  *
@@ -10559,7 +10560,7 @@ class Proxy {
10559
10560
  });
10560
10561
  }
10561
10562
  /**
10562
- * Get Rule
10563
+ * Get rule
10563
10564
  *
10564
10565
  * Get a proxy rule by its unique ID.
10565
10566
  *
@@ -10582,7 +10583,7 @@ class Proxy {
10582
10583
  });
10583
10584
  }
10584
10585
  /**
10585
- * Delete Rule
10586
+ * Delete rule
10586
10587
  *
10587
10588
  * Delete a proxy rule by its unique ID.
10588
10589
  *
@@ -10605,7 +10606,7 @@ class Proxy {
10605
10606
  });
10606
10607
  }
10607
10608
  /**
10608
- * Update Rule Verification Status
10609
+ * Update rule verification status
10609
10610
  *
10610
10611
  *
10611
10612
  * @param {string} ruleId
@@ -10974,7 +10975,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
10974
10975
  });
10975
10976
  }
10976
10977
  /**
10977
- * Delete File
10978
+ * Delete file
10978
10979
  *
10979
10980
  * Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
10980
10981
  *
@@ -11793,7 +11794,7 @@ class Users {
11793
11794
  });
11794
11795
  }
11795
11796
  /**
11796
- * List Identities
11797
+ * List identities
11797
11798
  *
11798
11799
  * Get identities for all users.
11799
11800
  *
@@ -12364,7 +12365,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12364
12365
  });
12365
12366
  }
12366
12367
  /**
12367
- * Delete Authenticator
12368
+ * Delete authenticator
12368
12369
  *
12369
12370
  * Delete an authenticator app.
12370
12371
  *
@@ -12391,7 +12392,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12391
12392
  });
12392
12393
  }
12393
12394
  /**
12394
- * List Factors
12395
+ * List factors
12395
12396
  *
12396
12397
  * List the factors available on the account to be used as a MFA challange.
12397
12398
  *
@@ -12414,7 +12415,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12414
12415
  });
12415
12416
  }
12416
12417
  /**
12417
- * Get MFA Recovery Codes
12418
+ * Get MFA recovery codes
12418
12419
  *
12419
12420
  * Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
12420
12421
  *
@@ -12437,7 +12438,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12437
12438
  });
12438
12439
  }
12439
12440
  /**
12440
- * Regenerate MFA Recovery Codes
12441
+ * Regenerate MFA recovery codes
12441
12442
  *
12442
12443
  * Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
12443
12444
  *
@@ -12460,7 +12461,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12460
12461
  });
12461
12462
  }
12462
12463
  /**
12463
- * Create MFA Recovery Codes
12464
+ * Create MFA recovery codes
12464
12465
  *
12465
12466
  * Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
12466
12467
  *
@@ -12754,7 +12755,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12754
12755
  });
12755
12756
  }
12756
12757
  /**
12757
- * List User Targets
12758
+ * List user targets
12758
12759
  *
12759
12760
  * List the messaging targets that are associated with a user.
12760
12761
  *
@@ -12781,7 +12782,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12781
12782
  });
12782
12783
  }
12783
12784
  /**
12784
- * Create User Target
12785
+ * Create user target
12785
12786
  *
12786
12787
  * Create a messaging target.
12787
12788
  *
@@ -12833,7 +12834,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12833
12834
  });
12834
12835
  }
12835
12836
  /**
12836
- * Get User Target
12837
+ * Get user target
12837
12838
  *
12838
12839
  * Get a user's push notification target by ID.
12839
12840
  *
@@ -12860,7 +12861,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12860
12861
  });
12861
12862
  }
12862
12863
  /**
12863
- * Update User target
12864
+ * Update user target
12864
12865
  *
12865
12866
  * Update a messaging target.
12866
12867
  *
@@ -13024,7 +13025,7 @@ class Vcs {
13024
13025
  this.client = client;
13025
13026
  }
13026
13027
  /**
13027
- * List Repositories
13028
+ * List repositories
13028
13029
  *
13029
13030
  *
13030
13031
  * @param {string} installationId
@@ -13112,7 +13113,7 @@ class Vcs {
13112
13113
  });
13113
13114
  }
13114
13115
  /**
13115
- * List Repository Branches
13116
+ * List repository branches
13116
13117
  *
13117
13118
  *
13118
13119
  * @param {string} installationId
@@ -13279,7 +13280,7 @@ class Vcs {
13279
13280
  });
13280
13281
  }
13281
13282
  /**
13282
- * Delete Installation
13283
+ * Delete installation
13283
13284
  *
13284
13285
  *
13285
13286
  * @param {string} installationId
@@ -13820,6 +13821,7 @@ var Runtime;
13820
13821
  Runtime["Node190"] = "node-19.0";
13821
13822
  Runtime["Node200"] = "node-20.0";
13822
13823
  Runtime["Node210"] = "node-21.0";
13824
+ Runtime["Node22"] = "node-22";
13823
13825
  Runtime["Php80"] = "php-8.0";
13824
13826
  Runtime["Php81"] = "php-8.1";
13825
13827
  Runtime["Php82"] = "php-8.2";
@@ -13834,7 +13836,12 @@ var Runtime;
13834
13836
  Runtime["Python311"] = "python-3.11";
13835
13837
  Runtime["Python312"] = "python-3.12";
13836
13838
  Runtime["Pythonml311"] = "python-ml-3.11";
13839
+ Runtime["Deno121"] = "deno-1.21";
13840
+ Runtime["Deno124"] = "deno-1.24";
13841
+ Runtime["Deno135"] = "deno-1.35";
13837
13842
  Runtime["Deno140"] = "deno-1.40";
13843
+ Runtime["Deno146"] = "deno-1.46";
13844
+ Runtime["Deno20"] = "deno-2.0";
13838
13845
  Runtime["Dart215"] = "dart-2.15";
13839
13846
  Runtime["Dart216"] = "dart-2.16";
13840
13847
  Runtime["Dart217"] = "dart-2.17";
@@ -13842,23 +13849,28 @@ var Runtime;
13842
13849
  Runtime["Dart30"] = "dart-3.0";
13843
13850
  Runtime["Dart31"] = "dart-3.1";
13844
13851
  Runtime["Dart33"] = "dart-3.3";
13845
- Runtime["Dotnet31"] = "dotnet-3.1";
13852
+ Runtime["Dart35"] = "dart-3.5";
13846
13853
  Runtime["Dotnet60"] = "dotnet-6.0";
13847
13854
  Runtime["Dotnet70"] = "dotnet-7.0";
13855
+ Runtime["Dotnet80"] = "dotnet-8.0";
13848
13856
  Runtime["Java80"] = "java-8.0";
13849
13857
  Runtime["Java110"] = "java-11.0";
13850
13858
  Runtime["Java170"] = "java-17.0";
13851
13859
  Runtime["Java180"] = "java-18.0";
13852
13860
  Runtime["Java210"] = "java-21.0";
13861
+ Runtime["Java22"] = "java-22";
13853
13862
  Runtime["Swift55"] = "swift-5.5";
13854
13863
  Runtime["Swift58"] = "swift-5.8";
13855
13864
  Runtime["Swift59"] = "swift-5.9";
13865
+ Runtime["Swift510"] = "swift-5.10";
13856
13866
  Runtime["Kotlin16"] = "kotlin-1.6";
13857
13867
  Runtime["Kotlin18"] = "kotlin-1.8";
13858
13868
  Runtime["Kotlin19"] = "kotlin-1.9";
13869
+ Runtime["Kotlin20"] = "kotlin-2.0";
13859
13870
  Runtime["Cpp17"] = "cpp-17";
13860
13871
  Runtime["Cpp20"] = "cpp-20";
13861
13872
  Runtime["Bun10"] = "bun-1.0";
13873
+ Runtime["Bun11"] = "bun-1.1";
13862
13874
  Runtime["Go123"] = "go-1.23";
13863
13875
  })(Runtime || (Runtime = {}));
13864
13876
 
@@ -13969,6 +13981,7 @@ var ApiService;
13969
13981
  var SMTPSecure;
13970
13982
  (function (SMTPSecure) {
13971
13983
  SMTPSecure["Tls"] = "tls";
13984
+ SMTPSecure["Ssl"] = "ssl";
13972
13985
  })(SMTPSecure || (SMTPSecure = {}));
13973
13986
 
13974
13987
  var EmailTemplateType;
@@ -14293,6 +14306,7 @@ var ImageFormat;
14293
14306
  ImageFormat["Gif"] = "gif";
14294
14307
  ImageFormat["Png"] = "png";
14295
14308
  ImageFormat["Webp"] = "webp";
14309
+ ImageFormat["Avif"] = "avif";
14296
14310
  })(ImageFormat || (ImageFormat = {}));
14297
14311
 
14298
14312
  var StorageUsageRange;