@appwrite.io/console 12.1.0 → 12.2.0
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 +2 -2
- package/dist/cjs/sdk.js +400 -78
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +401 -79
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +401 -79
- package/package.json +1 -1
- package/types/enums/{method-id.d.ts → auth-method.d.ts} +1 -1
- package/types/enums/o-auth-provider.d.ts +3 -1
- package/types/enums/on-duplicate.d.ts +5 -0
- package/types/enums/{policy-id.d.ts → project-policy.d.ts} +1 -1
- package/types/enums/proxy-rule-status.d.ts +2 -3
- package/types/enums/scopes.d.ts +2 -2
- package/types/index.d.ts +3 -2
- package/types/models.d.ts +107 -9
- package/types/services/databases.d.ts +86 -0
- package/types/services/functions.d.ts +13 -4
- package/types/services/migrations.d.ts +13 -3
- package/types/services/project.d.ts +128 -112
- package/types/services/proxy.d.ts +21 -8
- package/types/services/sites.d.ts +13 -4
- package/types/services/tables-db.d.ts +84 -0
- package/types/services/vcs.d.ts +9 -3
package/dist/iife/sdk.js
CHANGED
|
@@ -4419,8 +4419,8 @@
|
|
|
4419
4419
|
'x-sdk-name': 'Console',
|
|
4420
4420
|
'x-sdk-platform': 'console',
|
|
4421
4421
|
'x-sdk-language': 'web',
|
|
4422
|
-
'x-sdk-version': '12.
|
|
4423
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
4422
|
+
'x-sdk-version': '12.2.0',
|
|
4423
|
+
'X-Appwrite-Response-Format': '1.9.4',
|
|
4424
4424
|
};
|
|
4425
4425
|
this.realtime = {
|
|
4426
4426
|
socket: undefined,
|
|
@@ -8894,6 +8894,132 @@
|
|
|
8894
8894
|
const apiHeaders = {};
|
|
8895
8895
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
8896
8896
|
}
|
|
8897
|
+
createBigIntAttribute(paramsOrFirst, ...rest) {
|
|
8898
|
+
let params;
|
|
8899
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
8900
|
+
params = (paramsOrFirst || {});
|
|
8901
|
+
}
|
|
8902
|
+
else {
|
|
8903
|
+
params = {
|
|
8904
|
+
databaseId: paramsOrFirst,
|
|
8905
|
+
collectionId: rest[0],
|
|
8906
|
+
key: rest[1],
|
|
8907
|
+
required: rest[2],
|
|
8908
|
+
min: rest[3],
|
|
8909
|
+
max: rest[4],
|
|
8910
|
+
xdefault: rest[5],
|
|
8911
|
+
array: rest[6]
|
|
8912
|
+
};
|
|
8913
|
+
}
|
|
8914
|
+
const databaseId = params.databaseId;
|
|
8915
|
+
const collectionId = params.collectionId;
|
|
8916
|
+
const key = params.key;
|
|
8917
|
+
const required = params.required;
|
|
8918
|
+
const min = params.min;
|
|
8919
|
+
const max = params.max;
|
|
8920
|
+
const xdefault = params.xdefault;
|
|
8921
|
+
const array = params.array;
|
|
8922
|
+
if (typeof databaseId === 'undefined') {
|
|
8923
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
8924
|
+
}
|
|
8925
|
+
if (typeof collectionId === 'undefined') {
|
|
8926
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
8927
|
+
}
|
|
8928
|
+
if (typeof key === 'undefined') {
|
|
8929
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
8930
|
+
}
|
|
8931
|
+
if (typeof required === 'undefined') {
|
|
8932
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
8933
|
+
}
|
|
8934
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
8935
|
+
const payload = {};
|
|
8936
|
+
if (typeof key !== 'undefined') {
|
|
8937
|
+
payload['key'] = key;
|
|
8938
|
+
}
|
|
8939
|
+
if (typeof required !== 'undefined') {
|
|
8940
|
+
payload['required'] = required;
|
|
8941
|
+
}
|
|
8942
|
+
if (typeof min !== 'undefined') {
|
|
8943
|
+
payload['min'] = min;
|
|
8944
|
+
}
|
|
8945
|
+
if (typeof max !== 'undefined') {
|
|
8946
|
+
payload['max'] = max;
|
|
8947
|
+
}
|
|
8948
|
+
if (typeof xdefault !== 'undefined') {
|
|
8949
|
+
payload['default'] = xdefault;
|
|
8950
|
+
}
|
|
8951
|
+
if (typeof array !== 'undefined') {
|
|
8952
|
+
payload['array'] = array;
|
|
8953
|
+
}
|
|
8954
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8955
|
+
const apiHeaders = {
|
|
8956
|
+
'content-type': 'application/json',
|
|
8957
|
+
};
|
|
8958
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
8959
|
+
}
|
|
8960
|
+
updateBigIntAttribute(paramsOrFirst, ...rest) {
|
|
8961
|
+
let params;
|
|
8962
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
8963
|
+
params = (paramsOrFirst || {});
|
|
8964
|
+
}
|
|
8965
|
+
else {
|
|
8966
|
+
params = {
|
|
8967
|
+
databaseId: paramsOrFirst,
|
|
8968
|
+
collectionId: rest[0],
|
|
8969
|
+
key: rest[1],
|
|
8970
|
+
required: rest[2],
|
|
8971
|
+
xdefault: rest[3],
|
|
8972
|
+
min: rest[4],
|
|
8973
|
+
max: rest[5],
|
|
8974
|
+
newKey: rest[6]
|
|
8975
|
+
};
|
|
8976
|
+
}
|
|
8977
|
+
const databaseId = params.databaseId;
|
|
8978
|
+
const collectionId = params.collectionId;
|
|
8979
|
+
const key = params.key;
|
|
8980
|
+
const required = params.required;
|
|
8981
|
+
const xdefault = params.xdefault;
|
|
8982
|
+
const min = params.min;
|
|
8983
|
+
const max = params.max;
|
|
8984
|
+
const newKey = params.newKey;
|
|
8985
|
+
if (typeof databaseId === 'undefined') {
|
|
8986
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
8987
|
+
}
|
|
8988
|
+
if (typeof collectionId === 'undefined') {
|
|
8989
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
8990
|
+
}
|
|
8991
|
+
if (typeof key === 'undefined') {
|
|
8992
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
8993
|
+
}
|
|
8994
|
+
if (typeof required === 'undefined') {
|
|
8995
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
8996
|
+
}
|
|
8997
|
+
if (typeof xdefault === 'undefined') {
|
|
8998
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
8999
|
+
}
|
|
9000
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9001
|
+
const payload = {};
|
|
9002
|
+
if (typeof required !== 'undefined') {
|
|
9003
|
+
payload['required'] = required;
|
|
9004
|
+
}
|
|
9005
|
+
if (typeof min !== 'undefined') {
|
|
9006
|
+
payload['min'] = min;
|
|
9007
|
+
}
|
|
9008
|
+
if (typeof max !== 'undefined') {
|
|
9009
|
+
payload['max'] = max;
|
|
9010
|
+
}
|
|
9011
|
+
if (typeof xdefault !== 'undefined') {
|
|
9012
|
+
payload['default'] = xdefault;
|
|
9013
|
+
}
|
|
9014
|
+
if (typeof newKey !== 'undefined') {
|
|
9015
|
+
payload['newKey'] = newKey;
|
|
9016
|
+
}
|
|
9017
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9018
|
+
const apiHeaders = {
|
|
9019
|
+
'content-type': 'application/json',
|
|
9020
|
+
};
|
|
9021
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9022
|
+
}
|
|
8897
9023
|
createBooleanAttribute(paramsOrFirst, ...rest) {
|
|
8898
9024
|
let params;
|
|
8899
9025
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -15911,22 +16037,32 @@
|
|
|
15911
16037
|
const apiHeaders = {};
|
|
15912
16038
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
15913
16039
|
}
|
|
15914
|
-
listVariables(paramsOrFirst) {
|
|
16040
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
15915
16041
|
let params;
|
|
15916
16042
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15917
16043
|
params = (paramsOrFirst || {});
|
|
15918
16044
|
}
|
|
15919
16045
|
else {
|
|
15920
16046
|
params = {
|
|
15921
|
-
functionId: paramsOrFirst
|
|
16047
|
+
functionId: paramsOrFirst,
|
|
16048
|
+
queries: rest[0],
|
|
16049
|
+
total: rest[1]
|
|
15922
16050
|
};
|
|
15923
16051
|
}
|
|
15924
16052
|
const functionId = params.functionId;
|
|
16053
|
+
const queries = params.queries;
|
|
16054
|
+
const total = params.total;
|
|
15925
16055
|
if (typeof functionId === 'undefined') {
|
|
15926
16056
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
15927
16057
|
}
|
|
15928
16058
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
|
15929
16059
|
const payload = {};
|
|
16060
|
+
if (typeof queries !== 'undefined') {
|
|
16061
|
+
payload['queries'] = queries;
|
|
16062
|
+
}
|
|
16063
|
+
if (typeof total !== 'undefined') {
|
|
16064
|
+
payload['total'] = total;
|
|
16065
|
+
}
|
|
15930
16066
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15931
16067
|
const apiHeaders = {};
|
|
15932
16068
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -15939,18 +16075,23 @@
|
|
|
15939
16075
|
else {
|
|
15940
16076
|
params = {
|
|
15941
16077
|
functionId: paramsOrFirst,
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
16078
|
+
variableId: rest[0],
|
|
16079
|
+
key: rest[1],
|
|
16080
|
+
value: rest[2],
|
|
16081
|
+
secret: rest[3]
|
|
15945
16082
|
};
|
|
15946
16083
|
}
|
|
15947
16084
|
const functionId = params.functionId;
|
|
16085
|
+
const variableId = params.variableId;
|
|
15948
16086
|
const key = params.key;
|
|
15949
16087
|
const value = params.value;
|
|
15950
16088
|
const secret = params.secret;
|
|
15951
16089
|
if (typeof functionId === 'undefined') {
|
|
15952
16090
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
15953
16091
|
}
|
|
16092
|
+
if (typeof variableId === 'undefined') {
|
|
16093
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
16094
|
+
}
|
|
15954
16095
|
if (typeof key === 'undefined') {
|
|
15955
16096
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
15956
16097
|
}
|
|
@@ -15959,6 +16100,9 @@
|
|
|
15959
16100
|
}
|
|
15960
16101
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
|
15961
16102
|
const payload = {};
|
|
16103
|
+
if (typeof variableId !== 'undefined') {
|
|
16104
|
+
payload['variableId'] = variableId;
|
|
16105
|
+
}
|
|
15962
16106
|
if (typeof key !== 'undefined') {
|
|
15963
16107
|
payload['key'] = key;
|
|
15964
16108
|
}
|
|
@@ -16024,9 +16168,6 @@
|
|
|
16024
16168
|
if (typeof variableId === 'undefined') {
|
|
16025
16169
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
16026
16170
|
}
|
|
16027
|
-
if (typeof key === 'undefined') {
|
|
16028
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
16029
|
-
}
|
|
16030
16171
|
const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
|
|
16031
16172
|
const payload = {};
|
|
16032
16173
|
if (typeof key !== 'undefined') {
|
|
@@ -19799,7 +19940,7 @@
|
|
|
19799
19940
|
}
|
|
19800
19941
|
createAppwriteMigration(paramsOrFirst, ...rest) {
|
|
19801
19942
|
let params;
|
|
19802
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst))) {
|
|
19943
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst || 'onDuplicate' in paramsOrFirst))) {
|
|
19803
19944
|
params = (paramsOrFirst || {});
|
|
19804
19945
|
}
|
|
19805
19946
|
else {
|
|
@@ -19807,13 +19948,15 @@
|
|
|
19807
19948
|
resources: paramsOrFirst,
|
|
19808
19949
|
endpoint: rest[0],
|
|
19809
19950
|
projectId: rest[1],
|
|
19810
|
-
apiKey: rest[2]
|
|
19951
|
+
apiKey: rest[2],
|
|
19952
|
+
onDuplicate: rest[3]
|
|
19811
19953
|
};
|
|
19812
19954
|
}
|
|
19813
19955
|
const resources = params.resources;
|
|
19814
19956
|
const endpoint = params.endpoint;
|
|
19815
19957
|
const projectId = params.projectId;
|
|
19816
19958
|
const apiKey = params.apiKey;
|
|
19959
|
+
const onDuplicate = params.onDuplicate;
|
|
19817
19960
|
if (typeof resources === 'undefined') {
|
|
19818
19961
|
throw new AppwriteException('Missing required parameter: "resources"');
|
|
19819
19962
|
}
|
|
@@ -19840,6 +19983,9 @@
|
|
|
19840
19983
|
if (typeof apiKey !== 'undefined') {
|
|
19841
19984
|
payload['apiKey'] = apiKey;
|
|
19842
19985
|
}
|
|
19986
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
19987
|
+
payload['onDuplicate'] = onDuplicate;
|
|
19988
|
+
}
|
|
19843
19989
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19844
19990
|
const apiHeaders = {
|
|
19845
19991
|
'content-type': 'application/json',
|
|
@@ -19971,13 +20117,15 @@
|
|
|
19971
20117
|
bucketId: paramsOrFirst,
|
|
19972
20118
|
fileId: rest[0],
|
|
19973
20119
|
resourceId: rest[1],
|
|
19974
|
-
internalFile: rest[2]
|
|
20120
|
+
internalFile: rest[2],
|
|
20121
|
+
onDuplicate: rest[3]
|
|
19975
20122
|
};
|
|
19976
20123
|
}
|
|
19977
20124
|
const bucketId = params.bucketId;
|
|
19978
20125
|
const fileId = params.fileId;
|
|
19979
20126
|
const resourceId = params.resourceId;
|
|
19980
20127
|
const internalFile = params.internalFile;
|
|
20128
|
+
const onDuplicate = params.onDuplicate;
|
|
19981
20129
|
if (typeof bucketId === 'undefined') {
|
|
19982
20130
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
19983
20131
|
}
|
|
@@ -20001,6 +20149,9 @@
|
|
|
20001
20149
|
if (typeof internalFile !== 'undefined') {
|
|
20002
20150
|
payload['internalFile'] = internalFile;
|
|
20003
20151
|
}
|
|
20152
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
20153
|
+
payload['onDuplicate'] = onDuplicate;
|
|
20154
|
+
}
|
|
20004
20155
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20005
20156
|
const apiHeaders = {
|
|
20006
20157
|
'content-type': 'application/json',
|
|
@@ -20129,13 +20280,15 @@
|
|
|
20129
20280
|
bucketId: paramsOrFirst,
|
|
20130
20281
|
fileId: rest[0],
|
|
20131
20282
|
resourceId: rest[1],
|
|
20132
|
-
internalFile: rest[2]
|
|
20283
|
+
internalFile: rest[2],
|
|
20284
|
+
onDuplicate: rest[3]
|
|
20133
20285
|
};
|
|
20134
20286
|
}
|
|
20135
20287
|
const bucketId = params.bucketId;
|
|
20136
20288
|
const fileId = params.fileId;
|
|
20137
20289
|
const resourceId = params.resourceId;
|
|
20138
20290
|
const internalFile = params.internalFile;
|
|
20291
|
+
const onDuplicate = params.onDuplicate;
|
|
20139
20292
|
if (typeof bucketId === 'undefined') {
|
|
20140
20293
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
20141
20294
|
}
|
|
@@ -20159,6 +20312,9 @@
|
|
|
20159
20312
|
if (typeof internalFile !== 'undefined') {
|
|
20160
20313
|
payload['internalFile'] = internalFile;
|
|
20161
20314
|
}
|
|
20315
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
20316
|
+
payload['onDuplicate'] = onDuplicate;
|
|
20317
|
+
}
|
|
20162
20318
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20163
20319
|
const apiHeaders = {
|
|
20164
20320
|
'content-type': 'application/json',
|
|
@@ -22462,15 +22618,27 @@
|
|
|
22462
22618
|
};
|
|
22463
22619
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22464
22620
|
}
|
|
22465
|
-
|
|
22466
|
-
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
|
|
22470
|
-
|
|
22471
|
-
|
|
22621
|
+
listOAuth2Providers(paramsOrFirst, ...rest) {
|
|
22622
|
+
let params;
|
|
22623
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22624
|
+
params = (paramsOrFirst || {});
|
|
22625
|
+
}
|
|
22626
|
+
else {
|
|
22627
|
+
params = {
|
|
22628
|
+
queries: paramsOrFirst,
|
|
22629
|
+
total: rest[0]
|
|
22630
|
+
};
|
|
22631
|
+
}
|
|
22632
|
+
const queries = params.queries;
|
|
22633
|
+
const total = params.total;
|
|
22472
22634
|
const apiPath = '/project/oauth2';
|
|
22473
22635
|
const payload = {};
|
|
22636
|
+
if (typeof queries !== 'undefined') {
|
|
22637
|
+
payload['queries'] = queries;
|
|
22638
|
+
}
|
|
22639
|
+
if (typeof total !== 'undefined') {
|
|
22640
|
+
payload['total'] = total;
|
|
22641
|
+
}
|
|
22474
22642
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22475
22643
|
const apiHeaders = {};
|
|
22476
22644
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -23299,8 +23467,8 @@
|
|
|
23299
23467
|
clientSecret: rest[0],
|
|
23300
23468
|
wellKnownURL: rest[1],
|
|
23301
23469
|
authorizationURL: rest[2],
|
|
23302
|
-
|
|
23303
|
-
|
|
23470
|
+
tokenURL: rest[3],
|
|
23471
|
+
userInfoURL: rest[4],
|
|
23304
23472
|
enabled: rest[5]
|
|
23305
23473
|
};
|
|
23306
23474
|
}
|
|
@@ -23308,8 +23476,8 @@
|
|
|
23308
23476
|
const clientSecret = params.clientSecret;
|
|
23309
23477
|
const wellKnownURL = params.wellKnownURL;
|
|
23310
23478
|
const authorizationURL = params.authorizationURL;
|
|
23311
|
-
const
|
|
23312
|
-
const
|
|
23479
|
+
const tokenURL = params.tokenURL;
|
|
23480
|
+
const userInfoURL = params.userInfoURL;
|
|
23313
23481
|
const enabled = params.enabled;
|
|
23314
23482
|
const apiPath = '/project/oauth2/oidc';
|
|
23315
23483
|
const payload = {};
|
|
@@ -23325,11 +23493,11 @@
|
|
|
23325
23493
|
if (typeof authorizationURL !== 'undefined') {
|
|
23326
23494
|
payload['authorizationURL'] = authorizationURL;
|
|
23327
23495
|
}
|
|
23328
|
-
if (typeof
|
|
23329
|
-
payload['
|
|
23496
|
+
if (typeof tokenURL !== 'undefined') {
|
|
23497
|
+
payload['tokenURL'] = tokenURL;
|
|
23330
23498
|
}
|
|
23331
|
-
if (typeof
|
|
23332
|
-
payload['
|
|
23499
|
+
if (typeof userInfoURL !== 'undefined') {
|
|
23500
|
+
payload['userInfoURL'] = userInfoURL;
|
|
23333
23501
|
}
|
|
23334
23502
|
if (typeof enabled !== 'undefined') {
|
|
23335
23503
|
payload['enabled'] = enabled;
|
|
@@ -23896,19 +24064,19 @@
|
|
|
23896
24064
|
}
|
|
23897
24065
|
getOAuth2Provider(paramsOrFirst) {
|
|
23898
24066
|
let params;
|
|
23899
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24067
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
|
|
23900
24068
|
params = (paramsOrFirst || {});
|
|
23901
24069
|
}
|
|
23902
24070
|
else {
|
|
23903
24071
|
params = {
|
|
23904
|
-
|
|
24072
|
+
providerId: paramsOrFirst
|
|
23905
24073
|
};
|
|
23906
24074
|
}
|
|
23907
|
-
const
|
|
23908
|
-
if (typeof
|
|
23909
|
-
throw new AppwriteException('Missing required parameter: "
|
|
24075
|
+
const providerId = params.providerId;
|
|
24076
|
+
if (typeof providerId === 'undefined') {
|
|
24077
|
+
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
23910
24078
|
}
|
|
23911
|
-
const apiPath = '/project/oauth2/{
|
|
24079
|
+
const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
|
|
23912
24080
|
const payload = {};
|
|
23913
24081
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23914
24082
|
const apiHeaders = {};
|
|
@@ -25698,21 +25866,16 @@
|
|
|
25698
25866
|
else {
|
|
25699
25867
|
params = {
|
|
25700
25868
|
queries: paramsOrFirst,
|
|
25701
|
-
|
|
25702
|
-
total: rest[1]
|
|
25869
|
+
total: rest[0]
|
|
25703
25870
|
};
|
|
25704
25871
|
}
|
|
25705
25872
|
const queries = params.queries;
|
|
25706
|
-
const search = params.search;
|
|
25707
25873
|
const total = params.total;
|
|
25708
25874
|
const apiPath = '/proxy/rules';
|
|
25709
25875
|
const payload = {};
|
|
25710
25876
|
if (typeof queries !== 'undefined') {
|
|
25711
25877
|
payload['queries'] = queries;
|
|
25712
25878
|
}
|
|
25713
|
-
if (typeof search !== 'undefined') {
|
|
25714
|
-
payload['search'] = search;
|
|
25715
|
-
}
|
|
25716
25879
|
if (typeof total !== 'undefined') {
|
|
25717
25880
|
payload['total'] = total;
|
|
25718
25881
|
}
|
|
@@ -25920,7 +26083,7 @@
|
|
|
25920
26083
|
};
|
|
25921
26084
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
25922
26085
|
}
|
|
25923
|
-
|
|
26086
|
+
updateRuleStatus(paramsOrFirst) {
|
|
25924
26087
|
let params;
|
|
25925
26088
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
25926
26089
|
params = (paramsOrFirst || {});
|
|
@@ -25934,7 +26097,7 @@
|
|
|
25934
26097
|
if (typeof ruleId === 'undefined') {
|
|
25935
26098
|
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
25936
26099
|
}
|
|
25937
|
-
const apiPath = '/proxy/rules/{ruleId}/
|
|
26100
|
+
const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
|
|
25938
26101
|
const payload = {};
|
|
25939
26102
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25940
26103
|
const apiHeaders = {
|
|
@@ -26860,22 +27023,32 @@
|
|
|
26860
27023
|
const apiHeaders = {};
|
|
26861
27024
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
26862
27025
|
}
|
|
26863
|
-
listVariables(paramsOrFirst) {
|
|
27026
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
26864
27027
|
let params;
|
|
26865
27028
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26866
27029
|
params = (paramsOrFirst || {});
|
|
26867
27030
|
}
|
|
26868
27031
|
else {
|
|
26869
27032
|
params = {
|
|
26870
|
-
siteId: paramsOrFirst
|
|
27033
|
+
siteId: paramsOrFirst,
|
|
27034
|
+
queries: rest[0],
|
|
27035
|
+
total: rest[1]
|
|
26871
27036
|
};
|
|
26872
27037
|
}
|
|
26873
27038
|
const siteId = params.siteId;
|
|
27039
|
+
const queries = params.queries;
|
|
27040
|
+
const total = params.total;
|
|
26874
27041
|
if (typeof siteId === 'undefined') {
|
|
26875
27042
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
26876
27043
|
}
|
|
26877
27044
|
const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
26878
27045
|
const payload = {};
|
|
27046
|
+
if (typeof queries !== 'undefined') {
|
|
27047
|
+
payload['queries'] = queries;
|
|
27048
|
+
}
|
|
27049
|
+
if (typeof total !== 'undefined') {
|
|
27050
|
+
payload['total'] = total;
|
|
27051
|
+
}
|
|
26879
27052
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26880
27053
|
const apiHeaders = {};
|
|
26881
27054
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -26888,18 +27061,23 @@
|
|
|
26888
27061
|
else {
|
|
26889
27062
|
params = {
|
|
26890
27063
|
siteId: paramsOrFirst,
|
|
26891
|
-
|
|
26892
|
-
|
|
26893
|
-
|
|
27064
|
+
variableId: rest[0],
|
|
27065
|
+
key: rest[1],
|
|
27066
|
+
value: rest[2],
|
|
27067
|
+
secret: rest[3]
|
|
26894
27068
|
};
|
|
26895
27069
|
}
|
|
26896
27070
|
const siteId = params.siteId;
|
|
27071
|
+
const variableId = params.variableId;
|
|
26897
27072
|
const key = params.key;
|
|
26898
27073
|
const value = params.value;
|
|
26899
27074
|
const secret = params.secret;
|
|
26900
27075
|
if (typeof siteId === 'undefined') {
|
|
26901
27076
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
26902
27077
|
}
|
|
27078
|
+
if (typeof variableId === 'undefined') {
|
|
27079
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
27080
|
+
}
|
|
26903
27081
|
if (typeof key === 'undefined') {
|
|
26904
27082
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
26905
27083
|
}
|
|
@@ -26908,6 +27086,9 @@
|
|
|
26908
27086
|
}
|
|
26909
27087
|
const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
26910
27088
|
const payload = {};
|
|
27089
|
+
if (typeof variableId !== 'undefined') {
|
|
27090
|
+
payload['variableId'] = variableId;
|
|
27091
|
+
}
|
|
26911
27092
|
if (typeof key !== 'undefined') {
|
|
26912
27093
|
payload['key'] = key;
|
|
26913
27094
|
}
|
|
@@ -26973,9 +27154,6 @@
|
|
|
26973
27154
|
if (typeof variableId === 'undefined') {
|
|
26974
27155
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
26975
27156
|
}
|
|
26976
|
-
if (typeof key === 'undefined') {
|
|
26977
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
26978
|
-
}
|
|
26979
27157
|
const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
|
|
26980
27158
|
const payload = {};
|
|
26981
27159
|
if (typeof key !== 'undefined') {
|
|
@@ -28168,6 +28346,132 @@
|
|
|
28168
28346
|
const apiHeaders = {};
|
|
28169
28347
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
28170
28348
|
}
|
|
28349
|
+
createBigIntColumn(paramsOrFirst, ...rest) {
|
|
28350
|
+
let params;
|
|
28351
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
28352
|
+
params = (paramsOrFirst || {});
|
|
28353
|
+
}
|
|
28354
|
+
else {
|
|
28355
|
+
params = {
|
|
28356
|
+
databaseId: paramsOrFirst,
|
|
28357
|
+
tableId: rest[0],
|
|
28358
|
+
key: rest[1],
|
|
28359
|
+
required: rest[2],
|
|
28360
|
+
min: rest[3],
|
|
28361
|
+
max: rest[4],
|
|
28362
|
+
xdefault: rest[5],
|
|
28363
|
+
array: rest[6]
|
|
28364
|
+
};
|
|
28365
|
+
}
|
|
28366
|
+
const databaseId = params.databaseId;
|
|
28367
|
+
const tableId = params.tableId;
|
|
28368
|
+
const key = params.key;
|
|
28369
|
+
const required = params.required;
|
|
28370
|
+
const min = params.min;
|
|
28371
|
+
const max = params.max;
|
|
28372
|
+
const xdefault = params.xdefault;
|
|
28373
|
+
const array = params.array;
|
|
28374
|
+
if (typeof databaseId === 'undefined') {
|
|
28375
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
28376
|
+
}
|
|
28377
|
+
if (typeof tableId === 'undefined') {
|
|
28378
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
28379
|
+
}
|
|
28380
|
+
if (typeof key === 'undefined') {
|
|
28381
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
28382
|
+
}
|
|
28383
|
+
if (typeof required === 'undefined') {
|
|
28384
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
28385
|
+
}
|
|
28386
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
28387
|
+
const payload = {};
|
|
28388
|
+
if (typeof key !== 'undefined') {
|
|
28389
|
+
payload['key'] = key;
|
|
28390
|
+
}
|
|
28391
|
+
if (typeof required !== 'undefined') {
|
|
28392
|
+
payload['required'] = required;
|
|
28393
|
+
}
|
|
28394
|
+
if (typeof min !== 'undefined') {
|
|
28395
|
+
payload['min'] = min;
|
|
28396
|
+
}
|
|
28397
|
+
if (typeof max !== 'undefined') {
|
|
28398
|
+
payload['max'] = max;
|
|
28399
|
+
}
|
|
28400
|
+
if (typeof xdefault !== 'undefined') {
|
|
28401
|
+
payload['default'] = xdefault;
|
|
28402
|
+
}
|
|
28403
|
+
if (typeof array !== 'undefined') {
|
|
28404
|
+
payload['array'] = array;
|
|
28405
|
+
}
|
|
28406
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
28407
|
+
const apiHeaders = {
|
|
28408
|
+
'content-type': 'application/json',
|
|
28409
|
+
};
|
|
28410
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
28411
|
+
}
|
|
28412
|
+
updateBigIntColumn(paramsOrFirst, ...rest) {
|
|
28413
|
+
let params;
|
|
28414
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
28415
|
+
params = (paramsOrFirst || {});
|
|
28416
|
+
}
|
|
28417
|
+
else {
|
|
28418
|
+
params = {
|
|
28419
|
+
databaseId: paramsOrFirst,
|
|
28420
|
+
tableId: rest[0],
|
|
28421
|
+
key: rest[1],
|
|
28422
|
+
required: rest[2],
|
|
28423
|
+
xdefault: rest[3],
|
|
28424
|
+
min: rest[4],
|
|
28425
|
+
max: rest[5],
|
|
28426
|
+
newKey: rest[6]
|
|
28427
|
+
};
|
|
28428
|
+
}
|
|
28429
|
+
const databaseId = params.databaseId;
|
|
28430
|
+
const tableId = params.tableId;
|
|
28431
|
+
const key = params.key;
|
|
28432
|
+
const required = params.required;
|
|
28433
|
+
const xdefault = params.xdefault;
|
|
28434
|
+
const min = params.min;
|
|
28435
|
+
const max = params.max;
|
|
28436
|
+
const newKey = params.newKey;
|
|
28437
|
+
if (typeof databaseId === 'undefined') {
|
|
28438
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
28439
|
+
}
|
|
28440
|
+
if (typeof tableId === 'undefined') {
|
|
28441
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
28442
|
+
}
|
|
28443
|
+
if (typeof key === 'undefined') {
|
|
28444
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
28445
|
+
}
|
|
28446
|
+
if (typeof required === 'undefined') {
|
|
28447
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
28448
|
+
}
|
|
28449
|
+
if (typeof xdefault === 'undefined') {
|
|
28450
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
28451
|
+
}
|
|
28452
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
28453
|
+
const payload = {};
|
|
28454
|
+
if (typeof required !== 'undefined') {
|
|
28455
|
+
payload['required'] = required;
|
|
28456
|
+
}
|
|
28457
|
+
if (typeof min !== 'undefined') {
|
|
28458
|
+
payload['min'] = min;
|
|
28459
|
+
}
|
|
28460
|
+
if (typeof max !== 'undefined') {
|
|
28461
|
+
payload['max'] = max;
|
|
28462
|
+
}
|
|
28463
|
+
if (typeof xdefault !== 'undefined') {
|
|
28464
|
+
payload['default'] = xdefault;
|
|
28465
|
+
}
|
|
28466
|
+
if (typeof newKey !== 'undefined') {
|
|
28467
|
+
payload['newKey'] = newKey;
|
|
28468
|
+
}
|
|
28469
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
28470
|
+
const apiHeaders = {
|
|
28471
|
+
'content-type': 'application/json',
|
|
28472
|
+
};
|
|
28473
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
28474
|
+
}
|
|
28171
28475
|
createBooleanColumn(paramsOrFirst, ...rest) {
|
|
28172
28476
|
let params;
|
|
28173
28477
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -33263,11 +33567,15 @@
|
|
|
33263
33567
|
else {
|
|
33264
33568
|
params = {
|
|
33265
33569
|
installationId: paramsOrFirst,
|
|
33266
|
-
providerRepositoryId: rest[0]
|
|
33570
|
+
providerRepositoryId: rest[0],
|
|
33571
|
+
search: rest[1],
|
|
33572
|
+
queries: rest[2]
|
|
33267
33573
|
};
|
|
33268
33574
|
}
|
|
33269
33575
|
const installationId = params.installationId;
|
|
33270
33576
|
const providerRepositoryId = params.providerRepositoryId;
|
|
33577
|
+
const search = params.search;
|
|
33578
|
+
const queries = params.queries;
|
|
33271
33579
|
if (typeof installationId === 'undefined') {
|
|
33272
33580
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
33273
33581
|
}
|
|
@@ -33276,6 +33584,12 @@
|
|
|
33276
33584
|
}
|
|
33277
33585
|
const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
|
|
33278
33586
|
const payload = {};
|
|
33587
|
+
if (typeof search !== 'undefined') {
|
|
33588
|
+
payload['search'] = search;
|
|
33589
|
+
}
|
|
33590
|
+
if (typeof queries !== 'undefined') {
|
|
33591
|
+
payload['queries'] = queries;
|
|
33592
|
+
}
|
|
33279
33593
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
33280
33594
|
const apiHeaders = {};
|
|
33281
33595
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -35900,6 +36214,8 @@
|
|
|
35900
36214
|
Scopes["TargetsWrite"] = "targets.write";
|
|
35901
36215
|
Scopes["MessagesRead"] = "messages.read";
|
|
35902
36216
|
Scopes["MessagesWrite"] = "messages.write";
|
|
36217
|
+
Scopes["RulesRead"] = "rules.read";
|
|
36218
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
35903
36219
|
Scopes["WebhooksRead"] = "webhooks.read";
|
|
35904
36220
|
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
35905
36221
|
Scopes["LocaleRead"] = "locale.read";
|
|
@@ -35912,8 +36228,6 @@
|
|
|
35912
36228
|
Scopes["SchedulesWrite"] = "schedules.write";
|
|
35913
36229
|
Scopes["VcsRead"] = "vcs.read";
|
|
35914
36230
|
Scopes["VcsWrite"] = "vcs.write";
|
|
35915
|
-
Scopes["RulesRead"] = "rules.read";
|
|
35916
|
-
Scopes["RulesWrite"] = "rules.write";
|
|
35917
36231
|
Scopes["BackupsPoliciesRead"] = "backups.policies.read";
|
|
35918
36232
|
Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
|
|
35919
36233
|
Scopes["ArchivesRead"] = "archives.read";
|
|
@@ -35987,6 +36301,8 @@
|
|
|
35987
36301
|
OAuthProvider["Yandex"] = "yandex";
|
|
35988
36302
|
OAuthProvider["Zoho"] = "zoho";
|
|
35989
36303
|
OAuthProvider["Zoom"] = "zoom";
|
|
36304
|
+
OAuthProvider["GithubImagine"] = "githubImagine";
|
|
36305
|
+
OAuthProvider["GoogleImagine"] = "googleImagine";
|
|
35990
36306
|
})(exports.OAuthProvider || (exports.OAuthProvider = {}));
|
|
35991
36307
|
|
|
35992
36308
|
exports.Browser = void 0;
|
|
@@ -37157,6 +37473,13 @@
|
|
|
37157
37473
|
AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
|
|
37158
37474
|
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
37159
37475
|
|
|
37476
|
+
exports.OnDuplicate = void 0;
|
|
37477
|
+
(function (OnDuplicate) {
|
|
37478
|
+
OnDuplicate["Fail"] = "fail";
|
|
37479
|
+
OnDuplicate["Skip"] = "skip";
|
|
37480
|
+
OnDuplicate["Overwrite"] = "overwrite";
|
|
37481
|
+
})(exports.OnDuplicate || (exports.OnDuplicate = {}));
|
|
37482
|
+
|
|
37160
37483
|
exports.FirebaseMigrationResource = void 0;
|
|
37161
37484
|
(function (FirebaseMigrationResource) {
|
|
37162
37485
|
FirebaseMigrationResource["User"] = "user";
|
|
@@ -37206,29 +37529,29 @@
|
|
|
37206
37529
|
Addon["Baa"] = "baa";
|
|
37207
37530
|
})(exports.Addon || (exports.Addon = {}));
|
|
37208
37531
|
|
|
37209
|
-
exports.
|
|
37210
|
-
(function (
|
|
37211
|
-
|
|
37212
|
-
|
|
37213
|
-
|
|
37214
|
-
|
|
37215
|
-
|
|
37216
|
-
|
|
37217
|
-
|
|
37218
|
-
})(exports.
|
|
37219
|
-
|
|
37220
|
-
exports.
|
|
37221
|
-
(function (
|
|
37222
|
-
|
|
37223
|
-
|
|
37224
|
-
|
|
37225
|
-
|
|
37226
|
-
|
|
37227
|
-
|
|
37228
|
-
|
|
37229
|
-
|
|
37230
|
-
|
|
37231
|
-
})(exports.
|
|
37532
|
+
exports.AuthMethod = void 0;
|
|
37533
|
+
(function (AuthMethod) {
|
|
37534
|
+
AuthMethod["Emailpassword"] = "email-password";
|
|
37535
|
+
AuthMethod["Magicurl"] = "magic-url";
|
|
37536
|
+
AuthMethod["Emailotp"] = "email-otp";
|
|
37537
|
+
AuthMethod["Anonymous"] = "anonymous";
|
|
37538
|
+
AuthMethod["Invites"] = "invites";
|
|
37539
|
+
AuthMethod["Jwt"] = "jwt";
|
|
37540
|
+
AuthMethod["Phone"] = "phone";
|
|
37541
|
+
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
37542
|
+
|
|
37543
|
+
exports.ProjectPolicy = void 0;
|
|
37544
|
+
(function (ProjectPolicy) {
|
|
37545
|
+
ProjectPolicy["Passworddictionary"] = "password-dictionary";
|
|
37546
|
+
ProjectPolicy["Passwordhistory"] = "password-history";
|
|
37547
|
+
ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
|
|
37548
|
+
ProjectPolicy["Sessionalert"] = "session-alert";
|
|
37549
|
+
ProjectPolicy["Sessionduration"] = "session-duration";
|
|
37550
|
+
ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
|
|
37551
|
+
ProjectPolicy["Sessionlimit"] = "session-limit";
|
|
37552
|
+
ProjectPolicy["Userlimit"] = "user-limit";
|
|
37553
|
+
ProjectPolicy["Membershipprivacy"] = "membership-privacy";
|
|
37554
|
+
})(exports.ProjectPolicy || (exports.ProjectPolicy = {}));
|
|
37232
37555
|
|
|
37233
37556
|
exports.ProtocolId = void 0;
|
|
37234
37557
|
(function (ProtocolId) {
|
|
@@ -37754,10 +38077,9 @@
|
|
|
37754
38077
|
|
|
37755
38078
|
exports.ProxyRuleStatus = void 0;
|
|
37756
38079
|
(function (ProxyRuleStatus) {
|
|
37757
|
-
ProxyRuleStatus["
|
|
38080
|
+
ProxyRuleStatus["Unverified"] = "unverified";
|
|
37758
38081
|
ProxyRuleStatus["Verifying"] = "verifying";
|
|
37759
38082
|
ProxyRuleStatus["Verified"] = "verified";
|
|
37760
|
-
ProxyRuleStatus["Unverified"] = "unverified";
|
|
37761
38083
|
})(exports.ProxyRuleStatus || (exports.ProxyRuleStatus = {}));
|
|
37762
38084
|
|
|
37763
38085
|
exports.MessageStatus = void 0;
|