@appwrite.io/console 12.0.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 +552 -80
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +553 -81
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +553 -81
- package/package.json +1 -1
- package/types/client.d.ts +23 -2
- 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/query-suggestion-resource.d.ts +74 -0
- package/types/enums/scopes.d.ts +6 -2
- package/types/index.d.ts +4 -2
- package/types/models.d.ts +107 -9
- package/types/services/console.d.ts +31 -0
- 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
|
@@ -4404,12 +4404,13 @@
|
|
|
4404
4404
|
locale: '',
|
|
4405
4405
|
mode: '',
|
|
4406
4406
|
cookie: '',
|
|
4407
|
+
session: '',
|
|
4408
|
+
devkey: '',
|
|
4407
4409
|
impersonateuserid: '',
|
|
4408
4410
|
impersonateuseremail: '',
|
|
4409
4411
|
impersonateuserphone: '',
|
|
4410
4412
|
platform: '',
|
|
4411
4413
|
selfSigned: false,
|
|
4412
|
-
session: undefined,
|
|
4413
4414
|
};
|
|
4414
4415
|
/**
|
|
4415
4416
|
* Custom headers for API requests.
|
|
@@ -4418,8 +4419,8 @@
|
|
|
4418
4419
|
'x-sdk-name': 'Console',
|
|
4419
4420
|
'x-sdk-platform': 'console',
|
|
4420
4421
|
'x-sdk-language': 'web',
|
|
4421
|
-
'x-sdk-version': '12.
|
|
4422
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
4422
|
+
'x-sdk-version': '12.2.0',
|
|
4423
|
+
'X-Appwrite-Response-Format': '1.9.4',
|
|
4423
4424
|
};
|
|
4424
4425
|
this.realtime = {
|
|
4425
4426
|
socket: undefined,
|
|
@@ -4728,7 +4729,7 @@
|
|
|
4728
4729
|
/**
|
|
4729
4730
|
* Set Cookie
|
|
4730
4731
|
*
|
|
4731
|
-
* The user cookie to authenticate with
|
|
4732
|
+
* The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes.
|
|
4732
4733
|
*
|
|
4733
4734
|
* @param value string
|
|
4734
4735
|
*
|
|
@@ -4739,6 +4740,34 @@
|
|
|
4739
4740
|
this.config.cookie = value;
|
|
4740
4741
|
return this;
|
|
4741
4742
|
}
|
|
4743
|
+
/**
|
|
4744
|
+
* Set Session
|
|
4745
|
+
*
|
|
4746
|
+
* The user session to authenticate with
|
|
4747
|
+
*
|
|
4748
|
+
* @param value string
|
|
4749
|
+
*
|
|
4750
|
+
* @return {this}
|
|
4751
|
+
*/
|
|
4752
|
+
setSession(value) {
|
|
4753
|
+
this.headers['X-Appwrite-Session'] = value;
|
|
4754
|
+
this.config.session = value;
|
|
4755
|
+
return this;
|
|
4756
|
+
}
|
|
4757
|
+
/**
|
|
4758
|
+
* Set DevKey
|
|
4759
|
+
*
|
|
4760
|
+
* Your secret dev API key
|
|
4761
|
+
*
|
|
4762
|
+
* @param value string
|
|
4763
|
+
*
|
|
4764
|
+
* @return {this}
|
|
4765
|
+
*/
|
|
4766
|
+
setDevKey(value) {
|
|
4767
|
+
this.headers['X-Appwrite-Dev-Key'] = value;
|
|
4768
|
+
this.config.devkey = value;
|
|
4769
|
+
return this;
|
|
4770
|
+
}
|
|
4742
4771
|
/**
|
|
4743
4772
|
* Set ImpersonateUserId
|
|
4744
4773
|
*
|
|
@@ -8263,6 +8292,47 @@
|
|
|
8263
8292
|
const apiHeaders = {};
|
|
8264
8293
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
8265
8294
|
}
|
|
8295
|
+
suggestQueries(paramsOrFirst, ...rest) {
|
|
8296
|
+
let params;
|
|
8297
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resource' in paramsOrFirst || 'input' in paramsOrFirst || 'databaseId' in paramsOrFirst || 'tableId' in paramsOrFirst))) {
|
|
8298
|
+
params = (paramsOrFirst || {});
|
|
8299
|
+
}
|
|
8300
|
+
else {
|
|
8301
|
+
params = {
|
|
8302
|
+
resource: paramsOrFirst,
|
|
8303
|
+
input: rest[0],
|
|
8304
|
+
databaseId: rest[1],
|
|
8305
|
+
tableId: rest[2]
|
|
8306
|
+
};
|
|
8307
|
+
}
|
|
8308
|
+
const resource = params.resource;
|
|
8309
|
+
const input = params.input;
|
|
8310
|
+
const databaseId = params.databaseId;
|
|
8311
|
+
const tableId = params.tableId;
|
|
8312
|
+
if (typeof resource === 'undefined') {
|
|
8313
|
+
throw new AppwriteException('Missing required parameter: "resource"');
|
|
8314
|
+
}
|
|
8315
|
+
if (typeof input === 'undefined') {
|
|
8316
|
+
throw new AppwriteException('Missing required parameter: "input"');
|
|
8317
|
+
}
|
|
8318
|
+
const apiPath = '/console/suggestions/queries';
|
|
8319
|
+
const payload = {};
|
|
8320
|
+
if (typeof resource !== 'undefined') {
|
|
8321
|
+
payload['resource'] = resource;
|
|
8322
|
+
}
|
|
8323
|
+
if (typeof input !== 'undefined') {
|
|
8324
|
+
payload['input'] = input;
|
|
8325
|
+
}
|
|
8326
|
+
if (typeof databaseId !== 'undefined') {
|
|
8327
|
+
payload['databaseId'] = databaseId;
|
|
8328
|
+
}
|
|
8329
|
+
if (typeof tableId !== 'undefined') {
|
|
8330
|
+
payload['tableId'] = tableId;
|
|
8331
|
+
}
|
|
8332
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8333
|
+
const apiHeaders = {};
|
|
8334
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
8335
|
+
}
|
|
8266
8336
|
/**
|
|
8267
8337
|
* Get all Environment Variables that are relevant for the console.
|
|
8268
8338
|
*
|
|
@@ -8824,6 +8894,132 @@
|
|
|
8824
8894
|
const apiHeaders = {};
|
|
8825
8895
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
8826
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
|
+
}
|
|
8827
9023
|
createBooleanAttribute(paramsOrFirst, ...rest) {
|
|
8828
9024
|
let params;
|
|
8829
9025
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -15841,22 +16037,32 @@
|
|
|
15841
16037
|
const apiHeaders = {};
|
|
15842
16038
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
15843
16039
|
}
|
|
15844
|
-
listVariables(paramsOrFirst) {
|
|
16040
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
15845
16041
|
let params;
|
|
15846
16042
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15847
16043
|
params = (paramsOrFirst || {});
|
|
15848
16044
|
}
|
|
15849
16045
|
else {
|
|
15850
16046
|
params = {
|
|
15851
|
-
functionId: paramsOrFirst
|
|
16047
|
+
functionId: paramsOrFirst,
|
|
16048
|
+
queries: rest[0],
|
|
16049
|
+
total: rest[1]
|
|
15852
16050
|
};
|
|
15853
16051
|
}
|
|
15854
16052
|
const functionId = params.functionId;
|
|
16053
|
+
const queries = params.queries;
|
|
16054
|
+
const total = params.total;
|
|
15855
16055
|
if (typeof functionId === 'undefined') {
|
|
15856
16056
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
15857
16057
|
}
|
|
15858
16058
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
|
15859
16059
|
const payload = {};
|
|
16060
|
+
if (typeof queries !== 'undefined') {
|
|
16061
|
+
payload['queries'] = queries;
|
|
16062
|
+
}
|
|
16063
|
+
if (typeof total !== 'undefined') {
|
|
16064
|
+
payload['total'] = total;
|
|
16065
|
+
}
|
|
15860
16066
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15861
16067
|
const apiHeaders = {};
|
|
15862
16068
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -15869,18 +16075,23 @@
|
|
|
15869
16075
|
else {
|
|
15870
16076
|
params = {
|
|
15871
16077
|
functionId: paramsOrFirst,
|
|
15872
|
-
|
|
15873
|
-
|
|
15874
|
-
|
|
16078
|
+
variableId: rest[0],
|
|
16079
|
+
key: rest[1],
|
|
16080
|
+
value: rest[2],
|
|
16081
|
+
secret: rest[3]
|
|
15875
16082
|
};
|
|
15876
16083
|
}
|
|
15877
16084
|
const functionId = params.functionId;
|
|
16085
|
+
const variableId = params.variableId;
|
|
15878
16086
|
const key = params.key;
|
|
15879
16087
|
const value = params.value;
|
|
15880
16088
|
const secret = params.secret;
|
|
15881
16089
|
if (typeof functionId === 'undefined') {
|
|
15882
16090
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
15883
16091
|
}
|
|
16092
|
+
if (typeof variableId === 'undefined') {
|
|
16093
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
16094
|
+
}
|
|
15884
16095
|
if (typeof key === 'undefined') {
|
|
15885
16096
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
15886
16097
|
}
|
|
@@ -15889,6 +16100,9 @@
|
|
|
15889
16100
|
}
|
|
15890
16101
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
|
15891
16102
|
const payload = {};
|
|
16103
|
+
if (typeof variableId !== 'undefined') {
|
|
16104
|
+
payload['variableId'] = variableId;
|
|
16105
|
+
}
|
|
15892
16106
|
if (typeof key !== 'undefined') {
|
|
15893
16107
|
payload['key'] = key;
|
|
15894
16108
|
}
|
|
@@ -15954,9 +16168,6 @@
|
|
|
15954
16168
|
if (typeof variableId === 'undefined') {
|
|
15955
16169
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
15956
16170
|
}
|
|
15957
|
-
if (typeof key === 'undefined') {
|
|
15958
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
15959
|
-
}
|
|
15960
16171
|
const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
|
|
15961
16172
|
const payload = {};
|
|
15962
16173
|
if (typeof key !== 'undefined') {
|
|
@@ -19729,7 +19940,7 @@
|
|
|
19729
19940
|
}
|
|
19730
19941
|
createAppwriteMigration(paramsOrFirst, ...rest) {
|
|
19731
19942
|
let params;
|
|
19732
|
-
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))) {
|
|
19733
19944
|
params = (paramsOrFirst || {});
|
|
19734
19945
|
}
|
|
19735
19946
|
else {
|
|
@@ -19737,13 +19948,15 @@
|
|
|
19737
19948
|
resources: paramsOrFirst,
|
|
19738
19949
|
endpoint: rest[0],
|
|
19739
19950
|
projectId: rest[1],
|
|
19740
|
-
apiKey: rest[2]
|
|
19951
|
+
apiKey: rest[2],
|
|
19952
|
+
onDuplicate: rest[3]
|
|
19741
19953
|
};
|
|
19742
19954
|
}
|
|
19743
19955
|
const resources = params.resources;
|
|
19744
19956
|
const endpoint = params.endpoint;
|
|
19745
19957
|
const projectId = params.projectId;
|
|
19746
19958
|
const apiKey = params.apiKey;
|
|
19959
|
+
const onDuplicate = params.onDuplicate;
|
|
19747
19960
|
if (typeof resources === 'undefined') {
|
|
19748
19961
|
throw new AppwriteException('Missing required parameter: "resources"');
|
|
19749
19962
|
}
|
|
@@ -19770,6 +19983,9 @@
|
|
|
19770
19983
|
if (typeof apiKey !== 'undefined') {
|
|
19771
19984
|
payload['apiKey'] = apiKey;
|
|
19772
19985
|
}
|
|
19986
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
19987
|
+
payload['onDuplicate'] = onDuplicate;
|
|
19988
|
+
}
|
|
19773
19989
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19774
19990
|
const apiHeaders = {
|
|
19775
19991
|
'content-type': 'application/json',
|
|
@@ -19901,13 +20117,15 @@
|
|
|
19901
20117
|
bucketId: paramsOrFirst,
|
|
19902
20118
|
fileId: rest[0],
|
|
19903
20119
|
resourceId: rest[1],
|
|
19904
|
-
internalFile: rest[2]
|
|
20120
|
+
internalFile: rest[2],
|
|
20121
|
+
onDuplicate: rest[3]
|
|
19905
20122
|
};
|
|
19906
20123
|
}
|
|
19907
20124
|
const bucketId = params.bucketId;
|
|
19908
20125
|
const fileId = params.fileId;
|
|
19909
20126
|
const resourceId = params.resourceId;
|
|
19910
20127
|
const internalFile = params.internalFile;
|
|
20128
|
+
const onDuplicate = params.onDuplicate;
|
|
19911
20129
|
if (typeof bucketId === 'undefined') {
|
|
19912
20130
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
19913
20131
|
}
|
|
@@ -19931,6 +20149,9 @@
|
|
|
19931
20149
|
if (typeof internalFile !== 'undefined') {
|
|
19932
20150
|
payload['internalFile'] = internalFile;
|
|
19933
20151
|
}
|
|
20152
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
20153
|
+
payload['onDuplicate'] = onDuplicate;
|
|
20154
|
+
}
|
|
19934
20155
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19935
20156
|
const apiHeaders = {
|
|
19936
20157
|
'content-type': 'application/json',
|
|
@@ -20059,13 +20280,15 @@
|
|
|
20059
20280
|
bucketId: paramsOrFirst,
|
|
20060
20281
|
fileId: rest[0],
|
|
20061
20282
|
resourceId: rest[1],
|
|
20062
|
-
internalFile: rest[2]
|
|
20283
|
+
internalFile: rest[2],
|
|
20284
|
+
onDuplicate: rest[3]
|
|
20063
20285
|
};
|
|
20064
20286
|
}
|
|
20065
20287
|
const bucketId = params.bucketId;
|
|
20066
20288
|
const fileId = params.fileId;
|
|
20067
20289
|
const resourceId = params.resourceId;
|
|
20068
20290
|
const internalFile = params.internalFile;
|
|
20291
|
+
const onDuplicate = params.onDuplicate;
|
|
20069
20292
|
if (typeof bucketId === 'undefined') {
|
|
20070
20293
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
20071
20294
|
}
|
|
@@ -20089,6 +20312,9 @@
|
|
|
20089
20312
|
if (typeof internalFile !== 'undefined') {
|
|
20090
20313
|
payload['internalFile'] = internalFile;
|
|
20091
20314
|
}
|
|
20315
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
20316
|
+
payload['onDuplicate'] = onDuplicate;
|
|
20317
|
+
}
|
|
20092
20318
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20093
20319
|
const apiHeaders = {
|
|
20094
20320
|
'content-type': 'application/json',
|
|
@@ -22392,15 +22618,27 @@
|
|
|
22392
22618
|
};
|
|
22393
22619
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22394
22620
|
}
|
|
22395
|
-
|
|
22396
|
-
|
|
22397
|
-
|
|
22398
|
-
|
|
22399
|
-
|
|
22400
|
-
|
|
22401
|
-
|
|
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;
|
|
22402
22634
|
const apiPath = '/project/oauth2';
|
|
22403
22635
|
const payload = {};
|
|
22636
|
+
if (typeof queries !== 'undefined') {
|
|
22637
|
+
payload['queries'] = queries;
|
|
22638
|
+
}
|
|
22639
|
+
if (typeof total !== 'undefined') {
|
|
22640
|
+
payload['total'] = total;
|
|
22641
|
+
}
|
|
22404
22642
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22405
22643
|
const apiHeaders = {};
|
|
22406
22644
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -23229,8 +23467,8 @@
|
|
|
23229
23467
|
clientSecret: rest[0],
|
|
23230
23468
|
wellKnownURL: rest[1],
|
|
23231
23469
|
authorizationURL: rest[2],
|
|
23232
|
-
|
|
23233
|
-
|
|
23470
|
+
tokenURL: rest[3],
|
|
23471
|
+
userInfoURL: rest[4],
|
|
23234
23472
|
enabled: rest[5]
|
|
23235
23473
|
};
|
|
23236
23474
|
}
|
|
@@ -23238,8 +23476,8 @@
|
|
|
23238
23476
|
const clientSecret = params.clientSecret;
|
|
23239
23477
|
const wellKnownURL = params.wellKnownURL;
|
|
23240
23478
|
const authorizationURL = params.authorizationURL;
|
|
23241
|
-
const
|
|
23242
|
-
const
|
|
23479
|
+
const tokenURL = params.tokenURL;
|
|
23480
|
+
const userInfoURL = params.userInfoURL;
|
|
23243
23481
|
const enabled = params.enabled;
|
|
23244
23482
|
const apiPath = '/project/oauth2/oidc';
|
|
23245
23483
|
const payload = {};
|
|
@@ -23255,11 +23493,11 @@
|
|
|
23255
23493
|
if (typeof authorizationURL !== 'undefined') {
|
|
23256
23494
|
payload['authorizationURL'] = authorizationURL;
|
|
23257
23495
|
}
|
|
23258
|
-
if (typeof
|
|
23259
|
-
payload['
|
|
23496
|
+
if (typeof tokenURL !== 'undefined') {
|
|
23497
|
+
payload['tokenURL'] = tokenURL;
|
|
23260
23498
|
}
|
|
23261
|
-
if (typeof
|
|
23262
|
-
payload['
|
|
23499
|
+
if (typeof userInfoURL !== 'undefined') {
|
|
23500
|
+
payload['userInfoURL'] = userInfoURL;
|
|
23263
23501
|
}
|
|
23264
23502
|
if (typeof enabled !== 'undefined') {
|
|
23265
23503
|
payload['enabled'] = enabled;
|
|
@@ -23826,19 +24064,19 @@
|
|
|
23826
24064
|
}
|
|
23827
24065
|
getOAuth2Provider(paramsOrFirst) {
|
|
23828
24066
|
let params;
|
|
23829
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24067
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
|
|
23830
24068
|
params = (paramsOrFirst || {});
|
|
23831
24069
|
}
|
|
23832
24070
|
else {
|
|
23833
24071
|
params = {
|
|
23834
|
-
|
|
24072
|
+
providerId: paramsOrFirst
|
|
23835
24073
|
};
|
|
23836
24074
|
}
|
|
23837
|
-
const
|
|
23838
|
-
if (typeof
|
|
23839
|
-
throw new AppwriteException('Missing required parameter: "
|
|
24075
|
+
const providerId = params.providerId;
|
|
24076
|
+
if (typeof providerId === 'undefined') {
|
|
24077
|
+
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
23840
24078
|
}
|
|
23841
|
-
const apiPath = '/project/oauth2/{
|
|
24079
|
+
const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
|
|
23842
24080
|
const payload = {};
|
|
23843
24081
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23844
24082
|
const apiHeaders = {};
|
|
@@ -25628,21 +25866,16 @@
|
|
|
25628
25866
|
else {
|
|
25629
25867
|
params = {
|
|
25630
25868
|
queries: paramsOrFirst,
|
|
25631
|
-
|
|
25632
|
-
total: rest[1]
|
|
25869
|
+
total: rest[0]
|
|
25633
25870
|
};
|
|
25634
25871
|
}
|
|
25635
25872
|
const queries = params.queries;
|
|
25636
|
-
const search = params.search;
|
|
25637
25873
|
const total = params.total;
|
|
25638
25874
|
const apiPath = '/proxy/rules';
|
|
25639
25875
|
const payload = {};
|
|
25640
25876
|
if (typeof queries !== 'undefined') {
|
|
25641
25877
|
payload['queries'] = queries;
|
|
25642
25878
|
}
|
|
25643
|
-
if (typeof search !== 'undefined') {
|
|
25644
|
-
payload['search'] = search;
|
|
25645
|
-
}
|
|
25646
25879
|
if (typeof total !== 'undefined') {
|
|
25647
25880
|
payload['total'] = total;
|
|
25648
25881
|
}
|
|
@@ -25850,7 +26083,7 @@
|
|
|
25850
26083
|
};
|
|
25851
26084
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
25852
26085
|
}
|
|
25853
|
-
|
|
26086
|
+
updateRuleStatus(paramsOrFirst) {
|
|
25854
26087
|
let params;
|
|
25855
26088
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
25856
26089
|
params = (paramsOrFirst || {});
|
|
@@ -25864,7 +26097,7 @@
|
|
|
25864
26097
|
if (typeof ruleId === 'undefined') {
|
|
25865
26098
|
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
25866
26099
|
}
|
|
25867
|
-
const apiPath = '/proxy/rules/{ruleId}/
|
|
26100
|
+
const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
|
|
25868
26101
|
const payload = {};
|
|
25869
26102
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25870
26103
|
const apiHeaders = {
|
|
@@ -26790,22 +27023,32 @@
|
|
|
26790
27023
|
const apiHeaders = {};
|
|
26791
27024
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
26792
27025
|
}
|
|
26793
|
-
listVariables(paramsOrFirst) {
|
|
27026
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
26794
27027
|
let params;
|
|
26795
27028
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26796
27029
|
params = (paramsOrFirst || {});
|
|
26797
27030
|
}
|
|
26798
27031
|
else {
|
|
26799
27032
|
params = {
|
|
26800
|
-
siteId: paramsOrFirst
|
|
27033
|
+
siteId: paramsOrFirst,
|
|
27034
|
+
queries: rest[0],
|
|
27035
|
+
total: rest[1]
|
|
26801
27036
|
};
|
|
26802
27037
|
}
|
|
26803
27038
|
const siteId = params.siteId;
|
|
27039
|
+
const queries = params.queries;
|
|
27040
|
+
const total = params.total;
|
|
26804
27041
|
if (typeof siteId === 'undefined') {
|
|
26805
27042
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
26806
27043
|
}
|
|
26807
27044
|
const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
26808
27045
|
const payload = {};
|
|
27046
|
+
if (typeof queries !== 'undefined') {
|
|
27047
|
+
payload['queries'] = queries;
|
|
27048
|
+
}
|
|
27049
|
+
if (typeof total !== 'undefined') {
|
|
27050
|
+
payload['total'] = total;
|
|
27051
|
+
}
|
|
26809
27052
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26810
27053
|
const apiHeaders = {};
|
|
26811
27054
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -26818,18 +27061,23 @@
|
|
|
26818
27061
|
else {
|
|
26819
27062
|
params = {
|
|
26820
27063
|
siteId: paramsOrFirst,
|
|
26821
|
-
|
|
26822
|
-
|
|
26823
|
-
|
|
27064
|
+
variableId: rest[0],
|
|
27065
|
+
key: rest[1],
|
|
27066
|
+
value: rest[2],
|
|
27067
|
+
secret: rest[3]
|
|
26824
27068
|
};
|
|
26825
27069
|
}
|
|
26826
27070
|
const siteId = params.siteId;
|
|
27071
|
+
const variableId = params.variableId;
|
|
26827
27072
|
const key = params.key;
|
|
26828
27073
|
const value = params.value;
|
|
26829
27074
|
const secret = params.secret;
|
|
26830
27075
|
if (typeof siteId === 'undefined') {
|
|
26831
27076
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
26832
27077
|
}
|
|
27078
|
+
if (typeof variableId === 'undefined') {
|
|
27079
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
27080
|
+
}
|
|
26833
27081
|
if (typeof key === 'undefined') {
|
|
26834
27082
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
26835
27083
|
}
|
|
@@ -26838,6 +27086,9 @@
|
|
|
26838
27086
|
}
|
|
26839
27087
|
const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
26840
27088
|
const payload = {};
|
|
27089
|
+
if (typeof variableId !== 'undefined') {
|
|
27090
|
+
payload['variableId'] = variableId;
|
|
27091
|
+
}
|
|
26841
27092
|
if (typeof key !== 'undefined') {
|
|
26842
27093
|
payload['key'] = key;
|
|
26843
27094
|
}
|
|
@@ -26903,9 +27154,6 @@
|
|
|
26903
27154
|
if (typeof variableId === 'undefined') {
|
|
26904
27155
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
26905
27156
|
}
|
|
26906
|
-
if (typeof key === 'undefined') {
|
|
26907
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
26908
|
-
}
|
|
26909
27157
|
const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
|
|
26910
27158
|
const payload = {};
|
|
26911
27159
|
if (typeof key !== 'undefined') {
|
|
@@ -28098,6 +28346,132 @@
|
|
|
28098
28346
|
const apiHeaders = {};
|
|
28099
28347
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
28100
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
|
+
}
|
|
28101
28475
|
createBooleanColumn(paramsOrFirst, ...rest) {
|
|
28102
28476
|
let params;
|
|
28103
28477
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -33193,11 +33567,15 @@
|
|
|
33193
33567
|
else {
|
|
33194
33568
|
params = {
|
|
33195
33569
|
installationId: paramsOrFirst,
|
|
33196
|
-
providerRepositoryId: rest[0]
|
|
33570
|
+
providerRepositoryId: rest[0],
|
|
33571
|
+
search: rest[1],
|
|
33572
|
+
queries: rest[2]
|
|
33197
33573
|
};
|
|
33198
33574
|
}
|
|
33199
33575
|
const installationId = params.installationId;
|
|
33200
33576
|
const providerRepositoryId = params.providerRepositoryId;
|
|
33577
|
+
const search = params.search;
|
|
33578
|
+
const queries = params.queries;
|
|
33201
33579
|
if (typeof installationId === 'undefined') {
|
|
33202
33580
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
33203
33581
|
}
|
|
@@ -33206,6 +33584,12 @@
|
|
|
33206
33584
|
}
|
|
33207
33585
|
const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
|
|
33208
33586
|
const payload = {};
|
|
33587
|
+
if (typeof search !== 'undefined') {
|
|
33588
|
+
payload['search'] = search;
|
|
33589
|
+
}
|
|
33590
|
+
if (typeof queries !== 'undefined') {
|
|
33591
|
+
payload['queries'] = queries;
|
|
33592
|
+
}
|
|
33209
33593
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
33210
33594
|
const apiHeaders = {};
|
|
33211
33595
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -35778,6 +36162,8 @@
|
|
|
35778
36162
|
Scopes["MocksWrite"] = "mocks.write";
|
|
35779
36163
|
Scopes["PoliciesRead"] = "policies.read";
|
|
35780
36164
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
36165
|
+
Scopes["ProjectPoliciesRead"] = "project.policies.read";
|
|
36166
|
+
Scopes["ProjectPoliciesWrite"] = "project.policies.write";
|
|
35781
36167
|
Scopes["TemplatesRead"] = "templates.read";
|
|
35782
36168
|
Scopes["TemplatesWrite"] = "templates.write";
|
|
35783
36169
|
Scopes["Oauth2Read"] = "oauth2.read";
|
|
@@ -35828,6 +36214,8 @@
|
|
|
35828
36214
|
Scopes["TargetsWrite"] = "targets.write";
|
|
35829
36215
|
Scopes["MessagesRead"] = "messages.read";
|
|
35830
36216
|
Scopes["MessagesWrite"] = "messages.write";
|
|
36217
|
+
Scopes["RulesRead"] = "rules.read";
|
|
36218
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
35831
36219
|
Scopes["WebhooksRead"] = "webhooks.read";
|
|
35832
36220
|
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
35833
36221
|
Scopes["LocaleRead"] = "locale.read";
|
|
@@ -35840,8 +36228,8 @@
|
|
|
35840
36228
|
Scopes["SchedulesWrite"] = "schedules.write";
|
|
35841
36229
|
Scopes["VcsRead"] = "vcs.read";
|
|
35842
36230
|
Scopes["VcsWrite"] = "vcs.write";
|
|
35843
|
-
Scopes["
|
|
35844
|
-
Scopes["
|
|
36231
|
+
Scopes["BackupsPoliciesRead"] = "backups.policies.read";
|
|
36232
|
+
Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
|
|
35845
36233
|
Scopes["ArchivesRead"] = "archives.read";
|
|
35846
36234
|
Scopes["ArchivesWrite"] = "archives.write";
|
|
35847
36235
|
Scopes["RestorationsRead"] = "restorations.read";
|
|
@@ -35913,6 +36301,8 @@
|
|
|
35913
36301
|
OAuthProvider["Yandex"] = "yandex";
|
|
35914
36302
|
OAuthProvider["Zoho"] = "zoho";
|
|
35915
36303
|
OAuthProvider["Zoom"] = "zoom";
|
|
36304
|
+
OAuthProvider["GithubImagine"] = "githubImagine";
|
|
36305
|
+
OAuthProvider["GoogleImagine"] = "googleImagine";
|
|
35916
36306
|
})(exports.OAuthProvider || (exports.OAuthProvider = {}));
|
|
35917
36307
|
|
|
35918
36308
|
exports.Browser = void 0;
|
|
@@ -36638,6 +37028,82 @@
|
|
|
36638
37028
|
ConsoleResourceType["Rules"] = "rules";
|
|
36639
37029
|
})(exports.ConsoleResourceType || (exports.ConsoleResourceType = {}));
|
|
36640
37030
|
|
|
37031
|
+
exports.QuerySuggestionResource = void 0;
|
|
37032
|
+
(function (QuerySuggestionResource) {
|
|
37033
|
+
QuerySuggestionResource["Activities"] = "activities";
|
|
37034
|
+
QuerySuggestionResource["ActivityEvents"] = "activityevents";
|
|
37035
|
+
QuerySuggestionResource["Archives"] = "archives";
|
|
37036
|
+
QuerySuggestionResource["Credits"] = "credits";
|
|
37037
|
+
QuerySuggestionResource["DnsRecords"] = "dnsrecords";
|
|
37038
|
+
QuerySuggestionResource["Domains"] = "domains";
|
|
37039
|
+
QuerySuggestionResource["Invoices"] = "invoices";
|
|
37040
|
+
QuerySuggestionResource["PaymentMethods"] = "paymentmethods";
|
|
37041
|
+
QuerySuggestionResource["Policies"] = "policies";
|
|
37042
|
+
QuerySuggestionResource["Projects"] = "projects";
|
|
37043
|
+
QuerySuggestionResource["Restorations"] = "restorations";
|
|
37044
|
+
QuerySuggestionResource["TeamAggregations"] = "teamaggregations";
|
|
37045
|
+
QuerySuggestionResource["Teams"] = "teams";
|
|
37046
|
+
QuerySuggestionResource["Databases"] = "databases";
|
|
37047
|
+
QuerySuggestionResource["Tables"] = "tables";
|
|
37048
|
+
QuerySuggestionResource["Rows"] = "rows";
|
|
37049
|
+
QuerySuggestionResource["Schedules"] = "schedules";
|
|
37050
|
+
QuerySuggestionResource["Platforms"] = "platforms";
|
|
37051
|
+
QuerySuggestionResource["Keys"] = "keys";
|
|
37052
|
+
QuerySuggestionResource["DevKeys"] = "devkeys";
|
|
37053
|
+
QuerySuggestionResource["Webhooks"] = "webhooks";
|
|
37054
|
+
QuerySuggestionResource["Certificates"] = "certificates";
|
|
37055
|
+
QuerySuggestionResource["Realtime"] = "realtime";
|
|
37056
|
+
QuerySuggestionResource["Rules"] = "rules";
|
|
37057
|
+
QuerySuggestionResource["Installations"] = "installations";
|
|
37058
|
+
QuerySuggestionResource["Repositories"] = "repositories";
|
|
37059
|
+
QuerySuggestionResource["VcsComments"] = "vcscomments";
|
|
37060
|
+
QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
|
|
37061
|
+
QuerySuggestionResource["Users"] = "users";
|
|
37062
|
+
QuerySuggestionResource["Cache"] = "cache";
|
|
37063
|
+
QuerySuggestionResource["Tokens"] = "tokens";
|
|
37064
|
+
QuerySuggestionResource["Authenticators"] = "authenticators";
|
|
37065
|
+
QuerySuggestionResource["Challenges"] = "challenges";
|
|
37066
|
+
QuerySuggestionResource["Sessions"] = "sessions";
|
|
37067
|
+
QuerySuggestionResource["Identities"] = "identities";
|
|
37068
|
+
QuerySuggestionResource["Memberships"] = "memberships";
|
|
37069
|
+
QuerySuggestionResource["Buckets"] = "buckets";
|
|
37070
|
+
QuerySuggestionResource["Providers"] = "providers";
|
|
37071
|
+
QuerySuggestionResource["Messages"] = "messages";
|
|
37072
|
+
QuerySuggestionResource["Topics"] = "topics";
|
|
37073
|
+
QuerySuggestionResource["Subscribers"] = "subscribers";
|
|
37074
|
+
QuerySuggestionResource["Targets"] = "targets";
|
|
37075
|
+
QuerySuggestionResource["Companies"] = "companies";
|
|
37076
|
+
QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
|
|
37077
|
+
QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
|
|
37078
|
+
QuerySuggestionResource["BillingAggregationResources"] = "billingaggregationresources";
|
|
37079
|
+
QuerySuggestionResource["BillingTeamProjectAggregations"] = "billingteamprojectaggregations";
|
|
37080
|
+
QuerySuggestionResource["BillingTeamAggregationsV2"] = "billingteamaggregations_v2";
|
|
37081
|
+
QuerySuggestionResource["BillingTeamAggregationResources"] = "billingteamaggregationresources";
|
|
37082
|
+
QuerySuggestionResource["BillingInvoicesV2"] = "billinginvoices_v2";
|
|
37083
|
+
QuerySuggestionResource["BillingAddons"] = "billingaddons";
|
|
37084
|
+
QuerySuggestionResource["Alerts"] = "alerts";
|
|
37085
|
+
QuerySuggestionResource["Payments"] = "payments";
|
|
37086
|
+
QuerySuggestionResource["BillingDiscounts"] = "billingdiscounts";
|
|
37087
|
+
QuerySuggestionResource["Sources"] = "sources";
|
|
37088
|
+
QuerySuggestionResource["Deals"] = "deals";
|
|
37089
|
+
QuerySuggestionResource["Blocks"] = "blocks";
|
|
37090
|
+
QuerySuggestionResource["Threats"] = "threats";
|
|
37091
|
+
QuerySuggestionResource["Feedbacks"] = "feedbacks";
|
|
37092
|
+
QuerySuggestionResource["ShInstallations"] = "sh_installations";
|
|
37093
|
+
QuerySuggestionResource["Attributes"] = "attributes";
|
|
37094
|
+
QuerySuggestionResource["Indexes"] = "indexes";
|
|
37095
|
+
QuerySuggestionResource["Functions"] = "functions";
|
|
37096
|
+
QuerySuggestionResource["Sites"] = "sites";
|
|
37097
|
+
QuerySuggestionResource["Deployments"] = "deployments";
|
|
37098
|
+
QuerySuggestionResource["Executions"] = "executions";
|
|
37099
|
+
QuerySuggestionResource["Variables"] = "variables";
|
|
37100
|
+
QuerySuggestionResource["Migrations"] = "migrations";
|
|
37101
|
+
QuerySuggestionResource["ResourceTokens"] = "resourcetokens";
|
|
37102
|
+
QuerySuggestionResource["Transactions"] = "transactions";
|
|
37103
|
+
QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
|
|
37104
|
+
QuerySuggestionResource["Stats"] = "stats";
|
|
37105
|
+
})(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
|
|
37106
|
+
|
|
36641
37107
|
exports.UsageRange = void 0;
|
|
36642
37108
|
(function (UsageRange) {
|
|
36643
37109
|
UsageRange["TwentyFourHours"] = "24h";
|
|
@@ -37007,6 +37473,13 @@
|
|
|
37007
37473
|
AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
|
|
37008
37474
|
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
37009
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
|
+
|
|
37010
37483
|
exports.FirebaseMigrationResource = void 0;
|
|
37011
37484
|
(function (FirebaseMigrationResource) {
|
|
37012
37485
|
FirebaseMigrationResource["User"] = "user";
|
|
@@ -37056,29 +37529,29 @@
|
|
|
37056
37529
|
Addon["Baa"] = "baa";
|
|
37057
37530
|
})(exports.Addon || (exports.Addon = {}));
|
|
37058
37531
|
|
|
37059
|
-
exports.
|
|
37060
|
-
(function (
|
|
37061
|
-
|
|
37062
|
-
|
|
37063
|
-
|
|
37064
|
-
|
|
37065
|
-
|
|
37066
|
-
|
|
37067
|
-
|
|
37068
|
-
})(exports.
|
|
37069
|
-
|
|
37070
|
-
exports.
|
|
37071
|
-
(function (
|
|
37072
|
-
|
|
37073
|
-
|
|
37074
|
-
|
|
37075
|
-
|
|
37076
|
-
|
|
37077
|
-
|
|
37078
|
-
|
|
37079
|
-
|
|
37080
|
-
|
|
37081
|
-
})(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 = {}));
|
|
37082
37555
|
|
|
37083
37556
|
exports.ProtocolId = void 0;
|
|
37084
37557
|
(function (ProtocolId) {
|
|
@@ -37604,10 +38077,9 @@
|
|
|
37604
38077
|
|
|
37605
38078
|
exports.ProxyRuleStatus = void 0;
|
|
37606
38079
|
(function (ProxyRuleStatus) {
|
|
37607
|
-
ProxyRuleStatus["
|
|
38080
|
+
ProxyRuleStatus["Unverified"] = "unverified";
|
|
37608
38081
|
ProxyRuleStatus["Verifying"] = "verifying";
|
|
37609
38082
|
ProxyRuleStatus["Verified"] = "verified";
|
|
37610
|
-
ProxyRuleStatus["Unverified"] = "unverified";
|
|
37611
38083
|
})(exports.ProxyRuleStatus || (exports.ProxyRuleStatus = {}));
|
|
37612
38084
|
|
|
37613
38085
|
exports.MessageStatus = void 0;
|