@appwrite.io/console 2.0.0 → 2.1.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/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +81 -15
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +77 -15
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3838 -15
- package/docs/examples/account/update-payment-method.md +1 -1
- package/docs/examples/projects/update-labels.md +14 -0
- package/package.json +7 -1
- package/rollup.config.js +40 -24
- package/src/client.ts +49 -10
- package/src/models.ts +432 -424
- package/src/query.ts +14 -11
- package/src/services/account.ts +20 -20
- package/src/services/avatars.ts +117 -117
- package/src/services/backups.ts +18 -18
- package/src/services/console.ts +24 -24
- package/src/services/databases.ts +119 -119
- package/src/services/domains.ts +204 -204
- package/src/services/functions.ts +30 -30
- package/src/services/health.ts +146 -146
- package/src/services/messaging.ts +54 -54
- package/src/services/migrations.ts +36 -36
- package/src/services/organizations.ts +42 -42
- package/src/services/projects.ts +146 -83
- package/src/services/sites.ts +30 -30
- package/src/services/storage.ts +49 -49
- package/src/services/tables-db.ts +119 -119
- package/src/services/users.ts +39 -39
- package/types/client.d.ts +27 -1
- package/types/models.d.ts +432 -424
- package/types/query.d.ts +8 -8
- package/types/services/account.d.ts +11 -11
- package/types/services/avatars.d.ts +82 -82
- package/types/services/backups.d.ts +8 -8
- package/types/services/console.d.ts +14 -14
- package/types/services/databases.d.ts +70 -70
- package/types/services/domains.d.ts +104 -104
- package/types/services/functions.d.ts +15 -15
- package/types/services/health.d.ts +72 -72
- package/types/services/messaging.d.ts +24 -24
- package/types/services/migrations.d.ts +16 -16
- package/types/services/organizations.d.ts +22 -22
- package/types/services/projects.d.ts +60 -38
- package/types/services/sites.d.ts +15 -15
- package/types/services/storage.d.ts +34 -34
- package/types/services/tables-db.d.ts +70 -70
- package/types/services/users.d.ts +24 -24
|
@@ -81,22 +81,22 @@ export declare class TablesDB {
|
|
|
81
81
|
/**
|
|
82
82
|
* Create a new transaction.
|
|
83
83
|
*
|
|
84
|
-
* @param {number} params.ttl - Seconds before the transaction expires.
|
|
84
|
+
* @param {number | bigint} params.ttl - Seconds before the transaction expires.
|
|
85
85
|
* @throws {AppwriteException}
|
|
86
86
|
* @returns {Promise<Models.Transaction>}
|
|
87
87
|
*/
|
|
88
88
|
createTransaction(params?: {
|
|
89
|
-
ttl?: number;
|
|
89
|
+
ttl?: number | bigint;
|
|
90
90
|
}): Promise<Models.Transaction>;
|
|
91
91
|
/**
|
|
92
92
|
* Create a new transaction.
|
|
93
93
|
*
|
|
94
|
-
* @param {number} ttl - Seconds before the transaction expires.
|
|
94
|
+
* @param {number | bigint} ttl - Seconds before the transaction expires.
|
|
95
95
|
* @throws {AppwriteException}
|
|
96
96
|
* @returns {Promise<Models.Transaction>}
|
|
97
97
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
98
98
|
*/
|
|
99
|
-
createTransaction(ttl?: number): Promise<Models.Transaction>;
|
|
99
|
+
createTransaction(ttl?: number | bigint): Promise<Models.Transaction>;
|
|
100
100
|
/**
|
|
101
101
|
* Get a transaction by its unique ID.
|
|
102
102
|
*
|
|
@@ -732,9 +732,9 @@ export declare class TablesDB {
|
|
|
732
732
|
* @param {string} params.tableId - Table ID.
|
|
733
733
|
* @param {string} params.key - Column Key.
|
|
734
734
|
* @param {boolean} params.required - Is column required?
|
|
735
|
-
* @param {number} params.min - Minimum value
|
|
736
|
-
* @param {number} params.max - Maximum value
|
|
737
|
-
* @param {number} params.xdefault - Default value. Cannot be set when required.
|
|
735
|
+
* @param {number | bigint} params.min - Minimum value
|
|
736
|
+
* @param {number | bigint} params.max - Maximum value
|
|
737
|
+
* @param {number | bigint} params.xdefault - Default value. Cannot be set when required.
|
|
738
738
|
* @param {boolean} params.array - Is column an array?
|
|
739
739
|
* @throws {AppwriteException}
|
|
740
740
|
* @returns {Promise<Models.ColumnFloat>}
|
|
@@ -744,9 +744,9 @@ export declare class TablesDB {
|
|
|
744
744
|
tableId: string;
|
|
745
745
|
key: string;
|
|
746
746
|
required: boolean;
|
|
747
|
-
min?: number;
|
|
748
|
-
max?: number;
|
|
749
|
-
xdefault?: number;
|
|
747
|
+
min?: number | bigint;
|
|
748
|
+
max?: number | bigint;
|
|
749
|
+
xdefault?: number | bigint;
|
|
750
750
|
array?: boolean;
|
|
751
751
|
}): Promise<Models.ColumnFloat>;
|
|
752
752
|
/**
|
|
@@ -757,15 +757,15 @@ export declare class TablesDB {
|
|
|
757
757
|
* @param {string} tableId - Table ID.
|
|
758
758
|
* @param {string} key - Column Key.
|
|
759
759
|
* @param {boolean} required - Is column required?
|
|
760
|
-
* @param {number} min - Minimum value
|
|
761
|
-
* @param {number} max - Maximum value
|
|
762
|
-
* @param {number} xdefault - Default value. Cannot be set when required.
|
|
760
|
+
* @param {number | bigint} min - Minimum value
|
|
761
|
+
* @param {number | bigint} max - Maximum value
|
|
762
|
+
* @param {number | bigint} xdefault - Default value. Cannot be set when required.
|
|
763
763
|
* @param {boolean} array - Is column an array?
|
|
764
764
|
* @throws {AppwriteException}
|
|
765
765
|
* @returns {Promise<Models.ColumnFloat>}
|
|
766
766
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
767
767
|
*/
|
|
768
|
-
createFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.ColumnFloat>;
|
|
768
|
+
createFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnFloat>;
|
|
769
769
|
/**
|
|
770
770
|
* Update a float column. Changing the `default` value will not update already existing rows.
|
|
771
771
|
*
|
|
@@ -774,9 +774,9 @@ export declare class TablesDB {
|
|
|
774
774
|
* @param {string} params.tableId - Table ID.
|
|
775
775
|
* @param {string} params.key - Column Key.
|
|
776
776
|
* @param {boolean} params.required - Is column required?
|
|
777
|
-
* @param {number} params.xdefault - Default value. Cannot be set when required.
|
|
778
|
-
* @param {number} params.min - Minimum value
|
|
779
|
-
* @param {number} params.max - Maximum value
|
|
777
|
+
* @param {number | bigint} params.xdefault - Default value. Cannot be set when required.
|
|
778
|
+
* @param {number | bigint} params.min - Minimum value
|
|
779
|
+
* @param {number | bigint} params.max - Maximum value
|
|
780
780
|
* @param {string} params.newKey - New Column Key.
|
|
781
781
|
* @throws {AppwriteException}
|
|
782
782
|
* @returns {Promise<Models.ColumnFloat>}
|
|
@@ -786,9 +786,9 @@ export declare class TablesDB {
|
|
|
786
786
|
tableId: string;
|
|
787
787
|
key: string;
|
|
788
788
|
required: boolean;
|
|
789
|
-
xdefault?: number;
|
|
790
|
-
min?: number;
|
|
791
|
-
max?: number;
|
|
789
|
+
xdefault?: number | bigint;
|
|
790
|
+
min?: number | bigint;
|
|
791
|
+
max?: number | bigint;
|
|
792
792
|
newKey?: string;
|
|
793
793
|
}): Promise<Models.ColumnFloat>;
|
|
794
794
|
/**
|
|
@@ -799,15 +799,15 @@ export declare class TablesDB {
|
|
|
799
799
|
* @param {string} tableId - Table ID.
|
|
800
800
|
* @param {string} key - Column Key.
|
|
801
801
|
* @param {boolean} required - Is column required?
|
|
802
|
-
* @param {number} xdefault - Default value. Cannot be set when required.
|
|
803
|
-
* @param {number} min - Minimum value
|
|
804
|
-
* @param {number} max - Maximum value
|
|
802
|
+
* @param {number | bigint} xdefault - Default value. Cannot be set when required.
|
|
803
|
+
* @param {number | bigint} min - Minimum value
|
|
804
|
+
* @param {number | bigint} max - Maximum value
|
|
805
805
|
* @param {string} newKey - New Column Key.
|
|
806
806
|
* @throws {AppwriteException}
|
|
807
807
|
* @returns {Promise<Models.ColumnFloat>}
|
|
808
808
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
809
809
|
*/
|
|
810
|
-
updateFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.ColumnFloat>;
|
|
810
|
+
updateFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnFloat>;
|
|
811
811
|
/**
|
|
812
812
|
* Create an integer column. Optionally, minimum and maximum values can be provided.
|
|
813
813
|
*
|
|
@@ -816,9 +816,9 @@ export declare class TablesDB {
|
|
|
816
816
|
* @param {string} params.tableId - Table ID.
|
|
817
817
|
* @param {string} params.key - Column Key.
|
|
818
818
|
* @param {boolean} params.required - Is column required?
|
|
819
|
-
* @param {number} params.min - Minimum value
|
|
820
|
-
* @param {number} params.max - Maximum value
|
|
821
|
-
* @param {number} params.xdefault - Default value. Cannot be set when column is required.
|
|
819
|
+
* @param {number | bigint} params.min - Minimum value
|
|
820
|
+
* @param {number | bigint} params.max - Maximum value
|
|
821
|
+
* @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
|
|
822
822
|
* @param {boolean} params.array - Is column an array?
|
|
823
823
|
* @throws {AppwriteException}
|
|
824
824
|
* @returns {Promise<Models.ColumnInteger>}
|
|
@@ -828,9 +828,9 @@ export declare class TablesDB {
|
|
|
828
828
|
tableId: string;
|
|
829
829
|
key: string;
|
|
830
830
|
required: boolean;
|
|
831
|
-
min?: number;
|
|
832
|
-
max?: number;
|
|
833
|
-
xdefault?: number;
|
|
831
|
+
min?: number | bigint;
|
|
832
|
+
max?: number | bigint;
|
|
833
|
+
xdefault?: number | bigint;
|
|
834
834
|
array?: boolean;
|
|
835
835
|
}): Promise<Models.ColumnInteger>;
|
|
836
836
|
/**
|
|
@@ -841,15 +841,15 @@ export declare class TablesDB {
|
|
|
841
841
|
* @param {string} tableId - Table ID.
|
|
842
842
|
* @param {string} key - Column Key.
|
|
843
843
|
* @param {boolean} required - Is column required?
|
|
844
|
-
* @param {number} min - Minimum value
|
|
845
|
-
* @param {number} max - Maximum value
|
|
846
|
-
* @param {number} xdefault - Default value. Cannot be set when column is required.
|
|
844
|
+
* @param {number | bigint} min - Minimum value
|
|
845
|
+
* @param {number | bigint} max - Maximum value
|
|
846
|
+
* @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
|
|
847
847
|
* @param {boolean} array - Is column an array?
|
|
848
848
|
* @throws {AppwriteException}
|
|
849
849
|
* @returns {Promise<Models.ColumnInteger>}
|
|
850
850
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
851
851
|
*/
|
|
852
|
-
createIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.ColumnInteger>;
|
|
852
|
+
createIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnInteger>;
|
|
853
853
|
/**
|
|
854
854
|
* Update an integer column. Changing the `default` value will not update already existing rows.
|
|
855
855
|
*
|
|
@@ -858,9 +858,9 @@ export declare class TablesDB {
|
|
|
858
858
|
* @param {string} params.tableId - Table ID.
|
|
859
859
|
* @param {string} params.key - Column Key.
|
|
860
860
|
* @param {boolean} params.required - Is column required?
|
|
861
|
-
* @param {number} params.xdefault - Default value. Cannot be set when column is required.
|
|
862
|
-
* @param {number} params.min - Minimum value
|
|
863
|
-
* @param {number} params.max - Maximum value
|
|
861
|
+
* @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
|
|
862
|
+
* @param {number | bigint} params.min - Minimum value
|
|
863
|
+
* @param {number | bigint} params.max - Maximum value
|
|
864
864
|
* @param {string} params.newKey - New Column Key.
|
|
865
865
|
* @throws {AppwriteException}
|
|
866
866
|
* @returns {Promise<Models.ColumnInteger>}
|
|
@@ -870,9 +870,9 @@ export declare class TablesDB {
|
|
|
870
870
|
tableId: string;
|
|
871
871
|
key: string;
|
|
872
872
|
required: boolean;
|
|
873
|
-
xdefault?: number;
|
|
874
|
-
min?: number;
|
|
875
|
-
max?: number;
|
|
873
|
+
xdefault?: number | bigint;
|
|
874
|
+
min?: number | bigint;
|
|
875
|
+
max?: number | bigint;
|
|
876
876
|
newKey?: string;
|
|
877
877
|
}): Promise<Models.ColumnInteger>;
|
|
878
878
|
/**
|
|
@@ -883,15 +883,15 @@ export declare class TablesDB {
|
|
|
883
883
|
* @param {string} tableId - Table ID.
|
|
884
884
|
* @param {string} key - Column Key.
|
|
885
885
|
* @param {boolean} required - Is column required?
|
|
886
|
-
* @param {number} xdefault - Default value. Cannot be set when column is required.
|
|
887
|
-
* @param {number} min - Minimum value
|
|
888
|
-
* @param {number} max - Maximum value
|
|
886
|
+
* @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
|
|
887
|
+
* @param {number | bigint} min - Minimum value
|
|
888
|
+
* @param {number | bigint} max - Maximum value
|
|
889
889
|
* @param {string} newKey - New Column Key.
|
|
890
890
|
* @throws {AppwriteException}
|
|
891
891
|
* @returns {Promise<Models.ColumnInteger>}
|
|
892
892
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
893
893
|
*/
|
|
894
|
-
updateIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.ColumnInteger>;
|
|
894
|
+
updateIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnInteger>;
|
|
895
895
|
/**
|
|
896
896
|
* Create IP address column.
|
|
897
897
|
*
|
|
@@ -1208,7 +1208,7 @@ export declare class TablesDB {
|
|
|
1208
1208
|
* @param {string} params.databaseId - Database ID.
|
|
1209
1209
|
* @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1210
1210
|
* @param {string} params.key - Column Key.
|
|
1211
|
-
* @param {number} params.size - Column size for text columns, in number of characters.
|
|
1211
|
+
* @param {number | bigint} params.size - Column size for text columns, in number of characters.
|
|
1212
1212
|
* @param {boolean} params.required - Is column required?
|
|
1213
1213
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1214
1214
|
* @param {boolean} params.array - Is column an array?
|
|
@@ -1220,7 +1220,7 @@ export declare class TablesDB {
|
|
|
1220
1220
|
databaseId: string;
|
|
1221
1221
|
tableId: string;
|
|
1222
1222
|
key: string;
|
|
1223
|
-
size: number;
|
|
1223
|
+
size: number | bigint;
|
|
1224
1224
|
required: boolean;
|
|
1225
1225
|
xdefault?: string;
|
|
1226
1226
|
array?: boolean;
|
|
@@ -1233,7 +1233,7 @@ export declare class TablesDB {
|
|
|
1233
1233
|
* @param {string} databaseId - Database ID.
|
|
1234
1234
|
* @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1235
1235
|
* @param {string} key - Column Key.
|
|
1236
|
-
* @param {number} size - Column size for text columns, in number of characters.
|
|
1236
|
+
* @param {number | bigint} size - Column size for text columns, in number of characters.
|
|
1237
1237
|
* @param {boolean} required - Is column required?
|
|
1238
1238
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1239
1239
|
* @param {boolean} array - Is column an array?
|
|
@@ -1242,7 +1242,7 @@ export declare class TablesDB {
|
|
|
1242
1242
|
* @returns {Promise<Models.ColumnString>}
|
|
1243
1243
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1244
1244
|
*/
|
|
1245
|
-
createStringColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnString>;
|
|
1245
|
+
createStringColumn(databaseId: string, tableId: string, key: string, size: number | bigint, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnString>;
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Update a string column. Changing the `default` value will not update already existing rows.
|
|
1248
1248
|
*
|
|
@@ -1252,7 +1252,7 @@ export declare class TablesDB {
|
|
|
1252
1252
|
* @param {string} params.key - Column Key.
|
|
1253
1253
|
* @param {boolean} params.required - Is column required?
|
|
1254
1254
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1255
|
-
* @param {number} params.size - Maximum size of the string column.
|
|
1255
|
+
* @param {number | bigint} params.size - Maximum size of the string column.
|
|
1256
1256
|
* @param {string} params.newKey - New Column Key.
|
|
1257
1257
|
* @throws {AppwriteException}
|
|
1258
1258
|
* @returns {Promise<Models.ColumnString>}
|
|
@@ -1263,7 +1263,7 @@ export declare class TablesDB {
|
|
|
1263
1263
|
key: string;
|
|
1264
1264
|
required: boolean;
|
|
1265
1265
|
xdefault?: string;
|
|
1266
|
-
size?: number;
|
|
1266
|
+
size?: number | bigint;
|
|
1267
1267
|
newKey?: string;
|
|
1268
1268
|
}): Promise<Models.ColumnString>;
|
|
1269
1269
|
/**
|
|
@@ -1275,13 +1275,13 @@ export declare class TablesDB {
|
|
|
1275
1275
|
* @param {string} key - Column Key.
|
|
1276
1276
|
* @param {boolean} required - Is column required?
|
|
1277
1277
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1278
|
-
* @param {number} size - Maximum size of the string column.
|
|
1278
|
+
* @param {number | bigint} size - Maximum size of the string column.
|
|
1279
1279
|
* @param {string} newKey - New Column Key.
|
|
1280
1280
|
* @throws {AppwriteException}
|
|
1281
1281
|
* @returns {Promise<Models.ColumnString>}
|
|
1282
1282
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1283
1283
|
*/
|
|
1284
|
-
updateStringColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string): Promise<Models.ColumnString>;
|
|
1284
|
+
updateStringColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number | bigint, newKey?: string): Promise<Models.ColumnString>;
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Create a URL column.
|
|
1287
1287
|
*
|
|
@@ -1475,7 +1475,7 @@ export declare class TablesDB {
|
|
|
1475
1475
|
* @param {IndexType} params.type - Index type.
|
|
1476
1476
|
* @param {string[]} params.columns - Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
|
|
1477
1477
|
* @param {string[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
1478
|
-
* @param {number[]} params.lengths - Length of index. Maximum of 100
|
|
1478
|
+
* @param {number | bigint[]} params.lengths - Length of index. Maximum of 100
|
|
1479
1479
|
* @throws {AppwriteException}
|
|
1480
1480
|
* @returns {Promise<Models.ColumnIndex>}
|
|
1481
1481
|
*/
|
|
@@ -1486,7 +1486,7 @@ export declare class TablesDB {
|
|
|
1486
1486
|
type: IndexType;
|
|
1487
1487
|
columns: string[];
|
|
1488
1488
|
orders?: string[];
|
|
1489
|
-
lengths?: number[];
|
|
1489
|
+
lengths?: number | bigint[];
|
|
1490
1490
|
}): Promise<Models.ColumnIndex>;
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
|
|
@@ -1498,12 +1498,12 @@ export declare class TablesDB {
|
|
|
1498
1498
|
* @param {IndexType} type - Index type.
|
|
1499
1499
|
* @param {string[]} columns - Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
|
|
1500
1500
|
* @param {string[]} orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
1501
|
-
* @param {number[]} lengths - Length of index. Maximum of 100
|
|
1501
|
+
* @param {number | bigint[]} lengths - Length of index. Maximum of 100
|
|
1502
1502
|
* @throws {AppwriteException}
|
|
1503
1503
|
* @returns {Promise<Models.ColumnIndex>}
|
|
1504
1504
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1505
1505
|
*/
|
|
1506
|
-
createIndex(databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number[]): Promise<Models.ColumnIndex>;
|
|
1506
|
+
createIndex(databaseId: string, tableId: string, key: string, type: IndexType, columns: string[], orders?: string[], lengths?: number | bigint[]): Promise<Models.ColumnIndex>;
|
|
1507
1507
|
/**
|
|
1508
1508
|
* Get index by ID.
|
|
1509
1509
|
*
|
|
@@ -1923,8 +1923,8 @@ export declare class TablesDB {
|
|
|
1923
1923
|
* @param {string} params.tableId - Table ID.
|
|
1924
1924
|
* @param {string} params.rowId - Row ID.
|
|
1925
1925
|
* @param {string} params.column - Column key.
|
|
1926
|
-
* @param {number} params.value - Value to increment the column by. The value must be a number.
|
|
1927
|
-
* @param {number} params.min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
|
|
1926
|
+
* @param {number | bigint} params.value - Value to increment the column by. The value must be a number.
|
|
1927
|
+
* @param {number | bigint} params.min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
|
|
1928
1928
|
* @param {string} params.transactionId - Transaction ID for staging the operation.
|
|
1929
1929
|
* @throws {AppwriteException}
|
|
1930
1930
|
* @returns {Promise<Row>}
|
|
@@ -1934,8 +1934,8 @@ export declare class TablesDB {
|
|
|
1934
1934
|
tableId: string;
|
|
1935
1935
|
rowId: string;
|
|
1936
1936
|
column: string;
|
|
1937
|
-
value?: number;
|
|
1938
|
-
min?: number;
|
|
1937
|
+
value?: number | bigint;
|
|
1938
|
+
min?: number | bigint;
|
|
1939
1939
|
transactionId?: string;
|
|
1940
1940
|
}): Promise<Row>;
|
|
1941
1941
|
/**
|
|
@@ -1945,14 +1945,14 @@ export declare class TablesDB {
|
|
|
1945
1945
|
* @param {string} tableId - Table ID.
|
|
1946
1946
|
* @param {string} rowId - Row ID.
|
|
1947
1947
|
* @param {string} column - Column key.
|
|
1948
|
-
* @param {number} value - Value to increment the column by. The value must be a number.
|
|
1949
|
-
* @param {number} min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
|
|
1948
|
+
* @param {number | bigint} value - Value to increment the column by. The value must be a number.
|
|
1949
|
+
* @param {number | bigint} min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
|
|
1950
1950
|
* @param {string} transactionId - Transaction ID for staging the operation.
|
|
1951
1951
|
* @throws {AppwriteException}
|
|
1952
1952
|
* @returns {Promise<Row>}
|
|
1953
1953
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1954
1954
|
*/
|
|
1955
|
-
decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string): Promise<Row>;
|
|
1955
|
+
decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, min?: number | bigint, transactionId?: string): Promise<Row>;
|
|
1956
1956
|
/**
|
|
1957
1957
|
* Increment a specific column of a row by a given value.
|
|
1958
1958
|
*
|
|
@@ -1960,8 +1960,8 @@ export declare class TablesDB {
|
|
|
1960
1960
|
* @param {string} params.tableId - Table ID.
|
|
1961
1961
|
* @param {string} params.rowId - Row ID.
|
|
1962
1962
|
* @param {string} params.column - Column key.
|
|
1963
|
-
* @param {number} params.value - Value to increment the column by. The value must be a number.
|
|
1964
|
-
* @param {number} params.max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
|
|
1963
|
+
* @param {number | bigint} params.value - Value to increment the column by. The value must be a number.
|
|
1964
|
+
* @param {number | bigint} params.max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
|
|
1965
1965
|
* @param {string} params.transactionId - Transaction ID for staging the operation.
|
|
1966
1966
|
* @throws {AppwriteException}
|
|
1967
1967
|
* @returns {Promise<Row>}
|
|
@@ -1971,8 +1971,8 @@ export declare class TablesDB {
|
|
|
1971
1971
|
tableId: string;
|
|
1972
1972
|
rowId: string;
|
|
1973
1973
|
column: string;
|
|
1974
|
-
value?: number;
|
|
1975
|
-
max?: number;
|
|
1974
|
+
value?: number | bigint;
|
|
1975
|
+
max?: number | bigint;
|
|
1976
1976
|
transactionId?: string;
|
|
1977
1977
|
}): Promise<Row>;
|
|
1978
1978
|
/**
|
|
@@ -1982,14 +1982,14 @@ export declare class TablesDB {
|
|
|
1982
1982
|
* @param {string} tableId - Table ID.
|
|
1983
1983
|
* @param {string} rowId - Row ID.
|
|
1984
1984
|
* @param {string} column - Column key.
|
|
1985
|
-
* @param {number} value - Value to increment the column by. The value must be a number.
|
|
1986
|
-
* @param {number} max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
|
|
1985
|
+
* @param {number | bigint} value - Value to increment the column by. The value must be a number.
|
|
1986
|
+
* @param {number | bigint} max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
|
|
1987
1987
|
* @param {string} transactionId - Transaction ID for staging the operation.
|
|
1988
1988
|
* @throws {AppwriteException}
|
|
1989
1989
|
* @returns {Promise<Row>}
|
|
1990
1990
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1991
1991
|
*/
|
|
1992
|
-
incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string): Promise<Row>;
|
|
1992
|
+
incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number | bigint, max?: number | bigint, transactionId?: string): Promise<Row>;
|
|
1993
1993
|
/**
|
|
1994
1994
|
* Get usage metrics and statistics for a table. Returning the total number of rows. 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.
|
|
1995
1995
|
*
|
|
@@ -226,10 +226,10 @@ export declare class Users {
|
|
|
226
226
|
* @param {string} params.email - User email.
|
|
227
227
|
* @param {string} params.password - User password hashed using Scrypt.
|
|
228
228
|
* @param {string} params.passwordSalt - Optional salt used to hash password.
|
|
229
|
-
* @param {number} params.passwordCpu - Optional CPU cost used to hash password.
|
|
230
|
-
* @param {number} params.passwordMemory - Optional memory cost used to hash password.
|
|
231
|
-
* @param {number} params.passwordParallel - Optional parallelization cost used to hash password.
|
|
232
|
-
* @param {number} params.passwordLength - Optional hash length used to hash password.
|
|
229
|
+
* @param {number | bigint} params.passwordCpu - Optional CPU cost used to hash password.
|
|
230
|
+
* @param {number | bigint} params.passwordMemory - Optional memory cost used to hash password.
|
|
231
|
+
* @param {number | bigint} params.passwordParallel - Optional parallelization cost used to hash password.
|
|
232
|
+
* @param {number | bigint} params.passwordLength - Optional hash length used to hash password.
|
|
233
233
|
* @param {string} params.name - User name. Max length: 128 chars.
|
|
234
234
|
* @throws {AppwriteException}
|
|
235
235
|
* @returns {Promise<Models.User<Preferences>>}
|
|
@@ -239,10 +239,10 @@ export declare class Users {
|
|
|
239
239
|
email: string;
|
|
240
240
|
password: string;
|
|
241
241
|
passwordSalt: string;
|
|
242
|
-
passwordCpu: number;
|
|
243
|
-
passwordMemory: number;
|
|
244
|
-
passwordParallel: number;
|
|
245
|
-
passwordLength: number;
|
|
242
|
+
passwordCpu: number | bigint;
|
|
243
|
+
passwordMemory: number | bigint;
|
|
244
|
+
passwordParallel: number | bigint;
|
|
245
|
+
passwordLength: number | bigint;
|
|
246
246
|
name?: string;
|
|
247
247
|
}): Promise<Models.User<Preferences>>;
|
|
248
248
|
/**
|
|
@@ -252,16 +252,16 @@ export declare class Users {
|
|
|
252
252
|
* @param {string} email - User email.
|
|
253
253
|
* @param {string} password - User password hashed using Scrypt.
|
|
254
254
|
* @param {string} passwordSalt - Optional salt used to hash password.
|
|
255
|
-
* @param {number} passwordCpu - Optional CPU cost used to hash password.
|
|
256
|
-
* @param {number} passwordMemory - Optional memory cost used to hash password.
|
|
257
|
-
* @param {number} passwordParallel - Optional parallelization cost used to hash password.
|
|
258
|
-
* @param {number} passwordLength - Optional hash length used to hash password.
|
|
255
|
+
* @param {number | bigint} passwordCpu - Optional CPU cost used to hash password.
|
|
256
|
+
* @param {number | bigint} passwordMemory - Optional memory cost used to hash password.
|
|
257
|
+
* @param {number | bigint} passwordParallel - Optional parallelization cost used to hash password.
|
|
258
|
+
* @param {number | bigint} passwordLength - Optional hash length used to hash password.
|
|
259
259
|
* @param {string} name - User name. Max length: 128 chars.
|
|
260
260
|
* @throws {AppwriteException}
|
|
261
261
|
* @returns {Promise<Models.User<Preferences>>}
|
|
262
262
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
263
263
|
*/
|
|
264
|
-
createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string): Promise<Models.User<Preferences>>;
|
|
264
|
+
createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number | bigint, passwordMemory: number | bigint, passwordParallel: number | bigint, passwordLength: number | bigint, name?: string): Promise<Models.User<Preferences>>;
|
|
265
265
|
/**
|
|
266
266
|
* Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
267
267
|
*
|
|
@@ -416,26 +416,26 @@ export declare class Users {
|
|
|
416
416
|
*
|
|
417
417
|
* @param {string} params.userId - User ID.
|
|
418
418
|
* @param {string} params.sessionId - Session ID. Use the string 'recent' to use the most recent session. Defaults to the most recent session.
|
|
419
|
-
* @param {number} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
|
|
419
|
+
* @param {number | bigint} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
|
|
420
420
|
* @throws {AppwriteException}
|
|
421
421
|
* @returns {Promise<Models.Jwt>}
|
|
422
422
|
*/
|
|
423
423
|
createJWT(params: {
|
|
424
424
|
userId: string;
|
|
425
425
|
sessionId?: string;
|
|
426
|
-
duration?: number;
|
|
426
|
+
duration?: number | bigint;
|
|
427
427
|
}): Promise<Models.Jwt>;
|
|
428
428
|
/**
|
|
429
429
|
* Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
|
|
430
430
|
*
|
|
431
431
|
* @param {string} userId - User ID.
|
|
432
432
|
* @param {string} sessionId - Session ID. Use the string 'recent' to use the most recent session. Defaults to the most recent session.
|
|
433
|
-
* @param {number} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
|
|
433
|
+
* @param {number | bigint} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
|
|
434
434
|
* @throws {AppwriteException}
|
|
435
435
|
* @returns {Promise<Models.Jwt>}
|
|
436
436
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
437
437
|
*/
|
|
438
|
-
createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt>;
|
|
438
|
+
createJWT(userId: string, sessionId?: string, duration?: number | bigint): Promise<Models.Jwt>;
|
|
439
439
|
/**
|
|
440
440
|
* Update the user labels by its unique ID.
|
|
441
441
|
*
|
|
@@ -1115,28 +1115,28 @@ export declare class Users {
|
|
|
1115
1115
|
*
|
|
1116
1116
|
*
|
|
1117
1117
|
* @param {string} params.userId - User ID.
|
|
1118
|
-
* @param {number} params.length - Token length in characters. The default length is 6 characters
|
|
1119
|
-
* @param {number} params.expire - Token expiration period in seconds. The default expiration is 15 minutes.
|
|
1118
|
+
* @param {number | bigint} params.length - Token length in characters. The default length is 6 characters
|
|
1119
|
+
* @param {number | bigint} params.expire - Token expiration period in seconds. The default expiration is 15 minutes.
|
|
1120
1120
|
* @throws {AppwriteException}
|
|
1121
1121
|
* @returns {Promise<Models.Token>}
|
|
1122
1122
|
*/
|
|
1123
1123
|
createToken(params: {
|
|
1124
1124
|
userId: string;
|
|
1125
|
-
length?: number;
|
|
1126
|
-
expire?: number;
|
|
1125
|
+
length?: number | bigint;
|
|
1126
|
+
expire?: number | bigint;
|
|
1127
1127
|
}): Promise<Models.Token>;
|
|
1128
1128
|
/**
|
|
1129
1129
|
* Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
|
|
1130
1130
|
*
|
|
1131
1131
|
*
|
|
1132
1132
|
* @param {string} userId - User ID.
|
|
1133
|
-
* @param {number} length - Token length in characters. The default length is 6 characters
|
|
1134
|
-
* @param {number} expire - Token expiration period in seconds. The default expiration is 15 minutes.
|
|
1133
|
+
* @param {number | bigint} length - Token length in characters. The default length is 6 characters
|
|
1134
|
+
* @param {number | bigint} expire - Token expiration period in seconds. The default expiration is 15 minutes.
|
|
1135
1135
|
* @throws {AppwriteException}
|
|
1136
1136
|
* @returns {Promise<Models.Token>}
|
|
1137
1137
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1138
1138
|
*/
|
|
1139
|
-
createToken(userId: string, length?: number, expire?: number): Promise<Models.Token>;
|
|
1139
|
+
createToken(userId: string, length?: number | bigint, expire?: number | bigint): Promise<Models.Token>;
|
|
1140
1140
|
/**
|
|
1141
1141
|
* Update the user email verification status by its unique ID.
|
|
1142
1142
|
*
|