@appwrite.io/console 2.3.0 → 2.3.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 +1 -1
- package/dist/cjs/sdk.js +96 -18
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +96 -19
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +96 -18
- package/docs/examples/activities/get-event.md +15 -0
- package/docs/examples/activities/list-events.md +15 -0
- package/docs/examples/databases/create-longtext-attribute.md +2 -1
- package/docs/examples/databases/create-mediumtext-attribute.md +2 -1
- package/docs/examples/databases/create-text-attribute.md +2 -1
- package/docs/examples/databases/create-varchar-attribute.md +2 -1
- package/docs/examples/tablesdb/create-longtext-column.md +2 -1
- package/docs/examples/tablesdb/create-mediumtext-column.md +2 -1
- package/docs/examples/tablesdb/create-text-column.md +2 -1
- package/docs/examples/tablesdb/create-varchar-column.md +2 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/build-runtime.ts +0 -3
- package/src/enums/runtime.ts +0 -3
- package/src/enums/runtimes.ts +0 -3
- package/src/index.ts +1 -0
- package/src/models.ts +182 -2
- package/src/services/activities.ts +116 -0
- package/src/services/databases.ts +56 -28
- package/src/services/migrations.ts +2 -2
- package/src/services/tables-db.ts +56 -28
- package/types/enums/build-runtime.d.ts +0 -3
- package/types/enums/runtime.d.ts +0 -3
- package/types/enums/runtimes.d.ts +0 -3
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +180 -2
- package/types/services/activities.d.ts +46 -0
- package/types/services/databases.d.ts +16 -4
- package/types/services/migrations.d.ts +2 -2
- package/types/services/tables-db.d.ts +16 -4
|
@@ -2771,10 +2771,11 @@ export class TablesDB {
|
|
|
2771
2771
|
* @param {boolean} params.required - Is column required?
|
|
2772
2772
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
2773
2773
|
* @param {boolean} params.array - Is column an array?
|
|
2774
|
+
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
2774
2775
|
* @throws {AppwriteException}
|
|
2775
2776
|
* @returns {Promise<Models.ColumnLongtext>}
|
|
2776
2777
|
*/
|
|
2777
|
-
createLongtextColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean }): Promise<Models.ColumnLongtext>;
|
|
2778
|
+
createLongtextColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean }): Promise<Models.ColumnLongtext>;
|
|
2778
2779
|
/**
|
|
2779
2780
|
* Create a longtext column.
|
|
2780
2781
|
*
|
|
@@ -2785,19 +2786,20 @@ export class TablesDB {
|
|
|
2785
2786
|
* @param {boolean} required - Is column required?
|
|
2786
2787
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
2787
2788
|
* @param {boolean} array - Is column an array?
|
|
2789
|
+
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
2788
2790
|
* @throws {AppwriteException}
|
|
2789
2791
|
* @returns {Promise<Models.ColumnLongtext>}
|
|
2790
2792
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2791
2793
|
*/
|
|
2792
|
-
createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnLongtext>;
|
|
2794
|
+
createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnLongtext>;
|
|
2793
2795
|
createLongtextColumn(
|
|
2794
|
-
paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean } | string,
|
|
2795
|
-
...rest: [(string)?, (string)?, (boolean)?, (string)?, (boolean)?]
|
|
2796
|
+
paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean } | string,
|
|
2797
|
+
...rest: [(string)?, (string)?, (boolean)?, (string)?, (boolean)?, (boolean)?]
|
|
2796
2798
|
): Promise<Models.ColumnLongtext> {
|
|
2797
|
-
let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean };
|
|
2799
|
+
let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
2798
2800
|
|
|
2799
2801
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
2800
|
-
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean };
|
|
2802
|
+
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
2801
2803
|
} else {
|
|
2802
2804
|
params = {
|
|
2803
2805
|
databaseId: paramsOrFirst as string,
|
|
@@ -2805,7 +2807,8 @@ export class TablesDB {
|
|
|
2805
2807
|
key: rest[1] as string,
|
|
2806
2808
|
required: rest[2] as boolean,
|
|
2807
2809
|
xdefault: rest[3] as string,
|
|
2808
|
-
array: rest[4] as boolean
|
|
2810
|
+
array: rest[4] as boolean,
|
|
2811
|
+
encrypt: rest[5] as boolean
|
|
2809
2812
|
};
|
|
2810
2813
|
}
|
|
2811
2814
|
|
|
@@ -2815,6 +2818,7 @@ export class TablesDB {
|
|
|
2815
2818
|
const required = params.required;
|
|
2816
2819
|
const xdefault = params.xdefault;
|
|
2817
2820
|
const array = params.array;
|
|
2821
|
+
const encrypt = params.encrypt;
|
|
2818
2822
|
|
|
2819
2823
|
if (typeof databaseId === 'undefined') {
|
|
2820
2824
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -2843,6 +2847,9 @@ export class TablesDB {
|
|
|
2843
2847
|
if (typeof array !== 'undefined') {
|
|
2844
2848
|
payload['array'] = array;
|
|
2845
2849
|
}
|
|
2850
|
+
if (typeof encrypt !== 'undefined') {
|
|
2851
|
+
payload['encrypt'] = encrypt;
|
|
2852
|
+
}
|
|
2846
2853
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2847
2854
|
|
|
2848
2855
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -2963,10 +2970,11 @@ export class TablesDB {
|
|
|
2963
2970
|
* @param {boolean} params.required - Is column required?
|
|
2964
2971
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
2965
2972
|
* @param {boolean} params.array - Is column an array?
|
|
2973
|
+
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
2966
2974
|
* @throws {AppwriteException}
|
|
2967
2975
|
* @returns {Promise<Models.ColumnMediumtext>}
|
|
2968
2976
|
*/
|
|
2969
|
-
createMediumtextColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean }): Promise<Models.ColumnMediumtext>;
|
|
2977
|
+
createMediumtextColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean }): Promise<Models.ColumnMediumtext>;
|
|
2970
2978
|
/**
|
|
2971
2979
|
* Create a mediumtext column.
|
|
2972
2980
|
*
|
|
@@ -2977,19 +2985,20 @@ export class TablesDB {
|
|
|
2977
2985
|
* @param {boolean} required - Is column required?
|
|
2978
2986
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
2979
2987
|
* @param {boolean} array - Is column an array?
|
|
2988
|
+
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
2980
2989
|
* @throws {AppwriteException}
|
|
2981
2990
|
* @returns {Promise<Models.ColumnMediumtext>}
|
|
2982
2991
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2983
2992
|
*/
|
|
2984
|
-
createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnMediumtext>;
|
|
2993
|
+
createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnMediumtext>;
|
|
2985
2994
|
createMediumtextColumn(
|
|
2986
|
-
paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean } | string,
|
|
2987
|
-
...rest: [(string)?, (string)?, (boolean)?, (string)?, (boolean)?]
|
|
2995
|
+
paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean } | string,
|
|
2996
|
+
...rest: [(string)?, (string)?, (boolean)?, (string)?, (boolean)?, (boolean)?]
|
|
2988
2997
|
): Promise<Models.ColumnMediumtext> {
|
|
2989
|
-
let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean };
|
|
2998
|
+
let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
2990
2999
|
|
|
2991
3000
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
2992
|
-
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean };
|
|
3001
|
+
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
2993
3002
|
} else {
|
|
2994
3003
|
params = {
|
|
2995
3004
|
databaseId: paramsOrFirst as string,
|
|
@@ -2997,7 +3006,8 @@ export class TablesDB {
|
|
|
2997
3006
|
key: rest[1] as string,
|
|
2998
3007
|
required: rest[2] as boolean,
|
|
2999
3008
|
xdefault: rest[3] as string,
|
|
3000
|
-
array: rest[4] as boolean
|
|
3009
|
+
array: rest[4] as boolean,
|
|
3010
|
+
encrypt: rest[5] as boolean
|
|
3001
3011
|
};
|
|
3002
3012
|
}
|
|
3003
3013
|
|
|
@@ -3007,6 +3017,7 @@ export class TablesDB {
|
|
|
3007
3017
|
const required = params.required;
|
|
3008
3018
|
const xdefault = params.xdefault;
|
|
3009
3019
|
const array = params.array;
|
|
3020
|
+
const encrypt = params.encrypt;
|
|
3010
3021
|
|
|
3011
3022
|
if (typeof databaseId === 'undefined') {
|
|
3012
3023
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -3035,6 +3046,9 @@ export class TablesDB {
|
|
|
3035
3046
|
if (typeof array !== 'undefined') {
|
|
3036
3047
|
payload['array'] = array;
|
|
3037
3048
|
}
|
|
3049
|
+
if (typeof encrypt !== 'undefined') {
|
|
3050
|
+
payload['encrypt'] = encrypt;
|
|
3051
|
+
}
|
|
3038
3052
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3039
3053
|
|
|
3040
3054
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -3839,10 +3853,11 @@ export class TablesDB {
|
|
|
3839
3853
|
* @param {boolean} params.required - Is column required?
|
|
3840
3854
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
3841
3855
|
* @param {boolean} params.array - Is column an array?
|
|
3856
|
+
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
3842
3857
|
* @throws {AppwriteException}
|
|
3843
3858
|
* @returns {Promise<Models.ColumnText>}
|
|
3844
3859
|
*/
|
|
3845
|
-
createTextColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean }): Promise<Models.ColumnText>;
|
|
3860
|
+
createTextColumn(params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean }): Promise<Models.ColumnText>;
|
|
3846
3861
|
/**
|
|
3847
3862
|
* Create a text column.
|
|
3848
3863
|
*
|
|
@@ -3853,19 +3868,20 @@ export class TablesDB {
|
|
|
3853
3868
|
* @param {boolean} required - Is column required?
|
|
3854
3869
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
3855
3870
|
* @param {boolean} array - Is column an array?
|
|
3871
|
+
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
3856
3872
|
* @throws {AppwriteException}
|
|
3857
3873
|
* @returns {Promise<Models.ColumnText>}
|
|
3858
3874
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
3859
3875
|
*/
|
|
3860
|
-
createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnText>;
|
|
3876
|
+
createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnText>;
|
|
3861
3877
|
createTextColumn(
|
|
3862
|
-
paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean } | string,
|
|
3863
|
-
...rest: [(string)?, (string)?, (boolean)?, (string)?, (boolean)?]
|
|
3878
|
+
paramsOrFirst: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean } | string,
|
|
3879
|
+
...rest: [(string)?, (string)?, (boolean)?, (string)?, (boolean)?, (boolean)?]
|
|
3864
3880
|
): Promise<Models.ColumnText> {
|
|
3865
|
-
let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean };
|
|
3881
|
+
let params: { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
3866
3882
|
|
|
3867
3883
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3868
|
-
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean };
|
|
3884
|
+
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
3869
3885
|
} else {
|
|
3870
3886
|
params = {
|
|
3871
3887
|
databaseId: paramsOrFirst as string,
|
|
@@ -3873,7 +3889,8 @@ export class TablesDB {
|
|
|
3873
3889
|
key: rest[1] as string,
|
|
3874
3890
|
required: rest[2] as boolean,
|
|
3875
3891
|
xdefault: rest[3] as string,
|
|
3876
|
-
array: rest[4] as boolean
|
|
3892
|
+
array: rest[4] as boolean,
|
|
3893
|
+
encrypt: rest[5] as boolean
|
|
3877
3894
|
};
|
|
3878
3895
|
}
|
|
3879
3896
|
|
|
@@ -3883,6 +3900,7 @@ export class TablesDB {
|
|
|
3883
3900
|
const required = params.required;
|
|
3884
3901
|
const xdefault = params.xdefault;
|
|
3885
3902
|
const array = params.array;
|
|
3903
|
+
const encrypt = params.encrypt;
|
|
3886
3904
|
|
|
3887
3905
|
if (typeof databaseId === 'undefined') {
|
|
3888
3906
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -3911,6 +3929,9 @@ export class TablesDB {
|
|
|
3911
3929
|
if (typeof array !== 'undefined') {
|
|
3912
3930
|
payload['array'] = array;
|
|
3913
3931
|
}
|
|
3932
|
+
if (typeof encrypt !== 'undefined') {
|
|
3933
|
+
payload['encrypt'] = encrypt;
|
|
3934
|
+
}
|
|
3914
3935
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3915
3936
|
|
|
3916
3937
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -4224,10 +4245,11 @@ export class TablesDB {
|
|
|
4224
4245
|
* @param {boolean} params.required - Is column required?
|
|
4225
4246
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
4226
4247
|
* @param {boolean} params.array - Is column an array?
|
|
4248
|
+
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
4227
4249
|
* @throws {AppwriteException}
|
|
4228
4250
|
* @returns {Promise<Models.ColumnVarchar>}
|
|
4229
4251
|
*/
|
|
4230
|
-
createVarcharColumn(params: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean }): Promise<Models.ColumnVarchar>;
|
|
4252
|
+
createVarcharColumn(params: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean }): Promise<Models.ColumnVarchar>;
|
|
4231
4253
|
/**
|
|
4232
4254
|
* Create a varchar column.
|
|
4233
4255
|
*
|
|
@@ -4239,19 +4261,20 @@ export class TablesDB {
|
|
|
4239
4261
|
* @param {boolean} required - Is column required?
|
|
4240
4262
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
4241
4263
|
* @param {boolean} array - Is column an array?
|
|
4264
|
+
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
4242
4265
|
* @throws {AppwriteException}
|
|
4243
4266
|
* @returns {Promise<Models.ColumnVarchar>}
|
|
4244
4267
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
4245
4268
|
*/
|
|
4246
|
-
createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnVarchar>;
|
|
4269
|
+
createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnVarchar>;
|
|
4247
4270
|
createVarcharColumn(
|
|
4248
|
-
paramsOrFirst: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean } | string,
|
|
4249
|
-
...rest: [(string)?, (string)?, (number)?, (boolean)?, (string)?, (boolean)?]
|
|
4271
|
+
paramsOrFirst: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean } | string,
|
|
4272
|
+
...rest: [(string)?, (string)?, (number)?, (boolean)?, (string)?, (boolean)?, (boolean)?]
|
|
4250
4273
|
): Promise<Models.ColumnVarchar> {
|
|
4251
|
-
let params: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean };
|
|
4274
|
+
let params: { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
4252
4275
|
|
|
4253
4276
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4254
|
-
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean };
|
|
4277
|
+
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean };
|
|
4255
4278
|
} else {
|
|
4256
4279
|
params = {
|
|
4257
4280
|
databaseId: paramsOrFirst as string,
|
|
@@ -4260,7 +4283,8 @@ export class TablesDB {
|
|
|
4260
4283
|
size: rest[2] as number,
|
|
4261
4284
|
required: rest[3] as boolean,
|
|
4262
4285
|
xdefault: rest[4] as string,
|
|
4263
|
-
array: rest[5] as boolean
|
|
4286
|
+
array: rest[5] as boolean,
|
|
4287
|
+
encrypt: rest[6] as boolean
|
|
4264
4288
|
};
|
|
4265
4289
|
}
|
|
4266
4290
|
|
|
@@ -4271,6 +4295,7 @@ export class TablesDB {
|
|
|
4271
4295
|
const required = params.required;
|
|
4272
4296
|
const xdefault = params.xdefault;
|
|
4273
4297
|
const array = params.array;
|
|
4298
|
+
const encrypt = params.encrypt;
|
|
4274
4299
|
|
|
4275
4300
|
if (typeof databaseId === 'undefined') {
|
|
4276
4301
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -4305,6 +4330,9 @@ export class TablesDB {
|
|
|
4305
4330
|
if (typeof array !== 'undefined') {
|
|
4306
4331
|
payload['array'] = array;
|
|
4307
4332
|
}
|
|
4333
|
+
if (typeof encrypt !== 'undefined') {
|
|
4334
|
+
payload['encrypt'] = encrypt;
|
|
4335
|
+
}
|
|
4308
4336
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4309
4337
|
|
|
4310
4338
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -21,9 +21,6 @@ export declare enum BuildRuntime {
|
|
|
21
21
|
Python312 = "python-3.12",
|
|
22
22
|
Pythonml311 = "python-ml-3.11",
|
|
23
23
|
Pythonml312 = "python-ml-3.12",
|
|
24
|
-
Deno121 = "deno-1.21",
|
|
25
|
-
Deno124 = "deno-1.24",
|
|
26
|
-
Deno135 = "deno-1.35",
|
|
27
24
|
Deno140 = "deno-1.40",
|
|
28
25
|
Deno146 = "deno-1.46",
|
|
29
26
|
Deno20 = "deno-2.0",
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -21,9 +21,6 @@ export declare enum Runtime {
|
|
|
21
21
|
Python312 = "python-3.12",
|
|
22
22
|
Pythonml311 = "python-ml-3.11",
|
|
23
23
|
Pythonml312 = "python-ml-3.12",
|
|
24
|
-
Deno121 = "deno-1.21",
|
|
25
|
-
Deno124 = "deno-1.24",
|
|
26
|
-
Deno135 = "deno-1.35",
|
|
27
24
|
Deno140 = "deno-1.40",
|
|
28
25
|
Deno146 = "deno-1.46",
|
|
29
26
|
Deno20 = "deno-2.0",
|
|
@@ -21,9 +21,6 @@ export declare enum Runtimes {
|
|
|
21
21
|
Python312 = "python-3.12",
|
|
22
22
|
Pythonml311 = "python-ml-3.11",
|
|
23
23
|
Pythonml312 = "python-ml-3.12",
|
|
24
|
-
Deno121 = "deno-1.21",
|
|
25
|
-
Deno124 = "deno-1.24",
|
|
26
|
-
Deno135 = "deno-1.35",
|
|
27
24
|
Deno140 = "deno-1.40",
|
|
28
25
|
Deno146 = "deno-1.46",
|
|
29
26
|
Deno20 = "deno-2.0",
|
package/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { Client, Query, AppwriteException } from './client';
|
|
9
9
|
export { Account } from './services/account';
|
|
10
|
+
export { Activities } from './services/activities';
|
|
10
11
|
export { Avatars } from './services/avatars';
|
|
11
12
|
export { Backups } from './services/backups';
|
|
12
13
|
export { Assistant } from './services/assistant';
|
package/types/models.d.ts
CHANGED
|
@@ -756,7 +756,7 @@ export declare namespace Models {
|
|
|
756
756
|
/**
|
|
757
757
|
* Collection attributes.
|
|
758
758
|
*/
|
|
759
|
-
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
|
|
759
|
+
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeVarchar | Models.AttributeText | Models.AttributeMediumtext | Models.AttributeLongtext | Models.AttributeString)[];
|
|
760
760
|
/**
|
|
761
761
|
* Collection indexes.
|
|
762
762
|
*/
|
|
@@ -781,7 +781,7 @@ export declare namespace Models {
|
|
|
781
781
|
/**
|
|
782
782
|
* List of attributes.
|
|
783
783
|
*/
|
|
784
|
-
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
|
|
784
|
+
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeVarchar | Models.AttributeText | Models.AttributeMediumtext | Models.AttributeLongtext | Models.AttributeString)[];
|
|
785
785
|
};
|
|
786
786
|
/**
|
|
787
787
|
* AttributeString
|
|
@@ -1428,6 +1428,10 @@ export declare namespace Models {
|
|
|
1428
1428
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1429
1429
|
*/
|
|
1430
1430
|
default?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* Defines whether this attribute is encrypted or not.
|
|
1433
|
+
*/
|
|
1434
|
+
encrypt?: boolean;
|
|
1431
1435
|
};
|
|
1432
1436
|
/**
|
|
1433
1437
|
* AttributeText
|
|
@@ -1469,6 +1473,10 @@ export declare namespace Models {
|
|
|
1469
1473
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1470
1474
|
*/
|
|
1471
1475
|
default?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* Defines whether this attribute is encrypted or not.
|
|
1478
|
+
*/
|
|
1479
|
+
encrypt?: boolean;
|
|
1472
1480
|
};
|
|
1473
1481
|
/**
|
|
1474
1482
|
* AttributeMediumtext
|
|
@@ -1510,6 +1518,10 @@ export declare namespace Models {
|
|
|
1510
1518
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1511
1519
|
*/
|
|
1512
1520
|
default?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* Defines whether this attribute is encrypted or not.
|
|
1523
|
+
*/
|
|
1524
|
+
encrypt?: boolean;
|
|
1513
1525
|
};
|
|
1514
1526
|
/**
|
|
1515
1527
|
* AttributeLongtext
|
|
@@ -1551,6 +1563,10 @@ export declare namespace Models {
|
|
|
1551
1563
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1552
1564
|
*/
|
|
1553
1565
|
default?: string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Defines whether this attribute is encrypted or not.
|
|
1568
|
+
*/
|
|
1569
|
+
encrypt?: boolean;
|
|
1554
1570
|
};
|
|
1555
1571
|
/**
|
|
1556
1572
|
* Table
|
|
@@ -2263,6 +2279,10 @@ export declare namespace Models {
|
|
|
2263
2279
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2264
2280
|
*/
|
|
2265
2281
|
default?: string;
|
|
2282
|
+
/**
|
|
2283
|
+
* Defines whether this column is encrypted or not.
|
|
2284
|
+
*/
|
|
2285
|
+
encrypt?: boolean;
|
|
2266
2286
|
};
|
|
2267
2287
|
/**
|
|
2268
2288
|
* ColumnText
|
|
@@ -2304,6 +2324,10 @@ export declare namespace Models {
|
|
|
2304
2324
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2305
2325
|
*/
|
|
2306
2326
|
default?: string;
|
|
2327
|
+
/**
|
|
2328
|
+
* Defines whether this column is encrypted or not.
|
|
2329
|
+
*/
|
|
2330
|
+
encrypt?: boolean;
|
|
2307
2331
|
};
|
|
2308
2332
|
/**
|
|
2309
2333
|
* ColumnMediumtext
|
|
@@ -2345,6 +2369,10 @@ export declare namespace Models {
|
|
|
2345
2369
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2346
2370
|
*/
|
|
2347
2371
|
default?: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* Defines whether this column is encrypted or not.
|
|
2374
|
+
*/
|
|
2375
|
+
encrypt?: boolean;
|
|
2348
2376
|
};
|
|
2349
2377
|
/**
|
|
2350
2378
|
* ColumnLongtext
|
|
@@ -2386,6 +2414,10 @@ export declare namespace Models {
|
|
|
2386
2414
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2387
2415
|
*/
|
|
2388
2416
|
default?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Defines whether this column is encrypted or not.
|
|
2419
|
+
*/
|
|
2420
|
+
encrypt?: boolean;
|
|
2389
2421
|
};
|
|
2390
2422
|
/**
|
|
2391
2423
|
* Index
|
|
@@ -6534,6 +6566,139 @@ export declare namespace Models {
|
|
|
6534
6566
|
*/
|
|
6535
6567
|
version: string;
|
|
6536
6568
|
};
|
|
6569
|
+
/**
|
|
6570
|
+
* ActivityEvent
|
|
6571
|
+
*/
|
|
6572
|
+
export type ActivityEvent = {
|
|
6573
|
+
/**
|
|
6574
|
+
* Event ID.
|
|
6575
|
+
*/
|
|
6576
|
+
$id: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* User type.
|
|
6579
|
+
*/
|
|
6580
|
+
userType: string;
|
|
6581
|
+
/**
|
|
6582
|
+
* User ID.
|
|
6583
|
+
*/
|
|
6584
|
+
userId: string;
|
|
6585
|
+
/**
|
|
6586
|
+
* User Email.
|
|
6587
|
+
*/
|
|
6588
|
+
userEmail: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* User Name.
|
|
6591
|
+
*/
|
|
6592
|
+
userName: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Resource parent.
|
|
6595
|
+
*/
|
|
6596
|
+
resourceParent: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Resource type.
|
|
6599
|
+
*/
|
|
6600
|
+
resourceType: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Resource ID.
|
|
6603
|
+
*/
|
|
6604
|
+
resourceId: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Resource.
|
|
6607
|
+
*/
|
|
6608
|
+
resource: string;
|
|
6609
|
+
/**
|
|
6610
|
+
* Event name.
|
|
6611
|
+
*/
|
|
6612
|
+
event: string;
|
|
6613
|
+
/**
|
|
6614
|
+
* User agent.
|
|
6615
|
+
*/
|
|
6616
|
+
userAgent: string;
|
|
6617
|
+
/**
|
|
6618
|
+
* IP address.
|
|
6619
|
+
*/
|
|
6620
|
+
ip: string;
|
|
6621
|
+
/**
|
|
6622
|
+
* API mode when event triggered.
|
|
6623
|
+
*/
|
|
6624
|
+
mode: string;
|
|
6625
|
+
/**
|
|
6626
|
+
* Location.
|
|
6627
|
+
*/
|
|
6628
|
+
country: string;
|
|
6629
|
+
/**
|
|
6630
|
+
* Log creation date in ISO 8601 format.
|
|
6631
|
+
*/
|
|
6632
|
+
time: string;
|
|
6633
|
+
/**
|
|
6634
|
+
* Project ID.
|
|
6635
|
+
*/
|
|
6636
|
+
projectId: string;
|
|
6637
|
+
/**
|
|
6638
|
+
* Team ID.
|
|
6639
|
+
*/
|
|
6640
|
+
teamId: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* Hostname.
|
|
6643
|
+
*/
|
|
6644
|
+
hostname: string;
|
|
6645
|
+
/**
|
|
6646
|
+
* Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
|
|
6647
|
+
*/
|
|
6648
|
+
osCode: string;
|
|
6649
|
+
/**
|
|
6650
|
+
* Operating system name.
|
|
6651
|
+
*/
|
|
6652
|
+
osName: string;
|
|
6653
|
+
/**
|
|
6654
|
+
* Operating system version.
|
|
6655
|
+
*/
|
|
6656
|
+
osVersion: string;
|
|
6657
|
+
/**
|
|
6658
|
+
* Client type.
|
|
6659
|
+
*/
|
|
6660
|
+
clientType: string;
|
|
6661
|
+
/**
|
|
6662
|
+
* Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
|
|
6663
|
+
*/
|
|
6664
|
+
clientCode: string;
|
|
6665
|
+
/**
|
|
6666
|
+
* Client name.
|
|
6667
|
+
*/
|
|
6668
|
+
clientName: string;
|
|
6669
|
+
/**
|
|
6670
|
+
* Client version.
|
|
6671
|
+
*/
|
|
6672
|
+
clientVersion: string;
|
|
6673
|
+
/**
|
|
6674
|
+
* Client engine name.
|
|
6675
|
+
*/
|
|
6676
|
+
clientEngine: string;
|
|
6677
|
+
/**
|
|
6678
|
+
* Client engine name.
|
|
6679
|
+
*/
|
|
6680
|
+
clientEngineVersion: string;
|
|
6681
|
+
/**
|
|
6682
|
+
* Device name.
|
|
6683
|
+
*/
|
|
6684
|
+
deviceName: string;
|
|
6685
|
+
/**
|
|
6686
|
+
* Device brand name.
|
|
6687
|
+
*/
|
|
6688
|
+
deviceBrand: string;
|
|
6689
|
+
/**
|
|
6690
|
+
* Device model name.
|
|
6691
|
+
*/
|
|
6692
|
+
deviceModel: string;
|
|
6693
|
+
/**
|
|
6694
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
6695
|
+
*/
|
|
6696
|
+
countryCode: string;
|
|
6697
|
+
/**
|
|
6698
|
+
* Country name.
|
|
6699
|
+
*/
|
|
6700
|
+
countryName: string;
|
|
6701
|
+
};
|
|
6537
6702
|
/**
|
|
6538
6703
|
* AdditionalResource
|
|
6539
6704
|
*/
|
|
@@ -8413,6 +8578,19 @@ export declare namespace Models {
|
|
|
8413
8578
|
*/
|
|
8414
8579
|
available: boolean;
|
|
8415
8580
|
};
|
|
8581
|
+
/**
|
|
8582
|
+
* Activity event list
|
|
8583
|
+
*/
|
|
8584
|
+
export type ActivityEventList = {
|
|
8585
|
+
/**
|
|
8586
|
+
* Total number of events that matched your query.
|
|
8587
|
+
*/
|
|
8588
|
+
total: number;
|
|
8589
|
+
/**
|
|
8590
|
+
* List of events.
|
|
8591
|
+
*/
|
|
8592
|
+
events: ActivityEvent[];
|
|
8593
|
+
};
|
|
8416
8594
|
/**
|
|
8417
8595
|
* Aggregation team list
|
|
8418
8596
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Client } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
3
|
+
export declare class Activities {
|
|
4
|
+
client: Client;
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* List all events for selected filters.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
|
|
10
|
+
* @throws {AppwriteException}
|
|
11
|
+
* @returns {Promise<Models.ActivityEventList>}
|
|
12
|
+
*/
|
|
13
|
+
listEvents(params?: {
|
|
14
|
+
queries?: string;
|
|
15
|
+
}): Promise<Models.ActivityEventList>;
|
|
16
|
+
/**
|
|
17
|
+
* List all events for selected filters.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
|
|
20
|
+
* @throws {AppwriteException}
|
|
21
|
+
* @returns {Promise<Models.ActivityEventList>}
|
|
22
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
23
|
+
*/
|
|
24
|
+
listEvents(queries?: string): Promise<Models.ActivityEventList>;
|
|
25
|
+
/**
|
|
26
|
+
* Get event by ID.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* @param {string} params.eventId - Event ID.
|
|
30
|
+
* @throws {AppwriteException}
|
|
31
|
+
* @returns {Promise<Models.ActivityEvent>}
|
|
32
|
+
*/
|
|
33
|
+
getEvent(params: {
|
|
34
|
+
eventId: string;
|
|
35
|
+
}): Promise<Models.ActivityEvent>;
|
|
36
|
+
/**
|
|
37
|
+
* Get event by ID.
|
|
38
|
+
*
|
|
39
|
+
*
|
|
40
|
+
* @param {string} eventId - Event ID.
|
|
41
|
+
* @throws {AppwriteException}
|
|
42
|
+
* @returns {Promise<Models.ActivityEvent>}
|
|
43
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
44
|
+
*/
|
|
45
|
+
getEvent(eventId: string): Promise<Models.ActivityEvent>;
|
|
46
|
+
}
|