@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/cjs/sdk.js
CHANGED
|
@@ -606,12 +606,13 @@ class Client {
|
|
|
606
606
|
locale: '',
|
|
607
607
|
mode: '',
|
|
608
608
|
cookie: '',
|
|
609
|
+
session: '',
|
|
610
|
+
devkey: '',
|
|
609
611
|
impersonateuserid: '',
|
|
610
612
|
impersonateuseremail: '',
|
|
611
613
|
impersonateuserphone: '',
|
|
612
614
|
platform: '',
|
|
613
615
|
selfSigned: false,
|
|
614
|
-
session: undefined,
|
|
615
616
|
};
|
|
616
617
|
/**
|
|
617
618
|
* Custom headers for API requests.
|
|
@@ -620,8 +621,8 @@ class Client {
|
|
|
620
621
|
'x-sdk-name': 'Console',
|
|
621
622
|
'x-sdk-platform': 'console',
|
|
622
623
|
'x-sdk-language': 'web',
|
|
623
|
-
'x-sdk-version': '12.
|
|
624
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
624
|
+
'x-sdk-version': '12.2.0',
|
|
625
|
+
'X-Appwrite-Response-Format': '1.9.4',
|
|
625
626
|
};
|
|
626
627
|
this.realtime = {
|
|
627
628
|
socket: undefined,
|
|
@@ -930,7 +931,7 @@ class Client {
|
|
|
930
931
|
/**
|
|
931
932
|
* Set Cookie
|
|
932
933
|
*
|
|
933
|
-
* The user cookie to authenticate with
|
|
934
|
+
* The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes.
|
|
934
935
|
*
|
|
935
936
|
* @param value string
|
|
936
937
|
*
|
|
@@ -941,6 +942,34 @@ class Client {
|
|
|
941
942
|
this.config.cookie = value;
|
|
942
943
|
return this;
|
|
943
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
* Set Session
|
|
947
|
+
*
|
|
948
|
+
* The user session to authenticate with
|
|
949
|
+
*
|
|
950
|
+
* @param value string
|
|
951
|
+
*
|
|
952
|
+
* @return {this}
|
|
953
|
+
*/
|
|
954
|
+
setSession(value) {
|
|
955
|
+
this.headers['X-Appwrite-Session'] = value;
|
|
956
|
+
this.config.session = value;
|
|
957
|
+
return this;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Set DevKey
|
|
961
|
+
*
|
|
962
|
+
* Your secret dev API key
|
|
963
|
+
*
|
|
964
|
+
* @param value string
|
|
965
|
+
*
|
|
966
|
+
* @return {this}
|
|
967
|
+
*/
|
|
968
|
+
setDevKey(value) {
|
|
969
|
+
this.headers['X-Appwrite-Dev-Key'] = value;
|
|
970
|
+
this.config.devkey = value;
|
|
971
|
+
return this;
|
|
972
|
+
}
|
|
944
973
|
/**
|
|
945
974
|
* Set ImpersonateUserId
|
|
946
975
|
*
|
|
@@ -4465,6 +4494,47 @@ class Console {
|
|
|
4465
4494
|
const apiHeaders = {};
|
|
4466
4495
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
4467
4496
|
}
|
|
4497
|
+
suggestQueries(paramsOrFirst, ...rest) {
|
|
4498
|
+
let params;
|
|
4499
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resource' in paramsOrFirst || 'input' in paramsOrFirst || 'databaseId' in paramsOrFirst || 'tableId' in paramsOrFirst))) {
|
|
4500
|
+
params = (paramsOrFirst || {});
|
|
4501
|
+
}
|
|
4502
|
+
else {
|
|
4503
|
+
params = {
|
|
4504
|
+
resource: paramsOrFirst,
|
|
4505
|
+
input: rest[0],
|
|
4506
|
+
databaseId: rest[1],
|
|
4507
|
+
tableId: rest[2]
|
|
4508
|
+
};
|
|
4509
|
+
}
|
|
4510
|
+
const resource = params.resource;
|
|
4511
|
+
const input = params.input;
|
|
4512
|
+
const databaseId = params.databaseId;
|
|
4513
|
+
const tableId = params.tableId;
|
|
4514
|
+
if (typeof resource === 'undefined') {
|
|
4515
|
+
throw new AppwriteException('Missing required parameter: "resource"');
|
|
4516
|
+
}
|
|
4517
|
+
if (typeof input === 'undefined') {
|
|
4518
|
+
throw new AppwriteException('Missing required parameter: "input"');
|
|
4519
|
+
}
|
|
4520
|
+
const apiPath = '/console/suggestions/queries';
|
|
4521
|
+
const payload = {};
|
|
4522
|
+
if (typeof resource !== 'undefined') {
|
|
4523
|
+
payload['resource'] = resource;
|
|
4524
|
+
}
|
|
4525
|
+
if (typeof input !== 'undefined') {
|
|
4526
|
+
payload['input'] = input;
|
|
4527
|
+
}
|
|
4528
|
+
if (typeof databaseId !== 'undefined') {
|
|
4529
|
+
payload['databaseId'] = databaseId;
|
|
4530
|
+
}
|
|
4531
|
+
if (typeof tableId !== 'undefined') {
|
|
4532
|
+
payload['tableId'] = tableId;
|
|
4533
|
+
}
|
|
4534
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4535
|
+
const apiHeaders = {};
|
|
4536
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4537
|
+
}
|
|
4468
4538
|
/**
|
|
4469
4539
|
* Get all Environment Variables that are relevant for the console.
|
|
4470
4540
|
*
|
|
@@ -5026,6 +5096,132 @@ class Databases {
|
|
|
5026
5096
|
const apiHeaders = {};
|
|
5027
5097
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
5028
5098
|
}
|
|
5099
|
+
createBigIntAttribute(paramsOrFirst, ...rest) {
|
|
5100
|
+
let params;
|
|
5101
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5102
|
+
params = (paramsOrFirst || {});
|
|
5103
|
+
}
|
|
5104
|
+
else {
|
|
5105
|
+
params = {
|
|
5106
|
+
databaseId: paramsOrFirst,
|
|
5107
|
+
collectionId: rest[0],
|
|
5108
|
+
key: rest[1],
|
|
5109
|
+
required: rest[2],
|
|
5110
|
+
min: rest[3],
|
|
5111
|
+
max: rest[4],
|
|
5112
|
+
xdefault: rest[5],
|
|
5113
|
+
array: rest[6]
|
|
5114
|
+
};
|
|
5115
|
+
}
|
|
5116
|
+
const databaseId = params.databaseId;
|
|
5117
|
+
const collectionId = params.collectionId;
|
|
5118
|
+
const key = params.key;
|
|
5119
|
+
const required = params.required;
|
|
5120
|
+
const min = params.min;
|
|
5121
|
+
const max = params.max;
|
|
5122
|
+
const xdefault = params.xdefault;
|
|
5123
|
+
const array = params.array;
|
|
5124
|
+
if (typeof databaseId === 'undefined') {
|
|
5125
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5126
|
+
}
|
|
5127
|
+
if (typeof collectionId === 'undefined') {
|
|
5128
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
5129
|
+
}
|
|
5130
|
+
if (typeof key === 'undefined') {
|
|
5131
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
5132
|
+
}
|
|
5133
|
+
if (typeof required === 'undefined') {
|
|
5134
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
5135
|
+
}
|
|
5136
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
5137
|
+
const payload = {};
|
|
5138
|
+
if (typeof key !== 'undefined') {
|
|
5139
|
+
payload['key'] = key;
|
|
5140
|
+
}
|
|
5141
|
+
if (typeof required !== 'undefined') {
|
|
5142
|
+
payload['required'] = required;
|
|
5143
|
+
}
|
|
5144
|
+
if (typeof min !== 'undefined') {
|
|
5145
|
+
payload['min'] = min;
|
|
5146
|
+
}
|
|
5147
|
+
if (typeof max !== 'undefined') {
|
|
5148
|
+
payload['max'] = max;
|
|
5149
|
+
}
|
|
5150
|
+
if (typeof xdefault !== 'undefined') {
|
|
5151
|
+
payload['default'] = xdefault;
|
|
5152
|
+
}
|
|
5153
|
+
if (typeof array !== 'undefined') {
|
|
5154
|
+
payload['array'] = array;
|
|
5155
|
+
}
|
|
5156
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5157
|
+
const apiHeaders = {
|
|
5158
|
+
'content-type': 'application/json',
|
|
5159
|
+
};
|
|
5160
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5161
|
+
}
|
|
5162
|
+
updateBigIntAttribute(paramsOrFirst, ...rest) {
|
|
5163
|
+
let params;
|
|
5164
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5165
|
+
params = (paramsOrFirst || {});
|
|
5166
|
+
}
|
|
5167
|
+
else {
|
|
5168
|
+
params = {
|
|
5169
|
+
databaseId: paramsOrFirst,
|
|
5170
|
+
collectionId: rest[0],
|
|
5171
|
+
key: rest[1],
|
|
5172
|
+
required: rest[2],
|
|
5173
|
+
xdefault: rest[3],
|
|
5174
|
+
min: rest[4],
|
|
5175
|
+
max: rest[5],
|
|
5176
|
+
newKey: rest[6]
|
|
5177
|
+
};
|
|
5178
|
+
}
|
|
5179
|
+
const databaseId = params.databaseId;
|
|
5180
|
+
const collectionId = params.collectionId;
|
|
5181
|
+
const key = params.key;
|
|
5182
|
+
const required = params.required;
|
|
5183
|
+
const xdefault = params.xdefault;
|
|
5184
|
+
const min = params.min;
|
|
5185
|
+
const max = params.max;
|
|
5186
|
+
const newKey = params.newKey;
|
|
5187
|
+
if (typeof databaseId === 'undefined') {
|
|
5188
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5189
|
+
}
|
|
5190
|
+
if (typeof collectionId === 'undefined') {
|
|
5191
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
5192
|
+
}
|
|
5193
|
+
if (typeof key === 'undefined') {
|
|
5194
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
5195
|
+
}
|
|
5196
|
+
if (typeof required === 'undefined') {
|
|
5197
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
5198
|
+
}
|
|
5199
|
+
if (typeof xdefault === 'undefined') {
|
|
5200
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
5201
|
+
}
|
|
5202
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
5203
|
+
const payload = {};
|
|
5204
|
+
if (typeof required !== 'undefined') {
|
|
5205
|
+
payload['required'] = required;
|
|
5206
|
+
}
|
|
5207
|
+
if (typeof min !== 'undefined') {
|
|
5208
|
+
payload['min'] = min;
|
|
5209
|
+
}
|
|
5210
|
+
if (typeof max !== 'undefined') {
|
|
5211
|
+
payload['max'] = max;
|
|
5212
|
+
}
|
|
5213
|
+
if (typeof xdefault !== 'undefined') {
|
|
5214
|
+
payload['default'] = xdefault;
|
|
5215
|
+
}
|
|
5216
|
+
if (typeof newKey !== 'undefined') {
|
|
5217
|
+
payload['newKey'] = newKey;
|
|
5218
|
+
}
|
|
5219
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5220
|
+
const apiHeaders = {
|
|
5221
|
+
'content-type': 'application/json',
|
|
5222
|
+
};
|
|
5223
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5224
|
+
}
|
|
5029
5225
|
createBooleanAttribute(paramsOrFirst, ...rest) {
|
|
5030
5226
|
let params;
|
|
5031
5227
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -12043,22 +12239,32 @@ class Functions {
|
|
|
12043
12239
|
const apiHeaders = {};
|
|
12044
12240
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
12045
12241
|
}
|
|
12046
|
-
listVariables(paramsOrFirst) {
|
|
12242
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
12047
12243
|
let params;
|
|
12048
12244
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
12049
12245
|
params = (paramsOrFirst || {});
|
|
12050
12246
|
}
|
|
12051
12247
|
else {
|
|
12052
12248
|
params = {
|
|
12053
|
-
functionId: paramsOrFirst
|
|
12249
|
+
functionId: paramsOrFirst,
|
|
12250
|
+
queries: rest[0],
|
|
12251
|
+
total: rest[1]
|
|
12054
12252
|
};
|
|
12055
12253
|
}
|
|
12056
12254
|
const functionId = params.functionId;
|
|
12255
|
+
const queries = params.queries;
|
|
12256
|
+
const total = params.total;
|
|
12057
12257
|
if (typeof functionId === 'undefined') {
|
|
12058
12258
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
12059
12259
|
}
|
|
12060
12260
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
|
12061
12261
|
const payload = {};
|
|
12262
|
+
if (typeof queries !== 'undefined') {
|
|
12263
|
+
payload['queries'] = queries;
|
|
12264
|
+
}
|
|
12265
|
+
if (typeof total !== 'undefined') {
|
|
12266
|
+
payload['total'] = total;
|
|
12267
|
+
}
|
|
12062
12268
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
12063
12269
|
const apiHeaders = {};
|
|
12064
12270
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -12071,18 +12277,23 @@ class Functions {
|
|
|
12071
12277
|
else {
|
|
12072
12278
|
params = {
|
|
12073
12279
|
functionId: paramsOrFirst,
|
|
12074
|
-
|
|
12075
|
-
|
|
12076
|
-
|
|
12280
|
+
variableId: rest[0],
|
|
12281
|
+
key: rest[1],
|
|
12282
|
+
value: rest[2],
|
|
12283
|
+
secret: rest[3]
|
|
12077
12284
|
};
|
|
12078
12285
|
}
|
|
12079
12286
|
const functionId = params.functionId;
|
|
12287
|
+
const variableId = params.variableId;
|
|
12080
12288
|
const key = params.key;
|
|
12081
12289
|
const value = params.value;
|
|
12082
12290
|
const secret = params.secret;
|
|
12083
12291
|
if (typeof functionId === 'undefined') {
|
|
12084
12292
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
12085
12293
|
}
|
|
12294
|
+
if (typeof variableId === 'undefined') {
|
|
12295
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
12296
|
+
}
|
|
12086
12297
|
if (typeof key === 'undefined') {
|
|
12087
12298
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
12088
12299
|
}
|
|
@@ -12091,6 +12302,9 @@ class Functions {
|
|
|
12091
12302
|
}
|
|
12092
12303
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
|
12093
12304
|
const payload = {};
|
|
12305
|
+
if (typeof variableId !== 'undefined') {
|
|
12306
|
+
payload['variableId'] = variableId;
|
|
12307
|
+
}
|
|
12094
12308
|
if (typeof key !== 'undefined') {
|
|
12095
12309
|
payload['key'] = key;
|
|
12096
12310
|
}
|
|
@@ -12156,9 +12370,6 @@ class Functions {
|
|
|
12156
12370
|
if (typeof variableId === 'undefined') {
|
|
12157
12371
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
12158
12372
|
}
|
|
12159
|
-
if (typeof key === 'undefined') {
|
|
12160
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
12161
|
-
}
|
|
12162
12373
|
const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
|
|
12163
12374
|
const payload = {};
|
|
12164
12375
|
if (typeof key !== 'undefined') {
|
|
@@ -15931,7 +16142,7 @@ class Migrations {
|
|
|
15931
16142
|
}
|
|
15932
16143
|
createAppwriteMigration(paramsOrFirst, ...rest) {
|
|
15933
16144
|
let params;
|
|
15934
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst))) {
|
|
16145
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst || 'onDuplicate' in paramsOrFirst))) {
|
|
15935
16146
|
params = (paramsOrFirst || {});
|
|
15936
16147
|
}
|
|
15937
16148
|
else {
|
|
@@ -15939,13 +16150,15 @@ class Migrations {
|
|
|
15939
16150
|
resources: paramsOrFirst,
|
|
15940
16151
|
endpoint: rest[0],
|
|
15941
16152
|
projectId: rest[1],
|
|
15942
|
-
apiKey: rest[2]
|
|
16153
|
+
apiKey: rest[2],
|
|
16154
|
+
onDuplicate: rest[3]
|
|
15943
16155
|
};
|
|
15944
16156
|
}
|
|
15945
16157
|
const resources = params.resources;
|
|
15946
16158
|
const endpoint = params.endpoint;
|
|
15947
16159
|
const projectId = params.projectId;
|
|
15948
16160
|
const apiKey = params.apiKey;
|
|
16161
|
+
const onDuplicate = params.onDuplicate;
|
|
15949
16162
|
if (typeof resources === 'undefined') {
|
|
15950
16163
|
throw new AppwriteException('Missing required parameter: "resources"');
|
|
15951
16164
|
}
|
|
@@ -15972,6 +16185,9 @@ class Migrations {
|
|
|
15972
16185
|
if (typeof apiKey !== 'undefined') {
|
|
15973
16186
|
payload['apiKey'] = apiKey;
|
|
15974
16187
|
}
|
|
16188
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
16189
|
+
payload['onDuplicate'] = onDuplicate;
|
|
16190
|
+
}
|
|
15975
16191
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15976
16192
|
const apiHeaders = {
|
|
15977
16193
|
'content-type': 'application/json',
|
|
@@ -16103,13 +16319,15 @@ class Migrations {
|
|
|
16103
16319
|
bucketId: paramsOrFirst,
|
|
16104
16320
|
fileId: rest[0],
|
|
16105
16321
|
resourceId: rest[1],
|
|
16106
|
-
internalFile: rest[2]
|
|
16322
|
+
internalFile: rest[2],
|
|
16323
|
+
onDuplicate: rest[3]
|
|
16107
16324
|
};
|
|
16108
16325
|
}
|
|
16109
16326
|
const bucketId = params.bucketId;
|
|
16110
16327
|
const fileId = params.fileId;
|
|
16111
16328
|
const resourceId = params.resourceId;
|
|
16112
16329
|
const internalFile = params.internalFile;
|
|
16330
|
+
const onDuplicate = params.onDuplicate;
|
|
16113
16331
|
if (typeof bucketId === 'undefined') {
|
|
16114
16332
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
16115
16333
|
}
|
|
@@ -16133,6 +16351,9 @@ class Migrations {
|
|
|
16133
16351
|
if (typeof internalFile !== 'undefined') {
|
|
16134
16352
|
payload['internalFile'] = internalFile;
|
|
16135
16353
|
}
|
|
16354
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
16355
|
+
payload['onDuplicate'] = onDuplicate;
|
|
16356
|
+
}
|
|
16136
16357
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16137
16358
|
const apiHeaders = {
|
|
16138
16359
|
'content-type': 'application/json',
|
|
@@ -16261,13 +16482,15 @@ class Migrations {
|
|
|
16261
16482
|
bucketId: paramsOrFirst,
|
|
16262
16483
|
fileId: rest[0],
|
|
16263
16484
|
resourceId: rest[1],
|
|
16264
|
-
internalFile: rest[2]
|
|
16485
|
+
internalFile: rest[2],
|
|
16486
|
+
onDuplicate: rest[3]
|
|
16265
16487
|
};
|
|
16266
16488
|
}
|
|
16267
16489
|
const bucketId = params.bucketId;
|
|
16268
16490
|
const fileId = params.fileId;
|
|
16269
16491
|
const resourceId = params.resourceId;
|
|
16270
16492
|
const internalFile = params.internalFile;
|
|
16493
|
+
const onDuplicate = params.onDuplicate;
|
|
16271
16494
|
if (typeof bucketId === 'undefined') {
|
|
16272
16495
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
16273
16496
|
}
|
|
@@ -16291,6 +16514,9 @@ class Migrations {
|
|
|
16291
16514
|
if (typeof internalFile !== 'undefined') {
|
|
16292
16515
|
payload['internalFile'] = internalFile;
|
|
16293
16516
|
}
|
|
16517
|
+
if (typeof onDuplicate !== 'undefined') {
|
|
16518
|
+
payload['onDuplicate'] = onDuplicate;
|
|
16519
|
+
}
|
|
16294
16520
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16295
16521
|
const apiHeaders = {
|
|
16296
16522
|
'content-type': 'application/json',
|
|
@@ -18594,15 +18820,27 @@ class Project {
|
|
|
18594
18820
|
};
|
|
18595
18821
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18596
18822
|
}
|
|
18597
|
-
|
|
18598
|
-
|
|
18599
|
-
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18823
|
+
listOAuth2Providers(paramsOrFirst, ...rest) {
|
|
18824
|
+
let params;
|
|
18825
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18826
|
+
params = (paramsOrFirst || {});
|
|
18827
|
+
}
|
|
18828
|
+
else {
|
|
18829
|
+
params = {
|
|
18830
|
+
queries: paramsOrFirst,
|
|
18831
|
+
total: rest[0]
|
|
18832
|
+
};
|
|
18833
|
+
}
|
|
18834
|
+
const queries = params.queries;
|
|
18835
|
+
const total = params.total;
|
|
18604
18836
|
const apiPath = '/project/oauth2';
|
|
18605
18837
|
const payload = {};
|
|
18838
|
+
if (typeof queries !== 'undefined') {
|
|
18839
|
+
payload['queries'] = queries;
|
|
18840
|
+
}
|
|
18841
|
+
if (typeof total !== 'undefined') {
|
|
18842
|
+
payload['total'] = total;
|
|
18843
|
+
}
|
|
18606
18844
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18607
18845
|
const apiHeaders = {};
|
|
18608
18846
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -19431,8 +19669,8 @@ class Project {
|
|
|
19431
19669
|
clientSecret: rest[0],
|
|
19432
19670
|
wellKnownURL: rest[1],
|
|
19433
19671
|
authorizationURL: rest[2],
|
|
19434
|
-
|
|
19435
|
-
|
|
19672
|
+
tokenURL: rest[3],
|
|
19673
|
+
userInfoURL: rest[4],
|
|
19436
19674
|
enabled: rest[5]
|
|
19437
19675
|
};
|
|
19438
19676
|
}
|
|
@@ -19440,8 +19678,8 @@ class Project {
|
|
|
19440
19678
|
const clientSecret = params.clientSecret;
|
|
19441
19679
|
const wellKnownURL = params.wellKnownURL;
|
|
19442
19680
|
const authorizationURL = params.authorizationURL;
|
|
19443
|
-
const
|
|
19444
|
-
const
|
|
19681
|
+
const tokenURL = params.tokenURL;
|
|
19682
|
+
const userInfoURL = params.userInfoURL;
|
|
19445
19683
|
const enabled = params.enabled;
|
|
19446
19684
|
const apiPath = '/project/oauth2/oidc';
|
|
19447
19685
|
const payload = {};
|
|
@@ -19457,11 +19695,11 @@ class Project {
|
|
|
19457
19695
|
if (typeof authorizationURL !== 'undefined') {
|
|
19458
19696
|
payload['authorizationURL'] = authorizationURL;
|
|
19459
19697
|
}
|
|
19460
|
-
if (typeof
|
|
19461
|
-
payload['
|
|
19698
|
+
if (typeof tokenURL !== 'undefined') {
|
|
19699
|
+
payload['tokenURL'] = tokenURL;
|
|
19462
19700
|
}
|
|
19463
|
-
if (typeof
|
|
19464
|
-
payload['
|
|
19701
|
+
if (typeof userInfoURL !== 'undefined') {
|
|
19702
|
+
payload['userInfoURL'] = userInfoURL;
|
|
19465
19703
|
}
|
|
19466
19704
|
if (typeof enabled !== 'undefined') {
|
|
19467
19705
|
payload['enabled'] = enabled;
|
|
@@ -20028,19 +20266,19 @@ class Project {
|
|
|
20028
20266
|
}
|
|
20029
20267
|
getOAuth2Provider(paramsOrFirst) {
|
|
20030
20268
|
let params;
|
|
20031
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20269
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
|
|
20032
20270
|
params = (paramsOrFirst || {});
|
|
20033
20271
|
}
|
|
20034
20272
|
else {
|
|
20035
20273
|
params = {
|
|
20036
|
-
|
|
20274
|
+
providerId: paramsOrFirst
|
|
20037
20275
|
};
|
|
20038
20276
|
}
|
|
20039
|
-
const
|
|
20040
|
-
if (typeof
|
|
20041
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20277
|
+
const providerId = params.providerId;
|
|
20278
|
+
if (typeof providerId === 'undefined') {
|
|
20279
|
+
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
20042
20280
|
}
|
|
20043
|
-
const apiPath = '/project/oauth2/{
|
|
20281
|
+
const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
|
|
20044
20282
|
const payload = {};
|
|
20045
20283
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20046
20284
|
const apiHeaders = {};
|
|
@@ -21830,21 +22068,16 @@ class Proxy {
|
|
|
21830
22068
|
else {
|
|
21831
22069
|
params = {
|
|
21832
22070
|
queries: paramsOrFirst,
|
|
21833
|
-
|
|
21834
|
-
total: rest[1]
|
|
22071
|
+
total: rest[0]
|
|
21835
22072
|
};
|
|
21836
22073
|
}
|
|
21837
22074
|
const queries = params.queries;
|
|
21838
|
-
const search = params.search;
|
|
21839
22075
|
const total = params.total;
|
|
21840
22076
|
const apiPath = '/proxy/rules';
|
|
21841
22077
|
const payload = {};
|
|
21842
22078
|
if (typeof queries !== 'undefined') {
|
|
21843
22079
|
payload['queries'] = queries;
|
|
21844
22080
|
}
|
|
21845
|
-
if (typeof search !== 'undefined') {
|
|
21846
|
-
payload['search'] = search;
|
|
21847
|
-
}
|
|
21848
22081
|
if (typeof total !== 'undefined') {
|
|
21849
22082
|
payload['total'] = total;
|
|
21850
22083
|
}
|
|
@@ -22052,7 +22285,7 @@ class Proxy {
|
|
|
22052
22285
|
};
|
|
22053
22286
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22054
22287
|
}
|
|
22055
|
-
|
|
22288
|
+
updateRuleStatus(paramsOrFirst) {
|
|
22056
22289
|
let params;
|
|
22057
22290
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22058
22291
|
params = (paramsOrFirst || {});
|
|
@@ -22066,7 +22299,7 @@ class Proxy {
|
|
|
22066
22299
|
if (typeof ruleId === 'undefined') {
|
|
22067
22300
|
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
22068
22301
|
}
|
|
22069
|
-
const apiPath = '/proxy/rules/{ruleId}/
|
|
22302
|
+
const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
|
|
22070
22303
|
const payload = {};
|
|
22071
22304
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22072
22305
|
const apiHeaders = {
|
|
@@ -22992,22 +23225,32 @@ class Sites {
|
|
|
22992
23225
|
const apiHeaders = {};
|
|
22993
23226
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
22994
23227
|
}
|
|
22995
|
-
listVariables(paramsOrFirst) {
|
|
23228
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
22996
23229
|
let params;
|
|
22997
23230
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22998
23231
|
params = (paramsOrFirst || {});
|
|
22999
23232
|
}
|
|
23000
23233
|
else {
|
|
23001
23234
|
params = {
|
|
23002
|
-
siteId: paramsOrFirst
|
|
23235
|
+
siteId: paramsOrFirst,
|
|
23236
|
+
queries: rest[0],
|
|
23237
|
+
total: rest[1]
|
|
23003
23238
|
};
|
|
23004
23239
|
}
|
|
23005
23240
|
const siteId = params.siteId;
|
|
23241
|
+
const queries = params.queries;
|
|
23242
|
+
const total = params.total;
|
|
23006
23243
|
if (typeof siteId === 'undefined') {
|
|
23007
23244
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
23008
23245
|
}
|
|
23009
23246
|
const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
23010
23247
|
const payload = {};
|
|
23248
|
+
if (typeof queries !== 'undefined') {
|
|
23249
|
+
payload['queries'] = queries;
|
|
23250
|
+
}
|
|
23251
|
+
if (typeof total !== 'undefined') {
|
|
23252
|
+
payload['total'] = total;
|
|
23253
|
+
}
|
|
23011
23254
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23012
23255
|
const apiHeaders = {};
|
|
23013
23256
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -23020,18 +23263,23 @@ class Sites {
|
|
|
23020
23263
|
else {
|
|
23021
23264
|
params = {
|
|
23022
23265
|
siteId: paramsOrFirst,
|
|
23023
|
-
|
|
23024
|
-
|
|
23025
|
-
|
|
23266
|
+
variableId: rest[0],
|
|
23267
|
+
key: rest[1],
|
|
23268
|
+
value: rest[2],
|
|
23269
|
+
secret: rest[3]
|
|
23026
23270
|
};
|
|
23027
23271
|
}
|
|
23028
23272
|
const siteId = params.siteId;
|
|
23273
|
+
const variableId = params.variableId;
|
|
23029
23274
|
const key = params.key;
|
|
23030
23275
|
const value = params.value;
|
|
23031
23276
|
const secret = params.secret;
|
|
23032
23277
|
if (typeof siteId === 'undefined') {
|
|
23033
23278
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
23034
23279
|
}
|
|
23280
|
+
if (typeof variableId === 'undefined') {
|
|
23281
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
23282
|
+
}
|
|
23035
23283
|
if (typeof key === 'undefined') {
|
|
23036
23284
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
23037
23285
|
}
|
|
@@ -23040,6 +23288,9 @@ class Sites {
|
|
|
23040
23288
|
}
|
|
23041
23289
|
const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
|
|
23042
23290
|
const payload = {};
|
|
23291
|
+
if (typeof variableId !== 'undefined') {
|
|
23292
|
+
payload['variableId'] = variableId;
|
|
23293
|
+
}
|
|
23043
23294
|
if (typeof key !== 'undefined') {
|
|
23044
23295
|
payload['key'] = key;
|
|
23045
23296
|
}
|
|
@@ -23105,9 +23356,6 @@ class Sites {
|
|
|
23105
23356
|
if (typeof variableId === 'undefined') {
|
|
23106
23357
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
23107
23358
|
}
|
|
23108
|
-
if (typeof key === 'undefined') {
|
|
23109
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
23110
|
-
}
|
|
23111
23359
|
const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
|
|
23112
23360
|
const payload = {};
|
|
23113
23361
|
if (typeof key !== 'undefined') {
|
|
@@ -24300,6 +24548,132 @@ class TablesDB {
|
|
|
24300
24548
|
const apiHeaders = {};
|
|
24301
24549
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
24302
24550
|
}
|
|
24551
|
+
createBigIntColumn(paramsOrFirst, ...rest) {
|
|
24552
|
+
let params;
|
|
24553
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24554
|
+
params = (paramsOrFirst || {});
|
|
24555
|
+
}
|
|
24556
|
+
else {
|
|
24557
|
+
params = {
|
|
24558
|
+
databaseId: paramsOrFirst,
|
|
24559
|
+
tableId: rest[0],
|
|
24560
|
+
key: rest[1],
|
|
24561
|
+
required: rest[2],
|
|
24562
|
+
min: rest[3],
|
|
24563
|
+
max: rest[4],
|
|
24564
|
+
xdefault: rest[5],
|
|
24565
|
+
array: rest[6]
|
|
24566
|
+
};
|
|
24567
|
+
}
|
|
24568
|
+
const databaseId = params.databaseId;
|
|
24569
|
+
const tableId = params.tableId;
|
|
24570
|
+
const key = params.key;
|
|
24571
|
+
const required = params.required;
|
|
24572
|
+
const min = params.min;
|
|
24573
|
+
const max = params.max;
|
|
24574
|
+
const xdefault = params.xdefault;
|
|
24575
|
+
const array = params.array;
|
|
24576
|
+
if (typeof databaseId === 'undefined') {
|
|
24577
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
24578
|
+
}
|
|
24579
|
+
if (typeof tableId === 'undefined') {
|
|
24580
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
24581
|
+
}
|
|
24582
|
+
if (typeof key === 'undefined') {
|
|
24583
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
24584
|
+
}
|
|
24585
|
+
if (typeof required === 'undefined') {
|
|
24586
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
24587
|
+
}
|
|
24588
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
24589
|
+
const payload = {};
|
|
24590
|
+
if (typeof key !== 'undefined') {
|
|
24591
|
+
payload['key'] = key;
|
|
24592
|
+
}
|
|
24593
|
+
if (typeof required !== 'undefined') {
|
|
24594
|
+
payload['required'] = required;
|
|
24595
|
+
}
|
|
24596
|
+
if (typeof min !== 'undefined') {
|
|
24597
|
+
payload['min'] = min;
|
|
24598
|
+
}
|
|
24599
|
+
if (typeof max !== 'undefined') {
|
|
24600
|
+
payload['max'] = max;
|
|
24601
|
+
}
|
|
24602
|
+
if (typeof xdefault !== 'undefined') {
|
|
24603
|
+
payload['default'] = xdefault;
|
|
24604
|
+
}
|
|
24605
|
+
if (typeof array !== 'undefined') {
|
|
24606
|
+
payload['array'] = array;
|
|
24607
|
+
}
|
|
24608
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24609
|
+
const apiHeaders = {
|
|
24610
|
+
'content-type': 'application/json',
|
|
24611
|
+
};
|
|
24612
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
24613
|
+
}
|
|
24614
|
+
updateBigIntColumn(paramsOrFirst, ...rest) {
|
|
24615
|
+
let params;
|
|
24616
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24617
|
+
params = (paramsOrFirst || {});
|
|
24618
|
+
}
|
|
24619
|
+
else {
|
|
24620
|
+
params = {
|
|
24621
|
+
databaseId: paramsOrFirst,
|
|
24622
|
+
tableId: rest[0],
|
|
24623
|
+
key: rest[1],
|
|
24624
|
+
required: rest[2],
|
|
24625
|
+
xdefault: rest[3],
|
|
24626
|
+
min: rest[4],
|
|
24627
|
+
max: rest[5],
|
|
24628
|
+
newKey: rest[6]
|
|
24629
|
+
};
|
|
24630
|
+
}
|
|
24631
|
+
const databaseId = params.databaseId;
|
|
24632
|
+
const tableId = params.tableId;
|
|
24633
|
+
const key = params.key;
|
|
24634
|
+
const required = params.required;
|
|
24635
|
+
const xdefault = params.xdefault;
|
|
24636
|
+
const min = params.min;
|
|
24637
|
+
const max = params.max;
|
|
24638
|
+
const newKey = params.newKey;
|
|
24639
|
+
if (typeof databaseId === 'undefined') {
|
|
24640
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
24641
|
+
}
|
|
24642
|
+
if (typeof tableId === 'undefined') {
|
|
24643
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
24644
|
+
}
|
|
24645
|
+
if (typeof key === 'undefined') {
|
|
24646
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
24647
|
+
}
|
|
24648
|
+
if (typeof required === 'undefined') {
|
|
24649
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
24650
|
+
}
|
|
24651
|
+
if (typeof xdefault === 'undefined') {
|
|
24652
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
24653
|
+
}
|
|
24654
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
24655
|
+
const payload = {};
|
|
24656
|
+
if (typeof required !== 'undefined') {
|
|
24657
|
+
payload['required'] = required;
|
|
24658
|
+
}
|
|
24659
|
+
if (typeof min !== 'undefined') {
|
|
24660
|
+
payload['min'] = min;
|
|
24661
|
+
}
|
|
24662
|
+
if (typeof max !== 'undefined') {
|
|
24663
|
+
payload['max'] = max;
|
|
24664
|
+
}
|
|
24665
|
+
if (typeof xdefault !== 'undefined') {
|
|
24666
|
+
payload['default'] = xdefault;
|
|
24667
|
+
}
|
|
24668
|
+
if (typeof newKey !== 'undefined') {
|
|
24669
|
+
payload['newKey'] = newKey;
|
|
24670
|
+
}
|
|
24671
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24672
|
+
const apiHeaders = {
|
|
24673
|
+
'content-type': 'application/json',
|
|
24674
|
+
};
|
|
24675
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
24676
|
+
}
|
|
24303
24677
|
createBooleanColumn(paramsOrFirst, ...rest) {
|
|
24304
24678
|
let params;
|
|
24305
24679
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -29395,11 +29769,15 @@ class Vcs {
|
|
|
29395
29769
|
else {
|
|
29396
29770
|
params = {
|
|
29397
29771
|
installationId: paramsOrFirst,
|
|
29398
|
-
providerRepositoryId: rest[0]
|
|
29772
|
+
providerRepositoryId: rest[0],
|
|
29773
|
+
search: rest[1],
|
|
29774
|
+
queries: rest[2]
|
|
29399
29775
|
};
|
|
29400
29776
|
}
|
|
29401
29777
|
const installationId = params.installationId;
|
|
29402
29778
|
const providerRepositoryId = params.providerRepositoryId;
|
|
29779
|
+
const search = params.search;
|
|
29780
|
+
const queries = params.queries;
|
|
29403
29781
|
if (typeof installationId === 'undefined') {
|
|
29404
29782
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
29405
29783
|
}
|
|
@@ -29408,6 +29786,12 @@ class Vcs {
|
|
|
29408
29786
|
}
|
|
29409
29787
|
const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
|
|
29410
29788
|
const payload = {};
|
|
29789
|
+
if (typeof search !== 'undefined') {
|
|
29790
|
+
payload['search'] = search;
|
|
29791
|
+
}
|
|
29792
|
+
if (typeof queries !== 'undefined') {
|
|
29793
|
+
payload['queries'] = queries;
|
|
29794
|
+
}
|
|
29411
29795
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
29412
29796
|
const apiHeaders = {};
|
|
29413
29797
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -31980,6 +32364,8 @@ exports.Scopes = void 0;
|
|
|
31980
32364
|
Scopes["MocksWrite"] = "mocks.write";
|
|
31981
32365
|
Scopes["PoliciesRead"] = "policies.read";
|
|
31982
32366
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
32367
|
+
Scopes["ProjectPoliciesRead"] = "project.policies.read";
|
|
32368
|
+
Scopes["ProjectPoliciesWrite"] = "project.policies.write";
|
|
31983
32369
|
Scopes["TemplatesRead"] = "templates.read";
|
|
31984
32370
|
Scopes["TemplatesWrite"] = "templates.write";
|
|
31985
32371
|
Scopes["Oauth2Read"] = "oauth2.read";
|
|
@@ -32030,6 +32416,8 @@ exports.Scopes = void 0;
|
|
|
32030
32416
|
Scopes["TargetsWrite"] = "targets.write";
|
|
32031
32417
|
Scopes["MessagesRead"] = "messages.read";
|
|
32032
32418
|
Scopes["MessagesWrite"] = "messages.write";
|
|
32419
|
+
Scopes["RulesRead"] = "rules.read";
|
|
32420
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
32033
32421
|
Scopes["WebhooksRead"] = "webhooks.read";
|
|
32034
32422
|
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
32035
32423
|
Scopes["LocaleRead"] = "locale.read";
|
|
@@ -32042,8 +32430,8 @@ exports.Scopes = void 0;
|
|
|
32042
32430
|
Scopes["SchedulesWrite"] = "schedules.write";
|
|
32043
32431
|
Scopes["VcsRead"] = "vcs.read";
|
|
32044
32432
|
Scopes["VcsWrite"] = "vcs.write";
|
|
32045
|
-
Scopes["
|
|
32046
|
-
Scopes["
|
|
32433
|
+
Scopes["BackupsPoliciesRead"] = "backups.policies.read";
|
|
32434
|
+
Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
|
|
32047
32435
|
Scopes["ArchivesRead"] = "archives.read";
|
|
32048
32436
|
Scopes["ArchivesWrite"] = "archives.write";
|
|
32049
32437
|
Scopes["RestorationsRead"] = "restorations.read";
|
|
@@ -32115,6 +32503,8 @@ exports.OAuthProvider = void 0;
|
|
|
32115
32503
|
OAuthProvider["Yandex"] = "yandex";
|
|
32116
32504
|
OAuthProvider["Zoho"] = "zoho";
|
|
32117
32505
|
OAuthProvider["Zoom"] = "zoom";
|
|
32506
|
+
OAuthProvider["GithubImagine"] = "githubImagine";
|
|
32507
|
+
OAuthProvider["GoogleImagine"] = "googleImagine";
|
|
32118
32508
|
})(exports.OAuthProvider || (exports.OAuthProvider = {}));
|
|
32119
32509
|
|
|
32120
32510
|
exports.Browser = void 0;
|
|
@@ -32840,6 +33230,82 @@ exports.ConsoleResourceType = void 0;
|
|
|
32840
33230
|
ConsoleResourceType["Rules"] = "rules";
|
|
32841
33231
|
})(exports.ConsoleResourceType || (exports.ConsoleResourceType = {}));
|
|
32842
33232
|
|
|
33233
|
+
exports.QuerySuggestionResource = void 0;
|
|
33234
|
+
(function (QuerySuggestionResource) {
|
|
33235
|
+
QuerySuggestionResource["Activities"] = "activities";
|
|
33236
|
+
QuerySuggestionResource["ActivityEvents"] = "activityevents";
|
|
33237
|
+
QuerySuggestionResource["Archives"] = "archives";
|
|
33238
|
+
QuerySuggestionResource["Credits"] = "credits";
|
|
33239
|
+
QuerySuggestionResource["DnsRecords"] = "dnsrecords";
|
|
33240
|
+
QuerySuggestionResource["Domains"] = "domains";
|
|
33241
|
+
QuerySuggestionResource["Invoices"] = "invoices";
|
|
33242
|
+
QuerySuggestionResource["PaymentMethods"] = "paymentmethods";
|
|
33243
|
+
QuerySuggestionResource["Policies"] = "policies";
|
|
33244
|
+
QuerySuggestionResource["Projects"] = "projects";
|
|
33245
|
+
QuerySuggestionResource["Restorations"] = "restorations";
|
|
33246
|
+
QuerySuggestionResource["TeamAggregations"] = "teamaggregations";
|
|
33247
|
+
QuerySuggestionResource["Teams"] = "teams";
|
|
33248
|
+
QuerySuggestionResource["Databases"] = "databases";
|
|
33249
|
+
QuerySuggestionResource["Tables"] = "tables";
|
|
33250
|
+
QuerySuggestionResource["Rows"] = "rows";
|
|
33251
|
+
QuerySuggestionResource["Schedules"] = "schedules";
|
|
33252
|
+
QuerySuggestionResource["Platforms"] = "platforms";
|
|
33253
|
+
QuerySuggestionResource["Keys"] = "keys";
|
|
33254
|
+
QuerySuggestionResource["DevKeys"] = "devkeys";
|
|
33255
|
+
QuerySuggestionResource["Webhooks"] = "webhooks";
|
|
33256
|
+
QuerySuggestionResource["Certificates"] = "certificates";
|
|
33257
|
+
QuerySuggestionResource["Realtime"] = "realtime";
|
|
33258
|
+
QuerySuggestionResource["Rules"] = "rules";
|
|
33259
|
+
QuerySuggestionResource["Installations"] = "installations";
|
|
33260
|
+
QuerySuggestionResource["Repositories"] = "repositories";
|
|
33261
|
+
QuerySuggestionResource["VcsComments"] = "vcscomments";
|
|
33262
|
+
QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
|
|
33263
|
+
QuerySuggestionResource["Users"] = "users";
|
|
33264
|
+
QuerySuggestionResource["Cache"] = "cache";
|
|
33265
|
+
QuerySuggestionResource["Tokens"] = "tokens";
|
|
33266
|
+
QuerySuggestionResource["Authenticators"] = "authenticators";
|
|
33267
|
+
QuerySuggestionResource["Challenges"] = "challenges";
|
|
33268
|
+
QuerySuggestionResource["Sessions"] = "sessions";
|
|
33269
|
+
QuerySuggestionResource["Identities"] = "identities";
|
|
33270
|
+
QuerySuggestionResource["Memberships"] = "memberships";
|
|
33271
|
+
QuerySuggestionResource["Buckets"] = "buckets";
|
|
33272
|
+
QuerySuggestionResource["Providers"] = "providers";
|
|
33273
|
+
QuerySuggestionResource["Messages"] = "messages";
|
|
33274
|
+
QuerySuggestionResource["Topics"] = "topics";
|
|
33275
|
+
QuerySuggestionResource["Subscribers"] = "subscribers";
|
|
33276
|
+
QuerySuggestionResource["Targets"] = "targets";
|
|
33277
|
+
QuerySuggestionResource["Companies"] = "companies";
|
|
33278
|
+
QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
|
|
33279
|
+
QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
|
|
33280
|
+
QuerySuggestionResource["BillingAggregationResources"] = "billingaggregationresources";
|
|
33281
|
+
QuerySuggestionResource["BillingTeamProjectAggregations"] = "billingteamprojectaggregations";
|
|
33282
|
+
QuerySuggestionResource["BillingTeamAggregationsV2"] = "billingteamaggregations_v2";
|
|
33283
|
+
QuerySuggestionResource["BillingTeamAggregationResources"] = "billingteamaggregationresources";
|
|
33284
|
+
QuerySuggestionResource["BillingInvoicesV2"] = "billinginvoices_v2";
|
|
33285
|
+
QuerySuggestionResource["BillingAddons"] = "billingaddons";
|
|
33286
|
+
QuerySuggestionResource["Alerts"] = "alerts";
|
|
33287
|
+
QuerySuggestionResource["Payments"] = "payments";
|
|
33288
|
+
QuerySuggestionResource["BillingDiscounts"] = "billingdiscounts";
|
|
33289
|
+
QuerySuggestionResource["Sources"] = "sources";
|
|
33290
|
+
QuerySuggestionResource["Deals"] = "deals";
|
|
33291
|
+
QuerySuggestionResource["Blocks"] = "blocks";
|
|
33292
|
+
QuerySuggestionResource["Threats"] = "threats";
|
|
33293
|
+
QuerySuggestionResource["Feedbacks"] = "feedbacks";
|
|
33294
|
+
QuerySuggestionResource["ShInstallations"] = "sh_installations";
|
|
33295
|
+
QuerySuggestionResource["Attributes"] = "attributes";
|
|
33296
|
+
QuerySuggestionResource["Indexes"] = "indexes";
|
|
33297
|
+
QuerySuggestionResource["Functions"] = "functions";
|
|
33298
|
+
QuerySuggestionResource["Sites"] = "sites";
|
|
33299
|
+
QuerySuggestionResource["Deployments"] = "deployments";
|
|
33300
|
+
QuerySuggestionResource["Executions"] = "executions";
|
|
33301
|
+
QuerySuggestionResource["Variables"] = "variables";
|
|
33302
|
+
QuerySuggestionResource["Migrations"] = "migrations";
|
|
33303
|
+
QuerySuggestionResource["ResourceTokens"] = "resourcetokens";
|
|
33304
|
+
QuerySuggestionResource["Transactions"] = "transactions";
|
|
33305
|
+
QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
|
|
33306
|
+
QuerySuggestionResource["Stats"] = "stats";
|
|
33307
|
+
})(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
|
|
33308
|
+
|
|
32843
33309
|
exports.UsageRange = void 0;
|
|
32844
33310
|
(function (UsageRange) {
|
|
32845
33311
|
UsageRange["TwentyFourHours"] = "24h";
|
|
@@ -33209,6 +33675,13 @@ exports.AppwriteMigrationResource = void 0;
|
|
|
33209
33675
|
AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
|
|
33210
33676
|
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
33211
33677
|
|
|
33678
|
+
exports.OnDuplicate = void 0;
|
|
33679
|
+
(function (OnDuplicate) {
|
|
33680
|
+
OnDuplicate["Fail"] = "fail";
|
|
33681
|
+
OnDuplicate["Skip"] = "skip";
|
|
33682
|
+
OnDuplicate["Overwrite"] = "overwrite";
|
|
33683
|
+
})(exports.OnDuplicate || (exports.OnDuplicate = {}));
|
|
33684
|
+
|
|
33212
33685
|
exports.FirebaseMigrationResource = void 0;
|
|
33213
33686
|
(function (FirebaseMigrationResource) {
|
|
33214
33687
|
FirebaseMigrationResource["User"] = "user";
|
|
@@ -33258,29 +33731,29 @@ exports.Addon = void 0;
|
|
|
33258
33731
|
Addon["Baa"] = "baa";
|
|
33259
33732
|
})(exports.Addon || (exports.Addon = {}));
|
|
33260
33733
|
|
|
33261
|
-
exports.
|
|
33262
|
-
(function (
|
|
33263
|
-
|
|
33264
|
-
|
|
33265
|
-
|
|
33266
|
-
|
|
33267
|
-
|
|
33268
|
-
|
|
33269
|
-
|
|
33270
|
-
})(exports.
|
|
33734
|
+
exports.AuthMethod = void 0;
|
|
33735
|
+
(function (AuthMethod) {
|
|
33736
|
+
AuthMethod["Emailpassword"] = "email-password";
|
|
33737
|
+
AuthMethod["Magicurl"] = "magic-url";
|
|
33738
|
+
AuthMethod["Emailotp"] = "email-otp";
|
|
33739
|
+
AuthMethod["Anonymous"] = "anonymous";
|
|
33740
|
+
AuthMethod["Invites"] = "invites";
|
|
33741
|
+
AuthMethod["Jwt"] = "jwt";
|
|
33742
|
+
AuthMethod["Phone"] = "phone";
|
|
33743
|
+
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
33271
33744
|
|
|
33272
|
-
exports.
|
|
33273
|
-
(function (
|
|
33274
|
-
|
|
33275
|
-
|
|
33276
|
-
|
|
33277
|
-
|
|
33278
|
-
|
|
33279
|
-
|
|
33280
|
-
|
|
33281
|
-
|
|
33282
|
-
|
|
33283
|
-
})(exports.
|
|
33745
|
+
exports.ProjectPolicy = void 0;
|
|
33746
|
+
(function (ProjectPolicy) {
|
|
33747
|
+
ProjectPolicy["Passworddictionary"] = "password-dictionary";
|
|
33748
|
+
ProjectPolicy["Passwordhistory"] = "password-history";
|
|
33749
|
+
ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
|
|
33750
|
+
ProjectPolicy["Sessionalert"] = "session-alert";
|
|
33751
|
+
ProjectPolicy["Sessionduration"] = "session-duration";
|
|
33752
|
+
ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
|
|
33753
|
+
ProjectPolicy["Sessionlimit"] = "session-limit";
|
|
33754
|
+
ProjectPolicy["Userlimit"] = "user-limit";
|
|
33755
|
+
ProjectPolicy["Membershipprivacy"] = "membership-privacy";
|
|
33756
|
+
})(exports.ProjectPolicy || (exports.ProjectPolicy = {}));
|
|
33284
33757
|
|
|
33285
33758
|
exports.ProtocolId = void 0;
|
|
33286
33759
|
(function (ProtocolId) {
|
|
@@ -33806,10 +34279,9 @@ exports.ProxyRuleDeploymentResourceType = void 0;
|
|
|
33806
34279
|
|
|
33807
34280
|
exports.ProxyRuleStatus = void 0;
|
|
33808
34281
|
(function (ProxyRuleStatus) {
|
|
33809
|
-
ProxyRuleStatus["
|
|
34282
|
+
ProxyRuleStatus["Unverified"] = "unverified";
|
|
33810
34283
|
ProxyRuleStatus["Verifying"] = "verifying";
|
|
33811
34284
|
ProxyRuleStatus["Verified"] = "verified";
|
|
33812
|
-
ProxyRuleStatus["Unverified"] = "unverified";
|
|
33813
34285
|
})(exports.ProxyRuleStatus || (exports.ProxyRuleStatus = {}));
|
|
33814
34286
|
|
|
33815
34287
|
exports.MessageStatus = void 0;
|