@appwrite.io/console 1.2.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 +1 -1
- package/dist/cjs/sdk.js +66 -52
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +66 -52
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +66 -52
- package/package.json +1 -1
- package/src/client.ts +2 -1
- package/src/enums/image-format.ts +1 -0
- package/src/enums/runtime.ts +12 -1
- package/src/enums/s-m-t-p-secure.ts +1 -0
- package/src/models.ts +120 -2
- package/src/services/account.ts +10 -10
- package/src/services/assistant.ts +1 -1
- package/src/services/locale.ts +1 -1
- package/src/services/migrations.ts +14 -14
- package/src/services/project.ts +5 -5
- package/src/services/proxy.ts +5 -5
- package/src/services/storage.ts +1 -1
- package/src/services/users.ts +10 -10
- package/src/services/vcs.ts +3 -3
- package/types/enums/image-format.d.ts +2 -1
- package/types/enums/runtime.d.ts +12 -1
- package/types/enums/s-m-t-p-secure.d.ts +2 -1
- package/types/models.d.ts +118 -0
- package/types/services/account.d.ts +10 -10
- package/types/services/assistant.d.ts +1 -1
- package/types/services/locale.d.ts +1 -1
- package/types/services/migrations.d.ts +14 -14
- package/types/services/project.d.ts +5 -5
- package/types/services/proxy.d.ts +5 -5
- package/types/services/storage.d.ts +1 -1
- package/types/services/users.d.ts +10 -10
- package/types/services/vcs.d.ts +3 -3
package/types/enums/runtime.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare enum Runtime {
|
|
|
5
5
|
Node190 = "node-19.0",
|
|
6
6
|
Node200 = "node-20.0",
|
|
7
7
|
Node210 = "node-21.0",
|
|
8
|
+
Node220 = "node-22.0",
|
|
8
9
|
Php80 = "php-8.0",
|
|
9
10
|
Php81 = "php-8.1",
|
|
10
11
|
Php82 = "php-8.2",
|
|
@@ -19,7 +20,12 @@ export declare enum Runtime {
|
|
|
19
20
|
Python311 = "python-3.11",
|
|
20
21
|
Python312 = "python-3.12",
|
|
21
22
|
Pythonml311 = "python-ml-3.11",
|
|
23
|
+
Deno121 = "deno-1.21",
|
|
24
|
+
Deno124 = "deno-1.24",
|
|
25
|
+
Deno135 = "deno-1.35",
|
|
22
26
|
Deno140 = "deno-1.40",
|
|
27
|
+
Deno146 = "deno-1.46",
|
|
28
|
+
Deno20 = "deno-2.0",
|
|
23
29
|
Dart215 = "dart-2.15",
|
|
24
30
|
Dart216 = "dart-2.16",
|
|
25
31
|
Dart217 = "dart-2.17",
|
|
@@ -27,22 +33,27 @@ export declare enum Runtime {
|
|
|
27
33
|
Dart30 = "dart-3.0",
|
|
28
34
|
Dart31 = "dart-3.1",
|
|
29
35
|
Dart33 = "dart-3.3",
|
|
30
|
-
|
|
36
|
+
Dart35 = "dart-3.5",
|
|
31
37
|
Dotnet60 = "dotnet-6.0",
|
|
32
38
|
Dotnet70 = "dotnet-7.0",
|
|
39
|
+
Dotnet80 = "dotnet-8.0",
|
|
33
40
|
Java80 = "java-8.0",
|
|
34
41
|
Java110 = "java-11.0",
|
|
35
42
|
Java170 = "java-17.0",
|
|
36
43
|
Java180 = "java-18.0",
|
|
37
44
|
Java210 = "java-21.0",
|
|
45
|
+
Java220 = "java-22.0",
|
|
38
46
|
Swift55 = "swift-5.5",
|
|
39
47
|
Swift58 = "swift-5.8",
|
|
40
48
|
Swift59 = "swift-5.9",
|
|
49
|
+
Swift510 = "swift-5.10",
|
|
41
50
|
Kotlin16 = "kotlin-1.6",
|
|
42
51
|
Kotlin18 = "kotlin-1.8",
|
|
43
52
|
Kotlin19 = "kotlin-1.9",
|
|
53
|
+
Kotlin20 = "kotlin-2.0",
|
|
44
54
|
Cpp17 = "cpp-17",
|
|
45
55
|
Cpp20 = "cpp-20",
|
|
46
56
|
Bun10 = "bun-1.0",
|
|
57
|
+
Bun11 = "bun-1.1",
|
|
47
58
|
Go123 = "go-1.23"
|
|
48
59
|
}
|
package/types/models.d.ts
CHANGED
|
@@ -646,6 +646,14 @@ export declare namespace Models {
|
|
|
646
646
|
* Is attribute an array?
|
|
647
647
|
*/
|
|
648
648
|
array?: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Attribute creation date in ISO 8601 format.
|
|
651
|
+
*/
|
|
652
|
+
$createdAt: string;
|
|
653
|
+
/**
|
|
654
|
+
* Attribute update date in ISO 8601 format.
|
|
655
|
+
*/
|
|
656
|
+
$updatedAt: string;
|
|
649
657
|
/**
|
|
650
658
|
* Attribute size.
|
|
651
659
|
*/
|
|
@@ -683,6 +691,14 @@ export declare namespace Models {
|
|
|
683
691
|
* Is attribute an array?
|
|
684
692
|
*/
|
|
685
693
|
array?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* Attribute creation date in ISO 8601 format.
|
|
696
|
+
*/
|
|
697
|
+
$createdAt: string;
|
|
698
|
+
/**
|
|
699
|
+
* Attribute update date in ISO 8601 format.
|
|
700
|
+
*/
|
|
701
|
+
$updatedAt: string;
|
|
686
702
|
/**
|
|
687
703
|
* Minimum value to enforce for new documents.
|
|
688
704
|
*/
|
|
@@ -724,6 +740,14 @@ export declare namespace Models {
|
|
|
724
740
|
* Is attribute an array?
|
|
725
741
|
*/
|
|
726
742
|
array?: boolean;
|
|
743
|
+
/**
|
|
744
|
+
* Attribute creation date in ISO 8601 format.
|
|
745
|
+
*/
|
|
746
|
+
$createdAt: string;
|
|
747
|
+
/**
|
|
748
|
+
* Attribute update date in ISO 8601 format.
|
|
749
|
+
*/
|
|
750
|
+
$updatedAt: string;
|
|
727
751
|
/**
|
|
728
752
|
* Minimum value to enforce for new documents.
|
|
729
753
|
*/
|
|
@@ -765,6 +789,14 @@ export declare namespace Models {
|
|
|
765
789
|
* Is attribute an array?
|
|
766
790
|
*/
|
|
767
791
|
array?: boolean;
|
|
792
|
+
/**
|
|
793
|
+
* Attribute creation date in ISO 8601 format.
|
|
794
|
+
*/
|
|
795
|
+
$createdAt: string;
|
|
796
|
+
/**
|
|
797
|
+
* Attribute update date in ISO 8601 format.
|
|
798
|
+
*/
|
|
799
|
+
$updatedAt: string;
|
|
768
800
|
/**
|
|
769
801
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
770
802
|
*/
|
|
@@ -798,6 +830,14 @@ export declare namespace Models {
|
|
|
798
830
|
* Is attribute an array?
|
|
799
831
|
*/
|
|
800
832
|
array?: boolean;
|
|
833
|
+
/**
|
|
834
|
+
* Attribute creation date in ISO 8601 format.
|
|
835
|
+
*/
|
|
836
|
+
$createdAt: string;
|
|
837
|
+
/**
|
|
838
|
+
* Attribute update date in ISO 8601 format.
|
|
839
|
+
*/
|
|
840
|
+
$updatedAt: string;
|
|
801
841
|
/**
|
|
802
842
|
* String format.
|
|
803
843
|
*/
|
|
@@ -835,6 +875,14 @@ export declare namespace Models {
|
|
|
835
875
|
* Is attribute an array?
|
|
836
876
|
*/
|
|
837
877
|
array?: boolean;
|
|
878
|
+
/**
|
|
879
|
+
* Attribute creation date in ISO 8601 format.
|
|
880
|
+
*/
|
|
881
|
+
$createdAt: string;
|
|
882
|
+
/**
|
|
883
|
+
* Attribute update date in ISO 8601 format.
|
|
884
|
+
*/
|
|
885
|
+
$updatedAt: string;
|
|
838
886
|
/**
|
|
839
887
|
* Array of elements in enumerated type.
|
|
840
888
|
*/
|
|
@@ -876,6 +924,14 @@ export declare namespace Models {
|
|
|
876
924
|
* Is attribute an array?
|
|
877
925
|
*/
|
|
878
926
|
array?: boolean;
|
|
927
|
+
/**
|
|
928
|
+
* Attribute creation date in ISO 8601 format.
|
|
929
|
+
*/
|
|
930
|
+
$createdAt: string;
|
|
931
|
+
/**
|
|
932
|
+
* Attribute update date in ISO 8601 format.
|
|
933
|
+
*/
|
|
934
|
+
$updatedAt: string;
|
|
879
935
|
/**
|
|
880
936
|
* String format.
|
|
881
937
|
*/
|
|
@@ -913,6 +969,14 @@ export declare namespace Models {
|
|
|
913
969
|
* Is attribute an array?
|
|
914
970
|
*/
|
|
915
971
|
array?: boolean;
|
|
972
|
+
/**
|
|
973
|
+
* Attribute creation date in ISO 8601 format.
|
|
974
|
+
*/
|
|
975
|
+
$createdAt: string;
|
|
976
|
+
/**
|
|
977
|
+
* Attribute update date in ISO 8601 format.
|
|
978
|
+
*/
|
|
979
|
+
$updatedAt: string;
|
|
916
980
|
/**
|
|
917
981
|
* String format.
|
|
918
982
|
*/
|
|
@@ -950,6 +1014,14 @@ export declare namespace Models {
|
|
|
950
1014
|
* Is attribute an array?
|
|
951
1015
|
*/
|
|
952
1016
|
array?: boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* Attribute creation date in ISO 8601 format.
|
|
1019
|
+
*/
|
|
1020
|
+
$createdAt: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Attribute update date in ISO 8601 format.
|
|
1023
|
+
*/
|
|
1024
|
+
$updatedAt: string;
|
|
953
1025
|
/**
|
|
954
1026
|
* ISO 8601 format.
|
|
955
1027
|
*/
|
|
@@ -987,6 +1059,14 @@ export declare namespace Models {
|
|
|
987
1059
|
* Is attribute an array?
|
|
988
1060
|
*/
|
|
989
1061
|
array?: boolean;
|
|
1062
|
+
/**
|
|
1063
|
+
* Attribute creation date in ISO 8601 format.
|
|
1064
|
+
*/
|
|
1065
|
+
$createdAt: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* Attribute update date in ISO 8601 format.
|
|
1068
|
+
*/
|
|
1069
|
+
$updatedAt: string;
|
|
990
1070
|
/**
|
|
991
1071
|
* The ID of the related collection.
|
|
992
1072
|
*/
|
|
@@ -1040,6 +1120,14 @@ export declare namespace Models {
|
|
|
1040
1120
|
* Index orders.
|
|
1041
1121
|
*/
|
|
1042
1122
|
orders?: string[];
|
|
1123
|
+
/**
|
|
1124
|
+
* Index creation date in ISO 8601 format.
|
|
1125
|
+
*/
|
|
1126
|
+
$createdAt: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* Index update date in ISO 8601 format.
|
|
1129
|
+
*/
|
|
1130
|
+
$updatedAt: string;
|
|
1043
1131
|
};
|
|
1044
1132
|
/**
|
|
1045
1133
|
* Document
|
|
@@ -3020,6 +3108,10 @@ export declare namespace Models {
|
|
|
3020
3108
|
* Total aggregated number of documents.
|
|
3021
3109
|
*/
|
|
3022
3110
|
documentsTotal: number;
|
|
3111
|
+
/**
|
|
3112
|
+
* Total aggregated number of total databases storage in bytes.
|
|
3113
|
+
*/
|
|
3114
|
+
storageTotal: number;
|
|
3023
3115
|
/**
|
|
3024
3116
|
* Aggregated number of databases per period.
|
|
3025
3117
|
*/
|
|
@@ -3032,6 +3124,10 @@ export declare namespace Models {
|
|
|
3032
3124
|
* Aggregated number of documents per period.
|
|
3033
3125
|
*/
|
|
3034
3126
|
documents: Metric[];
|
|
3127
|
+
/**
|
|
3128
|
+
* An array of the aggregated number of databases storage in bytes per period.
|
|
3129
|
+
*/
|
|
3130
|
+
storage: Metric[];
|
|
3035
3131
|
};
|
|
3036
3132
|
/**
|
|
3037
3133
|
* UsageDatabase
|
|
@@ -3049,6 +3145,10 @@ export declare namespace Models {
|
|
|
3049
3145
|
* Total aggregated number of documents.
|
|
3050
3146
|
*/
|
|
3051
3147
|
documentsTotal: number;
|
|
3148
|
+
/**
|
|
3149
|
+
* Total aggregated number of total storage used in bytes.
|
|
3150
|
+
*/
|
|
3151
|
+
storageTotal: number;
|
|
3052
3152
|
/**
|
|
3053
3153
|
* Aggregated number of collections per period.
|
|
3054
3154
|
*/
|
|
@@ -3057,6 +3157,10 @@ export declare namespace Models {
|
|
|
3057
3157
|
* Aggregated number of documents per period.
|
|
3058
3158
|
*/
|
|
3059
3159
|
documents: Metric[];
|
|
3160
|
+
/**
|
|
3161
|
+
* Aggregated storage used in bytes per period.
|
|
3162
|
+
*/
|
|
3163
|
+
storage: Metric[];
|
|
3060
3164
|
};
|
|
3061
3165
|
/**
|
|
3062
3166
|
* UsageCollection
|
|
@@ -3344,6 +3448,10 @@ export declare namespace Models {
|
|
|
3344
3448
|
* Total aggregated number of databases.
|
|
3345
3449
|
*/
|
|
3346
3450
|
databasesTotal: number;
|
|
3451
|
+
/**
|
|
3452
|
+
* Total aggregated sum of databases storage size (in bytes).
|
|
3453
|
+
*/
|
|
3454
|
+
databasesStorageTotal: number;
|
|
3347
3455
|
/**
|
|
3348
3456
|
* Total aggregated number of users.
|
|
3349
3457
|
*/
|
|
@@ -3356,7 +3464,13 @@ export declare namespace Models {
|
|
|
3356
3464
|
* Total aggregated sum of functions storage size (in bytes).
|
|
3357
3465
|
*/
|
|
3358
3466
|
functionsStorageTotal: number;
|
|
3467
|
+
/**
|
|
3468
|
+
* Total aggregated sum of builds storage size (in bytes).
|
|
3469
|
+
*/
|
|
3359
3470
|
buildsStorageTotal: number;
|
|
3471
|
+
/**
|
|
3472
|
+
* Total aggregated sum of deployments storage size (in bytes).
|
|
3473
|
+
*/
|
|
3360
3474
|
deploymentsStorageTotal: number;
|
|
3361
3475
|
/**
|
|
3362
3476
|
* Total aggregated number of buckets.
|
|
@@ -3394,6 +3508,10 @@ export declare namespace Models {
|
|
|
3394
3508
|
* Aggregated breakdown in totals of usage by buckets.
|
|
3395
3509
|
*/
|
|
3396
3510
|
bucketsBreakdown: MetricBreakdown[];
|
|
3511
|
+
/**
|
|
3512
|
+
* An array of the aggregated breakdown of storage usage by databases.
|
|
3513
|
+
*/
|
|
3514
|
+
databasesStorageBreakdown: MetricBreakdown[];
|
|
3397
3515
|
/**
|
|
3398
3516
|
* Aggregated breakdown in totals of execution mbSeconds by functions.
|
|
3399
3517
|
*/
|
|
@@ -51,7 +51,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
51
51
|
*/
|
|
52
52
|
updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>>;
|
|
53
53
|
/**
|
|
54
|
-
* List
|
|
54
|
+
* List identities
|
|
55
55
|
*
|
|
56
56
|
* Get the list of identities for the currently logged in user.
|
|
57
57
|
*
|
|
@@ -100,7 +100,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
100
100
|
*/
|
|
101
101
|
updateMFA<Preferences extends Models.Preferences>(mfa: boolean): Promise<Models.User<Preferences>>;
|
|
102
102
|
/**
|
|
103
|
-
* Create
|
|
103
|
+
* Create authenticator
|
|
104
104
|
*
|
|
105
105
|
* 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.
|
|
106
106
|
*
|
|
@@ -110,7 +110,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
110
110
|
*/
|
|
111
111
|
createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;
|
|
112
112
|
/**
|
|
113
|
-
* Verify
|
|
113
|
+
* Verify authenticator
|
|
114
114
|
*
|
|
115
115
|
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
|
|
116
116
|
*
|
|
@@ -121,7 +121,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
121
121
|
*/
|
|
122
122
|
updateMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
|
|
123
123
|
/**
|
|
124
|
-
* Delete
|
|
124
|
+
* Delete authenticator
|
|
125
125
|
*
|
|
126
126
|
* Delete an authenticator for a user by ID.
|
|
127
127
|
*
|
|
@@ -131,7 +131,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
131
131
|
*/
|
|
132
132
|
deleteMfaAuthenticator(type: AuthenticatorType): Promise<{}>;
|
|
133
133
|
/**
|
|
134
|
-
* Create MFA
|
|
134
|
+
* Create MFA challenge
|
|
135
135
|
*
|
|
136
136
|
* Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
|
|
137
137
|
*
|
|
@@ -141,7 +141,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
141
141
|
*/
|
|
142
142
|
createMfaChallenge(factor: AuthenticationFactor): Promise<Models.MfaChallenge>;
|
|
143
143
|
/**
|
|
144
|
-
* Create MFA
|
|
144
|
+
* Create MFA challenge (confirmation)
|
|
145
145
|
*
|
|
146
146
|
* 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.
|
|
147
147
|
*
|
|
@@ -152,7 +152,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
152
152
|
*/
|
|
153
153
|
updateMfaChallenge(challengeId: string, otp: string): Promise<{}>;
|
|
154
154
|
/**
|
|
155
|
-
* List
|
|
155
|
+
* List factors
|
|
156
156
|
*
|
|
157
157
|
* List the factors available on the account to be used as a MFA challange.
|
|
158
158
|
*
|
|
@@ -161,7 +161,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
161
161
|
*/
|
|
162
162
|
listMfaFactors(): Promise<Models.MfaFactors>;
|
|
163
163
|
/**
|
|
164
|
-
* Get MFA
|
|
164
|
+
* Get MFA recovery codes
|
|
165
165
|
*
|
|
166
166
|
* 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.
|
|
167
167
|
*
|
|
@@ -170,7 +170,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
170
170
|
*/
|
|
171
171
|
getMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
|
|
172
172
|
/**
|
|
173
|
-
* Create MFA
|
|
173
|
+
* Create MFA recovery codes
|
|
174
174
|
*
|
|
175
175
|
* 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.
|
|
176
176
|
*
|
|
@@ -179,7 +179,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
179
179
|
*/
|
|
180
180
|
createMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
|
|
181
181
|
/**
|
|
182
|
-
* Regenerate MFA
|
|
182
|
+
* Regenerate MFA recovery codes
|
|
183
183
|
*
|
|
184
184
|
* 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.
|
|
185
185
|
*
|
|
@@ -4,7 +4,7 @@ export declare class Migrations {
|
|
|
4
4
|
client: Client;
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* List
|
|
7
|
+
* List migrations
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* @param {string[]} queries
|
|
@@ -14,7 +14,7 @@ export declare class Migrations {
|
|
|
14
14
|
*/
|
|
15
15
|
list(queries?: string[], search?: string): Promise<Models.MigrationList>;
|
|
16
16
|
/**
|
|
17
|
-
* Migrate Appwrite
|
|
17
|
+
* Migrate Appwrite data
|
|
18
18
|
*
|
|
19
19
|
*
|
|
20
20
|
* @param {string[]} resources
|
|
@@ -26,7 +26,7 @@ export declare class Migrations {
|
|
|
26
26
|
*/
|
|
27
27
|
createAppwriteMigration(resources: string[], endpoint: string, projectId: string, apiKey: string): Promise<Models.Migration>;
|
|
28
28
|
/**
|
|
29
|
-
* Generate a report on Appwrite
|
|
29
|
+
* Generate a report on Appwrite data
|
|
30
30
|
*
|
|
31
31
|
*
|
|
32
32
|
* @param {string[]} resources
|
|
@@ -38,7 +38,7 @@ export declare class Migrations {
|
|
|
38
38
|
*/
|
|
39
39
|
getAppwriteReport(resources: string[], endpoint: string, projectID: string, key: string): Promise<Models.MigrationReport>;
|
|
40
40
|
/**
|
|
41
|
-
* Migrate Firebase
|
|
41
|
+
* Migrate Firebase data (Service Account)
|
|
42
42
|
*
|
|
43
43
|
*
|
|
44
44
|
* @param {string[]} resources
|
|
@@ -48,7 +48,7 @@ export declare class Migrations {
|
|
|
48
48
|
*/
|
|
49
49
|
createFirebaseMigration(resources: string[], serviceAccount: string): Promise<Models.Migration>;
|
|
50
50
|
/**
|
|
51
|
-
* Revoke Appwrite's authorization to access Firebase
|
|
51
|
+
* Revoke Appwrite's authorization to access Firebase projects
|
|
52
52
|
*
|
|
53
53
|
*
|
|
54
54
|
* @throws {AppwriteException}
|
|
@@ -56,7 +56,7 @@ export declare class Migrations {
|
|
|
56
56
|
*/
|
|
57
57
|
deleteFirebaseAuth(): Promise<{}>;
|
|
58
58
|
/**
|
|
59
|
-
* Migrate Firebase
|
|
59
|
+
* Migrate Firebase data (OAuth)
|
|
60
60
|
*
|
|
61
61
|
*
|
|
62
62
|
* @param {string[]} resources
|
|
@@ -66,7 +66,7 @@ export declare class Migrations {
|
|
|
66
66
|
*/
|
|
67
67
|
createFirebaseOAuthMigration(resources: string[], projectId: string): Promise<Models.Migration>;
|
|
68
68
|
/**
|
|
69
|
-
* List Firebase
|
|
69
|
+
* List Firebase projects
|
|
70
70
|
*
|
|
71
71
|
*
|
|
72
72
|
* @throws {AppwriteException}
|
|
@@ -74,7 +74,7 @@ export declare class Migrations {
|
|
|
74
74
|
*/
|
|
75
75
|
listFirebaseProjects(): Promise<Models.FirebaseProjectList>;
|
|
76
76
|
/**
|
|
77
|
-
* Generate a report on Firebase
|
|
77
|
+
* Generate a report on Firebase data
|
|
78
78
|
*
|
|
79
79
|
*
|
|
80
80
|
* @param {string[]} resources
|
|
@@ -84,7 +84,7 @@ export declare class Migrations {
|
|
|
84
84
|
*/
|
|
85
85
|
getFirebaseReport(resources: string[], serviceAccount: string): Promise<Models.MigrationReport>;
|
|
86
86
|
/**
|
|
87
|
-
* Generate a report on Firebase
|
|
87
|
+
* Generate a report on Firebase data using OAuth
|
|
88
88
|
*
|
|
89
89
|
*
|
|
90
90
|
* @param {string[]} resources
|
|
@@ -94,7 +94,7 @@ export declare class Migrations {
|
|
|
94
94
|
*/
|
|
95
95
|
getFirebaseReportOAuth(resources: string[], projectId: string): Promise<Models.MigrationReport>;
|
|
96
96
|
/**
|
|
97
|
-
* Migrate NHost
|
|
97
|
+
* Migrate NHost data
|
|
98
98
|
*
|
|
99
99
|
*
|
|
100
100
|
* @param {string[]} resources
|
|
@@ -126,7 +126,7 @@ export declare class Migrations {
|
|
|
126
126
|
*/
|
|
127
127
|
getNHostReport(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
|
|
128
128
|
/**
|
|
129
|
-
* Migrate Supabase
|
|
129
|
+
* Migrate Supabase data
|
|
130
130
|
*
|
|
131
131
|
*
|
|
132
132
|
* @param {string[]} resources
|
|
@@ -156,7 +156,7 @@ export declare class Migrations {
|
|
|
156
156
|
*/
|
|
157
157
|
getSupabaseReport(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
|
|
158
158
|
/**
|
|
159
|
-
* Get
|
|
159
|
+
* Get migration
|
|
160
160
|
*
|
|
161
161
|
*
|
|
162
162
|
* @param {string} migrationId
|
|
@@ -165,7 +165,7 @@ export declare class Migrations {
|
|
|
165
165
|
*/
|
|
166
166
|
get(migrationId: string): Promise<Models.Migration>;
|
|
167
167
|
/**
|
|
168
|
-
* Retry
|
|
168
|
+
* Retry migration
|
|
169
169
|
*
|
|
170
170
|
*
|
|
171
171
|
* @param {string} migrationId
|
|
@@ -174,7 +174,7 @@ export declare class Migrations {
|
|
|
174
174
|
*/
|
|
175
175
|
retry(migrationId: string): Promise<Models.Migration>;
|
|
176
176
|
/**
|
|
177
|
-
* Delete
|
|
177
|
+
* Delete migration
|
|
178
178
|
*
|
|
179
179
|
*
|
|
180
180
|
* @param {string} migrationId
|
|
@@ -16,7 +16,7 @@ export declare class Project {
|
|
|
16
16
|
*/
|
|
17
17
|
getUsage(startDate: string, endDate: string, period?: ProjectUsageRange): Promise<Models.UsageProject>;
|
|
18
18
|
/**
|
|
19
|
-
* List
|
|
19
|
+
* List variables
|
|
20
20
|
*
|
|
21
21
|
* Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.
|
|
22
22
|
*
|
|
@@ -25,7 +25,7 @@ export declare class Project {
|
|
|
25
25
|
*/
|
|
26
26
|
listVariables(): Promise<Models.VariableList>;
|
|
27
27
|
/**
|
|
28
|
-
* Create
|
|
28
|
+
* Create variable
|
|
29
29
|
*
|
|
30
30
|
* Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.
|
|
31
31
|
*
|
|
@@ -36,7 +36,7 @@ export declare class Project {
|
|
|
36
36
|
*/
|
|
37
37
|
createVariable(key: string, value: string): Promise<Models.Variable>;
|
|
38
38
|
/**
|
|
39
|
-
* Get
|
|
39
|
+
* Get variable
|
|
40
40
|
*
|
|
41
41
|
* Get a project variable by its unique ID.
|
|
42
42
|
*
|
|
@@ -46,7 +46,7 @@ export declare class Project {
|
|
|
46
46
|
*/
|
|
47
47
|
getVariable(variableId: string): Promise<Models.Variable>;
|
|
48
48
|
/**
|
|
49
|
-
* Update
|
|
49
|
+
* Update variable
|
|
50
50
|
*
|
|
51
51
|
* Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.
|
|
52
52
|
*
|
|
@@ -58,7 +58,7 @@ export declare class Project {
|
|
|
58
58
|
*/
|
|
59
59
|
updateVariable(variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
60
60
|
/**
|
|
61
|
-
* Delete
|
|
61
|
+
* Delete variable
|
|
62
62
|
*
|
|
63
63
|
* Delete a project variable by its unique ID.
|
|
64
64
|
*
|
|
@@ -5,7 +5,7 @@ export declare class Proxy {
|
|
|
5
5
|
client: Client;
|
|
6
6
|
constructor(client: Client);
|
|
7
7
|
/**
|
|
8
|
-
* List
|
|
8
|
+
* List rules
|
|
9
9
|
*
|
|
10
10
|
* Get a list of all the proxy rules. You can use the query params to filter your results.
|
|
11
11
|
*
|
|
@@ -16,7 +16,7 @@ export declare class Proxy {
|
|
|
16
16
|
*/
|
|
17
17
|
listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create rule
|
|
20
20
|
*
|
|
21
21
|
* Create a new proxy rule.
|
|
22
22
|
*
|
|
@@ -28,7 +28,7 @@ export declare class Proxy {
|
|
|
28
28
|
*/
|
|
29
29
|
createRule(domain: string, resourceType: ResourceType, resourceId?: string): Promise<Models.ProxyRule>;
|
|
30
30
|
/**
|
|
31
|
-
* Get
|
|
31
|
+
* Get rule
|
|
32
32
|
*
|
|
33
33
|
* Get a proxy rule by its unique ID.
|
|
34
34
|
*
|
|
@@ -38,7 +38,7 @@ export declare class Proxy {
|
|
|
38
38
|
*/
|
|
39
39
|
getRule(ruleId: string): Promise<Models.ProxyRule>;
|
|
40
40
|
/**
|
|
41
|
-
* Delete
|
|
41
|
+
* Delete rule
|
|
42
42
|
*
|
|
43
43
|
* Delete a proxy rule by its unique ID.
|
|
44
44
|
*
|
|
@@ -48,7 +48,7 @@ export declare class Proxy {
|
|
|
48
48
|
*/
|
|
49
49
|
deleteRule(ruleId: string): Promise<{}>;
|
|
50
50
|
/**
|
|
51
|
-
* Update
|
|
51
|
+
* Update rule verification status
|
|
52
52
|
*
|
|
53
53
|
*
|
|
54
54
|
* @param {string} ruleId
|
|
@@ -133,7 +133,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
|
|
|
133
133
|
*/
|
|
134
134
|
updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File>;
|
|
135
135
|
/**
|
|
136
|
-
* Delete
|
|
136
|
+
* Delete file
|
|
137
137
|
*
|
|
138
138
|
* Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
|
|
139
139
|
*
|