@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/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': '13.0.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',
@@ -18245,81 +18401,6 @@ class Project {
18245
18401
  };
18246
18402
  return this.client.call('patch', uri, apiHeaders, payload);
18247
18403
  }
18248
- updateCanonicalEmails(paramsOrFirst) {
18249
- let params;
18250
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18251
- params = (paramsOrFirst || {});
18252
- }
18253
- else {
18254
- params = {
18255
- enabled: paramsOrFirst
18256
- };
18257
- }
18258
- const enabled = params.enabled;
18259
- if (typeof enabled === 'undefined') {
18260
- throw new AppwriteException('Missing required parameter: "enabled"');
18261
- }
18262
- const apiPath = '/project/auth/canonical-emails';
18263
- const payload = {};
18264
- if (typeof enabled !== 'undefined') {
18265
- payload['enabled'] = enabled;
18266
- }
18267
- const uri = new URL(this.client.config.endpoint + apiPath);
18268
- const apiHeaders = {
18269
- 'content-type': 'application/json',
18270
- };
18271
- return this.client.call('patch', uri, apiHeaders, payload);
18272
- }
18273
- updateDisposableEmails(paramsOrFirst) {
18274
- let params;
18275
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18276
- params = (paramsOrFirst || {});
18277
- }
18278
- else {
18279
- params = {
18280
- enabled: paramsOrFirst
18281
- };
18282
- }
18283
- const enabled = params.enabled;
18284
- if (typeof enabled === 'undefined') {
18285
- throw new AppwriteException('Missing required parameter: "enabled"');
18286
- }
18287
- const apiPath = '/project/auth/disposable-emails';
18288
- const payload = {};
18289
- if (typeof enabled !== 'undefined') {
18290
- payload['enabled'] = enabled;
18291
- }
18292
- const uri = new URL(this.client.config.endpoint + apiPath);
18293
- const apiHeaders = {
18294
- 'content-type': 'application/json',
18295
- };
18296
- return this.client.call('patch', uri, apiHeaders, payload);
18297
- }
18298
- updateFreeEmails(paramsOrFirst) {
18299
- let params;
18300
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18301
- params = (paramsOrFirst || {});
18302
- }
18303
- else {
18304
- params = {
18305
- enabled: paramsOrFirst
18306
- };
18307
- }
18308
- const enabled = params.enabled;
18309
- if (typeof enabled === 'undefined') {
18310
- throw new AppwriteException('Missing required parameter: "enabled"');
18311
- }
18312
- const apiPath = '/project/auth/free-emails';
18313
- const payload = {};
18314
- if (typeof enabled !== 'undefined') {
18315
- payload['enabled'] = enabled;
18316
- }
18317
- const uri = new URL(this.client.config.endpoint + apiPath);
18318
- const apiHeaders = {
18319
- 'content-type': 'application/json',
18320
- };
18321
- return this.client.call('patch', uri, apiHeaders, payload);
18322
- }
18323
18404
  listKeys(paramsOrFirst, ...rest) {
18324
18405
  let params;
18325
18406
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18664,15 +18745,27 @@ class Project {
18664
18745
  };
18665
18746
  return this.client.call('delete', uri, apiHeaders, payload);
18666
18747
  }
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() {
18748
+ listOAuth2Providers(paramsOrFirst, ...rest) {
18749
+ let params;
18750
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18751
+ params = (paramsOrFirst || {});
18752
+ }
18753
+ else {
18754
+ params = {
18755
+ queries: paramsOrFirst,
18756
+ total: rest[0]
18757
+ };
18758
+ }
18759
+ const queries = params.queries;
18760
+ const total = params.total;
18674
18761
  const apiPath = '/project/oauth2';
18675
18762
  const payload = {};
18763
+ if (typeof queries !== 'undefined') {
18764
+ payload['queries'] = queries;
18765
+ }
18766
+ if (typeof total !== 'undefined') {
18767
+ payload['total'] = total;
18768
+ }
18676
18769
  const uri = new URL(this.client.config.endpoint + apiPath);
18677
18770
  const apiHeaders = {};
18678
18771
  return this.client.call('get', uri, apiHeaders, payload);
@@ -19292,11 +19385,13 @@ class Project {
19292
19385
  params = {
19293
19386
  clientId: paramsOrFirst,
19294
19387
  clientSecret: rest[0],
19295
- enabled: rest[1]
19388
+ prompt: rest[1],
19389
+ enabled: rest[2]
19296
19390
  };
19297
19391
  }
19298
19392
  const clientId = params.clientId;
19299
19393
  const clientSecret = params.clientSecret;
19394
+ const prompt = params.prompt;
19300
19395
  const enabled = params.enabled;
19301
19396
  const apiPath = '/project/oauth2/google';
19302
19397
  const payload = {};
@@ -19306,6 +19401,9 @@ class Project {
19306
19401
  if (typeof clientSecret !== 'undefined') {
19307
19402
  payload['clientSecret'] = clientSecret;
19308
19403
  }
19404
+ if (typeof prompt !== 'undefined') {
19405
+ payload['prompt'] = prompt;
19406
+ }
19309
19407
  if (typeof enabled !== 'undefined') {
19310
19408
  payload['enabled'] = enabled;
19311
19409
  }
@@ -19501,8 +19599,8 @@ class Project {
19501
19599
  clientSecret: rest[0],
19502
19600
  wellKnownURL: rest[1],
19503
19601
  authorizationURL: rest[2],
19504
- tokenUrl: rest[3],
19505
- userInfoUrl: rest[4],
19602
+ tokenURL: rest[3],
19603
+ userInfoURL: rest[4],
19506
19604
  enabled: rest[5]
19507
19605
  };
19508
19606
  }
@@ -19510,8 +19608,8 @@ class Project {
19510
19608
  const clientSecret = params.clientSecret;
19511
19609
  const wellKnownURL = params.wellKnownURL;
19512
19610
  const authorizationURL = params.authorizationURL;
19513
- const tokenUrl = params.tokenUrl;
19514
- const userInfoUrl = params.userInfoUrl;
19611
+ const tokenURL = params.tokenURL;
19612
+ const userInfoURL = params.userInfoURL;
19515
19613
  const enabled = params.enabled;
19516
19614
  const apiPath = '/project/oauth2/oidc';
19517
19615
  const payload = {};
@@ -19527,11 +19625,11 @@ class Project {
19527
19625
  if (typeof authorizationURL !== 'undefined') {
19528
19626
  payload['authorizationURL'] = authorizationURL;
19529
19627
  }
19530
- if (typeof tokenUrl !== 'undefined') {
19531
- payload['tokenUrl'] = tokenUrl;
19628
+ if (typeof tokenURL !== 'undefined') {
19629
+ payload['tokenURL'] = tokenURL;
19532
19630
  }
19533
- if (typeof userInfoUrl !== 'undefined') {
19534
- payload['userInfoUrl'] = userInfoUrl;
19631
+ if (typeof userInfoURL !== 'undefined') {
19632
+ payload['userInfoURL'] = userInfoURL;
19535
19633
  }
19536
19634
  if (typeof enabled !== 'undefined') {
19537
19635
  payload['enabled'] = enabled;
@@ -20098,19 +20196,19 @@ class Project {
20098
20196
  }
20099
20197
  getOAuth2Provider(paramsOrFirst) {
20100
20198
  let params;
20101
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20199
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('providerId' in paramsOrFirst))) {
20102
20200
  params = (paramsOrFirst || {});
20103
20201
  }
20104
20202
  else {
20105
20203
  params = {
20106
- provider: paramsOrFirst
20204
+ providerId: paramsOrFirst
20107
20205
  };
20108
20206
  }
20109
- const provider = params.provider;
20110
- if (typeof provider === 'undefined') {
20111
- throw new AppwriteException('Missing required parameter: "provider"');
20207
+ const providerId = params.providerId;
20208
+ if (typeof providerId === 'undefined') {
20209
+ throw new AppwriteException('Missing required parameter: "providerId"');
20112
20210
  }
20113
- const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
20211
+ const apiPath = '/project/oauth2/{providerId}'.replace('{providerId}', providerId);
20114
20212
  const payload = {};
20115
20213
  const uri = new URL(this.client.config.endpoint + apiPath);
20116
20214
  const apiHeaders = {};
@@ -20603,6 +20701,81 @@ class Project {
20603
20701
  const apiHeaders = {};
20604
20702
  return this.client.call('get', uri, apiHeaders, payload);
20605
20703
  }
20704
+ updateDenyCanonicalEmailPolicy(paramsOrFirst) {
20705
+ let params;
20706
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20707
+ params = (paramsOrFirst || {});
20708
+ }
20709
+ else {
20710
+ params = {
20711
+ enabled: paramsOrFirst
20712
+ };
20713
+ }
20714
+ const enabled = params.enabled;
20715
+ if (typeof enabled === 'undefined') {
20716
+ throw new AppwriteException('Missing required parameter: "enabled"');
20717
+ }
20718
+ const apiPath = '/project/policies/deny-canonical-email';
20719
+ const payload = {};
20720
+ if (typeof enabled !== 'undefined') {
20721
+ payload['enabled'] = enabled;
20722
+ }
20723
+ const uri = new URL(this.client.config.endpoint + apiPath);
20724
+ const apiHeaders = {
20725
+ 'content-type': 'application/json',
20726
+ };
20727
+ return this.client.call('patch', uri, apiHeaders, payload);
20728
+ }
20729
+ updateDenyDisposableEmailPolicy(paramsOrFirst) {
20730
+ let params;
20731
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20732
+ params = (paramsOrFirst || {});
20733
+ }
20734
+ else {
20735
+ params = {
20736
+ enabled: paramsOrFirst
20737
+ };
20738
+ }
20739
+ const enabled = params.enabled;
20740
+ if (typeof enabled === 'undefined') {
20741
+ throw new AppwriteException('Missing required parameter: "enabled"');
20742
+ }
20743
+ const apiPath = '/project/policies/deny-disposable-email';
20744
+ const payload = {};
20745
+ if (typeof enabled !== 'undefined') {
20746
+ payload['enabled'] = enabled;
20747
+ }
20748
+ const uri = new URL(this.client.config.endpoint + apiPath);
20749
+ const apiHeaders = {
20750
+ 'content-type': 'application/json',
20751
+ };
20752
+ return this.client.call('patch', uri, apiHeaders, payload);
20753
+ }
20754
+ updateDenyFreeEmailPolicy(paramsOrFirst) {
20755
+ let params;
20756
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20757
+ params = (paramsOrFirst || {});
20758
+ }
20759
+ else {
20760
+ params = {
20761
+ enabled: paramsOrFirst
20762
+ };
20763
+ }
20764
+ const enabled = params.enabled;
20765
+ if (typeof enabled === 'undefined') {
20766
+ throw new AppwriteException('Missing required parameter: "enabled"');
20767
+ }
20768
+ const apiPath = '/project/policies/deny-free-email';
20769
+ const payload = {};
20770
+ if (typeof enabled !== 'undefined') {
20771
+ payload['enabled'] = enabled;
20772
+ }
20773
+ const uri = new URL(this.client.config.endpoint + apiPath);
20774
+ const apiHeaders = {
20775
+ 'content-type': 'application/json',
20776
+ };
20777
+ return this.client.call('patch', uri, apiHeaders, payload);
20778
+ }
20606
20779
  updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
20607
20780
  let params;
20608
20781
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21900,21 +22073,16 @@ class Proxy {
21900
22073
  else {
21901
22074
  params = {
21902
22075
  queries: paramsOrFirst,
21903
- search: rest[0],
21904
- total: rest[1]
22076
+ total: rest[0]
21905
22077
  };
21906
22078
  }
21907
22079
  const queries = params.queries;
21908
- const search = params.search;
21909
22080
  const total = params.total;
21910
22081
  const apiPath = '/proxy/rules';
21911
22082
  const payload = {};
21912
22083
  if (typeof queries !== 'undefined') {
21913
22084
  payload['queries'] = queries;
21914
22085
  }
21915
- if (typeof search !== 'undefined') {
21916
- payload['search'] = search;
21917
- }
21918
22086
  if (typeof total !== 'undefined') {
21919
22087
  payload['total'] = total;
21920
22088
  }
@@ -22122,7 +22290,7 @@ class Proxy {
22122
22290
  };
22123
22291
  return this.client.call('delete', uri, apiHeaders, payload);
22124
22292
  }
22125
- updateRuleVerification(paramsOrFirst) {
22293
+ updateRuleStatus(paramsOrFirst) {
22126
22294
  let params;
22127
22295
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22128
22296
  params = (paramsOrFirst || {});
@@ -22136,7 +22304,7 @@ class Proxy {
22136
22304
  if (typeof ruleId === 'undefined') {
22137
22305
  throw new AppwriteException('Missing required parameter: "ruleId"');
22138
22306
  }
22139
- const apiPath = '/proxy/rules/{ruleId}/verification'.replace('{ruleId}', ruleId);
22307
+ const apiPath = '/proxy/rules/{ruleId}/status'.replace('{ruleId}', ruleId);
22140
22308
  const payload = {};
22141
22309
  const uri = new URL(this.client.config.endpoint + apiPath);
22142
22310
  const apiHeaders = {
@@ -23062,22 +23230,32 @@ class Sites {
23062
23230
  const apiHeaders = {};
23063
23231
  return this.client.call('get', uri, apiHeaders, payload);
23064
23232
  }
23065
- listVariables(paramsOrFirst) {
23233
+ listVariables(paramsOrFirst, ...rest) {
23066
23234
  let params;
23067
23235
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
23068
23236
  params = (paramsOrFirst || {});
23069
23237
  }
23070
23238
  else {
23071
23239
  params = {
23072
- siteId: paramsOrFirst
23240
+ siteId: paramsOrFirst,
23241
+ queries: rest[0],
23242
+ total: rest[1]
23073
23243
  };
23074
23244
  }
23075
23245
  const siteId = params.siteId;
23246
+ const queries = params.queries;
23247
+ const total = params.total;
23076
23248
  if (typeof siteId === 'undefined') {
23077
23249
  throw new AppwriteException('Missing required parameter: "siteId"');
23078
23250
  }
23079
23251
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
23080
23252
  const payload = {};
23253
+ if (typeof queries !== 'undefined') {
23254
+ payload['queries'] = queries;
23255
+ }
23256
+ if (typeof total !== 'undefined') {
23257
+ payload['total'] = total;
23258
+ }
23081
23259
  const uri = new URL(this.client.config.endpoint + apiPath);
23082
23260
  const apiHeaders = {};
23083
23261
  return this.client.call('get', uri, apiHeaders, payload);
@@ -23090,18 +23268,23 @@ class Sites {
23090
23268
  else {
23091
23269
  params = {
23092
23270
  siteId: paramsOrFirst,
23093
- key: rest[0],
23094
- value: rest[1],
23095
- secret: rest[2]
23271
+ variableId: rest[0],
23272
+ key: rest[1],
23273
+ value: rest[2],
23274
+ secret: rest[3]
23096
23275
  };
23097
23276
  }
23098
23277
  const siteId = params.siteId;
23278
+ const variableId = params.variableId;
23099
23279
  const key = params.key;
23100
23280
  const value = params.value;
23101
23281
  const secret = params.secret;
23102
23282
  if (typeof siteId === 'undefined') {
23103
23283
  throw new AppwriteException('Missing required parameter: "siteId"');
23104
23284
  }
23285
+ if (typeof variableId === 'undefined') {
23286
+ throw new AppwriteException('Missing required parameter: "variableId"');
23287
+ }
23105
23288
  if (typeof key === 'undefined') {
23106
23289
  throw new AppwriteException('Missing required parameter: "key"');
23107
23290
  }
@@ -23110,6 +23293,9 @@ class Sites {
23110
23293
  }
23111
23294
  const apiPath = '/sites/{siteId}/variables'.replace('{siteId}', siteId);
23112
23295
  const payload = {};
23296
+ if (typeof variableId !== 'undefined') {
23297
+ payload['variableId'] = variableId;
23298
+ }
23113
23299
  if (typeof key !== 'undefined') {
23114
23300
  payload['key'] = key;
23115
23301
  }
@@ -23175,9 +23361,6 @@ class Sites {
23175
23361
  if (typeof variableId === 'undefined') {
23176
23362
  throw new AppwriteException('Missing required parameter: "variableId"');
23177
23363
  }
23178
- if (typeof key === 'undefined') {
23179
- throw new AppwriteException('Missing required parameter: "key"');
23180
- }
23181
23364
  const apiPath = '/sites/{siteId}/variables/{variableId}'.replace('{siteId}', siteId).replace('{variableId}', variableId);
23182
23365
  const payload = {};
23183
23366
  if (typeof key !== 'undefined') {
@@ -24370,6 +24553,132 @@ class TablesDB {
24370
24553
  const apiHeaders = {};
24371
24554
  return this.client.call('get', uri, apiHeaders, payload);
24372
24555
  }
24556
+ createBigIntColumn(paramsOrFirst, ...rest) {
24557
+ let params;
24558
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24559
+ params = (paramsOrFirst || {});
24560
+ }
24561
+ else {
24562
+ params = {
24563
+ databaseId: paramsOrFirst,
24564
+ tableId: rest[0],
24565
+ key: rest[1],
24566
+ required: rest[2],
24567
+ min: rest[3],
24568
+ max: rest[4],
24569
+ xdefault: rest[5],
24570
+ array: rest[6]
24571
+ };
24572
+ }
24573
+ const databaseId = params.databaseId;
24574
+ const tableId = params.tableId;
24575
+ const key = params.key;
24576
+ const required = params.required;
24577
+ const min = params.min;
24578
+ const max = params.max;
24579
+ const xdefault = params.xdefault;
24580
+ const array = params.array;
24581
+ if (typeof databaseId === 'undefined') {
24582
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24583
+ }
24584
+ if (typeof tableId === 'undefined') {
24585
+ throw new AppwriteException('Missing required parameter: "tableId"');
24586
+ }
24587
+ if (typeof key === 'undefined') {
24588
+ throw new AppwriteException('Missing required parameter: "key"');
24589
+ }
24590
+ if (typeof required === 'undefined') {
24591
+ throw new AppwriteException('Missing required parameter: "required"');
24592
+ }
24593
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
24594
+ const payload = {};
24595
+ if (typeof key !== 'undefined') {
24596
+ payload['key'] = key;
24597
+ }
24598
+ if (typeof required !== 'undefined') {
24599
+ payload['required'] = required;
24600
+ }
24601
+ if (typeof min !== 'undefined') {
24602
+ payload['min'] = min;
24603
+ }
24604
+ if (typeof max !== 'undefined') {
24605
+ payload['max'] = max;
24606
+ }
24607
+ if (typeof xdefault !== 'undefined') {
24608
+ payload['default'] = xdefault;
24609
+ }
24610
+ if (typeof array !== 'undefined') {
24611
+ payload['array'] = array;
24612
+ }
24613
+ const uri = new URL(this.client.config.endpoint + apiPath);
24614
+ const apiHeaders = {
24615
+ 'content-type': 'application/json',
24616
+ };
24617
+ return this.client.call('post', uri, apiHeaders, payload);
24618
+ }
24619
+ updateBigIntColumn(paramsOrFirst, ...rest) {
24620
+ let params;
24621
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24622
+ params = (paramsOrFirst || {});
24623
+ }
24624
+ else {
24625
+ params = {
24626
+ databaseId: paramsOrFirst,
24627
+ tableId: rest[0],
24628
+ key: rest[1],
24629
+ required: rest[2],
24630
+ xdefault: rest[3],
24631
+ min: rest[4],
24632
+ max: rest[5],
24633
+ newKey: rest[6]
24634
+ };
24635
+ }
24636
+ const databaseId = params.databaseId;
24637
+ const tableId = params.tableId;
24638
+ const key = params.key;
24639
+ const required = params.required;
24640
+ const xdefault = params.xdefault;
24641
+ const min = params.min;
24642
+ const max = params.max;
24643
+ const newKey = params.newKey;
24644
+ if (typeof databaseId === 'undefined') {
24645
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24646
+ }
24647
+ if (typeof tableId === 'undefined') {
24648
+ throw new AppwriteException('Missing required parameter: "tableId"');
24649
+ }
24650
+ if (typeof key === 'undefined') {
24651
+ throw new AppwriteException('Missing required parameter: "key"');
24652
+ }
24653
+ if (typeof required === 'undefined') {
24654
+ throw new AppwriteException('Missing required parameter: "required"');
24655
+ }
24656
+ if (typeof xdefault === 'undefined') {
24657
+ throw new AppwriteException('Missing required parameter: "xdefault"');
24658
+ }
24659
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
24660
+ const payload = {};
24661
+ if (typeof required !== 'undefined') {
24662
+ payload['required'] = required;
24663
+ }
24664
+ if (typeof min !== 'undefined') {
24665
+ payload['min'] = min;
24666
+ }
24667
+ if (typeof max !== 'undefined') {
24668
+ payload['max'] = max;
24669
+ }
24670
+ if (typeof xdefault !== 'undefined') {
24671
+ payload['default'] = xdefault;
24672
+ }
24673
+ if (typeof newKey !== 'undefined') {
24674
+ payload['newKey'] = newKey;
24675
+ }
24676
+ const uri = new URL(this.client.config.endpoint + apiPath);
24677
+ const apiHeaders = {
24678
+ 'content-type': 'application/json',
24679
+ };
24680
+ return this.client.call('patch', uri, apiHeaders, payload);
24681
+ }
24373
24682
  createBooleanColumn(paramsOrFirst, ...rest) {
24374
24683
  let params;
24375
24684
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -29465,11 +29774,15 @@ class Vcs {
29465
29774
  else {
29466
29775
  params = {
29467
29776
  installationId: paramsOrFirst,
29468
- providerRepositoryId: rest[0]
29777
+ providerRepositoryId: rest[0],
29778
+ search: rest[1],
29779
+ queries: rest[2]
29469
29780
  };
29470
29781
  }
29471
29782
  const installationId = params.installationId;
29472
29783
  const providerRepositoryId = params.providerRepositoryId;
29784
+ const search = params.search;
29785
+ const queries = params.queries;
29473
29786
  if (typeof installationId === 'undefined') {
29474
29787
  throw new AppwriteException('Missing required parameter: "installationId"');
29475
29788
  }
@@ -29478,6 +29791,12 @@ class Vcs {
29478
29791
  }
29479
29792
  const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
29480
29793
  const payload = {};
29794
+ if (typeof search !== 'undefined') {
29795
+ payload['search'] = search;
29796
+ }
29797
+ if (typeof queries !== 'undefined') {
29798
+ payload['queries'] = queries;
29799
+ }
29481
29800
  const uri = new URL(this.client.config.endpoint + apiPath);
29482
29801
  const apiHeaders = {};
29483
29802
  return this.client.call('get', uri, apiHeaders, payload);
@@ -32102,6 +32421,8 @@ exports.Scopes = void 0;
32102
32421
  Scopes["TargetsWrite"] = "targets.write";
32103
32422
  Scopes["MessagesRead"] = "messages.read";
32104
32423
  Scopes["MessagesWrite"] = "messages.write";
32424
+ Scopes["RulesRead"] = "rules.read";
32425
+ Scopes["RulesWrite"] = "rules.write";
32105
32426
  Scopes["WebhooksRead"] = "webhooks.read";
32106
32427
  Scopes["WebhooksWrite"] = "webhooks.write";
32107
32428
  Scopes["LocaleRead"] = "locale.read";
@@ -32114,8 +32435,6 @@ exports.Scopes = void 0;
32114
32435
  Scopes["SchedulesWrite"] = "schedules.write";
32115
32436
  Scopes["VcsRead"] = "vcs.read";
32116
32437
  Scopes["VcsWrite"] = "vcs.write";
32117
- Scopes["RulesRead"] = "rules.read";
32118
- Scopes["RulesWrite"] = "rules.write";
32119
32438
  Scopes["BackupsPoliciesRead"] = "backups.policies.read";
32120
32439
  Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
32121
32440
  Scopes["ArchivesRead"] = "archives.read";
@@ -32189,6 +32508,8 @@ exports.OAuthProvider = void 0;
32189
32508
  OAuthProvider["Yandex"] = "yandex";
32190
32509
  OAuthProvider["Zoho"] = "zoho";
32191
32510
  OAuthProvider["Zoom"] = "zoom";
32511
+ OAuthProvider["GithubImagine"] = "githubImagine";
32512
+ OAuthProvider["GoogleImagine"] = "googleImagine";
32192
32513
  })(exports.OAuthProvider || (exports.OAuthProvider = {}));
32193
32514
 
32194
32515
  exports.Browser = void 0;
@@ -33359,6 +33680,13 @@ exports.AppwriteMigrationResource = void 0;
33359
33680
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
33360
33681
  })(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
33361
33682
 
33683
+ exports.OnDuplicate = void 0;
33684
+ (function (OnDuplicate) {
33685
+ OnDuplicate["Fail"] = "fail";
33686
+ OnDuplicate["Skip"] = "skip";
33687
+ OnDuplicate["Overwrite"] = "overwrite";
33688
+ })(exports.OnDuplicate || (exports.OnDuplicate = {}));
33689
+
33362
33690
  exports.FirebaseMigrationResource = void 0;
33363
33691
  (function (FirebaseMigrationResource) {
33364
33692
  FirebaseMigrationResource["User"] = "user";
@@ -33408,29 +33736,36 @@ exports.Addon = void 0;
33408
33736
  Addon["Baa"] = "baa";
33409
33737
  })(exports.Addon || (exports.Addon = {}));
33410
33738
 
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 = {}));
33739
+ exports.AuthMethod = void 0;
33740
+ (function (AuthMethod) {
33741
+ AuthMethod["Emailpassword"] = "email-password";
33742
+ AuthMethod["Magicurl"] = "magic-url";
33743
+ AuthMethod["Emailotp"] = "email-otp";
33744
+ AuthMethod["Anonymous"] = "anonymous";
33745
+ AuthMethod["Invites"] = "invites";
33746
+ AuthMethod["Jwt"] = "jwt";
33747
+ AuthMethod["Phone"] = "phone";
33748
+ })(exports.AuthMethod || (exports.AuthMethod = {}));
33749
+
33750
+ exports.Prompt = void 0;
33751
+ (function (Prompt) {
33752
+ Prompt["None"] = "none";
33753
+ Prompt["Consent"] = "consent";
33754
+ Prompt["SelectAccount"] = "select_account";
33755
+ })(exports.Prompt || (exports.Prompt = {}));
33421
33756
 
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 = {}));
33757
+ exports.ProjectPolicy = void 0;
33758
+ (function (ProjectPolicy) {
33759
+ ProjectPolicy["Passworddictionary"] = "password-dictionary";
33760
+ ProjectPolicy["Passwordhistory"] = "password-history";
33761
+ ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
33762
+ ProjectPolicy["Sessionalert"] = "session-alert";
33763
+ ProjectPolicy["Sessionduration"] = "session-duration";
33764
+ ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
33765
+ ProjectPolicy["Sessionlimit"] = "session-limit";
33766
+ ProjectPolicy["Userlimit"] = "user-limit";
33767
+ ProjectPolicy["Membershipprivacy"] = "membership-privacy";
33768
+ })(exports.ProjectPolicy || (exports.ProjectPolicy = {}));
33434
33769
 
33435
33770
  exports.ProtocolId = void 0;
33436
33771
  (function (ProtocolId) {
@@ -33926,6 +34261,13 @@ exports.ExecutionStatus = void 0;
33926
34261
  ExecutionStatus["Scheduled"] = "scheduled";
33927
34262
  })(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
33928
34263
 
34264
+ exports.OAuth2GooglePrompt = void 0;
34265
+ (function (OAuth2GooglePrompt) {
34266
+ OAuth2GooglePrompt["None"] = "none";
34267
+ OAuth2GooglePrompt["Consent"] = "consent";
34268
+ OAuth2GooglePrompt["SelectAccount"] = "select_account";
34269
+ })(exports.OAuth2GooglePrompt || (exports.OAuth2GooglePrompt = {}));
34270
+
33929
34271
  exports.PlatformType = void 0;
33930
34272
  (function (PlatformType) {
33931
34273
  PlatformType["Windows"] = "windows";
@@ -33956,10 +34298,9 @@ exports.ProxyRuleDeploymentResourceType = void 0;
33956
34298
 
33957
34299
  exports.ProxyRuleStatus = void 0;
33958
34300
  (function (ProxyRuleStatus) {
33959
- ProxyRuleStatus["Created"] = "created";
34301
+ ProxyRuleStatus["Unverified"] = "unverified";
33960
34302
  ProxyRuleStatus["Verifying"] = "verifying";
33961
34303
  ProxyRuleStatus["Verified"] = "verified";
33962
- ProxyRuleStatus["Unverified"] = "unverified";
33963
34304
  })(exports.ProxyRuleStatus || (exports.ProxyRuleStatus = {}));
33964
34305
 
33965
34306
  exports.MessageStatus = void 0;