@appwrite.io/console 12.1.0 → 12.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/sdk.js CHANGED
@@ -621,8 +621,8 @@ class Client {
621
621
  'x-sdk-name': 'Console',
622
622
  'x-sdk-platform': 'console',
623
623
  'x-sdk-language': 'web',
624
- 'x-sdk-version': '12.1.0',
625
- 'X-Appwrite-Response-Format': '1.9.3',
624
+ 'x-sdk-version': '12.2.0',
625
+ 'X-Appwrite-Response-Format': '1.9.4',
626
626
  };
627
627
  this.realtime = {
628
628
  socket: undefined,
@@ -5096,6 +5096,132 @@ class Databases {
5096
5096
  const apiHeaders = {};
5097
5097
  return this.client.call('get', uri, apiHeaders, payload);
5098
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
+ }
5099
5225
  createBooleanAttribute(paramsOrFirst, ...rest) {
5100
5226
  let params;
5101
5227
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -12113,22 +12239,32 @@ class Functions {
12113
12239
  const apiHeaders = {};
12114
12240
  return this.client.call('get', uri, apiHeaders, payload);
12115
12241
  }
12116
- listVariables(paramsOrFirst) {
12242
+ listVariables(paramsOrFirst, ...rest) {
12117
12243
  let params;
12118
12244
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
12119
12245
  params = (paramsOrFirst || {});
12120
12246
  }
12121
12247
  else {
12122
12248
  params = {
12123
- functionId: paramsOrFirst
12249
+ functionId: paramsOrFirst,
12250
+ queries: rest[0],
12251
+ total: rest[1]
12124
12252
  };
12125
12253
  }
12126
12254
  const functionId = params.functionId;
12255
+ const queries = params.queries;
12256
+ const total = params.total;
12127
12257
  if (typeof functionId === 'undefined') {
12128
12258
  throw new AppwriteException('Missing required parameter: "functionId"');
12129
12259
  }
12130
12260
  const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
12131
12261
  const payload = {};
12262
+ if (typeof queries !== 'undefined') {
12263
+ payload['queries'] = queries;
12264
+ }
12265
+ if (typeof total !== 'undefined') {
12266
+ payload['total'] = total;
12267
+ }
12132
12268
  const uri = new URL(this.client.config.endpoint + apiPath);
12133
12269
  const apiHeaders = {};
12134
12270
  return this.client.call('get', uri, apiHeaders, payload);
@@ -12141,18 +12277,23 @@ class Functions {
12141
12277
  else {
12142
12278
  params = {
12143
12279
  functionId: paramsOrFirst,
12144
- key: rest[0],
12145
- value: rest[1],
12146
- secret: rest[2]
12280
+ variableId: rest[0],
12281
+ key: rest[1],
12282
+ value: rest[2],
12283
+ secret: rest[3]
12147
12284
  };
12148
12285
  }
12149
12286
  const functionId = params.functionId;
12287
+ const variableId = params.variableId;
12150
12288
  const key = params.key;
12151
12289
  const value = params.value;
12152
12290
  const secret = params.secret;
12153
12291
  if (typeof functionId === 'undefined') {
12154
12292
  throw new AppwriteException('Missing required parameter: "functionId"');
12155
12293
  }
12294
+ if (typeof variableId === 'undefined') {
12295
+ throw new AppwriteException('Missing required parameter: "variableId"');
12296
+ }
12156
12297
  if (typeof key === 'undefined') {
12157
12298
  throw new AppwriteException('Missing required parameter: "key"');
12158
12299
  }
@@ -12161,6 +12302,9 @@ class Functions {
12161
12302
  }
12162
12303
  const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
12163
12304
  const payload = {};
12305
+ if (typeof variableId !== 'undefined') {
12306
+ payload['variableId'] = variableId;
12307
+ }
12164
12308
  if (typeof key !== 'undefined') {
12165
12309
  payload['key'] = key;
12166
12310
  }
@@ -12226,9 +12370,6 @@ class Functions {
12226
12370
  if (typeof variableId === 'undefined') {
12227
12371
  throw new AppwriteException('Missing required parameter: "variableId"');
12228
12372
  }
12229
- if (typeof key === 'undefined') {
12230
- throw new AppwriteException('Missing required parameter: "key"');
12231
- }
12232
12373
  const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
12233
12374
  const payload = {};
12234
12375
  if (typeof key !== 'undefined') {
@@ -16001,7 +16142,7 @@ class Migrations {
16001
16142
  }
16002
16143
  createAppwriteMigration(paramsOrFirst, ...rest) {
16003
16144
  let params;
16004
- 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))) {
16005
16146
  params = (paramsOrFirst || {});
16006
16147
  }
16007
16148
  else {
@@ -16009,13 +16150,15 @@ class Migrations {
16009
16150
  resources: paramsOrFirst,
16010
16151
  endpoint: rest[0],
16011
16152
  projectId: rest[1],
16012
- apiKey: rest[2]
16153
+ apiKey: rest[2],
16154
+ onDuplicate: rest[3]
16013
16155
  };
16014
16156
  }
16015
16157
  const resources = params.resources;
16016
16158
  const endpoint = params.endpoint;
16017
16159
  const projectId = params.projectId;
16018
16160
  const apiKey = params.apiKey;
16161
+ const onDuplicate = params.onDuplicate;
16019
16162
  if (typeof resources === 'undefined') {
16020
16163
  throw new AppwriteException('Missing required parameter: "resources"');
16021
16164
  }
@@ -16042,6 +16185,9 @@ class Migrations {
16042
16185
  if (typeof apiKey !== 'undefined') {
16043
16186
  payload['apiKey'] = apiKey;
16044
16187
  }
16188
+ if (typeof onDuplicate !== 'undefined') {
16189
+ payload['onDuplicate'] = onDuplicate;
16190
+ }
16045
16191
  const uri = new URL(this.client.config.endpoint + apiPath);
16046
16192
  const apiHeaders = {
16047
16193
  'content-type': 'application/json',
@@ -16173,13 +16319,15 @@ class Migrations {
16173
16319
  bucketId: paramsOrFirst,
16174
16320
  fileId: rest[0],
16175
16321
  resourceId: rest[1],
16176
- internalFile: rest[2]
16322
+ internalFile: rest[2],
16323
+ onDuplicate: rest[3]
16177
16324
  };
16178
16325
  }
16179
16326
  const bucketId = params.bucketId;
16180
16327
  const fileId = params.fileId;
16181
16328
  const resourceId = params.resourceId;
16182
16329
  const internalFile = params.internalFile;
16330
+ const onDuplicate = params.onDuplicate;
16183
16331
  if (typeof bucketId === 'undefined') {
16184
16332
  throw new AppwriteException('Missing required parameter: "bucketId"');
16185
16333
  }
@@ -16203,6 +16351,9 @@ class Migrations {
16203
16351
  if (typeof internalFile !== 'undefined') {
16204
16352
  payload['internalFile'] = internalFile;
16205
16353
  }
16354
+ if (typeof onDuplicate !== 'undefined') {
16355
+ payload['onDuplicate'] = onDuplicate;
16356
+ }
16206
16357
  const uri = new URL(this.client.config.endpoint + apiPath);
16207
16358
  const apiHeaders = {
16208
16359
  'content-type': 'application/json',
@@ -16331,13 +16482,15 @@ class Migrations {
16331
16482
  bucketId: paramsOrFirst,
16332
16483
  fileId: rest[0],
16333
16484
  resourceId: rest[1],
16334
- internalFile: rest[2]
16485
+ internalFile: rest[2],
16486
+ onDuplicate: rest[3]
16335
16487
  };
16336
16488
  }
16337
16489
  const bucketId = params.bucketId;
16338
16490
  const fileId = params.fileId;
16339
16491
  const resourceId = params.resourceId;
16340
16492
  const internalFile = params.internalFile;
16493
+ const onDuplicate = params.onDuplicate;
16341
16494
  if (typeof bucketId === 'undefined') {
16342
16495
  throw new AppwriteException('Missing required parameter: "bucketId"');
16343
16496
  }
@@ -16361,6 +16514,9 @@ class Migrations {
16361
16514
  if (typeof internalFile !== 'undefined') {
16362
16515
  payload['internalFile'] = internalFile;
16363
16516
  }
16517
+ if (typeof onDuplicate !== 'undefined') {
16518
+ payload['onDuplicate'] = onDuplicate;
16519
+ }
16364
16520
  const uri = new URL(this.client.config.endpoint + apiPath);
16365
16521
  const apiHeaders = {
16366
16522
  'content-type': 'application/json',
@@ -18664,15 +18820,27 @@ class Project {
18664
18820
  };
18665
18821
  return this.client.call('delete', uri, apiHeaders, payload);
18666
18822
  }
18667
- /**
18668
- * 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.
18669
- *
18670
- * @throws {AppwriteException}
18671
- * @returns {Promise<Models.OAuth2ProviderList>}
18672
- */
18673
- listOAuth2Providers() {
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;
18674
18836
  const apiPath = '/project/oauth2';
18675
18837
  const payload = {};
18838
+ if (typeof queries !== 'undefined') {
18839
+ payload['queries'] = queries;
18840
+ }
18841
+ if (typeof total !== 'undefined') {
18842
+ payload['total'] = total;
18843
+ }
18676
18844
  const uri = new URL(this.client.config.endpoint + apiPath);
18677
18845
  const apiHeaders = {};
18678
18846
  return this.client.call('get', uri, apiHeaders, payload);
@@ -19501,8 +19669,8 @@ class Project {
19501
19669
  clientSecret: rest[0],
19502
19670
  wellKnownURL: rest[1],
19503
19671
  authorizationURL: rest[2],
19504
- tokenUrl: rest[3],
19505
- userInfoUrl: rest[4],
19672
+ tokenURL: rest[3],
19673
+ userInfoURL: rest[4],
19506
19674
  enabled: rest[5]
19507
19675
  };
19508
19676
  }
@@ -19510,8 +19678,8 @@ class Project {
19510
19678
  const clientSecret = params.clientSecret;
19511
19679
  const wellKnownURL = params.wellKnownURL;
19512
19680
  const authorizationURL = params.authorizationURL;
19513
- const tokenUrl = params.tokenUrl;
19514
- const userInfoUrl = params.userInfoUrl;
19681
+ const tokenURL = params.tokenURL;
19682
+ const userInfoURL = params.userInfoURL;
19515
19683
  const enabled = params.enabled;
19516
19684
  const apiPath = '/project/oauth2/oidc';
19517
19685
  const payload = {};
@@ -19527,11 +19695,11 @@ class Project {
19527
19695
  if (typeof authorizationURL !== 'undefined') {
19528
19696
  payload['authorizationURL'] = authorizationURL;
19529
19697
  }
19530
- if (typeof tokenUrl !== 'undefined') {
19531
- payload['tokenUrl'] = tokenUrl;
19698
+ if (typeof tokenURL !== 'undefined') {
19699
+ payload['tokenURL'] = tokenURL;
19532
19700
  }
19533
- if (typeof userInfoUrl !== 'undefined') {
19534
- payload['userInfoUrl'] = userInfoUrl;
19701
+ if (typeof userInfoURL !== 'undefined') {
19702
+ payload['userInfoURL'] = userInfoURL;
19535
19703
  }
19536
19704
  if (typeof enabled !== 'undefined') {
19537
19705
  payload['enabled'] = enabled;
@@ -20098,19 +20266,19 @@ class Project {
20098
20266
  }
20099
20267
  getOAuth2Provider(paramsOrFirst) {
20100
20268
  let params;
20101
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20269
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
20102
20270
  params = (paramsOrFirst || {});
20103
20271
  }
20104
20272
  else {
20105
20273
  params = {
20106
- provider: paramsOrFirst
20274
+ providerId: paramsOrFirst
20107
20275
  };
20108
20276
  }
20109
- const provider = params.provider;
20110
- if (typeof provider === 'undefined') {
20111
- throw new AppwriteException('Missing required parameter: "provider"');
20277
+ const providerId = params.providerId;
20278
+ if (typeof providerId === 'undefined') {
20279
+ throw new AppwriteException('Missing required parameter: "providerId"');
20112
20280
  }
20113
- const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
20281
+ const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
20114
20282
  const payload = {};
20115
20283
  const uri = new URL(this.client.config.endpoint + apiPath);
20116
20284
  const apiHeaders = {};
@@ -21900,21 +22068,16 @@ class Proxy {
21900
22068
  else {
21901
22069
  params = {
21902
22070
  queries: paramsOrFirst,
21903
- search: rest[0],
21904
- total: rest[1]
22071
+ total: rest[0]
21905
22072
  };
21906
22073
  }
21907
22074
  const queries = params.queries;
21908
- const search = params.search;
21909
22075
  const total = params.total;
21910
22076
  const apiPath = '/proxy/rules';
21911
22077
  const payload = {};
21912
22078
  if (typeof queries !== 'undefined') {
21913
22079
  payload['queries'] = queries;
21914
22080
  }
21915
- if (typeof search !== 'undefined') {
21916
- payload['search'] = search;
21917
- }
21918
22081
  if (typeof total !== 'undefined') {
21919
22082
  payload['total'] = total;
21920
22083
  }
@@ -22122,7 +22285,7 @@ class Proxy {
22122
22285
  };
22123
22286
  return this.client.call('delete', uri, apiHeaders, payload);
22124
22287
  }
22125
- updateRuleVerification(paramsOrFirst) {
22288
+ updateRuleStatus(paramsOrFirst) {
22126
22289
  let params;
22127
22290
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22128
22291
  params = (paramsOrFirst || {});
@@ -22136,7 +22299,7 @@ class Proxy {
22136
22299
  if (typeof ruleId === 'undefined') {
22137
22300
  throw new AppwriteException('Missing required parameter: "ruleId"');
22138
22301
  }
22139
- const apiPath = '/proxy/rules/{ruleId}/verification'.replace('{ruleId}', ruleId);
22302
+ const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
22140
22303
  const payload = {};
22141
22304
  const uri = new URL(this.client.config.endpoint + apiPath);
22142
22305
  const apiHeaders = {
@@ -23062,22 +23225,32 @@ class Sites {
23062
23225
  const apiHeaders = {};
23063
23226
  return this.client.call('get', uri, apiHeaders, payload);
23064
23227
  }
23065
- listVariables(paramsOrFirst) {
23228
+ listVariables(paramsOrFirst, ...rest) {
23066
23229
  let params;
23067
23230
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
23068
23231
  params = (paramsOrFirst || {});
23069
23232
  }
23070
23233
  else {
23071
23234
  params = {
23072
- siteId: paramsOrFirst
23235
+ siteId: paramsOrFirst,
23236
+ queries: rest[0],
23237
+ total: rest[1]
23073
23238
  };
23074
23239
  }
23075
23240
  const siteId = params.siteId;
23241
+ const queries = params.queries;
23242
+ const total = params.total;
23076
23243
  if (typeof siteId === 'undefined') {
23077
23244
  throw new AppwriteException('Missing required parameter: "siteId"');
23078
23245
  }
23079
23246
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
23080
23247
  const payload = {};
23248
+ if (typeof queries !== 'undefined') {
23249
+ payload['queries'] = queries;
23250
+ }
23251
+ if (typeof total !== 'undefined') {
23252
+ payload['total'] = total;
23253
+ }
23081
23254
  const uri = new URL(this.client.config.endpoint + apiPath);
23082
23255
  const apiHeaders = {};
23083
23256
  return this.client.call('get', uri, apiHeaders, payload);
@@ -23090,18 +23263,23 @@ class Sites {
23090
23263
  else {
23091
23264
  params = {
23092
23265
  siteId: paramsOrFirst,
23093
- key: rest[0],
23094
- value: rest[1],
23095
- secret: rest[2]
23266
+ variableId: rest[0],
23267
+ key: rest[1],
23268
+ value: rest[2],
23269
+ secret: rest[3]
23096
23270
  };
23097
23271
  }
23098
23272
  const siteId = params.siteId;
23273
+ const variableId = params.variableId;
23099
23274
  const key = params.key;
23100
23275
  const value = params.value;
23101
23276
  const secret = params.secret;
23102
23277
  if (typeof siteId === 'undefined') {
23103
23278
  throw new AppwriteException('Missing required parameter: "siteId"');
23104
23279
  }
23280
+ if (typeof variableId === 'undefined') {
23281
+ throw new AppwriteException('Missing required parameter: "variableId"');
23282
+ }
23105
23283
  if (typeof key === 'undefined') {
23106
23284
  throw new AppwriteException('Missing required parameter: "key"');
23107
23285
  }
@@ -23110,6 +23288,9 @@ class Sites {
23110
23288
  }
23111
23289
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
23112
23290
  const payload = {};
23291
+ if (typeof variableId !== 'undefined') {
23292
+ payload['variableId'] = variableId;
23293
+ }
23113
23294
  if (typeof key !== 'undefined') {
23114
23295
  payload['key'] = key;
23115
23296
  }
@@ -23175,9 +23356,6 @@ class Sites {
23175
23356
  if (typeof variableId === 'undefined') {
23176
23357
  throw new AppwriteException('Missing required parameter: "variableId"');
23177
23358
  }
23178
- if (typeof key === 'undefined') {
23179
- throw new AppwriteException('Missing required parameter: "key"');
23180
- }
23181
23359
  const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
23182
23360
  const payload = {};
23183
23361
  if (typeof key !== 'undefined') {
@@ -24370,6 +24548,132 @@ class TablesDB {
24370
24548
  const apiHeaders = {};
24371
24549
  return this.client.call('get', uri, apiHeaders, payload);
24372
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
+ }
24373
24677
  createBooleanColumn(paramsOrFirst, ...rest) {
24374
24678
  let params;
24375
24679
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -29465,11 +29769,15 @@ class Vcs {
29465
29769
  else {
29466
29770
  params = {
29467
29771
  installationId: paramsOrFirst,
29468
- providerRepositoryId: rest[0]
29772
+ providerRepositoryId: rest[0],
29773
+ search: rest[1],
29774
+ queries: rest[2]
29469
29775
  };
29470
29776
  }
29471
29777
  const installationId = params.installationId;
29472
29778
  const providerRepositoryId = params.providerRepositoryId;
29779
+ const search = params.search;
29780
+ const queries = params.queries;
29473
29781
  if (typeof installationId === 'undefined') {
29474
29782
  throw new AppwriteException('Missing required parameter: "installationId"');
29475
29783
  }
@@ -29478,6 +29786,12 @@ class Vcs {
29478
29786
  }
29479
29787
  const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
29480
29788
  const payload = {};
29789
+ if (typeof search !== 'undefined') {
29790
+ payload['search'] = search;
29791
+ }
29792
+ if (typeof queries !== 'undefined') {
29793
+ payload['queries'] = queries;
29794
+ }
29481
29795
  const uri = new URL(this.client.config.endpoint + apiPath);
29482
29796
  const apiHeaders = {};
29483
29797
  return this.client.call('get', uri, apiHeaders, payload);
@@ -32102,6 +32416,8 @@ exports.Scopes = void 0;
32102
32416
  Scopes["TargetsWrite"] = "targets.write";
32103
32417
  Scopes["MessagesRead"] = "messages.read";
32104
32418
  Scopes["MessagesWrite"] = "messages.write";
32419
+ Scopes["RulesRead"] = "rules.read";
32420
+ Scopes["RulesWrite"] = "rules.write";
32105
32421
  Scopes["WebhooksRead"] = "webhooks.read";
32106
32422
  Scopes["WebhooksWrite"] = "webhooks.write";
32107
32423
  Scopes["LocaleRead"] = "locale.read";
@@ -32114,8 +32430,6 @@ exports.Scopes = void 0;
32114
32430
  Scopes["SchedulesWrite"] = "schedules.write";
32115
32431
  Scopes["VcsRead"] = "vcs.read";
32116
32432
  Scopes["VcsWrite"] = "vcs.write";
32117
- Scopes["RulesRead"] = "rules.read";
32118
- Scopes["RulesWrite"] = "rules.write";
32119
32433
  Scopes["BackupsPoliciesRead"] = "backups.policies.read";
32120
32434
  Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
32121
32435
  Scopes["ArchivesRead"] = "archives.read";
@@ -32189,6 +32503,8 @@ exports.OAuthProvider = void 0;
32189
32503
  OAuthProvider["Yandex"] = "yandex";
32190
32504
  OAuthProvider["Zoho"] = "zoho";
32191
32505
  OAuthProvider["Zoom"] = "zoom";
32506
+ OAuthProvider["GithubImagine"] = "githubImagine";
32507
+ OAuthProvider["GoogleImagine"] = "googleImagine";
32192
32508
  })(exports.OAuthProvider || (exports.OAuthProvider = {}));
32193
32509
 
32194
32510
  exports.Browser = void 0;
@@ -33359,6 +33675,13 @@ exports.AppwriteMigrationResource = void 0;
33359
33675
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
33360
33676
  })(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
33361
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
+
33362
33685
  exports.FirebaseMigrationResource = void 0;
33363
33686
  (function (FirebaseMigrationResource) {
33364
33687
  FirebaseMigrationResource["User"] = "user";
@@ -33408,29 +33731,29 @@ exports.Addon = void 0;
33408
33731
  Addon["Baa"] = "baa";
33409
33732
  })(exports.Addon || (exports.Addon = {}));
33410
33733
 
33411
- exports.MethodId = void 0;
33412
- (function (MethodId) {
33413
- MethodId["Emailpassword"] = "email-password";
33414
- MethodId["Magicurl"] = "magic-url";
33415
- MethodId["Emailotp"] = "email-otp";
33416
- MethodId["Anonymous"] = "anonymous";
33417
- MethodId["Invites"] = "invites";
33418
- MethodId["Jwt"] = "jwt";
33419
- MethodId["Phone"] = "phone";
33420
- })(exports.MethodId || (exports.MethodId = {}));
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 = {}));
33421
33744
 
33422
- exports.PolicyId = void 0;
33423
- (function (PolicyId) {
33424
- PolicyId["Passworddictionary"] = "password-dictionary";
33425
- PolicyId["Passwordhistory"] = "password-history";
33426
- PolicyId["Passwordpersonaldata"] = "password-personal-data";
33427
- PolicyId["Sessionalert"] = "session-alert";
33428
- PolicyId["Sessionduration"] = "session-duration";
33429
- PolicyId["Sessioninvalidation"] = "session-invalidation";
33430
- PolicyId["Sessionlimit"] = "session-limit";
33431
- PolicyId["Userlimit"] = "user-limit";
33432
- PolicyId["Membershipprivacy"] = "membership-privacy";
33433
- })(exports.PolicyId || (exports.PolicyId = {}));
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 = {}));
33434
33757
 
33435
33758
  exports.ProtocolId = void 0;
33436
33759
  (function (ProtocolId) {
@@ -33956,10 +34279,9 @@ exports.ProxyRuleDeploymentResourceType = void 0;
33956
34279
 
33957
34280
  exports.ProxyRuleStatus = void 0;
33958
34281
  (function (ProxyRuleStatus) {
33959
- ProxyRuleStatus["Created"] = "created";
34282
+ ProxyRuleStatus["Unverified"] = "unverified";
33960
34283
  ProxyRuleStatus["Verifying"] = "verifying";
33961
34284
  ProxyRuleStatus["Verified"] = "verified";
33962
- ProxyRuleStatus["Unverified"] = "unverified";
33963
34285
  })(exports.ProxyRuleStatus || (exports.ProxyRuleStatus = {}));
33964
34286
 
33965
34287
  exports.MessageStatus = void 0;