@appwrite.io/console 1.1.0 → 1.2.1

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 CHANGED
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.1.0"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.2.1"></script>
37
37
  ```
38
38
 
39
39
 
package/dist/cjs/sdk.js CHANGED
@@ -280,7 +280,7 @@ class Client {
280
280
  'x-sdk-name': 'Console',
281
281
  'x-sdk-platform': 'console',
282
282
  'x-sdk-language': 'web',
283
- 'x-sdk-version': '1.1.0',
283
+ 'x-sdk-version': '1.2.1',
284
284
  'X-Appwrite-Response-Format': '1.6.0',
285
285
  };
286
286
  this.realtime = {
@@ -557,6 +557,7 @@ class Client {
557
557
  let options = {
558
558
  method,
559
559
  headers,
560
+ credentials: 'include',
560
561
  };
561
562
  if (method === 'GET') {
562
563
  for (const [key, value] of Object.entries(Client.flatten(params))) {
@@ -817,7 +818,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
817
818
  });
818
819
  }
819
820
  /**
820
- * List Identities
821
+ * List identities
821
822
  *
822
823
  * Get the list of identities for the currently logged in user.
823
824
  *
@@ -931,7 +932,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
931
932
  });
932
933
  }
933
934
  /**
934
- * Create Authenticator
935
+ * Create authenticator
935
936
  *
936
937
  * 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.
937
938
  *
@@ -954,7 +955,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
954
955
  });
955
956
  }
956
957
  /**
957
- * Verify Authenticator
958
+ * Verify authenticator
958
959
  *
959
960
  * Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
960
961
  *
@@ -984,7 +985,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
984
985
  });
985
986
  }
986
987
  /**
987
- * Delete Authenticator
988
+ * Delete authenticator
988
989
  *
989
990
  * Delete an authenticator for a user by ID.
990
991
  *
@@ -1007,7 +1008,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1007
1008
  });
1008
1009
  }
1009
1010
  /**
1010
- * Create MFA Challenge
1011
+ * Create MFA challenge
1011
1012
  *
1012
1013
  * Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
1013
1014
  *
@@ -1033,7 +1034,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1033
1034
  });
1034
1035
  }
1035
1036
  /**
1036
- * Create MFA Challenge (confirmation)
1037
+ * Create MFA challenge (confirmation)
1037
1038
  *
1038
1039
  * 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.
1039
1040
  *
@@ -1066,7 +1067,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1066
1067
  });
1067
1068
  }
1068
1069
  /**
1069
- * List Factors
1070
+ * List factors
1070
1071
  *
1071
1072
  * List the factors available on the account to be used as a MFA challange.
1072
1073
  *
@@ -1085,7 +1086,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1085
1086
  });
1086
1087
  }
1087
1088
  /**
1088
- * Get MFA Recovery Codes
1089
+ * Get MFA recovery codes
1089
1090
  *
1090
1091
  * 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.
1091
1092
  *
@@ -1104,7 +1105,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1104
1105
  });
1105
1106
  }
1106
1107
  /**
1107
- * Create MFA Recovery Codes
1108
+ * Create MFA recovery codes
1108
1109
  *
1109
1110
  * Generate recovery codes as backup for MFA flow. It&#039;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.
1110
1111
  *
@@ -1123,7 +1124,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1123
1124
  });
1124
1125
  }
1125
1126
  /**
1126
- * Regenerate MFA Recovery Codes
1127
+ * Regenerate MFA recovery codes
1127
1128
  *
1128
1129
  * 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.
1129
1130
  *
@@ -2333,7 +2334,7 @@ class Assistant {
2333
2334
  this.client = client;
2334
2335
  }
2335
2336
  /**
2336
- * Ask Query
2337
+ * Ask query
2337
2338
  *
2338
2339
  *
2339
2340
  * @param {string} prompt
@@ -5934,7 +5935,7 @@ class Locale {
5934
5935
  });
5935
5936
  }
5936
5937
  /**
5937
- * List Locale Codes
5938
+ * List locale codes
5938
5939
  *
5939
5940
  * List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
5940
5941
  *
@@ -8084,7 +8085,7 @@ class Migrations {
8084
8085
  this.client = client;
8085
8086
  }
8086
8087
  /**
8087
- * List Migrations
8088
+ * List migrations
8088
8089
  *
8089
8090
  *
8090
8091
  * @param {string[]} queries
@@ -8110,7 +8111,7 @@ class Migrations {
8110
8111
  });
8111
8112
  }
8112
8113
  /**
8113
- * Migrate Appwrite Data
8114
+ * Migrate Appwrite data
8114
8115
  *
8115
8116
  *
8116
8117
  * @param {string[]} resources
@@ -8156,7 +8157,7 @@ class Migrations {
8156
8157
  });
8157
8158
  }
8158
8159
  /**
8159
- * Generate a report on Appwrite Data
8160
+ * Generate a report on Appwrite data
8160
8161
  *
8161
8162
  *
8162
8163
  * @param {string[]} resources
@@ -8202,7 +8203,7 @@ class Migrations {
8202
8203
  });
8203
8204
  }
8204
8205
  /**
8205
- * Migrate Firebase Data (Service Account)
8206
+ * Migrate Firebase data (Service Account)
8206
8207
  *
8207
8208
  *
8208
8209
  * @param {string[]} resources
@@ -8234,7 +8235,7 @@ class Migrations {
8234
8235
  });
8235
8236
  }
8236
8237
  /**
8237
- * Revoke Appwrite&#039;s authorization to access Firebase Projects
8238
+ * Revoke Appwrite&#039;s authorization to access Firebase projects
8238
8239
  *
8239
8240
  *
8240
8241
  * @throws {AppwriteException}
@@ -8252,7 +8253,7 @@ class Migrations {
8252
8253
  });
8253
8254
  }
8254
8255
  /**
8255
- * Migrate Firebase Data (OAuth)
8256
+ * Migrate Firebase data (OAuth)
8256
8257
  *
8257
8258
  *
8258
8259
  * @param {string[]} resources
@@ -8284,7 +8285,7 @@ class Migrations {
8284
8285
  });
8285
8286
  }
8286
8287
  /**
8287
- * List Firebase Projects
8288
+ * List Firebase projects
8288
8289
  *
8289
8290
  *
8290
8291
  * @throws {AppwriteException}
@@ -8302,7 +8303,7 @@ class Migrations {
8302
8303
  });
8303
8304
  }
8304
8305
  /**
8305
- * Generate a report on Firebase Data
8306
+ * Generate a report on Firebase data
8306
8307
  *
8307
8308
  *
8308
8309
  * @param {string[]} resources
@@ -8334,7 +8335,7 @@ class Migrations {
8334
8335
  });
8335
8336
  }
8336
8337
  /**
8337
- * Generate a report on Firebase Data using OAuth
8338
+ * Generate a report on Firebase data using OAuth
8338
8339
  *
8339
8340
  *
8340
8341
  * @param {string[]} resources
@@ -8366,7 +8367,7 @@ class Migrations {
8366
8367
  });
8367
8368
  }
8368
8369
  /**
8369
- * Migrate NHost Data
8370
+ * Migrate NHost data
8370
8371
  *
8371
8372
  *
8372
8373
  * @param {string[]} resources
@@ -8508,7 +8509,7 @@ class Migrations {
8508
8509
  });
8509
8510
  }
8510
8511
  /**
8511
- * Migrate Supabase Data
8512
+ * Migrate Supabase data
8512
8513
  *
8513
8514
  *
8514
8515
  * @param {string[]} resources
@@ -8636,7 +8637,7 @@ class Migrations {
8636
8637
  });
8637
8638
  }
8638
8639
  /**
8639
- * Get Migration
8640
+ * Get migration
8640
8641
  *
8641
8642
  *
8642
8643
  * @param {string} migrationId
@@ -8658,7 +8659,7 @@ class Migrations {
8658
8659
  });
8659
8660
  }
8660
8661
  /**
8661
- * Retry Migration
8662
+ * Retry migration
8662
8663
  *
8663
8664
  *
8664
8665
  * @param {string} migrationId
@@ -8680,7 +8681,7 @@ class Migrations {
8680
8681
  });
8681
8682
  }
8682
8683
  /**
8683
- * Delete Migration
8684
+ * Delete migration
8684
8685
  *
8685
8686
  *
8686
8687
  * @param {string} migrationId
@@ -8744,7 +8745,7 @@ class Project {
8744
8745
  });
8745
8746
  }
8746
8747
  /**
8747
- * List Variables
8748
+ * List variables
8748
8749
  *
8749
8750
  * Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.
8750
8751
  *
@@ -8763,7 +8764,7 @@ class Project {
8763
8764
  });
8764
8765
  }
8765
8766
  /**
8766
- * Create Variable
8767
+ * Create variable
8767
8768
  *
8768
8769
  * Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.
8769
8770
  *
@@ -8796,7 +8797,7 @@ class Project {
8796
8797
  });
8797
8798
  }
8798
8799
  /**
8799
- * Get Variable
8800
+ * Get variable
8800
8801
  *
8801
8802
  * Get a project variable by its unique ID.
8802
8803
  *
@@ -8819,7 +8820,7 @@ class Project {
8819
8820
  });
8820
8821
  }
8821
8822
  /**
8822
- * Update Variable
8823
+ * Update variable
8823
8824
  *
8824
8825
  * Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.
8825
8826
  *
@@ -8853,7 +8854,7 @@ class Project {
8853
8854
  });
8854
8855
  }
8855
8856
  /**
8856
- * Delete Variable
8857
+ * Delete variable
8857
8858
  *
8858
8859
  * Delete a project variable by its unique ID.
8859
8860
  *
@@ -10497,7 +10498,7 @@ class Proxy {
10497
10498
  this.client = client;
10498
10499
  }
10499
10500
  /**
10500
- * List Rules
10501
+ * List rules
10501
10502
  *
10502
10503
  * Get a list of all the proxy rules. You can use the query params to filter your results.
10503
10504
  *
@@ -10524,7 +10525,7 @@ class Proxy {
10524
10525
  });
10525
10526
  }
10526
10527
  /**
10527
- * Create Rule
10528
+ * Create rule
10528
10529
  *
10529
10530
  * Create a new proxy rule.
10530
10531
  *
@@ -10561,7 +10562,7 @@ class Proxy {
10561
10562
  });
10562
10563
  }
10563
10564
  /**
10564
- * Get Rule
10565
+ * Get rule
10565
10566
  *
10566
10567
  * Get a proxy rule by its unique ID.
10567
10568
  *
@@ -10584,7 +10585,7 @@ class Proxy {
10584
10585
  });
10585
10586
  }
10586
10587
  /**
10587
- * Delete Rule
10588
+ * Delete rule
10588
10589
  *
10589
10590
  * Delete a proxy rule by its unique ID.
10590
10591
  *
@@ -10607,7 +10608,7 @@ class Proxy {
10607
10608
  });
10608
10609
  }
10609
10610
  /**
10610
- * Update Rule Verification Status
10611
+ * Update rule verification status
10611
10612
  *
10612
10613
  *
10613
10614
  * @param {string} ruleId
@@ -10976,7 +10977,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
10976
10977
  });
10977
10978
  }
10978
10979
  /**
10979
- * Delete File
10980
+ * Delete file
10980
10981
  *
10981
10982
  * Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
10982
10983
  *
@@ -11795,7 +11796,7 @@ class Users {
11795
11796
  });
11796
11797
  }
11797
11798
  /**
11798
- * List Identities
11799
+ * List identities
11799
11800
  *
11800
11801
  * Get identities for all users.
11801
11802
  *
@@ -12366,7 +12367,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12366
12367
  });
12367
12368
  }
12368
12369
  /**
12369
- * Delete Authenticator
12370
+ * Delete authenticator
12370
12371
  *
12371
12372
  * Delete an authenticator app.
12372
12373
  *
@@ -12393,7 +12394,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12393
12394
  });
12394
12395
  }
12395
12396
  /**
12396
- * List Factors
12397
+ * List factors
12397
12398
  *
12398
12399
  * List the factors available on the account to be used as a MFA challange.
12399
12400
  *
@@ -12416,7 +12417,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12416
12417
  });
12417
12418
  }
12418
12419
  /**
12419
- * Get MFA Recovery Codes
12420
+ * Get MFA recovery codes
12420
12421
  *
12421
12422
  * 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.
12422
12423
  *
@@ -12439,7 +12440,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12439
12440
  });
12440
12441
  }
12441
12442
  /**
12442
- * Regenerate MFA Recovery Codes
12443
+ * Regenerate MFA recovery codes
12443
12444
  *
12444
12445
  * 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.
12445
12446
  *
@@ -12462,7 +12463,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
12462
12463
  });
12463
12464
  }
12464
12465
  /**
12465
- * Create MFA Recovery Codes
12466
+ * Create MFA recovery codes
12466
12467
  *
12467
12468
  * 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.
12468
12469
  *
@@ -12756,7 +12757,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12756
12757
  });
12757
12758
  }
12758
12759
  /**
12759
- * List User Targets
12760
+ * List user targets
12760
12761
  *
12761
12762
  * List the messaging targets that are associated with a user.
12762
12763
  *
@@ -12783,7 +12784,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12783
12784
  });
12784
12785
  }
12785
12786
  /**
12786
- * Create User Target
12787
+ * Create user target
12787
12788
  *
12788
12789
  * Create a messaging target.
12789
12790
  *
@@ -12835,7 +12836,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12835
12836
  });
12836
12837
  }
12837
12838
  /**
12838
- * Get User Target
12839
+ * Get user target
12839
12840
  *
12840
12841
  * Get a user&#039;s push notification target by ID.
12841
12842
  *
@@ -12862,7 +12863,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
12862
12863
  });
12863
12864
  }
12864
12865
  /**
12865
- * Update User target
12866
+ * Update user target
12866
12867
  *
12867
12868
  * Update a messaging target.
12868
12869
  *
@@ -13026,7 +13027,7 @@ class Vcs {
13026
13027
  this.client = client;
13027
13028
  }
13028
13029
  /**
13029
- * List Repositories
13030
+ * List repositories
13030
13031
  *
13031
13032
  *
13032
13033
  * @param {string} installationId
@@ -13114,7 +13115,7 @@ class Vcs {
13114
13115
  });
13115
13116
  }
13116
13117
  /**
13117
- * List Repository Branches
13118
+ * List repository branches
13118
13119
  *
13119
13120
  *
13120
13121
  * @param {string} installationId
@@ -13281,7 +13282,7 @@ class Vcs {
13281
13282
  });
13282
13283
  }
13283
13284
  /**
13284
- * Delete Installation
13285
+ * Delete installation
13285
13286
  *
13286
13287
  *
13287
13288
  * @param {string} installationId
@@ -13822,6 +13823,7 @@ exports.Runtime = void 0;
13822
13823
  Runtime["Node190"] = "node-19.0";
13823
13824
  Runtime["Node200"] = "node-20.0";
13824
13825
  Runtime["Node210"] = "node-21.0";
13826
+ Runtime["Node220"] = "node-22.0";
13825
13827
  Runtime["Php80"] = "php-8.0";
13826
13828
  Runtime["Php81"] = "php-8.1";
13827
13829
  Runtime["Php82"] = "php-8.2";
@@ -13836,7 +13838,12 @@ exports.Runtime = void 0;
13836
13838
  Runtime["Python311"] = "python-3.11";
13837
13839
  Runtime["Python312"] = "python-3.12";
13838
13840
  Runtime["Pythonml311"] = "python-ml-3.11";
13841
+ Runtime["Deno121"] = "deno-1.21";
13842
+ Runtime["Deno124"] = "deno-1.24";
13843
+ Runtime["Deno135"] = "deno-1.35";
13839
13844
  Runtime["Deno140"] = "deno-1.40";
13845
+ Runtime["Deno146"] = "deno-1.46";
13846
+ Runtime["Deno20"] = "deno-2.0";
13840
13847
  Runtime["Dart215"] = "dart-2.15";
13841
13848
  Runtime["Dart216"] = "dart-2.16";
13842
13849
  Runtime["Dart217"] = "dart-2.17";
@@ -13844,23 +13851,28 @@ exports.Runtime = void 0;
13844
13851
  Runtime["Dart30"] = "dart-3.0";
13845
13852
  Runtime["Dart31"] = "dart-3.1";
13846
13853
  Runtime["Dart33"] = "dart-3.3";
13847
- Runtime["Dotnet31"] = "dotnet-3.1";
13854
+ Runtime["Dart35"] = "dart-3.5";
13848
13855
  Runtime["Dotnet60"] = "dotnet-6.0";
13849
13856
  Runtime["Dotnet70"] = "dotnet-7.0";
13857
+ Runtime["Dotnet80"] = "dotnet-8.0";
13850
13858
  Runtime["Java80"] = "java-8.0";
13851
13859
  Runtime["Java110"] = "java-11.0";
13852
13860
  Runtime["Java170"] = "java-17.0";
13853
13861
  Runtime["Java180"] = "java-18.0";
13854
13862
  Runtime["Java210"] = "java-21.0";
13863
+ Runtime["Java220"] = "java-22.0";
13855
13864
  Runtime["Swift55"] = "swift-5.5";
13856
13865
  Runtime["Swift58"] = "swift-5.8";
13857
13866
  Runtime["Swift59"] = "swift-5.9";
13867
+ Runtime["Swift510"] = "swift-5.10";
13858
13868
  Runtime["Kotlin16"] = "kotlin-1.6";
13859
13869
  Runtime["Kotlin18"] = "kotlin-1.8";
13860
13870
  Runtime["Kotlin19"] = "kotlin-1.9";
13871
+ Runtime["Kotlin20"] = "kotlin-2.0";
13861
13872
  Runtime["Cpp17"] = "cpp-17";
13862
13873
  Runtime["Cpp20"] = "cpp-20";
13863
13874
  Runtime["Bun10"] = "bun-1.0";
13875
+ Runtime["Bun11"] = "bun-1.1";
13864
13876
  Runtime["Go123"] = "go-1.23";
13865
13877
  })(exports.Runtime || (exports.Runtime = {}));
13866
13878
 
@@ -13971,6 +13983,7 @@ exports.ApiService = void 0;
13971
13983
  exports.SMTPSecure = void 0;
13972
13984
  (function (SMTPSecure) {
13973
13985
  SMTPSecure["Tls"] = "tls";
13986
+ SMTPSecure["Ssl"] = "ssl";
13974
13987
  })(exports.SMTPSecure || (exports.SMTPSecure = {}));
13975
13988
 
13976
13989
  exports.EmailTemplateType = void 0;
@@ -14295,6 +14308,7 @@ exports.ImageFormat = void 0;
14295
14308
  ImageFormat["Gif"] = "gif";
14296
14309
  ImageFormat["Png"] = "png";
14297
14310
  ImageFormat["Webp"] = "webp";
14311
+ ImageFormat["Avif"] = "avif";
14298
14312
  })(exports.ImageFormat || (exports.ImageFormat = {}));
14299
14313
 
14300
14314
  exports.StorageUsageRange = void 0;