@appwrite.io/console 12.1.0 → 13.0.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/dist/iife/sdk.js CHANGED
@@ -4419,8 +4419,8 @@
4419
4419
  'x-sdk-name': 'Console',
4420
4420
  'x-sdk-platform': 'console',
4421
4421
  'x-sdk-language': 'web',
4422
- 'x-sdk-version': '12.1.0',
4423
- 'X-Appwrite-Response-Format': '1.9.3',
4422
+ 'x-sdk-version': '13.0.0',
4423
+ 'X-Appwrite-Response-Format': '1.9.4',
4424
4424
  };
4425
4425
  this.realtime = {
4426
4426
  socket: undefined,
@@ -8894,6 +8894,132 @@
8894
8894
  const apiHeaders = {};
8895
8895
  return this.client.call('get', uri, apiHeaders, payload);
8896
8896
  }
8897
+ createBigIntAttribute(paramsOrFirst, ...rest) {
8898
+ let params;
8899
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8900
+ params = (paramsOrFirst || {});
8901
+ }
8902
+ else {
8903
+ params = {
8904
+ databaseId: paramsOrFirst,
8905
+ collectionId: rest[0],
8906
+ key: rest[1],
8907
+ required: rest[2],
8908
+ min: rest[3],
8909
+ max: rest[4],
8910
+ xdefault: rest[5],
8911
+ array: rest[6]
8912
+ };
8913
+ }
8914
+ const databaseId = params.databaseId;
8915
+ const collectionId = params.collectionId;
8916
+ const key = params.key;
8917
+ const required = params.required;
8918
+ const min = params.min;
8919
+ const max = params.max;
8920
+ const xdefault = params.xdefault;
8921
+ const array = params.array;
8922
+ if (typeof databaseId === 'undefined') {
8923
+ throw new AppwriteException('Missing required parameter: "databaseId"');
8924
+ }
8925
+ if (typeof collectionId === 'undefined') {
8926
+ throw new AppwriteException('Missing required parameter: "collectionId"');
8927
+ }
8928
+ if (typeof key === 'undefined') {
8929
+ throw new AppwriteException('Missing required parameter: "key"');
8930
+ }
8931
+ if (typeof required === 'undefined') {
8932
+ throw new AppwriteException('Missing required parameter: "required"');
8933
+ }
8934
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
8935
+ const payload = {};
8936
+ if (typeof key !== 'undefined') {
8937
+ payload['key'] = key;
8938
+ }
8939
+ if (typeof required !== 'undefined') {
8940
+ payload['required'] = required;
8941
+ }
8942
+ if (typeof min !== 'undefined') {
8943
+ payload['min'] = min;
8944
+ }
8945
+ if (typeof max !== 'undefined') {
8946
+ payload['max'] = max;
8947
+ }
8948
+ if (typeof xdefault !== 'undefined') {
8949
+ payload['default'] = xdefault;
8950
+ }
8951
+ if (typeof array !== 'undefined') {
8952
+ payload['array'] = array;
8953
+ }
8954
+ const uri = new URL(this.client.config.endpoint + apiPath);
8955
+ const apiHeaders = {
8956
+ 'content-type': 'application/json',
8957
+ };
8958
+ return this.client.call('post', uri, apiHeaders, payload);
8959
+ }
8960
+ updateBigIntAttribute(paramsOrFirst, ...rest) {
8961
+ let params;
8962
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8963
+ params = (paramsOrFirst || {});
8964
+ }
8965
+ else {
8966
+ params = {
8967
+ databaseId: paramsOrFirst,
8968
+ collectionId: rest[0],
8969
+ key: rest[1],
8970
+ required: rest[2],
8971
+ xdefault: rest[3],
8972
+ min: rest[4],
8973
+ max: rest[5],
8974
+ newKey: rest[6]
8975
+ };
8976
+ }
8977
+ const databaseId = params.databaseId;
8978
+ const collectionId = params.collectionId;
8979
+ const key = params.key;
8980
+ const required = params.required;
8981
+ const xdefault = params.xdefault;
8982
+ const min = params.min;
8983
+ const max = params.max;
8984
+ const newKey = params.newKey;
8985
+ if (typeof databaseId === 'undefined') {
8986
+ throw new AppwriteException('Missing required parameter: "databaseId"');
8987
+ }
8988
+ if (typeof collectionId === 'undefined') {
8989
+ throw new AppwriteException('Missing required parameter: "collectionId"');
8990
+ }
8991
+ if (typeof key === 'undefined') {
8992
+ throw new AppwriteException('Missing required parameter: "key"');
8993
+ }
8994
+ if (typeof required === 'undefined') {
8995
+ throw new AppwriteException('Missing required parameter: "required"');
8996
+ }
8997
+ if (typeof xdefault === 'undefined') {
8998
+ throw new AppwriteException('Missing required parameter: "xdefault"');
8999
+ }
9000
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
9001
+ const payload = {};
9002
+ if (typeof required !== 'undefined') {
9003
+ payload['required'] = required;
9004
+ }
9005
+ if (typeof min !== 'undefined') {
9006
+ payload['min'] = min;
9007
+ }
9008
+ if (typeof max !== 'undefined') {
9009
+ payload['max'] = max;
9010
+ }
9011
+ if (typeof xdefault !== 'undefined') {
9012
+ payload['default'] = xdefault;
9013
+ }
9014
+ if (typeof newKey !== 'undefined') {
9015
+ payload['newKey'] = newKey;
9016
+ }
9017
+ const uri = new URL(this.client.config.endpoint + apiPath);
9018
+ const apiHeaders = {
9019
+ 'content-type': 'application/json',
9020
+ };
9021
+ return this.client.call('patch', uri, apiHeaders, payload);
9022
+ }
8897
9023
  createBooleanAttribute(paramsOrFirst, ...rest) {
8898
9024
  let params;
8899
9025
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -15911,22 +16037,32 @@
15911
16037
  const apiHeaders = {};
15912
16038
  return this.client.call('get', uri, apiHeaders, payload);
15913
16039
  }
15914
- listVariables(paramsOrFirst) {
16040
+ listVariables(paramsOrFirst, ...rest) {
15915
16041
  let params;
15916
16042
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15917
16043
  params = (paramsOrFirst || {});
15918
16044
  }
15919
16045
  else {
15920
16046
  params = {
15921
- functionId: paramsOrFirst
16047
+ functionId: paramsOrFirst,
16048
+ queries: rest[0],
16049
+ total: rest[1]
15922
16050
  };
15923
16051
  }
15924
16052
  const functionId = params.functionId;
16053
+ const queries = params.queries;
16054
+ const total = params.total;
15925
16055
  if (typeof functionId === 'undefined') {
15926
16056
  throw new AppwriteException('Missing required parameter: "functionId"');
15927
16057
  }
15928
16058
  const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
15929
16059
  const payload = {};
16060
+ if (typeof queries !== 'undefined') {
16061
+ payload['queries'] = queries;
16062
+ }
16063
+ if (typeof total !== 'undefined') {
16064
+ payload['total'] = total;
16065
+ }
15930
16066
  const uri = new URL(this.client.config.endpoint + apiPath);
15931
16067
  const apiHeaders = {};
15932
16068
  return this.client.call('get', uri, apiHeaders, payload);
@@ -15939,18 +16075,23 @@
15939
16075
  else {
15940
16076
  params = {
15941
16077
  functionId: paramsOrFirst,
15942
- key: rest[0],
15943
- value: rest[1],
15944
- secret: rest[2]
16078
+ variableId: rest[0],
16079
+ key: rest[1],
16080
+ value: rest[2],
16081
+ secret: rest[3]
15945
16082
  };
15946
16083
  }
15947
16084
  const functionId = params.functionId;
16085
+ const variableId = params.variableId;
15948
16086
  const key = params.key;
15949
16087
  const value = params.value;
15950
16088
  const secret = params.secret;
15951
16089
  if (typeof functionId === 'undefined') {
15952
16090
  throw new AppwriteException('Missing required parameter: "functionId"');
15953
16091
  }
16092
+ if (typeof variableId === 'undefined') {
16093
+ throw new AppwriteException('Missing required parameter: "variableId"');
16094
+ }
15954
16095
  if (typeof key === 'undefined') {
15955
16096
  throw new AppwriteException('Missing required parameter: "key"');
15956
16097
  }
@@ -15959,6 +16100,9 @@
15959
16100
  }
15960
16101
  const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
15961
16102
  const payload = {};
16103
+ if (typeof variableId !== 'undefined') {
16104
+ payload['variableId'] = variableId;
16105
+ }
15962
16106
  if (typeof key !== 'undefined') {
15963
16107
  payload['key'] = key;
15964
16108
  }
@@ -16024,9 +16168,6 @@
16024
16168
  if (typeof variableId === 'undefined') {
16025
16169
  throw new AppwriteException('Missing required parameter: "variableId"');
16026
16170
  }
16027
- if (typeof key === 'undefined') {
16028
- throw new AppwriteException('Missing required parameter: "key"');
16029
- }
16030
16171
  const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
16031
16172
  const payload = {};
16032
16173
  if (typeof key !== 'undefined') {
@@ -19799,7 +19940,7 @@
19799
19940
  }
19800
19941
  createAppwriteMigration(paramsOrFirst, ...rest) {
19801
19942
  let params;
19802
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst))) {
19943
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst || 'onDuplicate' in paramsOrFirst))) {
19803
19944
  params = (paramsOrFirst || {});
19804
19945
  }
19805
19946
  else {
@@ -19807,13 +19948,15 @@
19807
19948
  resources: paramsOrFirst,
19808
19949
  endpoint: rest[0],
19809
19950
  projectId: rest[1],
19810
- apiKey: rest[2]
19951
+ apiKey: rest[2],
19952
+ onDuplicate: rest[3]
19811
19953
  };
19812
19954
  }
19813
19955
  const resources = params.resources;
19814
19956
  const endpoint = params.endpoint;
19815
19957
  const projectId = params.projectId;
19816
19958
  const apiKey = params.apiKey;
19959
+ const onDuplicate = params.onDuplicate;
19817
19960
  if (typeof resources === 'undefined') {
19818
19961
  throw new AppwriteException('Missing required parameter: "resources"');
19819
19962
  }
@@ -19840,6 +19983,9 @@
19840
19983
  if (typeof apiKey !== 'undefined') {
19841
19984
  payload['apiKey'] = apiKey;
19842
19985
  }
19986
+ if (typeof onDuplicate !== 'undefined') {
19987
+ payload['onDuplicate'] = onDuplicate;
19988
+ }
19843
19989
  const uri = new URL(this.client.config.endpoint + apiPath);
19844
19990
  const apiHeaders = {
19845
19991
  'content-type': 'application/json',
@@ -19971,13 +20117,15 @@
19971
20117
  bucketId: paramsOrFirst,
19972
20118
  fileId: rest[0],
19973
20119
  resourceId: rest[1],
19974
- internalFile: rest[2]
20120
+ internalFile: rest[2],
20121
+ onDuplicate: rest[3]
19975
20122
  };
19976
20123
  }
19977
20124
  const bucketId = params.bucketId;
19978
20125
  const fileId = params.fileId;
19979
20126
  const resourceId = params.resourceId;
19980
20127
  const internalFile = params.internalFile;
20128
+ const onDuplicate = params.onDuplicate;
19981
20129
  if (typeof bucketId === 'undefined') {
19982
20130
  throw new AppwriteException('Missing required parameter: "bucketId"');
19983
20131
  }
@@ -20001,6 +20149,9 @@
20001
20149
  if (typeof internalFile !== 'undefined') {
20002
20150
  payload['internalFile'] = internalFile;
20003
20151
  }
20152
+ if (typeof onDuplicate !== 'undefined') {
20153
+ payload['onDuplicate'] = onDuplicate;
20154
+ }
20004
20155
  const uri = new URL(this.client.config.endpoint + apiPath);
20005
20156
  const apiHeaders = {
20006
20157
  'content-type': 'application/json',
@@ -20129,13 +20280,15 @@
20129
20280
  bucketId: paramsOrFirst,
20130
20281
  fileId: rest[0],
20131
20282
  resourceId: rest[1],
20132
- internalFile: rest[2]
20283
+ internalFile: rest[2],
20284
+ onDuplicate: rest[3]
20133
20285
  };
20134
20286
  }
20135
20287
  const bucketId = params.bucketId;
20136
20288
  const fileId = params.fileId;
20137
20289
  const resourceId = params.resourceId;
20138
20290
  const internalFile = params.internalFile;
20291
+ const onDuplicate = params.onDuplicate;
20139
20292
  if (typeof bucketId === 'undefined') {
20140
20293
  throw new AppwriteException('Missing required parameter: "bucketId"');
20141
20294
  }
@@ -20159,6 +20312,9 @@
20159
20312
  if (typeof internalFile !== 'undefined') {
20160
20313
  payload['internalFile'] = internalFile;
20161
20314
  }
20315
+ if (typeof onDuplicate !== 'undefined') {
20316
+ payload['onDuplicate'] = onDuplicate;
20317
+ }
20162
20318
  const uri = new URL(this.client.config.endpoint + apiPath);
20163
20319
  const apiHeaders = {
20164
20320
  'content-type': 'application/json',
@@ -22043,81 +22199,6 @@
22043
22199
  };
22044
22200
  return this.client.call('patch', uri, apiHeaders, payload);
22045
22201
  }
22046
- updateCanonicalEmails(paramsOrFirst) {
22047
- let params;
22048
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22049
- params = (paramsOrFirst || {});
22050
- }
22051
- else {
22052
- params = {
22053
- enabled: paramsOrFirst
22054
- };
22055
- }
22056
- const enabled = params.enabled;
22057
- if (typeof enabled === 'undefined') {
22058
- throw new AppwriteException('Missing required parameter: "enabled"');
22059
- }
22060
- const apiPath = '/project/auth/canonical-emails';
22061
- const payload = {};
22062
- if (typeof enabled !== 'undefined') {
22063
- payload['enabled'] = enabled;
22064
- }
22065
- const uri = new URL(this.client.config.endpoint + apiPath);
22066
- const apiHeaders = {
22067
- 'content-type': 'application/json',
22068
- };
22069
- return this.client.call('patch', uri, apiHeaders, payload);
22070
- }
22071
- updateDisposableEmails(paramsOrFirst) {
22072
- let params;
22073
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22074
- params = (paramsOrFirst || {});
22075
- }
22076
- else {
22077
- params = {
22078
- enabled: paramsOrFirst
22079
- };
22080
- }
22081
- const enabled = params.enabled;
22082
- if (typeof enabled === 'undefined') {
22083
- throw new AppwriteException('Missing required parameter: "enabled"');
22084
- }
22085
- const apiPath = '/project/auth/disposable-emails';
22086
- const payload = {};
22087
- if (typeof enabled !== 'undefined') {
22088
- payload['enabled'] = enabled;
22089
- }
22090
- const uri = new URL(this.client.config.endpoint + apiPath);
22091
- const apiHeaders = {
22092
- 'content-type': 'application/json',
22093
- };
22094
- return this.client.call('patch', uri, apiHeaders, payload);
22095
- }
22096
- updateFreeEmails(paramsOrFirst) {
22097
- let params;
22098
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22099
- params = (paramsOrFirst || {});
22100
- }
22101
- else {
22102
- params = {
22103
- enabled: paramsOrFirst
22104
- };
22105
- }
22106
- const enabled = params.enabled;
22107
- if (typeof enabled === 'undefined') {
22108
- throw new AppwriteException('Missing required parameter: "enabled"');
22109
- }
22110
- const apiPath = '/project/auth/free-emails';
22111
- const payload = {};
22112
- if (typeof enabled !== 'undefined') {
22113
- payload['enabled'] = enabled;
22114
- }
22115
- const uri = new URL(this.client.config.endpoint + apiPath);
22116
- const apiHeaders = {
22117
- 'content-type': 'application/json',
22118
- };
22119
- return this.client.call('patch', uri, apiHeaders, payload);
22120
- }
22121
22202
  listKeys(paramsOrFirst, ...rest) {
22122
22203
  let params;
22123
22204
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22462,15 +22543,27 @@
22462
22543
  };
22463
22544
  return this.client.call('delete', uri, apiHeaders, payload);
22464
22545
  }
22465
- /**
22466
- * Get a list of all OAuth2 providers supported by the server, along with the project's configuration for each. Credential fields are write-only and always returned empty.
22467
- *
22468
- * @throws {AppwriteException}
22469
- * @returns {Promise<Models.OAuth2ProviderList>}
22470
- */
22471
- listOAuth2Providers() {
22546
+ listOAuth2Providers(paramsOrFirst, ...rest) {
22547
+ let params;
22548
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22549
+ params = (paramsOrFirst || {});
22550
+ }
22551
+ else {
22552
+ params = {
22553
+ queries: paramsOrFirst,
22554
+ total: rest[0]
22555
+ };
22556
+ }
22557
+ const queries = params.queries;
22558
+ const total = params.total;
22472
22559
  const apiPath = '/project/oauth2';
22473
22560
  const payload = {};
22561
+ if (typeof queries !== 'undefined') {
22562
+ payload['queries'] = queries;
22563
+ }
22564
+ if (typeof total !== 'undefined') {
22565
+ payload['total'] = total;
22566
+ }
22474
22567
  const uri = new URL(this.client.config.endpoint + apiPath);
22475
22568
  const apiHeaders = {};
22476
22569
  return this.client.call('get', uri, apiHeaders, payload);
@@ -23090,11 +23183,13 @@
23090
23183
  params = {
23091
23184
  clientId: paramsOrFirst,
23092
23185
  clientSecret: rest[0],
23093
- enabled: rest[1]
23186
+ prompt: rest[1],
23187
+ enabled: rest[2]
23094
23188
  };
23095
23189
  }
23096
23190
  const clientId = params.clientId;
23097
23191
  const clientSecret = params.clientSecret;
23192
+ const prompt = params.prompt;
23098
23193
  const enabled = params.enabled;
23099
23194
  const apiPath = '/project/oauth2/google';
23100
23195
  const payload = {};
@@ -23104,6 +23199,9 @@
23104
23199
  if (typeof clientSecret !== 'undefined') {
23105
23200
  payload['clientSecret'] = clientSecret;
23106
23201
  }
23202
+ if (typeof prompt !== 'undefined') {
23203
+ payload['prompt'] = prompt;
23204
+ }
23107
23205
  if (typeof enabled !== 'undefined') {
23108
23206
  payload['enabled'] = enabled;
23109
23207
  }
@@ -23299,8 +23397,8 @@
23299
23397
  clientSecret: rest[0],
23300
23398
  wellKnownURL: rest[1],
23301
23399
  authorizationURL: rest[2],
23302
- tokenUrl: rest[3],
23303
- userInfoUrl: rest[4],
23400
+ tokenURL: rest[3],
23401
+ userInfoURL: rest[4],
23304
23402
  enabled: rest[5]
23305
23403
  };
23306
23404
  }
@@ -23308,8 +23406,8 @@
23308
23406
  const clientSecret = params.clientSecret;
23309
23407
  const wellKnownURL = params.wellKnownURL;
23310
23408
  const authorizationURL = params.authorizationURL;
23311
- const tokenUrl = params.tokenUrl;
23312
- const userInfoUrl = params.userInfoUrl;
23409
+ const tokenURL = params.tokenURL;
23410
+ const userInfoURL = params.userInfoURL;
23313
23411
  const enabled = params.enabled;
23314
23412
  const apiPath = '/project/oauth2/oidc';
23315
23413
  const payload = {};
@@ -23325,11 +23423,11 @@
23325
23423
  if (typeof authorizationURL !== 'undefined') {
23326
23424
  payload['authorizationURL'] = authorizationURL;
23327
23425
  }
23328
- if (typeof tokenUrl !== 'undefined') {
23329
- payload['tokenUrl'] = tokenUrl;
23426
+ if (typeof tokenURL !== 'undefined') {
23427
+ payload['tokenURL'] = tokenURL;
23330
23428
  }
23331
- if (typeof userInfoUrl !== 'undefined') {
23332
- payload['userInfoUrl'] = userInfoUrl;
23429
+ if (typeof userInfoURL !== 'undefined') {
23430
+ payload['userInfoURL'] = userInfoURL;
23333
23431
  }
23334
23432
  if (typeof enabled !== 'undefined') {
23335
23433
  payload['enabled'] = enabled;
@@ -23896,19 +23994,19 @@
23896
23994
  }
23897
23995
  getOAuth2Provider(paramsOrFirst) {
23898
23996
  let params;
23899
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
23997
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
23900
23998
  params = (paramsOrFirst || {});
23901
23999
  }
23902
24000
  else {
23903
24001
  params = {
23904
- provider: paramsOrFirst
24002
+ providerId: paramsOrFirst
23905
24003
  };
23906
24004
  }
23907
- const provider = params.provider;
23908
- if (typeof provider === 'undefined') {
23909
- throw new AppwriteException('Missing required parameter: "provider"');
24005
+ const providerId = params.providerId;
24006
+ if (typeof providerId === 'undefined') {
24007
+ throw new AppwriteException('Missing required parameter: "providerId"');
23910
24008
  }
23911
- const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
24009
+ const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
23912
24010
  const payload = {};
23913
24011
  const uri = new URL(this.client.config.endpoint + apiPath);
23914
24012
  const apiHeaders = {};
@@ -24401,6 +24499,81 @@
24401
24499
  const apiHeaders = {};
24402
24500
  return this.client.call('get', uri, apiHeaders, payload);
24403
24501
  }
24502
+ updateDenyCanonicalEmailPolicy(paramsOrFirst) {
24503
+ let params;
24504
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24505
+ params = (paramsOrFirst || {});
24506
+ }
24507
+ else {
24508
+ params = {
24509
+ enabled: paramsOrFirst
24510
+ };
24511
+ }
24512
+ const enabled = params.enabled;
24513
+ if (typeof enabled === 'undefined') {
24514
+ throw new AppwriteException('Missing required parameter: "enabled"');
24515
+ }
24516
+ const apiPath = '/project/policies/deny-canonical-email';
24517
+ const payload = {};
24518
+ if (typeof enabled !== 'undefined') {
24519
+ payload['enabled'] = enabled;
24520
+ }
24521
+ const uri = new URL(this.client.config.endpoint + apiPath);
24522
+ const apiHeaders = {
24523
+ 'content-type': 'application/json',
24524
+ };
24525
+ return this.client.call('patch', uri, apiHeaders, payload);
24526
+ }
24527
+ updateDenyDisposableEmailPolicy(paramsOrFirst) {
24528
+ let params;
24529
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24530
+ params = (paramsOrFirst || {});
24531
+ }
24532
+ else {
24533
+ params = {
24534
+ enabled: paramsOrFirst
24535
+ };
24536
+ }
24537
+ const enabled = params.enabled;
24538
+ if (typeof enabled === 'undefined') {
24539
+ throw new AppwriteException('Missing required parameter: "enabled"');
24540
+ }
24541
+ const apiPath = '/project/policies/deny-disposable-email';
24542
+ const payload = {};
24543
+ if (typeof enabled !== 'undefined') {
24544
+ payload['enabled'] = enabled;
24545
+ }
24546
+ const uri = new URL(this.client.config.endpoint + apiPath);
24547
+ const apiHeaders = {
24548
+ 'content-type': 'application/json',
24549
+ };
24550
+ return this.client.call('patch', uri, apiHeaders, payload);
24551
+ }
24552
+ updateDenyFreeEmailPolicy(paramsOrFirst) {
24553
+ let params;
24554
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24555
+ params = (paramsOrFirst || {});
24556
+ }
24557
+ else {
24558
+ params = {
24559
+ enabled: paramsOrFirst
24560
+ };
24561
+ }
24562
+ const enabled = params.enabled;
24563
+ if (typeof enabled === 'undefined') {
24564
+ throw new AppwriteException('Missing required parameter: "enabled"');
24565
+ }
24566
+ const apiPath = '/project/policies/deny-free-email';
24567
+ const payload = {};
24568
+ if (typeof enabled !== 'undefined') {
24569
+ payload['enabled'] = enabled;
24570
+ }
24571
+ const uri = new URL(this.client.config.endpoint + apiPath);
24572
+ const apiHeaders = {
24573
+ 'content-type': 'application/json',
24574
+ };
24575
+ return this.client.call('patch', uri, apiHeaders, payload);
24576
+ }
24404
24577
  updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
24405
24578
  let params;
24406
24579
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -25698,21 +25871,16 @@
25698
25871
  else {
25699
25872
  params = {
25700
25873
  queries: paramsOrFirst,
25701
- search: rest[0],
25702
- total: rest[1]
25874
+ total: rest[0]
25703
25875
  };
25704
25876
  }
25705
25877
  const queries = params.queries;
25706
- const search = params.search;
25707
25878
  const total = params.total;
25708
25879
  const apiPath = '/proxy/rules';
25709
25880
  const payload = {};
25710
25881
  if (typeof queries !== 'undefined') {
25711
25882
  payload['queries'] = queries;
25712
25883
  }
25713
- if (typeof search !== 'undefined') {
25714
- payload['search'] = search;
25715
- }
25716
25884
  if (typeof total !== 'undefined') {
25717
25885
  payload['total'] = total;
25718
25886
  }
@@ -25920,7 +26088,7 @@
25920
26088
  };
25921
26089
  return this.client.call('delete', uri, apiHeaders, payload);
25922
26090
  }
25923
- updateRuleVerification(paramsOrFirst) {
26091
+ updateRuleStatus(paramsOrFirst) {
25924
26092
  let params;
25925
26093
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25926
26094
  params = (paramsOrFirst || {});
@@ -25934,7 +26102,7 @@
25934
26102
  if (typeof ruleId === 'undefined') {
25935
26103
  throw new AppwriteException('Missing required parameter: "ruleId"');
25936
26104
  }
25937
- const apiPath = '/proxy/rules/{ruleId}/verification'.replace('{ruleId}', ruleId);
26105
+ const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
25938
26106
  const payload = {};
25939
26107
  const uri = new URL(this.client.config.endpoint + apiPath);
25940
26108
  const apiHeaders = {
@@ -26860,22 +27028,32 @@
26860
27028
  const apiHeaders = {};
26861
27029
  return this.client.call('get', uri, apiHeaders, payload);
26862
27030
  }
26863
- listVariables(paramsOrFirst) {
27031
+ listVariables(paramsOrFirst, ...rest) {
26864
27032
  let params;
26865
27033
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
26866
27034
  params = (paramsOrFirst || {});
26867
27035
  }
26868
27036
  else {
26869
27037
  params = {
26870
- siteId: paramsOrFirst
27038
+ siteId: paramsOrFirst,
27039
+ queries: rest[0],
27040
+ total: rest[1]
26871
27041
  };
26872
27042
  }
26873
27043
  const siteId = params.siteId;
27044
+ const queries = params.queries;
27045
+ const total = params.total;
26874
27046
  if (typeof siteId === 'undefined') {
26875
27047
  throw new AppwriteException('Missing required parameter: "siteId"');
26876
27048
  }
26877
27049
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
26878
27050
  const payload = {};
27051
+ if (typeof queries !== 'undefined') {
27052
+ payload['queries'] = queries;
27053
+ }
27054
+ if (typeof total !== 'undefined') {
27055
+ payload['total'] = total;
27056
+ }
26879
27057
  const uri = new URL(this.client.config.endpoint + apiPath);
26880
27058
  const apiHeaders = {};
26881
27059
  return this.client.call('get', uri, apiHeaders, payload);
@@ -26888,18 +27066,23 @@
26888
27066
  else {
26889
27067
  params = {
26890
27068
  siteId: paramsOrFirst,
26891
- key: rest[0],
26892
- value: rest[1],
26893
- secret: rest[2]
27069
+ variableId: rest[0],
27070
+ key: rest[1],
27071
+ value: rest[2],
27072
+ secret: rest[3]
26894
27073
  };
26895
27074
  }
26896
27075
  const siteId = params.siteId;
27076
+ const variableId = params.variableId;
26897
27077
  const key = params.key;
26898
27078
  const value = params.value;
26899
27079
  const secret = params.secret;
26900
27080
  if (typeof siteId === 'undefined') {
26901
27081
  throw new AppwriteException('Missing required parameter: "siteId"');
26902
27082
  }
27083
+ if (typeof variableId === 'undefined') {
27084
+ throw new AppwriteException('Missing required parameter: "variableId"');
27085
+ }
26903
27086
  if (typeof key === 'undefined') {
26904
27087
  throw new AppwriteException('Missing required parameter: "key"');
26905
27088
  }
@@ -26908,6 +27091,9 @@
26908
27091
  }
26909
27092
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
26910
27093
  const payload = {};
27094
+ if (typeof variableId !== 'undefined') {
27095
+ payload['variableId'] = variableId;
27096
+ }
26911
27097
  if (typeof key !== 'undefined') {
26912
27098
  payload['key'] = key;
26913
27099
  }
@@ -26973,9 +27159,6 @@
26973
27159
  if (typeof variableId === 'undefined') {
26974
27160
  throw new AppwriteException('Missing required parameter: "variableId"');
26975
27161
  }
26976
- if (typeof key === 'undefined') {
26977
- throw new AppwriteException('Missing required parameter: "key"');
26978
- }
26979
27162
  const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
26980
27163
  const payload = {};
26981
27164
  if (typeof key !== 'undefined') {
@@ -28168,6 +28351,132 @@
28168
28351
  const apiHeaders = {};
28169
28352
  return this.client.call('get', uri, apiHeaders, payload);
28170
28353
  }
28354
+ createBigIntColumn(paramsOrFirst, ...rest) {
28355
+ let params;
28356
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28357
+ params = (paramsOrFirst || {});
28358
+ }
28359
+ else {
28360
+ params = {
28361
+ databaseId: paramsOrFirst,
28362
+ tableId: rest[0],
28363
+ key: rest[1],
28364
+ required: rest[2],
28365
+ min: rest[3],
28366
+ max: rest[4],
28367
+ xdefault: rest[5],
28368
+ array: rest[6]
28369
+ };
28370
+ }
28371
+ const databaseId = params.databaseId;
28372
+ const tableId = params.tableId;
28373
+ const key = params.key;
28374
+ const required = params.required;
28375
+ const min = params.min;
28376
+ const max = params.max;
28377
+ const xdefault = params.xdefault;
28378
+ const array = params.array;
28379
+ if (typeof databaseId === 'undefined') {
28380
+ throw new AppwriteException('Missing required parameter: "databaseId"');
28381
+ }
28382
+ if (typeof tableId === 'undefined') {
28383
+ throw new AppwriteException('Missing required parameter: "tableId"');
28384
+ }
28385
+ if (typeof key === 'undefined') {
28386
+ throw new AppwriteException('Missing required parameter: "key"');
28387
+ }
28388
+ if (typeof required === 'undefined') {
28389
+ throw new AppwriteException('Missing required parameter: "required"');
28390
+ }
28391
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
28392
+ const payload = {};
28393
+ if (typeof key !== 'undefined') {
28394
+ payload['key'] = key;
28395
+ }
28396
+ if (typeof required !== 'undefined') {
28397
+ payload['required'] = required;
28398
+ }
28399
+ if (typeof min !== 'undefined') {
28400
+ payload['min'] = min;
28401
+ }
28402
+ if (typeof max !== 'undefined') {
28403
+ payload['max'] = max;
28404
+ }
28405
+ if (typeof xdefault !== 'undefined') {
28406
+ payload['default'] = xdefault;
28407
+ }
28408
+ if (typeof array !== 'undefined') {
28409
+ payload['array'] = array;
28410
+ }
28411
+ const uri = new URL(this.client.config.endpoint + apiPath);
28412
+ const apiHeaders = {
28413
+ 'content-type': 'application/json',
28414
+ };
28415
+ return this.client.call('post', uri, apiHeaders, payload);
28416
+ }
28417
+ updateBigIntColumn(paramsOrFirst, ...rest) {
28418
+ let params;
28419
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28420
+ params = (paramsOrFirst || {});
28421
+ }
28422
+ else {
28423
+ params = {
28424
+ databaseId: paramsOrFirst,
28425
+ tableId: rest[0],
28426
+ key: rest[1],
28427
+ required: rest[2],
28428
+ xdefault: rest[3],
28429
+ min: rest[4],
28430
+ max: rest[5],
28431
+ newKey: rest[6]
28432
+ };
28433
+ }
28434
+ const databaseId = params.databaseId;
28435
+ const tableId = params.tableId;
28436
+ const key = params.key;
28437
+ const required = params.required;
28438
+ const xdefault = params.xdefault;
28439
+ const min = params.min;
28440
+ const max = params.max;
28441
+ const newKey = params.newKey;
28442
+ if (typeof databaseId === 'undefined') {
28443
+ throw new AppwriteException('Missing required parameter: "databaseId"');
28444
+ }
28445
+ if (typeof tableId === 'undefined') {
28446
+ throw new AppwriteException('Missing required parameter: "tableId"');
28447
+ }
28448
+ if (typeof key === 'undefined') {
28449
+ throw new AppwriteException('Missing required parameter: "key"');
28450
+ }
28451
+ if (typeof required === 'undefined') {
28452
+ throw new AppwriteException('Missing required parameter: "required"');
28453
+ }
28454
+ if (typeof xdefault === 'undefined') {
28455
+ throw new AppwriteException('Missing required parameter: "xdefault"');
28456
+ }
28457
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
28458
+ const payload = {};
28459
+ if (typeof required !== 'undefined') {
28460
+ payload['required'] = required;
28461
+ }
28462
+ if (typeof min !== 'undefined') {
28463
+ payload['min'] = min;
28464
+ }
28465
+ if (typeof max !== 'undefined') {
28466
+ payload['max'] = max;
28467
+ }
28468
+ if (typeof xdefault !== 'undefined') {
28469
+ payload['default'] = xdefault;
28470
+ }
28471
+ if (typeof newKey !== 'undefined') {
28472
+ payload['newKey'] = newKey;
28473
+ }
28474
+ const uri = new URL(this.client.config.endpoint + apiPath);
28475
+ const apiHeaders = {
28476
+ 'content-type': 'application/json',
28477
+ };
28478
+ return this.client.call('patch', uri, apiHeaders, payload);
28479
+ }
28171
28480
  createBooleanColumn(paramsOrFirst, ...rest) {
28172
28481
  let params;
28173
28482
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -33263,11 +33572,15 @@
33263
33572
  else {
33264
33573
  params = {
33265
33574
  installationId: paramsOrFirst,
33266
- providerRepositoryId: rest[0]
33575
+ providerRepositoryId: rest[0],
33576
+ search: rest[1],
33577
+ queries: rest[2]
33267
33578
  };
33268
33579
  }
33269
33580
  const installationId = params.installationId;
33270
33581
  const providerRepositoryId = params.providerRepositoryId;
33582
+ const search = params.search;
33583
+ const queries = params.queries;
33271
33584
  if (typeof installationId === 'undefined') {
33272
33585
  throw new AppwriteException('Missing required parameter: "installationId"');
33273
33586
  }
@@ -33276,6 +33589,12 @@
33276
33589
  }
33277
33590
  const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
33278
33591
  const payload = {};
33592
+ if (typeof search !== 'undefined') {
33593
+ payload['search'] = search;
33594
+ }
33595
+ if (typeof queries !== 'undefined') {
33596
+ payload['queries'] = queries;
33597
+ }
33279
33598
  const uri = new URL(this.client.config.endpoint + apiPath);
33280
33599
  const apiHeaders = {};
33281
33600
  return this.client.call('get', uri, apiHeaders, payload);
@@ -35900,6 +36219,8 @@
35900
36219
  Scopes["TargetsWrite"] = "targets.write";
35901
36220
  Scopes["MessagesRead"] = "messages.read";
35902
36221
  Scopes["MessagesWrite"] = "messages.write";
36222
+ Scopes["RulesRead"] = "rules.read";
36223
+ Scopes["RulesWrite"] = "rules.write";
35903
36224
  Scopes["WebhooksRead"] = "webhooks.read";
35904
36225
  Scopes["WebhooksWrite"] = "webhooks.write";
35905
36226
  Scopes["LocaleRead"] = "locale.read";
@@ -35912,8 +36233,6 @@
35912
36233
  Scopes["SchedulesWrite"] = "schedules.write";
35913
36234
  Scopes["VcsRead"] = "vcs.read";
35914
36235
  Scopes["VcsWrite"] = "vcs.write";
35915
- Scopes["RulesRead"] = "rules.read";
35916
- Scopes["RulesWrite"] = "rules.write";
35917
36236
  Scopes["BackupsPoliciesRead"] = "backups.policies.read";
35918
36237
  Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
35919
36238
  Scopes["ArchivesRead"] = "archives.read";
@@ -35987,6 +36306,8 @@
35987
36306
  OAuthProvider["Yandex"] = "yandex";
35988
36307
  OAuthProvider["Zoho"] = "zoho";
35989
36308
  OAuthProvider["Zoom"] = "zoom";
36309
+ OAuthProvider["GithubImagine"] = "githubImagine";
36310
+ OAuthProvider["GoogleImagine"] = "googleImagine";
35990
36311
  })(exports.OAuthProvider || (exports.OAuthProvider = {}));
35991
36312
 
35992
36313
  exports.Browser = void 0;
@@ -37157,6 +37478,13 @@
37157
37478
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
37158
37479
  })(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
37159
37480
 
37481
+ exports.OnDuplicate = void 0;
37482
+ (function (OnDuplicate) {
37483
+ OnDuplicate["Fail"] = "fail";
37484
+ OnDuplicate["Skip"] = "skip";
37485
+ OnDuplicate["Overwrite"] = "overwrite";
37486
+ })(exports.OnDuplicate || (exports.OnDuplicate = {}));
37487
+
37160
37488
  exports.FirebaseMigrationResource = void 0;
37161
37489
  (function (FirebaseMigrationResource) {
37162
37490
  FirebaseMigrationResource["User"] = "user";
@@ -37206,29 +37534,36 @@
37206
37534
  Addon["Baa"] = "baa";
37207
37535
  })(exports.Addon || (exports.Addon = {}));
37208
37536
 
37209
- exports.MethodId = void 0;
37210
- (function (MethodId) {
37211
- MethodId["Emailpassword"] = "email-password";
37212
- MethodId["Magicurl"] = "magic-url";
37213
- MethodId["Emailotp"] = "email-otp";
37214
- MethodId["Anonymous"] = "anonymous";
37215
- MethodId["Invites"] = "invites";
37216
- MethodId["Jwt"] = "jwt";
37217
- MethodId["Phone"] = "phone";
37218
- })(exports.MethodId || (exports.MethodId = {}));
37219
-
37220
- exports.PolicyId = void 0;
37221
- (function (PolicyId) {
37222
- PolicyId["Passworddictionary"] = "password-dictionary";
37223
- PolicyId["Passwordhistory"] = "password-history";
37224
- PolicyId["Passwordpersonaldata"] = "password-personal-data";
37225
- PolicyId["Sessionalert"] = "session-alert";
37226
- PolicyId["Sessionduration"] = "session-duration";
37227
- PolicyId["Sessioninvalidation"] = "session-invalidation";
37228
- PolicyId["Sessionlimit"] = "session-limit";
37229
- PolicyId["Userlimit"] = "user-limit";
37230
- PolicyId["Membershipprivacy"] = "membership-privacy";
37231
- })(exports.PolicyId || (exports.PolicyId = {}));
37537
+ exports.AuthMethod = void 0;
37538
+ (function (AuthMethod) {
37539
+ AuthMethod["Emailpassword"] = "email-password";
37540
+ AuthMethod["Magicurl"] = "magic-url";
37541
+ AuthMethod["Emailotp"] = "email-otp";
37542
+ AuthMethod["Anonymous"] = "anonymous";
37543
+ AuthMethod["Invites"] = "invites";
37544
+ AuthMethod["Jwt"] = "jwt";
37545
+ AuthMethod["Phone"] = "phone";
37546
+ })(exports.AuthMethod || (exports.AuthMethod = {}));
37547
+
37548
+ exports.Prompt = void 0;
37549
+ (function (Prompt) {
37550
+ Prompt["None"] = "none";
37551
+ Prompt["Consent"] = "consent";
37552
+ Prompt["SelectAccount"] = "select_account";
37553
+ })(exports.Prompt || (exports.Prompt = {}));
37554
+
37555
+ exports.ProjectPolicy = void 0;
37556
+ (function (ProjectPolicy) {
37557
+ ProjectPolicy["Passworddictionary"] = "password-dictionary";
37558
+ ProjectPolicy["Passwordhistory"] = "password-history";
37559
+ ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
37560
+ ProjectPolicy["Sessionalert"] = "session-alert";
37561
+ ProjectPolicy["Sessionduration"] = "session-duration";
37562
+ ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
37563
+ ProjectPolicy["Sessionlimit"] = "session-limit";
37564
+ ProjectPolicy["Userlimit"] = "user-limit";
37565
+ ProjectPolicy["Membershipprivacy"] = "membership-privacy";
37566
+ })(exports.ProjectPolicy || (exports.ProjectPolicy = {}));
37232
37567
 
37233
37568
  exports.ProtocolId = void 0;
37234
37569
  (function (ProtocolId) {
@@ -37724,6 +38059,13 @@
37724
38059
  ExecutionStatus["Scheduled"] = "scheduled";
37725
38060
  })(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
37726
38061
 
38062
+ exports.OAuth2GooglePrompt = void 0;
38063
+ (function (OAuth2GooglePrompt) {
38064
+ OAuth2GooglePrompt["None"] = "none";
38065
+ OAuth2GooglePrompt["Consent"] = "consent";
38066
+ OAuth2GooglePrompt["SelectAccount"] = "select_account";
38067
+ })(exports.OAuth2GooglePrompt || (exports.OAuth2GooglePrompt = {}));
38068
+
37727
38069
  exports.PlatformType = void 0;
37728
38070
  (function (PlatformType) {
37729
38071
  PlatformType["Windows"] = "windows";
@@ -37754,10 +38096,9 @@
37754
38096
 
37755
38097
  exports.ProxyRuleStatus = void 0;
37756
38098
  (function (ProxyRuleStatus) {
37757
- ProxyRuleStatus["Created"] = "created";
38099
+ ProxyRuleStatus["Unverified"] = "unverified";
37758
38100
  ProxyRuleStatus["Verifying"] = "verifying";
37759
38101
  ProxyRuleStatus["Verified"] = "verified";
37760
- ProxyRuleStatus["Unverified"] = "unverified";
37761
38102
  })(exports.ProxyRuleStatus || (exports.ProxyRuleStatus = {}));
37762
38103
 
37763
38104
  exports.MessageStatus = void 0;