@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/esm/sdk.js CHANGED
@@ -619,8 +619,8 @@ class Client {
619
619
  'x-sdk-name': 'Console',
620
620
  'x-sdk-platform': 'console',
621
621
  'x-sdk-language': 'web',
622
- 'x-sdk-version': '12.1.0',
623
- 'X-Appwrite-Response-Format': '1.9.3',
622
+ 'x-sdk-version': '12.2.0',
623
+ 'X-Appwrite-Response-Format': '1.9.4',
624
624
  };
625
625
  this.realtime = {
626
626
  socket: undefined,
@@ -5094,6 +5094,132 @@ class Databases {
5094
5094
  const apiHeaders = {};
5095
5095
  return this.client.call('get', uri, apiHeaders, payload);
5096
5096
  }
5097
+ createBigIntAttribute(paramsOrFirst, ...rest) {
5098
+ let params;
5099
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5100
+ params = (paramsOrFirst || {});
5101
+ }
5102
+ else {
5103
+ params = {
5104
+ databaseId: paramsOrFirst,
5105
+ collectionId: rest[0],
5106
+ key: rest[1],
5107
+ required: rest[2],
5108
+ min: rest[3],
5109
+ max: rest[4],
5110
+ xdefault: rest[5],
5111
+ array: rest[6]
5112
+ };
5113
+ }
5114
+ const databaseId = params.databaseId;
5115
+ const collectionId = params.collectionId;
5116
+ const key = params.key;
5117
+ const required = params.required;
5118
+ const min = params.min;
5119
+ const max = params.max;
5120
+ const xdefault = params.xdefault;
5121
+ const array = params.array;
5122
+ if (typeof databaseId === 'undefined') {
5123
+ throw new AppwriteException('Missing required parameter: "databaseId"');
5124
+ }
5125
+ if (typeof collectionId === 'undefined') {
5126
+ throw new AppwriteException('Missing required parameter: "collectionId"');
5127
+ }
5128
+ if (typeof key === 'undefined') {
5129
+ throw new AppwriteException('Missing required parameter: "key"');
5130
+ }
5131
+ if (typeof required === 'undefined') {
5132
+ throw new AppwriteException('Missing required parameter: "required"');
5133
+ }
5134
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5135
+ const payload = {};
5136
+ if (typeof key !== 'undefined') {
5137
+ payload['key'] = key;
5138
+ }
5139
+ if (typeof required !== 'undefined') {
5140
+ payload['required'] = required;
5141
+ }
5142
+ if (typeof min !== 'undefined') {
5143
+ payload['min'] = min;
5144
+ }
5145
+ if (typeof max !== 'undefined') {
5146
+ payload['max'] = max;
5147
+ }
5148
+ if (typeof xdefault !== 'undefined') {
5149
+ payload['default'] = xdefault;
5150
+ }
5151
+ if (typeof array !== 'undefined') {
5152
+ payload['array'] = array;
5153
+ }
5154
+ const uri = new URL(this.client.config.endpoint + apiPath);
5155
+ const apiHeaders = {
5156
+ 'content-type': 'application/json',
5157
+ };
5158
+ return this.client.call('post', uri, apiHeaders, payload);
5159
+ }
5160
+ updateBigIntAttribute(paramsOrFirst, ...rest) {
5161
+ let params;
5162
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5163
+ params = (paramsOrFirst || {});
5164
+ }
5165
+ else {
5166
+ params = {
5167
+ databaseId: paramsOrFirst,
5168
+ collectionId: rest[0],
5169
+ key: rest[1],
5170
+ required: rest[2],
5171
+ xdefault: rest[3],
5172
+ min: rest[4],
5173
+ max: rest[5],
5174
+ newKey: rest[6]
5175
+ };
5176
+ }
5177
+ const databaseId = params.databaseId;
5178
+ const collectionId = params.collectionId;
5179
+ const key = params.key;
5180
+ const required = params.required;
5181
+ const xdefault = params.xdefault;
5182
+ const min = params.min;
5183
+ const max = params.max;
5184
+ const newKey = params.newKey;
5185
+ if (typeof databaseId === 'undefined') {
5186
+ throw new AppwriteException('Missing required parameter: "databaseId"');
5187
+ }
5188
+ if (typeof collectionId === 'undefined') {
5189
+ throw new AppwriteException('Missing required parameter: "collectionId"');
5190
+ }
5191
+ if (typeof key === 'undefined') {
5192
+ throw new AppwriteException('Missing required parameter: "key"');
5193
+ }
5194
+ if (typeof required === 'undefined') {
5195
+ throw new AppwriteException('Missing required parameter: "required"');
5196
+ }
5197
+ if (typeof xdefault === 'undefined') {
5198
+ throw new AppwriteException('Missing required parameter: "xdefault"');
5199
+ }
5200
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/bigint/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5201
+ const payload = {};
5202
+ if (typeof required !== 'undefined') {
5203
+ payload['required'] = required;
5204
+ }
5205
+ if (typeof min !== 'undefined') {
5206
+ payload['min'] = min;
5207
+ }
5208
+ if (typeof max !== 'undefined') {
5209
+ payload['max'] = max;
5210
+ }
5211
+ if (typeof xdefault !== 'undefined') {
5212
+ payload['default'] = xdefault;
5213
+ }
5214
+ if (typeof newKey !== 'undefined') {
5215
+ payload['newKey'] = newKey;
5216
+ }
5217
+ const uri = new URL(this.client.config.endpoint + apiPath);
5218
+ const apiHeaders = {
5219
+ 'content-type': 'application/json',
5220
+ };
5221
+ return this.client.call('patch', uri, apiHeaders, payload);
5222
+ }
5097
5223
  createBooleanAttribute(paramsOrFirst, ...rest) {
5098
5224
  let params;
5099
5225
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -12111,22 +12237,32 @@ class Functions {
12111
12237
  const apiHeaders = {};
12112
12238
  return this.client.call('get', uri, apiHeaders, payload);
12113
12239
  }
12114
- listVariables(paramsOrFirst) {
12240
+ listVariables(paramsOrFirst, ...rest) {
12115
12241
  let params;
12116
12242
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
12117
12243
  params = (paramsOrFirst || {});
12118
12244
  }
12119
12245
  else {
12120
12246
  params = {
12121
- functionId: paramsOrFirst
12247
+ functionId: paramsOrFirst,
12248
+ queries: rest[0],
12249
+ total: rest[1]
12122
12250
  };
12123
12251
  }
12124
12252
  const functionId = params.functionId;
12253
+ const queries = params.queries;
12254
+ const total = params.total;
12125
12255
  if (typeof functionId === 'undefined') {
12126
12256
  throw new AppwriteException('Missing required parameter: "functionId"');
12127
12257
  }
12128
12258
  const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
12129
12259
  const payload = {};
12260
+ if (typeof queries !== 'undefined') {
12261
+ payload['queries'] = queries;
12262
+ }
12263
+ if (typeof total !== 'undefined') {
12264
+ payload['total'] = total;
12265
+ }
12130
12266
  const uri = new URL(this.client.config.endpoint + apiPath);
12131
12267
  const apiHeaders = {};
12132
12268
  return this.client.call('get', uri, apiHeaders, payload);
@@ -12139,18 +12275,23 @@ class Functions {
12139
12275
  else {
12140
12276
  params = {
12141
12277
  functionId: paramsOrFirst,
12142
- key: rest[0],
12143
- value: rest[1],
12144
- secret: rest[2]
12278
+ variableId: rest[0],
12279
+ key: rest[1],
12280
+ value: rest[2],
12281
+ secret: rest[3]
12145
12282
  };
12146
12283
  }
12147
12284
  const functionId = params.functionId;
12285
+ const variableId = params.variableId;
12148
12286
  const key = params.key;
12149
12287
  const value = params.value;
12150
12288
  const secret = params.secret;
12151
12289
  if (typeof functionId === 'undefined') {
12152
12290
  throw new AppwriteException('Missing required parameter: "functionId"');
12153
12291
  }
12292
+ if (typeof variableId === 'undefined') {
12293
+ throw new AppwriteException('Missing required parameter: "variableId"');
12294
+ }
12154
12295
  if (typeof key === 'undefined') {
12155
12296
  throw new AppwriteException('Missing required parameter: "key"');
12156
12297
  }
@@ -12159,6 +12300,9 @@ class Functions {
12159
12300
  }
12160
12301
  const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
12161
12302
  const payload = {};
12303
+ if (typeof variableId !== 'undefined') {
12304
+ payload['variableId'] = variableId;
12305
+ }
12162
12306
  if (typeof key !== 'undefined') {
12163
12307
  payload['key'] = key;
12164
12308
  }
@@ -12224,9 +12368,6 @@ class Functions {
12224
12368
  if (typeof variableId === 'undefined') {
12225
12369
  throw new AppwriteException('Missing required parameter: "variableId"');
12226
12370
  }
12227
- if (typeof key === 'undefined') {
12228
- throw new AppwriteException('Missing required parameter: "key"');
12229
- }
12230
12371
  const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
12231
12372
  const payload = {};
12232
12373
  if (typeof key !== 'undefined') {
@@ -15999,7 +16140,7 @@ class Migrations {
15999
16140
  }
16000
16141
  createAppwriteMigration(paramsOrFirst, ...rest) {
16001
16142
  let params;
16002
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst))) {
16143
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'endpoint' in paramsOrFirst || 'projectId' in paramsOrFirst || 'apiKey' in paramsOrFirst || 'onDuplicate' in paramsOrFirst))) {
16003
16144
  params = (paramsOrFirst || {});
16004
16145
  }
16005
16146
  else {
@@ -16007,13 +16148,15 @@ class Migrations {
16007
16148
  resources: paramsOrFirst,
16008
16149
  endpoint: rest[0],
16009
16150
  projectId: rest[1],
16010
- apiKey: rest[2]
16151
+ apiKey: rest[2],
16152
+ onDuplicate: rest[3]
16011
16153
  };
16012
16154
  }
16013
16155
  const resources = params.resources;
16014
16156
  const endpoint = params.endpoint;
16015
16157
  const projectId = params.projectId;
16016
16158
  const apiKey = params.apiKey;
16159
+ const onDuplicate = params.onDuplicate;
16017
16160
  if (typeof resources === 'undefined') {
16018
16161
  throw new AppwriteException('Missing required parameter: "resources"');
16019
16162
  }
@@ -16040,6 +16183,9 @@ class Migrations {
16040
16183
  if (typeof apiKey !== 'undefined') {
16041
16184
  payload['apiKey'] = apiKey;
16042
16185
  }
16186
+ if (typeof onDuplicate !== 'undefined') {
16187
+ payload['onDuplicate'] = onDuplicate;
16188
+ }
16043
16189
  const uri = new URL(this.client.config.endpoint + apiPath);
16044
16190
  const apiHeaders = {
16045
16191
  'content-type': 'application/json',
@@ -16171,13 +16317,15 @@ class Migrations {
16171
16317
  bucketId: paramsOrFirst,
16172
16318
  fileId: rest[0],
16173
16319
  resourceId: rest[1],
16174
- internalFile: rest[2]
16320
+ internalFile: rest[2],
16321
+ onDuplicate: rest[3]
16175
16322
  };
16176
16323
  }
16177
16324
  const bucketId = params.bucketId;
16178
16325
  const fileId = params.fileId;
16179
16326
  const resourceId = params.resourceId;
16180
16327
  const internalFile = params.internalFile;
16328
+ const onDuplicate = params.onDuplicate;
16181
16329
  if (typeof bucketId === 'undefined') {
16182
16330
  throw new AppwriteException('Missing required parameter: "bucketId"');
16183
16331
  }
@@ -16201,6 +16349,9 @@ class Migrations {
16201
16349
  if (typeof internalFile !== 'undefined') {
16202
16350
  payload['internalFile'] = internalFile;
16203
16351
  }
16352
+ if (typeof onDuplicate !== 'undefined') {
16353
+ payload['onDuplicate'] = onDuplicate;
16354
+ }
16204
16355
  const uri = new URL(this.client.config.endpoint + apiPath);
16205
16356
  const apiHeaders = {
16206
16357
  'content-type': 'application/json',
@@ -16329,13 +16480,15 @@ class Migrations {
16329
16480
  bucketId: paramsOrFirst,
16330
16481
  fileId: rest[0],
16331
16482
  resourceId: rest[1],
16332
- internalFile: rest[2]
16483
+ internalFile: rest[2],
16484
+ onDuplicate: rest[3]
16333
16485
  };
16334
16486
  }
16335
16487
  const bucketId = params.bucketId;
16336
16488
  const fileId = params.fileId;
16337
16489
  const resourceId = params.resourceId;
16338
16490
  const internalFile = params.internalFile;
16491
+ const onDuplicate = params.onDuplicate;
16339
16492
  if (typeof bucketId === 'undefined') {
16340
16493
  throw new AppwriteException('Missing required parameter: "bucketId"');
16341
16494
  }
@@ -16359,6 +16512,9 @@ class Migrations {
16359
16512
  if (typeof internalFile !== 'undefined') {
16360
16513
  payload['internalFile'] = internalFile;
16361
16514
  }
16515
+ if (typeof onDuplicate !== 'undefined') {
16516
+ payload['onDuplicate'] = onDuplicate;
16517
+ }
16362
16518
  const uri = new URL(this.client.config.endpoint + apiPath);
16363
16519
  const apiHeaders = {
16364
16520
  'content-type': 'application/json',
@@ -18662,15 +18818,27 @@ class Project {
18662
18818
  };
18663
18819
  return this.client.call('delete', uri, apiHeaders, payload);
18664
18820
  }
18665
- /**
18666
- * 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.
18667
- *
18668
- * @throws {AppwriteException}
18669
- * @returns {Promise<Models.OAuth2ProviderList>}
18670
- */
18671
- listOAuth2Providers() {
18821
+ listOAuth2Providers(paramsOrFirst, ...rest) {
18822
+ let params;
18823
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18824
+ params = (paramsOrFirst || {});
18825
+ }
18826
+ else {
18827
+ params = {
18828
+ queries: paramsOrFirst,
18829
+ total: rest[0]
18830
+ };
18831
+ }
18832
+ const queries = params.queries;
18833
+ const total = params.total;
18672
18834
  const apiPath = '/project/oauth2';
18673
18835
  const payload = {};
18836
+ if (typeof queries !== 'undefined') {
18837
+ payload['queries'] = queries;
18838
+ }
18839
+ if (typeof total !== 'undefined') {
18840
+ payload['total'] = total;
18841
+ }
18674
18842
  const uri = new URL(this.client.config.endpoint + apiPath);
18675
18843
  const apiHeaders = {};
18676
18844
  return this.client.call('get', uri, apiHeaders, payload);
@@ -19499,8 +19667,8 @@ class Project {
19499
19667
  clientSecret: rest[0],
19500
19668
  wellKnownURL: rest[1],
19501
19669
  authorizationURL: rest[2],
19502
- tokenUrl: rest[3],
19503
- userInfoUrl: rest[4],
19670
+ tokenURL: rest[3],
19671
+ userInfoURL: rest[4],
19504
19672
  enabled: rest[5]
19505
19673
  };
19506
19674
  }
@@ -19508,8 +19676,8 @@ class Project {
19508
19676
  const clientSecret = params.clientSecret;
19509
19677
  const wellKnownURL = params.wellKnownURL;
19510
19678
  const authorizationURL = params.authorizationURL;
19511
- const tokenUrl = params.tokenUrl;
19512
- const userInfoUrl = params.userInfoUrl;
19679
+ const tokenURL = params.tokenURL;
19680
+ const userInfoURL = params.userInfoURL;
19513
19681
  const enabled = params.enabled;
19514
19682
  const apiPath = '/project/oauth2/oidc';
19515
19683
  const payload = {};
@@ -19525,11 +19693,11 @@ class Project {
19525
19693
  if (typeof authorizationURL !== 'undefined') {
19526
19694
  payload['authorizationURL'] = authorizationURL;
19527
19695
  }
19528
- if (typeof tokenUrl !== 'undefined') {
19529
- payload['tokenUrl'] = tokenUrl;
19696
+ if (typeof tokenURL !== 'undefined') {
19697
+ payload['tokenURL'] = tokenURL;
19530
19698
  }
19531
- if (typeof userInfoUrl !== 'undefined') {
19532
- payload['userInfoUrl'] = userInfoUrl;
19699
+ if (typeof userInfoURL !== 'undefined') {
19700
+ payload['userInfoURL'] = userInfoURL;
19533
19701
  }
19534
19702
  if (typeof enabled !== 'undefined') {
19535
19703
  payload['enabled'] = enabled;
@@ -20096,19 +20264,19 @@ class Project {
20096
20264
  }
20097
20265
  getOAuth2Provider(paramsOrFirst) {
20098
20266
  let params;
20099
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20267
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
20100
20268
  params = (paramsOrFirst || {});
20101
20269
  }
20102
20270
  else {
20103
20271
  params = {
20104
- provider: paramsOrFirst
20272
+ providerId: paramsOrFirst
20105
20273
  };
20106
20274
  }
20107
- const provider = params.provider;
20108
- if (typeof provider === 'undefined') {
20109
- throw new AppwriteException('Missing required parameter: "provider"');
20275
+ const providerId = params.providerId;
20276
+ if (typeof providerId === 'undefined') {
20277
+ throw new AppwriteException('Missing required parameter: "providerId"');
20110
20278
  }
20111
- const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
20279
+ const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
20112
20280
  const payload = {};
20113
20281
  const uri = new URL(this.client.config.endpoint + apiPath);
20114
20282
  const apiHeaders = {};
@@ -21898,21 +22066,16 @@ class Proxy {
21898
22066
  else {
21899
22067
  params = {
21900
22068
  queries: paramsOrFirst,
21901
- search: rest[0],
21902
- total: rest[1]
22069
+ total: rest[0]
21903
22070
  };
21904
22071
  }
21905
22072
  const queries = params.queries;
21906
- const search = params.search;
21907
22073
  const total = params.total;
21908
22074
  const apiPath = '/proxy/rules';
21909
22075
  const payload = {};
21910
22076
  if (typeof queries !== 'undefined') {
21911
22077
  payload['queries'] = queries;
21912
22078
  }
21913
- if (typeof search !== 'undefined') {
21914
- payload['search'] = search;
21915
- }
21916
22079
  if (typeof total !== 'undefined') {
21917
22080
  payload['total'] = total;
21918
22081
  }
@@ -22120,7 +22283,7 @@ class Proxy {
22120
22283
  };
22121
22284
  return this.client.call('delete', uri, apiHeaders, payload);
22122
22285
  }
22123
- updateRuleVerification(paramsOrFirst) {
22286
+ updateRuleStatus(paramsOrFirst) {
22124
22287
  let params;
22125
22288
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22126
22289
  params = (paramsOrFirst || {});
@@ -22134,7 +22297,7 @@ class Proxy {
22134
22297
  if (typeof ruleId === 'undefined') {
22135
22298
  throw new AppwriteException('Missing required parameter: "ruleId"');
22136
22299
  }
22137
- const apiPath = '/proxy/rules/{ruleId}/verification'.replace('{ruleId}', ruleId);
22300
+ const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
22138
22301
  const payload = {};
22139
22302
  const uri = new URL(this.client.config.endpoint + apiPath);
22140
22303
  const apiHeaders = {
@@ -23060,22 +23223,32 @@ class Sites {
23060
23223
  const apiHeaders = {};
23061
23224
  return this.client.call('get', uri, apiHeaders, payload);
23062
23225
  }
23063
- listVariables(paramsOrFirst) {
23226
+ listVariables(paramsOrFirst, ...rest) {
23064
23227
  let params;
23065
23228
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
23066
23229
  params = (paramsOrFirst || {});
23067
23230
  }
23068
23231
  else {
23069
23232
  params = {
23070
- siteId: paramsOrFirst
23233
+ siteId: paramsOrFirst,
23234
+ queries: rest[0],
23235
+ total: rest[1]
23071
23236
  };
23072
23237
  }
23073
23238
  const siteId = params.siteId;
23239
+ const queries = params.queries;
23240
+ const total = params.total;
23074
23241
  if (typeof siteId === 'undefined') {
23075
23242
  throw new AppwriteException('Missing required parameter: "siteId"');
23076
23243
  }
23077
23244
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
23078
23245
  const payload = {};
23246
+ if (typeof queries !== 'undefined') {
23247
+ payload['queries'] = queries;
23248
+ }
23249
+ if (typeof total !== 'undefined') {
23250
+ payload['total'] = total;
23251
+ }
23079
23252
  const uri = new URL(this.client.config.endpoint + apiPath);
23080
23253
  const apiHeaders = {};
23081
23254
  return this.client.call('get', uri, apiHeaders, payload);
@@ -23088,18 +23261,23 @@ class Sites {
23088
23261
  else {
23089
23262
  params = {
23090
23263
  siteId: paramsOrFirst,
23091
- key: rest[0],
23092
- value: rest[1],
23093
- secret: rest[2]
23264
+ variableId: rest[0],
23265
+ key: rest[1],
23266
+ value: rest[2],
23267
+ secret: rest[3]
23094
23268
  };
23095
23269
  }
23096
23270
  const siteId = params.siteId;
23271
+ const variableId = params.variableId;
23097
23272
  const key = params.key;
23098
23273
  const value = params.value;
23099
23274
  const secret = params.secret;
23100
23275
  if (typeof siteId === 'undefined') {
23101
23276
  throw new AppwriteException('Missing required parameter: "siteId"');
23102
23277
  }
23278
+ if (typeof variableId === 'undefined') {
23279
+ throw new AppwriteException('Missing required parameter: "variableId"');
23280
+ }
23103
23281
  if (typeof key === 'undefined') {
23104
23282
  throw new AppwriteException('Missing required parameter: "key"');
23105
23283
  }
@@ -23108,6 +23286,9 @@ class Sites {
23108
23286
  }
23109
23287
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
23110
23288
  const payload = {};
23289
+ if (typeof variableId !== 'undefined') {
23290
+ payload['variableId'] = variableId;
23291
+ }
23111
23292
  if (typeof key !== 'undefined') {
23112
23293
  payload['key'] = key;
23113
23294
  }
@@ -23173,9 +23354,6 @@ class Sites {
23173
23354
  if (typeof variableId === 'undefined') {
23174
23355
  throw new AppwriteException('Missing required parameter: "variableId"');
23175
23356
  }
23176
- if (typeof key === 'undefined') {
23177
- throw new AppwriteException('Missing required parameter: "key"');
23178
- }
23179
23357
  const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
23180
23358
  const payload = {};
23181
23359
  if (typeof key !== 'undefined') {
@@ -24368,6 +24546,132 @@ class TablesDB {
24368
24546
  const apiHeaders = {};
24369
24547
  return this.client.call('get', uri, apiHeaders, payload);
24370
24548
  }
24549
+ createBigIntColumn(paramsOrFirst, ...rest) {
24550
+ let params;
24551
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24552
+ params = (paramsOrFirst || {});
24553
+ }
24554
+ else {
24555
+ params = {
24556
+ databaseId: paramsOrFirst,
24557
+ tableId: rest[0],
24558
+ key: rest[1],
24559
+ required: rest[2],
24560
+ min: rest[3],
24561
+ max: rest[4],
24562
+ xdefault: rest[5],
24563
+ array: rest[6]
24564
+ };
24565
+ }
24566
+ const databaseId = params.databaseId;
24567
+ const tableId = params.tableId;
24568
+ const key = params.key;
24569
+ const required = params.required;
24570
+ const min = params.min;
24571
+ const max = params.max;
24572
+ const xdefault = params.xdefault;
24573
+ const array = params.array;
24574
+ if (typeof databaseId === 'undefined') {
24575
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24576
+ }
24577
+ if (typeof tableId === 'undefined') {
24578
+ throw new AppwriteException('Missing required parameter: "tableId"');
24579
+ }
24580
+ if (typeof key === 'undefined') {
24581
+ throw new AppwriteException('Missing required parameter: "key"');
24582
+ }
24583
+ if (typeof required === 'undefined') {
24584
+ throw new AppwriteException('Missing required parameter: "required"');
24585
+ }
24586
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
24587
+ const payload = {};
24588
+ if (typeof key !== 'undefined') {
24589
+ payload['key'] = key;
24590
+ }
24591
+ if (typeof required !== 'undefined') {
24592
+ payload['required'] = required;
24593
+ }
24594
+ if (typeof min !== 'undefined') {
24595
+ payload['min'] = min;
24596
+ }
24597
+ if (typeof max !== 'undefined') {
24598
+ payload['max'] = max;
24599
+ }
24600
+ if (typeof xdefault !== 'undefined') {
24601
+ payload['default'] = xdefault;
24602
+ }
24603
+ if (typeof array !== 'undefined') {
24604
+ payload['array'] = array;
24605
+ }
24606
+ const uri = new URL(this.client.config.endpoint + apiPath);
24607
+ const apiHeaders = {
24608
+ 'content-type': 'application/json',
24609
+ };
24610
+ return this.client.call('post', uri, apiHeaders, payload);
24611
+ }
24612
+ updateBigIntColumn(paramsOrFirst, ...rest) {
24613
+ let params;
24614
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24615
+ params = (paramsOrFirst || {});
24616
+ }
24617
+ else {
24618
+ params = {
24619
+ databaseId: paramsOrFirst,
24620
+ tableId: rest[0],
24621
+ key: rest[1],
24622
+ required: rest[2],
24623
+ xdefault: rest[3],
24624
+ min: rest[4],
24625
+ max: rest[5],
24626
+ newKey: rest[6]
24627
+ };
24628
+ }
24629
+ const databaseId = params.databaseId;
24630
+ const tableId = params.tableId;
24631
+ const key = params.key;
24632
+ const required = params.required;
24633
+ const xdefault = params.xdefault;
24634
+ const min = params.min;
24635
+ const max = params.max;
24636
+ const newKey = params.newKey;
24637
+ if (typeof databaseId === 'undefined') {
24638
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24639
+ }
24640
+ if (typeof tableId === 'undefined') {
24641
+ throw new AppwriteException('Missing required parameter: "tableId"');
24642
+ }
24643
+ if (typeof key === 'undefined') {
24644
+ throw new AppwriteException('Missing required parameter: "key"');
24645
+ }
24646
+ if (typeof required === 'undefined') {
24647
+ throw new AppwriteException('Missing required parameter: "required"');
24648
+ }
24649
+ if (typeof xdefault === 'undefined') {
24650
+ throw new AppwriteException('Missing required parameter: "xdefault"');
24651
+ }
24652
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
24653
+ const payload = {};
24654
+ if (typeof required !== 'undefined') {
24655
+ payload['required'] = required;
24656
+ }
24657
+ if (typeof min !== 'undefined') {
24658
+ payload['min'] = min;
24659
+ }
24660
+ if (typeof max !== 'undefined') {
24661
+ payload['max'] = max;
24662
+ }
24663
+ if (typeof xdefault !== 'undefined') {
24664
+ payload['default'] = xdefault;
24665
+ }
24666
+ if (typeof newKey !== 'undefined') {
24667
+ payload['newKey'] = newKey;
24668
+ }
24669
+ const uri = new URL(this.client.config.endpoint + apiPath);
24670
+ const apiHeaders = {
24671
+ 'content-type': 'application/json',
24672
+ };
24673
+ return this.client.call('patch', uri, apiHeaders, payload);
24674
+ }
24371
24675
  createBooleanColumn(paramsOrFirst, ...rest) {
24372
24676
  let params;
24373
24677
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -29463,11 +29767,15 @@ class Vcs {
29463
29767
  else {
29464
29768
  params = {
29465
29769
  installationId: paramsOrFirst,
29466
- providerRepositoryId: rest[0]
29770
+ providerRepositoryId: rest[0],
29771
+ search: rest[1],
29772
+ queries: rest[2]
29467
29773
  };
29468
29774
  }
29469
29775
  const installationId = params.installationId;
29470
29776
  const providerRepositoryId = params.providerRepositoryId;
29777
+ const search = params.search;
29778
+ const queries = params.queries;
29471
29779
  if (typeof installationId === 'undefined') {
29472
29780
  throw new AppwriteException('Missing required parameter: "installationId"');
29473
29781
  }
@@ -29476,6 +29784,12 @@ class Vcs {
29476
29784
  }
29477
29785
  const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
29478
29786
  const payload = {};
29787
+ if (typeof search !== 'undefined') {
29788
+ payload['search'] = search;
29789
+ }
29790
+ if (typeof queries !== 'undefined') {
29791
+ payload['queries'] = queries;
29792
+ }
29479
29793
  const uri = new URL(this.client.config.endpoint + apiPath);
29480
29794
  const apiHeaders = {};
29481
29795
  return this.client.call('get', uri, apiHeaders, payload);
@@ -32100,6 +32414,8 @@ var Scopes;
32100
32414
  Scopes["TargetsWrite"] = "targets.write";
32101
32415
  Scopes["MessagesRead"] = "messages.read";
32102
32416
  Scopes["MessagesWrite"] = "messages.write";
32417
+ Scopes["RulesRead"] = "rules.read";
32418
+ Scopes["RulesWrite"] = "rules.write";
32103
32419
  Scopes["WebhooksRead"] = "webhooks.read";
32104
32420
  Scopes["WebhooksWrite"] = "webhooks.write";
32105
32421
  Scopes["LocaleRead"] = "locale.read";
@@ -32112,8 +32428,6 @@ var Scopes;
32112
32428
  Scopes["SchedulesWrite"] = "schedules.write";
32113
32429
  Scopes["VcsRead"] = "vcs.read";
32114
32430
  Scopes["VcsWrite"] = "vcs.write";
32115
- Scopes["RulesRead"] = "rules.read";
32116
- Scopes["RulesWrite"] = "rules.write";
32117
32431
  Scopes["BackupsPoliciesRead"] = "backups.policies.read";
32118
32432
  Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
32119
32433
  Scopes["ArchivesRead"] = "archives.read";
@@ -32187,6 +32501,8 @@ var OAuthProvider;
32187
32501
  OAuthProvider["Yandex"] = "yandex";
32188
32502
  OAuthProvider["Zoho"] = "zoho";
32189
32503
  OAuthProvider["Zoom"] = "zoom";
32504
+ OAuthProvider["GithubImagine"] = "githubImagine";
32505
+ OAuthProvider["GoogleImagine"] = "googleImagine";
32190
32506
  })(OAuthProvider || (OAuthProvider = {}));
32191
32507
 
32192
32508
  var Browser;
@@ -33357,6 +33673,13 @@ var AppwriteMigrationResource;
33357
33673
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
33358
33674
  })(AppwriteMigrationResource || (AppwriteMigrationResource = {}));
33359
33675
 
33676
+ var OnDuplicate;
33677
+ (function (OnDuplicate) {
33678
+ OnDuplicate["Fail"] = "fail";
33679
+ OnDuplicate["Skip"] = "skip";
33680
+ OnDuplicate["Overwrite"] = "overwrite";
33681
+ })(OnDuplicate || (OnDuplicate = {}));
33682
+
33360
33683
  var FirebaseMigrationResource;
33361
33684
  (function (FirebaseMigrationResource) {
33362
33685
  FirebaseMigrationResource["User"] = "user";
@@ -33406,29 +33729,29 @@ var Addon;
33406
33729
  Addon["Baa"] = "baa";
33407
33730
  })(Addon || (Addon = {}));
33408
33731
 
33409
- var MethodId;
33410
- (function (MethodId) {
33411
- MethodId["Emailpassword"] = "email-password";
33412
- MethodId["Magicurl"] = "magic-url";
33413
- MethodId["Emailotp"] = "email-otp";
33414
- MethodId["Anonymous"] = "anonymous";
33415
- MethodId["Invites"] = "invites";
33416
- MethodId["Jwt"] = "jwt";
33417
- MethodId["Phone"] = "phone";
33418
- })(MethodId || (MethodId = {}));
33732
+ var AuthMethod;
33733
+ (function (AuthMethod) {
33734
+ AuthMethod["Emailpassword"] = "email-password";
33735
+ AuthMethod["Magicurl"] = "magic-url";
33736
+ AuthMethod["Emailotp"] = "email-otp";
33737
+ AuthMethod["Anonymous"] = "anonymous";
33738
+ AuthMethod["Invites"] = "invites";
33739
+ AuthMethod["Jwt"] = "jwt";
33740
+ AuthMethod["Phone"] = "phone";
33741
+ })(AuthMethod || (AuthMethod = {}));
33419
33742
 
33420
- var PolicyId;
33421
- (function (PolicyId) {
33422
- PolicyId["Passworddictionary"] = "password-dictionary";
33423
- PolicyId["Passwordhistory"] = "password-history";
33424
- PolicyId["Passwordpersonaldata"] = "password-personal-data";
33425
- PolicyId["Sessionalert"] = "session-alert";
33426
- PolicyId["Sessionduration"] = "session-duration";
33427
- PolicyId["Sessioninvalidation"] = "session-invalidation";
33428
- PolicyId["Sessionlimit"] = "session-limit";
33429
- PolicyId["Userlimit"] = "user-limit";
33430
- PolicyId["Membershipprivacy"] = "membership-privacy";
33431
- })(PolicyId || (PolicyId = {}));
33743
+ var ProjectPolicy;
33744
+ (function (ProjectPolicy) {
33745
+ ProjectPolicy["Passworddictionary"] = "password-dictionary";
33746
+ ProjectPolicy["Passwordhistory"] = "password-history";
33747
+ ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
33748
+ ProjectPolicy["Sessionalert"] = "session-alert";
33749
+ ProjectPolicy["Sessionduration"] = "session-duration";
33750
+ ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
33751
+ ProjectPolicy["Sessionlimit"] = "session-limit";
33752
+ ProjectPolicy["Userlimit"] = "user-limit";
33753
+ ProjectPolicy["Membershipprivacy"] = "membership-privacy";
33754
+ })(ProjectPolicy || (ProjectPolicy = {}));
33432
33755
 
33433
33756
  var ProtocolId;
33434
33757
  (function (ProtocolId) {
@@ -33954,10 +34277,9 @@ var ProxyRuleDeploymentResourceType;
33954
34277
 
33955
34278
  var ProxyRuleStatus;
33956
34279
  (function (ProxyRuleStatus) {
33957
- ProxyRuleStatus["Created"] = "created";
34280
+ ProxyRuleStatus["Unverified"] = "unverified";
33958
34281
  ProxyRuleStatus["Verifying"] = "verifying";
33959
34282
  ProxyRuleStatus["Verified"] = "verified";
33960
- ProxyRuleStatus["Unverified"] = "unverified";
33961
34283
  })(ProxyRuleStatus || (ProxyRuleStatus = {}));
33962
34284
 
33963
34285
  var MessageStatus;
@@ -33996,5 +34318,5 @@ var DomainPurchaseStatus;
33996
34318
  DomainPurchaseStatus["Cancelled"] = "cancelled";
33997
34319
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
33998
34320
 
33999
- export { Account, Activities, Adapter, Addon, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, MethodId, Migrations, Model, NHostMigrationResource, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, PolicyId, Project, ProjectUsageRange, Projects, ProtocolId, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, Scopes, Secure, ServiceId, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Webhooks };
34321
+ export { Account, Activities, Adapter, Addon, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Model, NHostMigrationResource, Name, OAuthProvider, OnDuplicate, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectPolicy, ProjectUsageRange, Projects, ProtocolId, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, Scopes, Secure, ServiceId, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Webhooks };
34000
34322
  //# sourceMappingURL=sdk.js.map