@appwrite.io/console 11.0.0 → 12.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/esm/sdk.js CHANGED
@@ -618,8 +618,8 @@ class Client {
618
618
  'x-sdk-name': 'Console',
619
619
  'x-sdk-platform': 'console',
620
620
  'x-sdk-language': 'web',
621
- 'x-sdk-version': '11.0.0',
622
- 'X-Appwrite-Response-Format': '1.9.2',
621
+ 'x-sdk-version': '12.0.0',
622
+ 'X-Appwrite-Response-Format': '1.9.3',
623
623
  };
624
624
  this.realtime = {
625
625
  socket: undefined,
@@ -4182,6 +4182,19 @@ class Console {
4182
4182
  const apiHeaders = {};
4183
4183
  return this.client.call('get', uri, apiHeaders, payload);
4184
4184
  }
4185
+ /**
4186
+ * List all OAuth2 providers supported by the Appwrite server, along with the parameters required to configure each provider. The response excludes mock providers but includes sandbox providers.
4187
+ *
4188
+ * @throws {AppwriteException}
4189
+ * @returns {Promise<Models.ConsoleOAuth2ProviderList>}
4190
+ */
4191
+ listOAuth2Providers() {
4192
+ const apiPath = '/console/oauth2-providers';
4193
+ const payload = {};
4194
+ const uri = new URL(this.client.config.endpoint + apiPath);
4195
+ const apiHeaders = {};
4196
+ return this.client.call('get', uri, apiHeaders, payload);
4197
+ }
4185
4198
  getPlans(paramsOrFirst) {
4186
4199
  let params;
4187
4200
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('platform' in paramsOrFirst))) {
@@ -4308,6 +4321,19 @@ class Console {
4308
4321
  const apiHeaders = {};
4309
4322
  return this.client.call('get', uri, apiHeaders, payload);
4310
4323
  }
4324
+ /**
4325
+ * List all scopes available for project API keys, along with a description for each scope.
4326
+ *
4327
+ * @throws {AppwriteException}
4328
+ * @returns {Promise<Models.ConsoleKeyScopeList>}
4329
+ */
4330
+ listProjectScopes() {
4331
+ const apiPath = '/console/scopes/project';
4332
+ const payload = {};
4333
+ const uri = new URL(this.client.config.endpoint + apiPath);
4334
+ const apiHeaders = {};
4335
+ return this.client.call('get', uri, apiHeaders, payload);
4336
+ }
4311
4337
  createSource(paramsOrFirst, ...rest) {
4312
4338
  let params;
4313
4339
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -9211,19 +9237,19 @@ class Domains {
9211
9237
  }
9212
9238
  else {
9213
9239
  params = {
9214
- domainId: paramsOrFirst,
9240
+ invoiceId: paramsOrFirst,
9215
9241
  organizationId: rest[0]
9216
9242
  };
9217
9243
  }
9218
- const domainId = params.domainId;
9244
+ const invoiceId = params.invoiceId;
9219
9245
  const organizationId = params.organizationId;
9220
- if (typeof domainId === 'undefined') {
9221
- throw new AppwriteException('Missing required parameter: "domainId"');
9246
+ if (typeof invoiceId === 'undefined') {
9247
+ throw new AppwriteException('Missing required parameter: "invoiceId"');
9222
9248
  }
9223
9249
  if (typeof organizationId === 'undefined') {
9224
9250
  throw new AppwriteException('Missing required parameter: "organizationId"');
9225
9251
  }
9226
- const apiPath = '/domains/purchases/{domainId}'.replace('{domainId}', domainId);
9252
+ const apiPath = '/domains/purchases/{invoiceId}'.replace('{invoiceId}', invoiceId);
9227
9253
  const payload = {};
9228
9254
  if (typeof organizationId !== 'undefined') {
9229
9255
  payload['organizationId'] = organizationId;
@@ -9343,19 +9369,19 @@ class Domains {
9343
9369
  }
9344
9370
  else {
9345
9371
  params = {
9346
- domainId: paramsOrFirst,
9372
+ invoiceId: paramsOrFirst,
9347
9373
  organizationId: rest[0]
9348
9374
  };
9349
9375
  }
9350
- const domainId = params.domainId;
9376
+ const invoiceId = params.invoiceId;
9351
9377
  const organizationId = params.organizationId;
9352
- if (typeof domainId === 'undefined') {
9353
- throw new AppwriteException('Missing required parameter: "domainId"');
9378
+ if (typeof invoiceId === 'undefined') {
9379
+ throw new AppwriteException('Missing required parameter: "invoiceId"');
9354
9380
  }
9355
9381
  if (typeof organizationId === 'undefined') {
9356
9382
  throw new AppwriteException('Missing required parameter: "organizationId"');
9357
9383
  }
9358
- const apiPath = '/domains/transfers/in/{domainId}'.replace('{domainId}', domainId);
9384
+ const apiPath = '/domains/transfers/in/{invoiceId}'.replace('{invoiceId}', invoiceId);
9359
9385
  const payload = {};
9360
9386
  if (typeof organizationId !== 'undefined') {
9361
9387
  payload['organizationId'] = organizationId;
@@ -12892,6 +12918,158 @@ class Locale {
12892
12918
  }
12893
12919
  }
12894
12920
 
12921
+ class Manager {
12922
+ constructor(client) {
12923
+ this.client = client;
12924
+ }
12925
+ createBlock(paramsOrFirst, ...rest) {
12926
+ let params;
12927
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
12928
+ params = (paramsOrFirst || {});
12929
+ }
12930
+ else {
12931
+ params = {
12932
+ projectId: paramsOrFirst,
12933
+ resourceType: rest[0],
12934
+ resourceId: rest[1],
12935
+ reason: rest[2],
12936
+ expiredAt: rest[3]
12937
+ };
12938
+ }
12939
+ const projectId = params.projectId;
12940
+ const resourceType = params.resourceType;
12941
+ const resourceId = params.resourceId;
12942
+ const reason = params.reason;
12943
+ const expiredAt = params.expiredAt;
12944
+ if (typeof projectId === 'undefined') {
12945
+ throw new AppwriteException('Missing required parameter: "projectId"');
12946
+ }
12947
+ if (typeof resourceType === 'undefined') {
12948
+ throw new AppwriteException('Missing required parameter: "resourceType"');
12949
+ }
12950
+ const apiPath = '/manager/blocks';
12951
+ const payload = {};
12952
+ if (typeof projectId !== 'undefined') {
12953
+ payload['projectId'] = projectId;
12954
+ }
12955
+ if (typeof resourceType !== 'undefined') {
12956
+ payload['resourceType'] = resourceType;
12957
+ }
12958
+ if (typeof resourceId !== 'undefined') {
12959
+ payload['resourceId'] = resourceId;
12960
+ }
12961
+ if (typeof reason !== 'undefined') {
12962
+ payload['reason'] = reason;
12963
+ }
12964
+ if (typeof expiredAt !== 'undefined') {
12965
+ payload['expiredAt'] = expiredAt;
12966
+ }
12967
+ const uri = new URL(this.client.config.endpoint + apiPath);
12968
+ const apiHeaders = {
12969
+ 'content-type': 'application/json',
12970
+ };
12971
+ return this.client.call('post', uri, apiHeaders, payload);
12972
+ }
12973
+ deleteBlock(paramsOrFirst, ...rest) {
12974
+ let params;
12975
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
12976
+ params = (paramsOrFirst || {});
12977
+ }
12978
+ else {
12979
+ params = {
12980
+ projectId: paramsOrFirst,
12981
+ resourceType: rest[0],
12982
+ resourceId: rest[1]
12983
+ };
12984
+ }
12985
+ const projectId = params.projectId;
12986
+ const resourceType = params.resourceType;
12987
+ const resourceId = params.resourceId;
12988
+ if (typeof projectId === 'undefined') {
12989
+ throw new AppwriteException('Missing required parameter: "projectId"');
12990
+ }
12991
+ if (typeof resourceType === 'undefined') {
12992
+ throw new AppwriteException('Missing required parameter: "resourceType"');
12993
+ }
12994
+ const apiPath = '/manager/blocks';
12995
+ const payload = {};
12996
+ if (typeof projectId !== 'undefined') {
12997
+ payload['projectId'] = projectId;
12998
+ }
12999
+ if (typeof resourceType !== 'undefined') {
13000
+ payload['resourceType'] = resourceType;
13001
+ }
13002
+ if (typeof resourceId !== 'undefined') {
13003
+ payload['resourceId'] = resourceId;
13004
+ }
13005
+ const uri = new URL(this.client.config.endpoint + apiPath);
13006
+ const apiHeaders = {
13007
+ 'content-type': 'application/json',
13008
+ };
13009
+ return this.client.call('delete', uri, apiHeaders, payload);
13010
+ }
13011
+ listBlocks(paramsOrFirst) {
13012
+ let params;
13013
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
13014
+ params = (paramsOrFirst || {});
13015
+ }
13016
+ else {
13017
+ params = {
13018
+ projectId: paramsOrFirst
13019
+ };
13020
+ }
13021
+ const projectId = params.projectId;
13022
+ if (typeof projectId === 'undefined') {
13023
+ throw new AppwriteException('Missing required parameter: "projectId"');
13024
+ }
13025
+ const apiPath = '/manager/blocks/{projectId}'.replace('{projectId}', projectId);
13026
+ const payload = {};
13027
+ const uri = new URL(this.client.config.endpoint + apiPath);
13028
+ const apiHeaders = {};
13029
+ return this.client.call('get', uri, apiHeaders, payload);
13030
+ }
13031
+ updateUserStatus(paramsOrFirst, ...rest) {
13032
+ let params;
13033
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
13034
+ params = (paramsOrFirst || {});
13035
+ }
13036
+ else {
13037
+ params = {
13038
+ status: paramsOrFirst,
13039
+ userId: rest[0],
13040
+ email: rest[1],
13041
+ reason: rest[2]
13042
+ };
13043
+ }
13044
+ const status = params.status;
13045
+ const userId = params.userId;
13046
+ const email = params.email;
13047
+ const reason = params.reason;
13048
+ if (typeof status === 'undefined') {
13049
+ throw new AppwriteException('Missing required parameter: "status"');
13050
+ }
13051
+ const apiPath = '/manager/users/status';
13052
+ const payload = {};
13053
+ if (typeof userId !== 'undefined') {
13054
+ payload['userId'] = userId;
13055
+ }
13056
+ if (typeof email !== 'undefined') {
13057
+ payload['email'] = email;
13058
+ }
13059
+ if (typeof status !== 'undefined') {
13060
+ payload['status'] = status;
13061
+ }
13062
+ if (typeof reason !== 'undefined') {
13063
+ payload['reason'] = reason;
13064
+ }
13065
+ const uri = new URL(this.client.config.endpoint + apiPath);
13066
+ const apiHeaders = {
13067
+ 'content-type': 'application/json',
13068
+ };
13069
+ return this.client.call('patch', uri, apiHeaders, payload);
13070
+ }
13071
+ }
13072
+
12895
13073
  class Messaging {
12896
13074
  constructor(client) {
12897
13075
  this.client = client;
@@ -17772,6 +17950,46 @@ class Organizations {
17772
17950
  };
17773
17951
  return this.client.call('patch', uri, apiHeaders, payload);
17774
17952
  }
17953
+ createPlanEstimation(paramsOrFirst, ...rest) {
17954
+ let params;
17955
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17956
+ params = (paramsOrFirst || {});
17957
+ }
17958
+ else {
17959
+ params = {
17960
+ organizationId: paramsOrFirst,
17961
+ billingPlan: rest[0],
17962
+ invites: rest[1],
17963
+ couponId: rest[2]
17964
+ };
17965
+ }
17966
+ const organizationId = params.organizationId;
17967
+ const billingPlan = params.billingPlan;
17968
+ const invites = params.invites;
17969
+ const couponId = params.couponId;
17970
+ if (typeof organizationId === 'undefined') {
17971
+ throw new AppwriteException('Missing required parameter: "organizationId"');
17972
+ }
17973
+ if (typeof billingPlan === 'undefined') {
17974
+ throw new AppwriteException('Missing required parameter: "billingPlan"');
17975
+ }
17976
+ const apiPath = '/organizations/{organizationId}/plan/estimations'.replace('{organizationId}', organizationId);
17977
+ const payload = {};
17978
+ if (typeof billingPlan !== 'undefined') {
17979
+ payload['billingPlan'] = billingPlan;
17980
+ }
17981
+ if (typeof invites !== 'undefined') {
17982
+ payload['invites'] = invites;
17983
+ }
17984
+ if (typeof couponId !== 'undefined') {
17985
+ payload['couponId'] = couponId;
17986
+ }
17987
+ const uri = new URL(this.client.config.endpoint + apiPath);
17988
+ const apiHeaders = {
17989
+ 'content-type': 'application/json',
17990
+ };
17991
+ return this.client.call('post', uri, apiHeaders, payload);
17992
+ }
17775
17993
  listRegions(paramsOrFirst) {
17776
17994
  let params;
17777
17995
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -17910,6 +18128,51 @@ class Project {
17910
18128
  constructor(client) {
17911
18129
  this.client = client;
17912
18130
  }
18131
+ /**
18132
+ * Delete a project.
18133
+ *
18134
+ * @throws {AppwriteException}
18135
+ * @returns {Promise<{}>}
18136
+ */
18137
+ delete() {
18138
+ const apiPath = '/project';
18139
+ const payload = {};
18140
+ const uri = new URL(this.client.config.endpoint + apiPath);
18141
+ const apiHeaders = {
18142
+ 'content-type': 'application/json',
18143
+ };
18144
+ return this.client.call('delete', uri, apiHeaders, payload);
18145
+ }
18146
+ updateAuthMethod(paramsOrFirst, ...rest) {
18147
+ let params;
18148
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
18149
+ params = (paramsOrFirst || {});
18150
+ }
18151
+ else {
18152
+ params = {
18153
+ methodId: paramsOrFirst,
18154
+ enabled: rest[0]
18155
+ };
18156
+ }
18157
+ const methodId = params.methodId;
18158
+ const enabled = params.enabled;
18159
+ if (typeof methodId === 'undefined') {
18160
+ throw new AppwriteException('Missing required parameter: "methodId"');
18161
+ }
18162
+ if (typeof enabled === 'undefined') {
18163
+ throw new AppwriteException('Missing required parameter: "enabled"');
18164
+ }
18165
+ const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
18166
+ const payload = {};
18167
+ if (typeof enabled !== 'undefined') {
18168
+ payload['enabled'] = enabled;
18169
+ }
18170
+ const uri = new URL(this.client.config.endpoint + apiPath);
18171
+ const apiHeaders = {
18172
+ 'content-type': 'application/json',
18173
+ };
18174
+ return this.client.call('patch', uri, apiHeaders, payload);
18175
+ }
17913
18176
  updateCanonicalEmails(paramsOrFirst) {
17914
18177
  let params;
17915
18178
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18056,115 +18319,1730 @@ class Project {
18056
18319
  };
18057
18320
  return this.client.call('post', uri, apiHeaders, payload);
18058
18321
  }
18059
- getKey(paramsOrFirst) {
18322
+ createEphemeralKey(paramsOrFirst, ...rest) {
18060
18323
  let params;
18061
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18324
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scopes' in paramsOrFirst || 'duration' in paramsOrFirst))) {
18062
18325
  params = (paramsOrFirst || {});
18063
18326
  }
18064
18327
  else {
18065
18328
  params = {
18066
- keyId: paramsOrFirst
18329
+ scopes: paramsOrFirst,
18330
+ duration: rest[0]
18067
18331
  };
18068
18332
  }
18069
- const keyId = params.keyId;
18070
- if (typeof keyId === 'undefined') {
18071
- throw new AppwriteException('Missing required parameter: "keyId"');
18333
+ const scopes = params.scopes;
18334
+ const duration = params.duration;
18335
+ if (typeof scopes === 'undefined') {
18336
+ throw new AppwriteException('Missing required parameter: "scopes"');
18072
18337
  }
18073
- const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
18338
+ if (typeof duration === 'undefined') {
18339
+ throw new AppwriteException('Missing required parameter: "duration"');
18340
+ }
18341
+ const apiPath = '/project/keys/ephemeral';
18074
18342
  const payload = {};
18075
- const uri = new URL(this.client.config.endpoint + apiPath);
18076
- const apiHeaders = {};
18343
+ if (typeof scopes !== 'undefined') {
18344
+ payload['scopes'] = scopes;
18345
+ }
18346
+ if (typeof duration !== 'undefined') {
18347
+ payload['duration'] = duration;
18348
+ }
18349
+ const uri = new URL(this.client.config.endpoint + apiPath);
18350
+ const apiHeaders = {
18351
+ 'content-type': 'application/json',
18352
+ };
18353
+ return this.client.call('post', uri, apiHeaders, payload);
18354
+ }
18355
+ getKey(paramsOrFirst) {
18356
+ let params;
18357
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18358
+ params = (paramsOrFirst || {});
18359
+ }
18360
+ else {
18361
+ params = {
18362
+ keyId: paramsOrFirst
18363
+ };
18364
+ }
18365
+ const keyId = params.keyId;
18366
+ if (typeof keyId === 'undefined') {
18367
+ throw new AppwriteException('Missing required parameter: "keyId"');
18368
+ }
18369
+ const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
18370
+ const payload = {};
18371
+ const uri = new URL(this.client.config.endpoint + apiPath);
18372
+ const apiHeaders = {};
18373
+ return this.client.call('get', uri, apiHeaders, payload);
18374
+ }
18375
+ updateKey(paramsOrFirst, ...rest) {
18376
+ let params;
18377
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18378
+ params = (paramsOrFirst || {});
18379
+ }
18380
+ else {
18381
+ params = {
18382
+ keyId: paramsOrFirst,
18383
+ name: rest[0],
18384
+ scopes: rest[1],
18385
+ expire: rest[2]
18386
+ };
18387
+ }
18388
+ const keyId = params.keyId;
18389
+ const name = params.name;
18390
+ const scopes = params.scopes;
18391
+ const expire = params.expire;
18392
+ if (typeof keyId === 'undefined') {
18393
+ throw new AppwriteException('Missing required parameter: "keyId"');
18394
+ }
18395
+ if (typeof name === 'undefined') {
18396
+ throw new AppwriteException('Missing required parameter: "name"');
18397
+ }
18398
+ if (typeof scopes === 'undefined') {
18399
+ throw new AppwriteException('Missing required parameter: "scopes"');
18400
+ }
18401
+ const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
18402
+ const payload = {};
18403
+ if (typeof name !== 'undefined') {
18404
+ payload['name'] = name;
18405
+ }
18406
+ if (typeof scopes !== 'undefined') {
18407
+ payload['scopes'] = scopes;
18408
+ }
18409
+ if (typeof expire !== 'undefined') {
18410
+ payload['expire'] = expire;
18411
+ }
18412
+ const uri = new URL(this.client.config.endpoint + apiPath);
18413
+ const apiHeaders = {
18414
+ 'content-type': 'application/json',
18415
+ };
18416
+ return this.client.call('put', uri, apiHeaders, payload);
18417
+ }
18418
+ deleteKey(paramsOrFirst) {
18419
+ let params;
18420
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18421
+ params = (paramsOrFirst || {});
18422
+ }
18423
+ else {
18424
+ params = {
18425
+ keyId: paramsOrFirst
18426
+ };
18427
+ }
18428
+ const keyId = params.keyId;
18429
+ if (typeof keyId === 'undefined') {
18430
+ throw new AppwriteException('Missing required parameter: "keyId"');
18431
+ }
18432
+ const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
18433
+ const payload = {};
18434
+ const uri = new URL(this.client.config.endpoint + apiPath);
18435
+ const apiHeaders = {
18436
+ 'content-type': 'application/json',
18437
+ };
18438
+ return this.client.call('delete', uri, apiHeaders, payload);
18439
+ }
18440
+ updateLabels(paramsOrFirst) {
18441
+ let params;
18442
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18443
+ params = (paramsOrFirst || {});
18444
+ }
18445
+ else {
18446
+ params = {
18447
+ labels: paramsOrFirst
18448
+ };
18449
+ }
18450
+ const labels = params.labels;
18451
+ if (typeof labels === 'undefined') {
18452
+ throw new AppwriteException('Missing required parameter: "labels"');
18453
+ }
18454
+ const apiPath = '/project/labels';
18455
+ const payload = {};
18456
+ if (typeof labels !== 'undefined') {
18457
+ payload['labels'] = labels;
18458
+ }
18459
+ const uri = new URL(this.client.config.endpoint + apiPath);
18460
+ const apiHeaders = {
18461
+ 'content-type': 'application/json',
18462
+ };
18463
+ return this.client.call('put', uri, apiHeaders, payload);
18464
+ }
18465
+ listMockPhones(paramsOrFirst, ...rest) {
18466
+ let params;
18467
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18468
+ params = (paramsOrFirst || {});
18469
+ }
18470
+ else {
18471
+ params = {
18472
+ queries: paramsOrFirst,
18473
+ total: rest[0]
18474
+ };
18475
+ }
18476
+ const queries = params.queries;
18477
+ const total = params.total;
18478
+ const apiPath = '/project/mock-phones';
18479
+ const payload = {};
18480
+ if (typeof queries !== 'undefined') {
18481
+ payload['queries'] = queries;
18482
+ }
18483
+ if (typeof total !== 'undefined') {
18484
+ payload['total'] = total;
18485
+ }
18486
+ const uri = new URL(this.client.config.endpoint + apiPath);
18487
+ const apiHeaders = {};
18488
+ return this.client.call('get', uri, apiHeaders, payload);
18489
+ }
18490
+ createMockPhone(paramsOrFirst, ...rest) {
18491
+ let params;
18492
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18493
+ params = (paramsOrFirst || {});
18494
+ }
18495
+ else {
18496
+ params = {
18497
+ number: paramsOrFirst,
18498
+ otp: rest[0]
18499
+ };
18500
+ }
18501
+ const number = params.number;
18502
+ const otp = params.otp;
18503
+ if (typeof number === 'undefined') {
18504
+ throw new AppwriteException('Missing required parameter: "number"');
18505
+ }
18506
+ if (typeof otp === 'undefined') {
18507
+ throw new AppwriteException('Missing required parameter: "otp"');
18508
+ }
18509
+ const apiPath = '/project/mock-phones';
18510
+ const payload = {};
18511
+ if (typeof number !== 'undefined') {
18512
+ payload['number'] = number;
18513
+ }
18514
+ if (typeof otp !== 'undefined') {
18515
+ payload['otp'] = otp;
18516
+ }
18517
+ const uri = new URL(this.client.config.endpoint + apiPath);
18518
+ const apiHeaders = {
18519
+ 'content-type': 'application/json',
18520
+ };
18521
+ return this.client.call('post', uri, apiHeaders, payload);
18522
+ }
18523
+ getMockPhone(paramsOrFirst) {
18524
+ let params;
18525
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18526
+ params = (paramsOrFirst || {});
18527
+ }
18528
+ else {
18529
+ params = {
18530
+ number: paramsOrFirst
18531
+ };
18532
+ }
18533
+ const number = params.number;
18534
+ if (typeof number === 'undefined') {
18535
+ throw new AppwriteException('Missing required parameter: "number"');
18536
+ }
18537
+ const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
18538
+ const payload = {};
18539
+ const uri = new URL(this.client.config.endpoint + apiPath);
18540
+ const apiHeaders = {};
18541
+ return this.client.call('get', uri, apiHeaders, payload);
18542
+ }
18543
+ updateMockPhone(paramsOrFirst, ...rest) {
18544
+ let params;
18545
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18546
+ params = (paramsOrFirst || {});
18547
+ }
18548
+ else {
18549
+ params = {
18550
+ number: paramsOrFirst,
18551
+ otp: rest[0]
18552
+ };
18553
+ }
18554
+ const number = params.number;
18555
+ const otp = params.otp;
18556
+ if (typeof number === 'undefined') {
18557
+ throw new AppwriteException('Missing required parameter: "number"');
18558
+ }
18559
+ if (typeof otp === 'undefined') {
18560
+ throw new AppwriteException('Missing required parameter: "otp"');
18561
+ }
18562
+ const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
18563
+ const payload = {};
18564
+ if (typeof otp !== 'undefined') {
18565
+ payload['otp'] = otp;
18566
+ }
18567
+ const uri = new URL(this.client.config.endpoint + apiPath);
18568
+ const apiHeaders = {
18569
+ 'content-type': 'application/json',
18570
+ };
18571
+ return this.client.call('put', uri, apiHeaders, payload);
18572
+ }
18573
+ deleteMockPhone(paramsOrFirst) {
18574
+ let params;
18575
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18576
+ params = (paramsOrFirst || {});
18577
+ }
18578
+ else {
18579
+ params = {
18580
+ number: paramsOrFirst
18581
+ };
18582
+ }
18583
+ const number = params.number;
18584
+ if (typeof number === 'undefined') {
18585
+ throw new AppwriteException('Missing required parameter: "number"');
18586
+ }
18587
+ const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
18588
+ const payload = {};
18589
+ const uri = new URL(this.client.config.endpoint + apiPath);
18590
+ const apiHeaders = {
18591
+ 'content-type': 'application/json',
18592
+ };
18593
+ return this.client.call('delete', uri, apiHeaders, payload);
18594
+ }
18595
+ /**
18596
+ * 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.
18597
+ *
18598
+ * @throws {AppwriteException}
18599
+ * @returns {Promise<Models.OAuth2ProviderList>}
18600
+ */
18601
+ listOAuth2Providers() {
18602
+ const apiPath = '/project/oauth2';
18603
+ const payload = {};
18604
+ const uri = new URL(this.client.config.endpoint + apiPath);
18605
+ const apiHeaders = {};
18077
18606
  return this.client.call('get', uri, apiHeaders, payload);
18078
18607
  }
18079
- updateKey(paramsOrFirst, ...rest) {
18608
+ updateOAuth2Amazon(paramsOrFirst, ...rest) {
18609
+ let params;
18610
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18611
+ params = (paramsOrFirst || {});
18612
+ }
18613
+ else {
18614
+ params = {
18615
+ clientId: paramsOrFirst,
18616
+ clientSecret: rest[0],
18617
+ enabled: rest[1]
18618
+ };
18619
+ }
18620
+ const clientId = params.clientId;
18621
+ const clientSecret = params.clientSecret;
18622
+ const enabled = params.enabled;
18623
+ const apiPath = '/project/oauth2/amazon';
18624
+ const payload = {};
18625
+ if (typeof clientId !== 'undefined') {
18626
+ payload['clientId'] = clientId;
18627
+ }
18628
+ if (typeof clientSecret !== 'undefined') {
18629
+ payload['clientSecret'] = clientSecret;
18630
+ }
18631
+ if (typeof enabled !== 'undefined') {
18632
+ payload['enabled'] = enabled;
18633
+ }
18634
+ const uri = new URL(this.client.config.endpoint + apiPath);
18635
+ const apiHeaders = {
18636
+ 'content-type': 'application/json',
18637
+ };
18638
+ return this.client.call('patch', uri, apiHeaders, payload);
18639
+ }
18640
+ updateOAuth2Apple(paramsOrFirst, ...rest) {
18641
+ let params;
18642
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18643
+ params = (paramsOrFirst || {});
18644
+ }
18645
+ else {
18646
+ params = {
18647
+ serviceId: paramsOrFirst,
18648
+ keyId: rest[0],
18649
+ teamId: rest[1],
18650
+ p8File: rest[2],
18651
+ enabled: rest[3]
18652
+ };
18653
+ }
18654
+ const serviceId = params.serviceId;
18655
+ const keyId = params.keyId;
18656
+ const teamId = params.teamId;
18657
+ const p8File = params.p8File;
18658
+ const enabled = params.enabled;
18659
+ const apiPath = '/project/oauth2/apple';
18660
+ const payload = {};
18661
+ if (typeof serviceId !== 'undefined') {
18662
+ payload['serviceId'] = serviceId;
18663
+ }
18664
+ if (typeof keyId !== 'undefined') {
18665
+ payload['keyId'] = keyId;
18666
+ }
18667
+ if (typeof teamId !== 'undefined') {
18668
+ payload['teamId'] = teamId;
18669
+ }
18670
+ if (typeof p8File !== 'undefined') {
18671
+ payload['p8File'] = p8File;
18672
+ }
18673
+ if (typeof enabled !== 'undefined') {
18674
+ payload['enabled'] = enabled;
18675
+ }
18676
+ const uri = new URL(this.client.config.endpoint + apiPath);
18677
+ const apiHeaders = {
18678
+ 'content-type': 'application/json',
18679
+ };
18680
+ return this.client.call('patch', uri, apiHeaders, payload);
18681
+ }
18682
+ updateOAuth2Auth0(paramsOrFirst, ...rest) {
18683
+ let params;
18684
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18685
+ params = (paramsOrFirst || {});
18686
+ }
18687
+ else {
18688
+ params = {
18689
+ clientId: paramsOrFirst,
18690
+ clientSecret: rest[0],
18691
+ endpoint: rest[1],
18692
+ enabled: rest[2]
18693
+ };
18694
+ }
18695
+ const clientId = params.clientId;
18696
+ const clientSecret = params.clientSecret;
18697
+ const endpoint = params.endpoint;
18698
+ const enabled = params.enabled;
18699
+ const apiPath = '/project/oauth2/auth0';
18700
+ const payload = {};
18701
+ if (typeof clientId !== 'undefined') {
18702
+ payload['clientId'] = clientId;
18703
+ }
18704
+ if (typeof clientSecret !== 'undefined') {
18705
+ payload['clientSecret'] = clientSecret;
18706
+ }
18707
+ if (typeof endpoint !== 'undefined') {
18708
+ payload['endpoint'] = endpoint;
18709
+ }
18710
+ if (typeof enabled !== 'undefined') {
18711
+ payload['enabled'] = enabled;
18712
+ }
18713
+ const uri = new URL(this.client.config.endpoint + apiPath);
18714
+ const apiHeaders = {
18715
+ 'content-type': 'application/json',
18716
+ };
18717
+ return this.client.call('patch', uri, apiHeaders, payload);
18718
+ }
18719
+ updateOAuth2Authentik(paramsOrFirst, ...rest) {
18720
+ let params;
18721
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18722
+ params = (paramsOrFirst || {});
18723
+ }
18724
+ else {
18725
+ params = {
18726
+ clientId: paramsOrFirst,
18727
+ clientSecret: rest[0],
18728
+ endpoint: rest[1],
18729
+ enabled: rest[2]
18730
+ };
18731
+ }
18732
+ const clientId = params.clientId;
18733
+ const clientSecret = params.clientSecret;
18734
+ const endpoint = params.endpoint;
18735
+ const enabled = params.enabled;
18736
+ const apiPath = '/project/oauth2/authentik';
18737
+ const payload = {};
18738
+ if (typeof clientId !== 'undefined') {
18739
+ payload['clientId'] = clientId;
18740
+ }
18741
+ if (typeof clientSecret !== 'undefined') {
18742
+ payload['clientSecret'] = clientSecret;
18743
+ }
18744
+ if (typeof endpoint !== 'undefined') {
18745
+ payload['endpoint'] = endpoint;
18746
+ }
18747
+ if (typeof enabled !== 'undefined') {
18748
+ payload['enabled'] = enabled;
18749
+ }
18750
+ const uri = new URL(this.client.config.endpoint + apiPath);
18751
+ const apiHeaders = {
18752
+ 'content-type': 'application/json',
18753
+ };
18754
+ return this.client.call('patch', uri, apiHeaders, payload);
18755
+ }
18756
+ updateOAuth2Autodesk(paramsOrFirst, ...rest) {
18757
+ let params;
18758
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18759
+ params = (paramsOrFirst || {});
18760
+ }
18761
+ else {
18762
+ params = {
18763
+ clientId: paramsOrFirst,
18764
+ clientSecret: rest[0],
18765
+ enabled: rest[1]
18766
+ };
18767
+ }
18768
+ const clientId = params.clientId;
18769
+ const clientSecret = params.clientSecret;
18770
+ const enabled = params.enabled;
18771
+ const apiPath = '/project/oauth2/autodesk';
18772
+ const payload = {};
18773
+ if (typeof clientId !== 'undefined') {
18774
+ payload['clientId'] = clientId;
18775
+ }
18776
+ if (typeof clientSecret !== 'undefined') {
18777
+ payload['clientSecret'] = clientSecret;
18778
+ }
18779
+ if (typeof enabled !== 'undefined') {
18780
+ payload['enabled'] = enabled;
18781
+ }
18782
+ const uri = new URL(this.client.config.endpoint + apiPath);
18783
+ const apiHeaders = {
18784
+ 'content-type': 'application/json',
18785
+ };
18786
+ return this.client.call('patch', uri, apiHeaders, payload);
18787
+ }
18788
+ updateOAuth2Bitbucket(paramsOrFirst, ...rest) {
18789
+ let params;
18790
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18791
+ params = (paramsOrFirst || {});
18792
+ }
18793
+ else {
18794
+ params = {
18795
+ key: paramsOrFirst,
18796
+ secret: rest[0],
18797
+ enabled: rest[1]
18798
+ };
18799
+ }
18800
+ const key = params.key;
18801
+ const secret = params.secret;
18802
+ const enabled = params.enabled;
18803
+ const apiPath = '/project/oauth2/bitbucket';
18804
+ const payload = {};
18805
+ if (typeof key !== 'undefined') {
18806
+ payload['key'] = key;
18807
+ }
18808
+ if (typeof secret !== 'undefined') {
18809
+ payload['secret'] = secret;
18810
+ }
18811
+ if (typeof enabled !== 'undefined') {
18812
+ payload['enabled'] = enabled;
18813
+ }
18814
+ const uri = new URL(this.client.config.endpoint + apiPath);
18815
+ const apiHeaders = {
18816
+ 'content-type': 'application/json',
18817
+ };
18818
+ return this.client.call('patch', uri, apiHeaders, payload);
18819
+ }
18820
+ updateOAuth2Bitly(paramsOrFirst, ...rest) {
18821
+ let params;
18822
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18823
+ params = (paramsOrFirst || {});
18824
+ }
18825
+ else {
18826
+ params = {
18827
+ clientId: paramsOrFirst,
18828
+ clientSecret: rest[0],
18829
+ enabled: rest[1]
18830
+ };
18831
+ }
18832
+ const clientId = params.clientId;
18833
+ const clientSecret = params.clientSecret;
18834
+ const enabled = params.enabled;
18835
+ const apiPath = '/project/oauth2/bitly';
18836
+ const payload = {};
18837
+ if (typeof clientId !== 'undefined') {
18838
+ payload['clientId'] = clientId;
18839
+ }
18840
+ if (typeof clientSecret !== 'undefined') {
18841
+ payload['clientSecret'] = clientSecret;
18842
+ }
18843
+ if (typeof enabled !== 'undefined') {
18844
+ payload['enabled'] = enabled;
18845
+ }
18846
+ const uri = new URL(this.client.config.endpoint + apiPath);
18847
+ const apiHeaders = {
18848
+ 'content-type': 'application/json',
18849
+ };
18850
+ return this.client.call('patch', uri, apiHeaders, payload);
18851
+ }
18852
+ updateOAuth2Box(paramsOrFirst, ...rest) {
18853
+ let params;
18854
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18855
+ params = (paramsOrFirst || {});
18856
+ }
18857
+ else {
18858
+ params = {
18859
+ clientId: paramsOrFirst,
18860
+ clientSecret: rest[0],
18861
+ enabled: rest[1]
18862
+ };
18863
+ }
18864
+ const clientId = params.clientId;
18865
+ const clientSecret = params.clientSecret;
18866
+ const enabled = params.enabled;
18867
+ const apiPath = '/project/oauth2/box';
18868
+ const payload = {};
18869
+ if (typeof clientId !== 'undefined') {
18870
+ payload['clientId'] = clientId;
18871
+ }
18872
+ if (typeof clientSecret !== 'undefined') {
18873
+ payload['clientSecret'] = clientSecret;
18874
+ }
18875
+ if (typeof enabled !== 'undefined') {
18876
+ payload['enabled'] = enabled;
18877
+ }
18878
+ const uri = new URL(this.client.config.endpoint + apiPath);
18879
+ const apiHeaders = {
18880
+ 'content-type': 'application/json',
18881
+ };
18882
+ return this.client.call('patch', uri, apiHeaders, payload);
18883
+ }
18884
+ updateOAuth2Dailymotion(paramsOrFirst, ...rest) {
18885
+ let params;
18886
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18887
+ params = (paramsOrFirst || {});
18888
+ }
18889
+ else {
18890
+ params = {
18891
+ apiKey: paramsOrFirst,
18892
+ apiSecret: rest[0],
18893
+ enabled: rest[1]
18894
+ };
18895
+ }
18896
+ const apiKey = params.apiKey;
18897
+ const apiSecret = params.apiSecret;
18898
+ const enabled = params.enabled;
18899
+ const apiPath = '/project/oauth2/dailymotion';
18900
+ const payload = {};
18901
+ if (typeof apiKey !== 'undefined') {
18902
+ payload['apiKey'] = apiKey;
18903
+ }
18904
+ if (typeof apiSecret !== 'undefined') {
18905
+ payload['apiSecret'] = apiSecret;
18906
+ }
18907
+ if (typeof enabled !== 'undefined') {
18908
+ payload['enabled'] = enabled;
18909
+ }
18910
+ const uri = new URL(this.client.config.endpoint + apiPath);
18911
+ const apiHeaders = {
18912
+ 'content-type': 'application/json',
18913
+ };
18914
+ return this.client.call('patch', uri, apiHeaders, payload);
18915
+ }
18916
+ updateOAuth2Discord(paramsOrFirst, ...rest) {
18917
+ let params;
18918
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18919
+ params = (paramsOrFirst || {});
18920
+ }
18921
+ else {
18922
+ params = {
18923
+ clientId: paramsOrFirst,
18924
+ clientSecret: rest[0],
18925
+ enabled: rest[1]
18926
+ };
18927
+ }
18928
+ const clientId = params.clientId;
18929
+ const clientSecret = params.clientSecret;
18930
+ const enabled = params.enabled;
18931
+ const apiPath = '/project/oauth2/discord';
18932
+ const payload = {};
18933
+ if (typeof clientId !== 'undefined') {
18934
+ payload['clientId'] = clientId;
18935
+ }
18936
+ if (typeof clientSecret !== 'undefined') {
18937
+ payload['clientSecret'] = clientSecret;
18938
+ }
18939
+ if (typeof enabled !== 'undefined') {
18940
+ payload['enabled'] = enabled;
18941
+ }
18942
+ const uri = new URL(this.client.config.endpoint + apiPath);
18943
+ const apiHeaders = {
18944
+ 'content-type': 'application/json',
18945
+ };
18946
+ return this.client.call('patch', uri, apiHeaders, payload);
18947
+ }
18948
+ updateOAuth2Disqus(paramsOrFirst, ...rest) {
18949
+ let params;
18950
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18951
+ params = (paramsOrFirst || {});
18952
+ }
18953
+ else {
18954
+ params = {
18955
+ publicKey: paramsOrFirst,
18956
+ secretKey: rest[0],
18957
+ enabled: rest[1]
18958
+ };
18959
+ }
18960
+ const publicKey = params.publicKey;
18961
+ const secretKey = params.secretKey;
18962
+ const enabled = params.enabled;
18963
+ const apiPath = '/project/oauth2/disqus';
18964
+ const payload = {};
18965
+ if (typeof publicKey !== 'undefined') {
18966
+ payload['publicKey'] = publicKey;
18967
+ }
18968
+ if (typeof secretKey !== 'undefined') {
18969
+ payload['secretKey'] = secretKey;
18970
+ }
18971
+ if (typeof enabled !== 'undefined') {
18972
+ payload['enabled'] = enabled;
18973
+ }
18974
+ const uri = new URL(this.client.config.endpoint + apiPath);
18975
+ const apiHeaders = {
18976
+ 'content-type': 'application/json',
18977
+ };
18978
+ return this.client.call('patch', uri, apiHeaders, payload);
18979
+ }
18980
+ updateOAuth2Dropbox(paramsOrFirst, ...rest) {
18981
+ let params;
18982
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18983
+ params = (paramsOrFirst || {});
18984
+ }
18985
+ else {
18986
+ params = {
18987
+ appKey: paramsOrFirst,
18988
+ appSecret: rest[0],
18989
+ enabled: rest[1]
18990
+ };
18991
+ }
18992
+ const appKey = params.appKey;
18993
+ const appSecret = params.appSecret;
18994
+ const enabled = params.enabled;
18995
+ const apiPath = '/project/oauth2/dropbox';
18996
+ const payload = {};
18997
+ if (typeof appKey !== 'undefined') {
18998
+ payload['appKey'] = appKey;
18999
+ }
19000
+ if (typeof appSecret !== 'undefined') {
19001
+ payload['appSecret'] = appSecret;
19002
+ }
19003
+ if (typeof enabled !== 'undefined') {
19004
+ payload['enabled'] = enabled;
19005
+ }
19006
+ const uri = new URL(this.client.config.endpoint + apiPath);
19007
+ const apiHeaders = {
19008
+ 'content-type': 'application/json',
19009
+ };
19010
+ return this.client.call('patch', uri, apiHeaders, payload);
19011
+ }
19012
+ updateOAuth2Etsy(paramsOrFirst, ...rest) {
19013
+ let params;
19014
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19015
+ params = (paramsOrFirst || {});
19016
+ }
19017
+ else {
19018
+ params = {
19019
+ keyString: paramsOrFirst,
19020
+ sharedSecret: rest[0],
19021
+ enabled: rest[1]
19022
+ };
19023
+ }
19024
+ const keyString = params.keyString;
19025
+ const sharedSecret = params.sharedSecret;
19026
+ const enabled = params.enabled;
19027
+ const apiPath = '/project/oauth2/etsy';
19028
+ const payload = {};
19029
+ if (typeof keyString !== 'undefined') {
19030
+ payload['keyString'] = keyString;
19031
+ }
19032
+ if (typeof sharedSecret !== 'undefined') {
19033
+ payload['sharedSecret'] = sharedSecret;
19034
+ }
19035
+ if (typeof enabled !== 'undefined') {
19036
+ payload['enabled'] = enabled;
19037
+ }
19038
+ const uri = new URL(this.client.config.endpoint + apiPath);
19039
+ const apiHeaders = {
19040
+ 'content-type': 'application/json',
19041
+ };
19042
+ return this.client.call('patch', uri, apiHeaders, payload);
19043
+ }
19044
+ updateOAuth2Facebook(paramsOrFirst, ...rest) {
19045
+ let params;
19046
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19047
+ params = (paramsOrFirst || {});
19048
+ }
19049
+ else {
19050
+ params = {
19051
+ appId: paramsOrFirst,
19052
+ appSecret: rest[0],
19053
+ enabled: rest[1]
19054
+ };
19055
+ }
19056
+ const appId = params.appId;
19057
+ const appSecret = params.appSecret;
19058
+ const enabled = params.enabled;
19059
+ const apiPath = '/project/oauth2/facebook';
19060
+ const payload = {};
19061
+ if (typeof appId !== 'undefined') {
19062
+ payload['appId'] = appId;
19063
+ }
19064
+ if (typeof appSecret !== 'undefined') {
19065
+ payload['appSecret'] = appSecret;
19066
+ }
19067
+ if (typeof enabled !== 'undefined') {
19068
+ payload['enabled'] = enabled;
19069
+ }
19070
+ const uri = new URL(this.client.config.endpoint + apiPath);
19071
+ const apiHeaders = {
19072
+ 'content-type': 'application/json',
19073
+ };
19074
+ return this.client.call('patch', uri, apiHeaders, payload);
19075
+ }
19076
+ updateOAuth2Figma(paramsOrFirst, ...rest) {
19077
+ let params;
19078
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19079
+ params = (paramsOrFirst || {});
19080
+ }
19081
+ else {
19082
+ params = {
19083
+ clientId: paramsOrFirst,
19084
+ clientSecret: rest[0],
19085
+ enabled: rest[1]
19086
+ };
19087
+ }
19088
+ const clientId = params.clientId;
19089
+ const clientSecret = params.clientSecret;
19090
+ const enabled = params.enabled;
19091
+ const apiPath = '/project/oauth2/figma';
19092
+ const payload = {};
19093
+ if (typeof clientId !== 'undefined') {
19094
+ payload['clientId'] = clientId;
19095
+ }
19096
+ if (typeof clientSecret !== 'undefined') {
19097
+ payload['clientSecret'] = clientSecret;
19098
+ }
19099
+ if (typeof enabled !== 'undefined') {
19100
+ payload['enabled'] = enabled;
19101
+ }
19102
+ const uri = new URL(this.client.config.endpoint + apiPath);
19103
+ const apiHeaders = {
19104
+ 'content-type': 'application/json',
19105
+ };
19106
+ return this.client.call('patch', uri, apiHeaders, payload);
19107
+ }
19108
+ updateOAuth2FusionAuth(paramsOrFirst, ...rest) {
19109
+ let params;
19110
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19111
+ params = (paramsOrFirst || {});
19112
+ }
19113
+ else {
19114
+ params = {
19115
+ clientId: paramsOrFirst,
19116
+ clientSecret: rest[0],
19117
+ endpoint: rest[1],
19118
+ enabled: rest[2]
19119
+ };
19120
+ }
19121
+ const clientId = params.clientId;
19122
+ const clientSecret = params.clientSecret;
19123
+ const endpoint = params.endpoint;
19124
+ const enabled = params.enabled;
19125
+ const apiPath = '/project/oauth2/fusionauth';
19126
+ const payload = {};
19127
+ if (typeof clientId !== 'undefined') {
19128
+ payload['clientId'] = clientId;
19129
+ }
19130
+ if (typeof clientSecret !== 'undefined') {
19131
+ payload['clientSecret'] = clientSecret;
19132
+ }
19133
+ if (typeof endpoint !== 'undefined') {
19134
+ payload['endpoint'] = endpoint;
19135
+ }
19136
+ if (typeof enabled !== 'undefined') {
19137
+ payload['enabled'] = enabled;
19138
+ }
19139
+ const uri = new URL(this.client.config.endpoint + apiPath);
19140
+ const apiHeaders = {
19141
+ 'content-type': 'application/json',
19142
+ };
19143
+ return this.client.call('patch', uri, apiHeaders, payload);
19144
+ }
19145
+ updateOAuth2GitHub(paramsOrFirst, ...rest) {
19146
+ let params;
19147
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19148
+ params = (paramsOrFirst || {});
19149
+ }
19150
+ else {
19151
+ params = {
19152
+ clientId: paramsOrFirst,
19153
+ clientSecret: rest[0],
19154
+ enabled: rest[1]
19155
+ };
19156
+ }
19157
+ const clientId = params.clientId;
19158
+ const clientSecret = params.clientSecret;
19159
+ const enabled = params.enabled;
19160
+ const apiPath = '/project/oauth2/github';
19161
+ const payload = {};
19162
+ if (typeof clientId !== 'undefined') {
19163
+ payload['clientId'] = clientId;
19164
+ }
19165
+ if (typeof clientSecret !== 'undefined') {
19166
+ payload['clientSecret'] = clientSecret;
19167
+ }
19168
+ if (typeof enabled !== 'undefined') {
19169
+ payload['enabled'] = enabled;
19170
+ }
19171
+ const uri = new URL(this.client.config.endpoint + apiPath);
19172
+ const apiHeaders = {
19173
+ 'content-type': 'application/json',
19174
+ };
19175
+ return this.client.call('patch', uri, apiHeaders, payload);
19176
+ }
19177
+ updateOAuth2Gitlab(paramsOrFirst, ...rest) {
19178
+ let params;
19179
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19180
+ params = (paramsOrFirst || {});
19181
+ }
19182
+ else {
19183
+ params = {
19184
+ applicationId: paramsOrFirst,
19185
+ secret: rest[0],
19186
+ endpoint: rest[1],
19187
+ enabled: rest[2]
19188
+ };
19189
+ }
19190
+ const applicationId = params.applicationId;
19191
+ const secret = params.secret;
19192
+ const endpoint = params.endpoint;
19193
+ const enabled = params.enabled;
19194
+ const apiPath = '/project/oauth2/gitlab';
19195
+ const payload = {};
19196
+ if (typeof applicationId !== 'undefined') {
19197
+ payload['applicationId'] = applicationId;
19198
+ }
19199
+ if (typeof secret !== 'undefined') {
19200
+ payload['secret'] = secret;
19201
+ }
19202
+ if (typeof endpoint !== 'undefined') {
19203
+ payload['endpoint'] = endpoint;
19204
+ }
19205
+ if (typeof enabled !== 'undefined') {
19206
+ payload['enabled'] = enabled;
19207
+ }
19208
+ const uri = new URL(this.client.config.endpoint + apiPath);
19209
+ const apiHeaders = {
19210
+ 'content-type': 'application/json',
19211
+ };
19212
+ return this.client.call('patch', uri, apiHeaders, payload);
19213
+ }
19214
+ updateOAuth2Google(paramsOrFirst, ...rest) {
19215
+ let params;
19216
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19217
+ params = (paramsOrFirst || {});
19218
+ }
19219
+ else {
19220
+ params = {
19221
+ clientId: paramsOrFirst,
19222
+ clientSecret: rest[0],
19223
+ enabled: rest[1]
19224
+ };
19225
+ }
19226
+ const clientId = params.clientId;
19227
+ const clientSecret = params.clientSecret;
19228
+ const enabled = params.enabled;
19229
+ const apiPath = '/project/oauth2/google';
19230
+ const payload = {};
19231
+ if (typeof clientId !== 'undefined') {
19232
+ payload['clientId'] = clientId;
19233
+ }
19234
+ if (typeof clientSecret !== 'undefined') {
19235
+ payload['clientSecret'] = clientSecret;
19236
+ }
19237
+ if (typeof enabled !== 'undefined') {
19238
+ payload['enabled'] = enabled;
19239
+ }
19240
+ const uri = new URL(this.client.config.endpoint + apiPath);
19241
+ const apiHeaders = {
19242
+ 'content-type': 'application/json',
19243
+ };
19244
+ return this.client.call('patch', uri, apiHeaders, payload);
19245
+ }
19246
+ updateOAuth2Keycloak(paramsOrFirst, ...rest) {
19247
+ let params;
19248
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19249
+ params = (paramsOrFirst || {});
19250
+ }
19251
+ else {
19252
+ params = {
19253
+ clientId: paramsOrFirst,
19254
+ clientSecret: rest[0],
19255
+ endpoint: rest[1],
19256
+ realmName: rest[2],
19257
+ enabled: rest[3]
19258
+ };
19259
+ }
19260
+ const clientId = params.clientId;
19261
+ const clientSecret = params.clientSecret;
19262
+ const endpoint = params.endpoint;
19263
+ const realmName = params.realmName;
19264
+ const enabled = params.enabled;
19265
+ const apiPath = '/project/oauth2/keycloak';
19266
+ const payload = {};
19267
+ if (typeof clientId !== 'undefined') {
19268
+ payload['clientId'] = clientId;
19269
+ }
19270
+ if (typeof clientSecret !== 'undefined') {
19271
+ payload['clientSecret'] = clientSecret;
19272
+ }
19273
+ if (typeof endpoint !== 'undefined') {
19274
+ payload['endpoint'] = endpoint;
19275
+ }
19276
+ if (typeof realmName !== 'undefined') {
19277
+ payload['realmName'] = realmName;
19278
+ }
19279
+ if (typeof enabled !== 'undefined') {
19280
+ payload['enabled'] = enabled;
19281
+ }
19282
+ const uri = new URL(this.client.config.endpoint + apiPath);
19283
+ const apiHeaders = {
19284
+ 'content-type': 'application/json',
19285
+ };
19286
+ return this.client.call('patch', uri, apiHeaders, payload);
19287
+ }
19288
+ updateOAuth2Kick(paramsOrFirst, ...rest) {
19289
+ let params;
19290
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19291
+ params = (paramsOrFirst || {});
19292
+ }
19293
+ else {
19294
+ params = {
19295
+ clientId: paramsOrFirst,
19296
+ clientSecret: rest[0],
19297
+ enabled: rest[1]
19298
+ };
19299
+ }
19300
+ const clientId = params.clientId;
19301
+ const clientSecret = params.clientSecret;
19302
+ const enabled = params.enabled;
19303
+ const apiPath = '/project/oauth2/kick';
19304
+ const payload = {};
19305
+ if (typeof clientId !== 'undefined') {
19306
+ payload['clientId'] = clientId;
19307
+ }
19308
+ if (typeof clientSecret !== 'undefined') {
19309
+ payload['clientSecret'] = clientSecret;
19310
+ }
19311
+ if (typeof enabled !== 'undefined') {
19312
+ payload['enabled'] = enabled;
19313
+ }
19314
+ const uri = new URL(this.client.config.endpoint + apiPath);
19315
+ const apiHeaders = {
19316
+ 'content-type': 'application/json',
19317
+ };
19318
+ return this.client.call('patch', uri, apiHeaders, payload);
19319
+ }
19320
+ updateOAuth2Linkedin(paramsOrFirst, ...rest) {
19321
+ let params;
19322
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19323
+ params = (paramsOrFirst || {});
19324
+ }
19325
+ else {
19326
+ params = {
19327
+ clientId: paramsOrFirst,
19328
+ primaryClientSecret: rest[0],
19329
+ enabled: rest[1]
19330
+ };
19331
+ }
19332
+ const clientId = params.clientId;
19333
+ const primaryClientSecret = params.primaryClientSecret;
19334
+ const enabled = params.enabled;
19335
+ const apiPath = '/project/oauth2/linkedin';
19336
+ const payload = {};
19337
+ if (typeof clientId !== 'undefined') {
19338
+ payload['clientId'] = clientId;
19339
+ }
19340
+ if (typeof primaryClientSecret !== 'undefined') {
19341
+ payload['primaryClientSecret'] = primaryClientSecret;
19342
+ }
19343
+ if (typeof enabled !== 'undefined') {
19344
+ payload['enabled'] = enabled;
19345
+ }
19346
+ const uri = new URL(this.client.config.endpoint + apiPath);
19347
+ const apiHeaders = {
19348
+ 'content-type': 'application/json',
19349
+ };
19350
+ return this.client.call('patch', uri, apiHeaders, payload);
19351
+ }
19352
+ updateOAuth2Microsoft(paramsOrFirst, ...rest) {
19353
+ let params;
19354
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19355
+ params = (paramsOrFirst || {});
19356
+ }
19357
+ else {
19358
+ params = {
19359
+ applicationId: paramsOrFirst,
19360
+ applicationSecret: rest[0],
19361
+ tenant: rest[1],
19362
+ enabled: rest[2]
19363
+ };
19364
+ }
19365
+ const applicationId = params.applicationId;
19366
+ const applicationSecret = params.applicationSecret;
19367
+ const tenant = params.tenant;
19368
+ const enabled = params.enabled;
19369
+ const apiPath = '/project/oauth2/microsoft';
19370
+ const payload = {};
19371
+ if (typeof applicationId !== 'undefined') {
19372
+ payload['applicationId'] = applicationId;
19373
+ }
19374
+ if (typeof applicationSecret !== 'undefined') {
19375
+ payload['applicationSecret'] = applicationSecret;
19376
+ }
19377
+ if (typeof tenant !== 'undefined') {
19378
+ payload['tenant'] = tenant;
19379
+ }
19380
+ if (typeof enabled !== 'undefined') {
19381
+ payload['enabled'] = enabled;
19382
+ }
19383
+ const uri = new URL(this.client.config.endpoint + apiPath);
19384
+ const apiHeaders = {
19385
+ 'content-type': 'application/json',
19386
+ };
19387
+ return this.client.call('patch', uri, apiHeaders, payload);
19388
+ }
19389
+ updateOAuth2Notion(paramsOrFirst, ...rest) {
19390
+ let params;
19391
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19392
+ params = (paramsOrFirst || {});
19393
+ }
19394
+ else {
19395
+ params = {
19396
+ oauthClientId: paramsOrFirst,
19397
+ oauthClientSecret: rest[0],
19398
+ enabled: rest[1]
19399
+ };
19400
+ }
19401
+ const oauthClientId = params.oauthClientId;
19402
+ const oauthClientSecret = params.oauthClientSecret;
19403
+ const enabled = params.enabled;
19404
+ const apiPath = '/project/oauth2/notion';
19405
+ const payload = {};
19406
+ if (typeof oauthClientId !== 'undefined') {
19407
+ payload['oauthClientId'] = oauthClientId;
19408
+ }
19409
+ if (typeof oauthClientSecret !== 'undefined') {
19410
+ payload['oauthClientSecret'] = oauthClientSecret;
19411
+ }
19412
+ if (typeof enabled !== 'undefined') {
19413
+ payload['enabled'] = enabled;
19414
+ }
19415
+ const uri = new URL(this.client.config.endpoint + apiPath);
19416
+ const apiHeaders = {
19417
+ 'content-type': 'application/json',
19418
+ };
19419
+ return this.client.call('patch', uri, apiHeaders, payload);
19420
+ }
19421
+ updateOAuth2Oidc(paramsOrFirst, ...rest) {
19422
+ let params;
19423
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19424
+ params = (paramsOrFirst || {});
19425
+ }
19426
+ else {
19427
+ params = {
19428
+ clientId: paramsOrFirst,
19429
+ clientSecret: rest[0],
19430
+ wellKnownURL: rest[1],
19431
+ authorizationURL: rest[2],
19432
+ tokenUrl: rest[3],
19433
+ userInfoUrl: rest[4],
19434
+ enabled: rest[5]
19435
+ };
19436
+ }
19437
+ const clientId = params.clientId;
19438
+ const clientSecret = params.clientSecret;
19439
+ const wellKnownURL = params.wellKnownURL;
19440
+ const authorizationURL = params.authorizationURL;
19441
+ const tokenUrl = params.tokenUrl;
19442
+ const userInfoUrl = params.userInfoUrl;
19443
+ const enabled = params.enabled;
19444
+ const apiPath = '/project/oauth2/oidc';
19445
+ const payload = {};
19446
+ if (typeof clientId !== 'undefined') {
19447
+ payload['clientId'] = clientId;
19448
+ }
19449
+ if (typeof clientSecret !== 'undefined') {
19450
+ payload['clientSecret'] = clientSecret;
19451
+ }
19452
+ if (typeof wellKnownURL !== 'undefined') {
19453
+ payload['wellKnownURL'] = wellKnownURL;
19454
+ }
19455
+ if (typeof authorizationURL !== 'undefined') {
19456
+ payload['authorizationURL'] = authorizationURL;
19457
+ }
19458
+ if (typeof tokenUrl !== 'undefined') {
19459
+ payload['tokenUrl'] = tokenUrl;
19460
+ }
19461
+ if (typeof userInfoUrl !== 'undefined') {
19462
+ payload['userInfoUrl'] = userInfoUrl;
19463
+ }
19464
+ if (typeof enabled !== 'undefined') {
19465
+ payload['enabled'] = enabled;
19466
+ }
19467
+ const uri = new URL(this.client.config.endpoint + apiPath);
19468
+ const apiHeaders = {
19469
+ 'content-type': 'application/json',
19470
+ };
19471
+ return this.client.call('patch', uri, apiHeaders, payload);
19472
+ }
19473
+ updateOAuth2Okta(paramsOrFirst, ...rest) {
19474
+ let params;
19475
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19476
+ params = (paramsOrFirst || {});
19477
+ }
19478
+ else {
19479
+ params = {
19480
+ clientId: paramsOrFirst,
19481
+ clientSecret: rest[0],
19482
+ domain: rest[1],
19483
+ authorizationServerId: rest[2],
19484
+ enabled: rest[3]
19485
+ };
19486
+ }
19487
+ const clientId = params.clientId;
19488
+ const clientSecret = params.clientSecret;
19489
+ const domain = params.domain;
19490
+ const authorizationServerId = params.authorizationServerId;
19491
+ const enabled = params.enabled;
19492
+ const apiPath = '/project/oauth2/okta';
19493
+ const payload = {};
19494
+ if (typeof clientId !== 'undefined') {
19495
+ payload['clientId'] = clientId;
19496
+ }
19497
+ if (typeof clientSecret !== 'undefined') {
19498
+ payload['clientSecret'] = clientSecret;
19499
+ }
19500
+ if (typeof domain !== 'undefined') {
19501
+ payload['domain'] = domain;
19502
+ }
19503
+ if (typeof authorizationServerId !== 'undefined') {
19504
+ payload['authorizationServerId'] = authorizationServerId;
19505
+ }
19506
+ if (typeof enabled !== 'undefined') {
19507
+ payload['enabled'] = enabled;
19508
+ }
19509
+ const uri = new URL(this.client.config.endpoint + apiPath);
19510
+ const apiHeaders = {
19511
+ 'content-type': 'application/json',
19512
+ };
19513
+ return this.client.call('patch', uri, apiHeaders, payload);
19514
+ }
19515
+ updateOAuth2Paypal(paramsOrFirst, ...rest) {
19516
+ let params;
19517
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19518
+ params = (paramsOrFirst || {});
19519
+ }
19520
+ else {
19521
+ params = {
19522
+ clientId: paramsOrFirst,
19523
+ secretKey: rest[0],
19524
+ enabled: rest[1]
19525
+ };
19526
+ }
19527
+ const clientId = params.clientId;
19528
+ const secretKey = params.secretKey;
19529
+ const enabled = params.enabled;
19530
+ const apiPath = '/project/oauth2/paypal';
19531
+ const payload = {};
19532
+ if (typeof clientId !== 'undefined') {
19533
+ payload['clientId'] = clientId;
19534
+ }
19535
+ if (typeof secretKey !== 'undefined') {
19536
+ payload['secretKey'] = secretKey;
19537
+ }
19538
+ if (typeof enabled !== 'undefined') {
19539
+ payload['enabled'] = enabled;
19540
+ }
19541
+ const uri = new URL(this.client.config.endpoint + apiPath);
19542
+ const apiHeaders = {
19543
+ 'content-type': 'application/json',
19544
+ };
19545
+ return this.client.call('patch', uri, apiHeaders, payload);
19546
+ }
19547
+ updateOAuth2PaypalSandbox(paramsOrFirst, ...rest) {
19548
+ let params;
19549
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19550
+ params = (paramsOrFirst || {});
19551
+ }
19552
+ else {
19553
+ params = {
19554
+ clientId: paramsOrFirst,
19555
+ secretKey: rest[0],
19556
+ enabled: rest[1]
19557
+ };
19558
+ }
19559
+ const clientId = params.clientId;
19560
+ const secretKey = params.secretKey;
19561
+ const enabled = params.enabled;
19562
+ const apiPath = '/project/oauth2/paypalSandbox';
19563
+ const payload = {};
19564
+ if (typeof clientId !== 'undefined') {
19565
+ payload['clientId'] = clientId;
19566
+ }
19567
+ if (typeof secretKey !== 'undefined') {
19568
+ payload['secretKey'] = secretKey;
19569
+ }
19570
+ if (typeof enabled !== 'undefined') {
19571
+ payload['enabled'] = enabled;
19572
+ }
19573
+ const uri = new URL(this.client.config.endpoint + apiPath);
19574
+ const apiHeaders = {
19575
+ 'content-type': 'application/json',
19576
+ };
19577
+ return this.client.call('patch', uri, apiHeaders, payload);
19578
+ }
19579
+ updateOAuth2Podio(paramsOrFirst, ...rest) {
19580
+ let params;
19581
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19582
+ params = (paramsOrFirst || {});
19583
+ }
19584
+ else {
19585
+ params = {
19586
+ clientId: paramsOrFirst,
19587
+ clientSecret: rest[0],
19588
+ enabled: rest[1]
19589
+ };
19590
+ }
19591
+ const clientId = params.clientId;
19592
+ const clientSecret = params.clientSecret;
19593
+ const enabled = params.enabled;
19594
+ const apiPath = '/project/oauth2/podio';
19595
+ const payload = {};
19596
+ if (typeof clientId !== 'undefined') {
19597
+ payload['clientId'] = clientId;
19598
+ }
19599
+ if (typeof clientSecret !== 'undefined') {
19600
+ payload['clientSecret'] = clientSecret;
19601
+ }
19602
+ if (typeof enabled !== 'undefined') {
19603
+ payload['enabled'] = enabled;
19604
+ }
19605
+ const uri = new URL(this.client.config.endpoint + apiPath);
19606
+ const apiHeaders = {
19607
+ 'content-type': 'application/json',
19608
+ };
19609
+ return this.client.call('patch', uri, apiHeaders, payload);
19610
+ }
19611
+ updateOAuth2Salesforce(paramsOrFirst, ...rest) {
19612
+ let params;
19613
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19614
+ params = (paramsOrFirst || {});
19615
+ }
19616
+ else {
19617
+ params = {
19618
+ customerKey: paramsOrFirst,
19619
+ customerSecret: rest[0],
19620
+ enabled: rest[1]
19621
+ };
19622
+ }
19623
+ const customerKey = params.customerKey;
19624
+ const customerSecret = params.customerSecret;
19625
+ const enabled = params.enabled;
19626
+ const apiPath = '/project/oauth2/salesforce';
19627
+ const payload = {};
19628
+ if (typeof customerKey !== 'undefined') {
19629
+ payload['customerKey'] = customerKey;
19630
+ }
19631
+ if (typeof customerSecret !== 'undefined') {
19632
+ payload['customerSecret'] = customerSecret;
19633
+ }
19634
+ if (typeof enabled !== 'undefined') {
19635
+ payload['enabled'] = enabled;
19636
+ }
19637
+ const uri = new URL(this.client.config.endpoint + apiPath);
19638
+ const apiHeaders = {
19639
+ 'content-type': 'application/json',
19640
+ };
19641
+ return this.client.call('patch', uri, apiHeaders, payload);
19642
+ }
19643
+ updateOAuth2Slack(paramsOrFirst, ...rest) {
19644
+ let params;
19645
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19646
+ params = (paramsOrFirst || {});
19647
+ }
19648
+ else {
19649
+ params = {
19650
+ clientId: paramsOrFirst,
19651
+ clientSecret: rest[0],
19652
+ enabled: rest[1]
19653
+ };
19654
+ }
19655
+ const clientId = params.clientId;
19656
+ const clientSecret = params.clientSecret;
19657
+ const enabled = params.enabled;
19658
+ const apiPath = '/project/oauth2/slack';
19659
+ const payload = {};
19660
+ if (typeof clientId !== 'undefined') {
19661
+ payload['clientId'] = clientId;
19662
+ }
19663
+ if (typeof clientSecret !== 'undefined') {
19664
+ payload['clientSecret'] = clientSecret;
19665
+ }
19666
+ if (typeof enabled !== 'undefined') {
19667
+ payload['enabled'] = enabled;
19668
+ }
19669
+ const uri = new URL(this.client.config.endpoint + apiPath);
19670
+ const apiHeaders = {
19671
+ 'content-type': 'application/json',
19672
+ };
19673
+ return this.client.call('patch', uri, apiHeaders, payload);
19674
+ }
19675
+ updateOAuth2Spotify(paramsOrFirst, ...rest) {
19676
+ let params;
19677
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19678
+ params = (paramsOrFirst || {});
19679
+ }
19680
+ else {
19681
+ params = {
19682
+ clientId: paramsOrFirst,
19683
+ clientSecret: rest[0],
19684
+ enabled: rest[1]
19685
+ };
19686
+ }
19687
+ const clientId = params.clientId;
19688
+ const clientSecret = params.clientSecret;
19689
+ const enabled = params.enabled;
19690
+ const apiPath = '/project/oauth2/spotify';
19691
+ const payload = {};
19692
+ if (typeof clientId !== 'undefined') {
19693
+ payload['clientId'] = clientId;
19694
+ }
19695
+ if (typeof clientSecret !== 'undefined') {
19696
+ payload['clientSecret'] = clientSecret;
19697
+ }
19698
+ if (typeof enabled !== 'undefined') {
19699
+ payload['enabled'] = enabled;
19700
+ }
19701
+ const uri = new URL(this.client.config.endpoint + apiPath);
19702
+ const apiHeaders = {
19703
+ 'content-type': 'application/json',
19704
+ };
19705
+ return this.client.call('patch', uri, apiHeaders, payload);
19706
+ }
19707
+ updateOAuth2Stripe(paramsOrFirst, ...rest) {
19708
+ let params;
19709
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19710
+ params = (paramsOrFirst || {});
19711
+ }
19712
+ else {
19713
+ params = {
19714
+ clientId: paramsOrFirst,
19715
+ apiSecretKey: rest[0],
19716
+ enabled: rest[1]
19717
+ };
19718
+ }
19719
+ const clientId = params.clientId;
19720
+ const apiSecretKey = params.apiSecretKey;
19721
+ const enabled = params.enabled;
19722
+ const apiPath = '/project/oauth2/stripe';
19723
+ const payload = {};
19724
+ if (typeof clientId !== 'undefined') {
19725
+ payload['clientId'] = clientId;
19726
+ }
19727
+ if (typeof apiSecretKey !== 'undefined') {
19728
+ payload['apiSecretKey'] = apiSecretKey;
19729
+ }
19730
+ if (typeof enabled !== 'undefined') {
19731
+ payload['enabled'] = enabled;
19732
+ }
19733
+ const uri = new URL(this.client.config.endpoint + apiPath);
19734
+ const apiHeaders = {
19735
+ 'content-type': 'application/json',
19736
+ };
19737
+ return this.client.call('patch', uri, apiHeaders, payload);
19738
+ }
19739
+ updateOAuth2Tradeshift(paramsOrFirst, ...rest) {
19740
+ let params;
19741
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19742
+ params = (paramsOrFirst || {});
19743
+ }
19744
+ else {
19745
+ params = {
19746
+ oauth2ClientId: paramsOrFirst,
19747
+ oauth2ClientSecret: rest[0],
19748
+ enabled: rest[1]
19749
+ };
19750
+ }
19751
+ const oauth2ClientId = params.oauth2ClientId;
19752
+ const oauth2ClientSecret = params.oauth2ClientSecret;
19753
+ const enabled = params.enabled;
19754
+ const apiPath = '/project/oauth2/tradeshift';
19755
+ const payload = {};
19756
+ if (typeof oauth2ClientId !== 'undefined') {
19757
+ payload['oauth2ClientId'] = oauth2ClientId;
19758
+ }
19759
+ if (typeof oauth2ClientSecret !== 'undefined') {
19760
+ payload['oauth2ClientSecret'] = oauth2ClientSecret;
19761
+ }
19762
+ if (typeof enabled !== 'undefined') {
19763
+ payload['enabled'] = enabled;
19764
+ }
19765
+ const uri = new URL(this.client.config.endpoint + apiPath);
19766
+ const apiHeaders = {
19767
+ 'content-type': 'application/json',
19768
+ };
19769
+ return this.client.call('patch', uri, apiHeaders, payload);
19770
+ }
19771
+ updateOAuth2TradeshiftSandbox(paramsOrFirst, ...rest) {
18080
19772
  let params;
18081
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19773
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18082
19774
  params = (paramsOrFirst || {});
18083
19775
  }
18084
19776
  else {
18085
19777
  params = {
18086
- keyId: paramsOrFirst,
18087
- name: rest[0],
18088
- scopes: rest[1],
18089
- expire: rest[2]
19778
+ oauth2ClientId: paramsOrFirst,
19779
+ oauth2ClientSecret: rest[0],
19780
+ enabled: rest[1]
18090
19781
  };
18091
19782
  }
18092
- const keyId = params.keyId;
18093
- const name = params.name;
18094
- const scopes = params.scopes;
18095
- const expire = params.expire;
18096
- if (typeof keyId === 'undefined') {
18097
- throw new AppwriteException('Missing required parameter: "keyId"');
19783
+ const oauth2ClientId = params.oauth2ClientId;
19784
+ const oauth2ClientSecret = params.oauth2ClientSecret;
19785
+ const enabled = params.enabled;
19786
+ const apiPath = '/project/oauth2/tradeshiftBox';
19787
+ const payload = {};
19788
+ if (typeof oauth2ClientId !== 'undefined') {
19789
+ payload['oauth2ClientId'] = oauth2ClientId;
18098
19790
  }
18099
- if (typeof name === 'undefined') {
18100
- throw new AppwriteException('Missing required parameter: "name"');
19791
+ if (typeof oauth2ClientSecret !== 'undefined') {
19792
+ payload['oauth2ClientSecret'] = oauth2ClientSecret;
18101
19793
  }
18102
- if (typeof scopes === 'undefined') {
18103
- throw new AppwriteException('Missing required parameter: "scopes"');
19794
+ if (typeof enabled !== 'undefined') {
19795
+ payload['enabled'] = enabled;
18104
19796
  }
18105
- const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
19797
+ const uri = new URL(this.client.config.endpoint + apiPath);
19798
+ const apiHeaders = {
19799
+ 'content-type': 'application/json',
19800
+ };
19801
+ return this.client.call('patch', uri, apiHeaders, payload);
19802
+ }
19803
+ updateOAuth2Twitch(paramsOrFirst, ...rest) {
19804
+ let params;
19805
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19806
+ params = (paramsOrFirst || {});
19807
+ }
19808
+ else {
19809
+ params = {
19810
+ clientId: paramsOrFirst,
19811
+ clientSecret: rest[0],
19812
+ enabled: rest[1]
19813
+ };
19814
+ }
19815
+ const clientId = params.clientId;
19816
+ const clientSecret = params.clientSecret;
19817
+ const enabled = params.enabled;
19818
+ const apiPath = '/project/oauth2/twitch';
18106
19819
  const payload = {};
18107
- if (typeof name !== 'undefined') {
18108
- payload['name'] = name;
19820
+ if (typeof clientId !== 'undefined') {
19821
+ payload['clientId'] = clientId;
18109
19822
  }
18110
- if (typeof scopes !== 'undefined') {
18111
- payload['scopes'] = scopes;
19823
+ if (typeof clientSecret !== 'undefined') {
19824
+ payload['clientSecret'] = clientSecret;
18112
19825
  }
18113
- if (typeof expire !== 'undefined') {
18114
- payload['expire'] = expire;
19826
+ if (typeof enabled !== 'undefined') {
19827
+ payload['enabled'] = enabled;
18115
19828
  }
18116
19829
  const uri = new URL(this.client.config.endpoint + apiPath);
18117
19830
  const apiHeaders = {
18118
19831
  'content-type': 'application/json',
18119
19832
  };
18120
- return this.client.call('put', uri, apiHeaders, payload);
19833
+ return this.client.call('patch', uri, apiHeaders, payload);
18121
19834
  }
18122
- deleteKey(paramsOrFirst) {
19835
+ updateOAuth2WordPress(paramsOrFirst, ...rest) {
18123
19836
  let params;
18124
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19837
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18125
19838
  params = (paramsOrFirst || {});
18126
19839
  }
18127
19840
  else {
18128
19841
  params = {
18129
- keyId: paramsOrFirst
19842
+ clientId: paramsOrFirst,
19843
+ clientSecret: rest[0],
19844
+ enabled: rest[1]
18130
19845
  };
18131
19846
  }
18132
- const keyId = params.keyId;
18133
- if (typeof keyId === 'undefined') {
18134
- throw new AppwriteException('Missing required parameter: "keyId"');
19847
+ const clientId = params.clientId;
19848
+ const clientSecret = params.clientSecret;
19849
+ const enabled = params.enabled;
19850
+ const apiPath = '/project/oauth2/wordpress';
19851
+ const payload = {};
19852
+ if (typeof clientId !== 'undefined') {
19853
+ payload['clientId'] = clientId;
18135
19854
  }
18136
- const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
19855
+ if (typeof clientSecret !== 'undefined') {
19856
+ payload['clientSecret'] = clientSecret;
19857
+ }
19858
+ if (typeof enabled !== 'undefined') {
19859
+ payload['enabled'] = enabled;
19860
+ }
19861
+ const uri = new URL(this.client.config.endpoint + apiPath);
19862
+ const apiHeaders = {
19863
+ 'content-type': 'application/json',
19864
+ };
19865
+ return this.client.call('patch', uri, apiHeaders, payload);
19866
+ }
19867
+ updateOAuth2X(paramsOrFirst, ...rest) {
19868
+ let params;
19869
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19870
+ params = (paramsOrFirst || {});
19871
+ }
19872
+ else {
19873
+ params = {
19874
+ customerKey: paramsOrFirst,
19875
+ secretKey: rest[0],
19876
+ enabled: rest[1]
19877
+ };
19878
+ }
19879
+ const customerKey = params.customerKey;
19880
+ const secretKey = params.secretKey;
19881
+ const enabled = params.enabled;
19882
+ const apiPath = '/project/oauth2/x';
18137
19883
  const payload = {};
19884
+ if (typeof customerKey !== 'undefined') {
19885
+ payload['customerKey'] = customerKey;
19886
+ }
19887
+ if (typeof secretKey !== 'undefined') {
19888
+ payload['secretKey'] = secretKey;
19889
+ }
19890
+ if (typeof enabled !== 'undefined') {
19891
+ payload['enabled'] = enabled;
19892
+ }
18138
19893
  const uri = new URL(this.client.config.endpoint + apiPath);
18139
19894
  const apiHeaders = {
18140
19895
  'content-type': 'application/json',
18141
19896
  };
18142
- return this.client.call('delete', uri, apiHeaders, payload);
19897
+ return this.client.call('patch', uri, apiHeaders, payload);
18143
19898
  }
18144
- updateLabels(paramsOrFirst) {
19899
+ updateOAuth2Yahoo(paramsOrFirst, ...rest) {
18145
19900
  let params;
18146
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19901
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18147
19902
  params = (paramsOrFirst || {});
18148
19903
  }
18149
19904
  else {
18150
19905
  params = {
18151
- labels: paramsOrFirst
19906
+ clientId: paramsOrFirst,
19907
+ clientSecret: rest[0],
19908
+ enabled: rest[1]
18152
19909
  };
18153
19910
  }
18154
- const labels = params.labels;
18155
- if (typeof labels === 'undefined') {
18156
- throw new AppwriteException('Missing required parameter: "labels"');
19911
+ const clientId = params.clientId;
19912
+ const clientSecret = params.clientSecret;
19913
+ const enabled = params.enabled;
19914
+ const apiPath = '/project/oauth2/yahoo';
19915
+ const payload = {};
19916
+ if (typeof clientId !== 'undefined') {
19917
+ payload['clientId'] = clientId;
18157
19918
  }
18158
- const apiPath = '/project/labels';
19919
+ if (typeof clientSecret !== 'undefined') {
19920
+ payload['clientSecret'] = clientSecret;
19921
+ }
19922
+ if (typeof enabled !== 'undefined') {
19923
+ payload['enabled'] = enabled;
19924
+ }
19925
+ const uri = new URL(this.client.config.endpoint + apiPath);
19926
+ const apiHeaders = {
19927
+ 'content-type': 'application/json',
19928
+ };
19929
+ return this.client.call('patch', uri, apiHeaders, payload);
19930
+ }
19931
+ updateOAuth2Yandex(paramsOrFirst, ...rest) {
19932
+ let params;
19933
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19934
+ params = (paramsOrFirst || {});
19935
+ }
19936
+ else {
19937
+ params = {
19938
+ clientId: paramsOrFirst,
19939
+ clientSecret: rest[0],
19940
+ enabled: rest[1]
19941
+ };
19942
+ }
19943
+ const clientId = params.clientId;
19944
+ const clientSecret = params.clientSecret;
19945
+ const enabled = params.enabled;
19946
+ const apiPath = '/project/oauth2/yandex';
18159
19947
  const payload = {};
18160
- if (typeof labels !== 'undefined') {
18161
- payload['labels'] = labels;
19948
+ if (typeof clientId !== 'undefined') {
19949
+ payload['clientId'] = clientId;
19950
+ }
19951
+ if (typeof clientSecret !== 'undefined') {
19952
+ payload['clientSecret'] = clientSecret;
19953
+ }
19954
+ if (typeof enabled !== 'undefined') {
19955
+ payload['enabled'] = enabled;
18162
19956
  }
18163
19957
  const uri = new URL(this.client.config.endpoint + apiPath);
18164
19958
  const apiHeaders = {
18165
19959
  'content-type': 'application/json',
18166
19960
  };
18167
- return this.client.call('put', uri, apiHeaders, payload);
19961
+ return this.client.call('patch', uri, apiHeaders, payload);
19962
+ }
19963
+ updateOAuth2Zoho(paramsOrFirst, ...rest) {
19964
+ let params;
19965
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19966
+ params = (paramsOrFirst || {});
19967
+ }
19968
+ else {
19969
+ params = {
19970
+ clientId: paramsOrFirst,
19971
+ clientSecret: rest[0],
19972
+ enabled: rest[1]
19973
+ };
19974
+ }
19975
+ const clientId = params.clientId;
19976
+ const clientSecret = params.clientSecret;
19977
+ const enabled = params.enabled;
19978
+ const apiPath = '/project/oauth2/zoho';
19979
+ const payload = {};
19980
+ if (typeof clientId !== 'undefined') {
19981
+ payload['clientId'] = clientId;
19982
+ }
19983
+ if (typeof clientSecret !== 'undefined') {
19984
+ payload['clientSecret'] = clientSecret;
19985
+ }
19986
+ if (typeof enabled !== 'undefined') {
19987
+ payload['enabled'] = enabled;
19988
+ }
19989
+ const uri = new URL(this.client.config.endpoint + apiPath);
19990
+ const apiHeaders = {
19991
+ 'content-type': 'application/json',
19992
+ };
19993
+ return this.client.call('patch', uri, apiHeaders, payload);
19994
+ }
19995
+ updateOAuth2Zoom(paramsOrFirst, ...rest) {
19996
+ let params;
19997
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19998
+ params = (paramsOrFirst || {});
19999
+ }
20000
+ else {
20001
+ params = {
20002
+ clientId: paramsOrFirst,
20003
+ clientSecret: rest[0],
20004
+ enabled: rest[1]
20005
+ };
20006
+ }
20007
+ const clientId = params.clientId;
20008
+ const clientSecret = params.clientSecret;
20009
+ const enabled = params.enabled;
20010
+ const apiPath = '/project/oauth2/zoom';
20011
+ const payload = {};
20012
+ if (typeof clientId !== 'undefined') {
20013
+ payload['clientId'] = clientId;
20014
+ }
20015
+ if (typeof clientSecret !== 'undefined') {
20016
+ payload['clientSecret'] = clientSecret;
20017
+ }
20018
+ if (typeof enabled !== 'undefined') {
20019
+ payload['enabled'] = enabled;
20020
+ }
20021
+ const uri = new URL(this.client.config.endpoint + apiPath);
20022
+ const apiHeaders = {
20023
+ 'content-type': 'application/json',
20024
+ };
20025
+ return this.client.call('patch', uri, apiHeaders, payload);
20026
+ }
20027
+ getOAuth2Provider(paramsOrFirst) {
20028
+ let params;
20029
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20030
+ params = (paramsOrFirst || {});
20031
+ }
20032
+ else {
20033
+ params = {
20034
+ provider: paramsOrFirst
20035
+ };
20036
+ }
20037
+ const provider = params.provider;
20038
+ if (typeof provider === 'undefined') {
20039
+ throw new AppwriteException('Missing required parameter: "provider"');
20040
+ }
20041
+ const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
20042
+ const payload = {};
20043
+ const uri = new URL(this.client.config.endpoint + apiPath);
20044
+ const apiHeaders = {};
20045
+ return this.client.call('get', uri, apiHeaders, payload);
18168
20046
  }
18169
20047
  listPlatforms(paramsOrFirst, ...rest) {
18170
20048
  let params;
@@ -18628,6 +20506,31 @@ class Project {
18628
20506
  };
18629
20507
  return this.client.call('delete', uri, apiHeaders, payload);
18630
20508
  }
20509
+ listPolicies(paramsOrFirst, ...rest) {
20510
+ let params;
20511
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20512
+ params = (paramsOrFirst || {});
20513
+ }
20514
+ else {
20515
+ params = {
20516
+ queries: paramsOrFirst,
20517
+ total: rest[0]
20518
+ };
20519
+ }
20520
+ const queries = params.queries;
20521
+ const total = params.total;
20522
+ const apiPath = '/project/policies';
20523
+ const payload = {};
20524
+ if (typeof queries !== 'undefined') {
20525
+ payload['queries'] = queries;
20526
+ }
20527
+ if (typeof total !== 'undefined') {
20528
+ payload['total'] = total;
20529
+ }
20530
+ const uri = new URL(this.client.config.endpoint + apiPath);
20531
+ const apiHeaders = {};
20532
+ return this.client.call('get', uri, apiHeaders, payload);
20533
+ }
18631
20534
  updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
18632
20535
  let params;
18633
20536
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18870,6 +20773,26 @@ class Project {
18870
20773
  };
18871
20774
  return this.client.call('patch', uri, apiHeaders, payload);
18872
20775
  }
20776
+ getPolicy(paramsOrFirst) {
20777
+ let params;
20778
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('policyId' in paramsOrFirst))) {
20779
+ params = (paramsOrFirst || {});
20780
+ }
20781
+ else {
20782
+ params = {
20783
+ policyId: paramsOrFirst
20784
+ };
20785
+ }
20786
+ const policyId = params.policyId;
20787
+ if (typeof policyId === 'undefined') {
20788
+ throw new AppwriteException('Missing required parameter: "policyId"');
20789
+ }
20790
+ const apiPath = '/project/policies/{policyId}'.replace('{policyId}', policyId);
20791
+ const payload = {};
20792
+ const uri = new URL(this.client.config.endpoint + apiPath);
20793
+ const apiHeaders = {};
20794
+ return this.client.call('get', uri, apiHeaders, payload);
20795
+ }
18873
20796
  updateProtocol(paramsOrFirst, ...rest) {
18874
20797
  let params;
18875
20798
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('protocolId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
@@ -19007,20 +20930,45 @@ class Project {
19007
20930
  emails: paramsOrFirst
19008
20931
  };
19009
20932
  }
19010
- const emails = params.emails;
19011
- if (typeof emails === 'undefined') {
19012
- throw new AppwriteException('Missing required parameter: "emails"');
19013
- }
19014
- const apiPath = '/project/smtp/tests';
20933
+ const emails = params.emails;
20934
+ if (typeof emails === 'undefined') {
20935
+ throw new AppwriteException('Missing required parameter: "emails"');
20936
+ }
20937
+ const apiPath = '/project/smtp/tests';
20938
+ const payload = {};
20939
+ if (typeof emails !== 'undefined') {
20940
+ payload['emails'] = emails;
20941
+ }
20942
+ const uri = new URL(this.client.config.endpoint + apiPath);
20943
+ const apiHeaders = {
20944
+ 'content-type': 'application/json',
20945
+ };
20946
+ return this.client.call('post', uri, apiHeaders, payload);
20947
+ }
20948
+ listEmailTemplates(paramsOrFirst, ...rest) {
20949
+ let params;
20950
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20951
+ params = (paramsOrFirst || {});
20952
+ }
20953
+ else {
20954
+ params = {
20955
+ queries: paramsOrFirst,
20956
+ total: rest[0]
20957
+ };
20958
+ }
20959
+ const queries = params.queries;
20960
+ const total = params.total;
20961
+ const apiPath = '/project/templates/email';
19015
20962
  const payload = {};
19016
- if (typeof emails !== 'undefined') {
19017
- payload['emails'] = emails;
20963
+ if (typeof queries !== 'undefined') {
20964
+ payload['queries'] = queries;
20965
+ }
20966
+ if (typeof total !== 'undefined') {
20967
+ payload['total'] = total;
19018
20968
  }
19019
20969
  const uri = new URL(this.client.config.endpoint + apiPath);
19020
- const apiHeaders = {
19021
- 'content-type': 'application/json',
19022
- };
19023
- return this.client.call('post', uri, apiHeaders, payload);
20970
+ const apiHeaders = {};
20971
+ return this.client.call('get', uri, apiHeaders, payload);
19024
20972
  }
19025
20973
  updateEmailTemplate(paramsOrFirst, ...rest) {
19026
20974
  let params;
@@ -19515,93 +21463,6 @@ class Projects {
19515
21463
  };
19516
21464
  return this.client.call('patch', uri, apiHeaders, payload);
19517
21465
  }
19518
- delete(paramsOrFirst) {
19519
- let params;
19520
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19521
- params = (paramsOrFirst || {});
19522
- }
19523
- else {
19524
- params = {
19525
- projectId: paramsOrFirst
19526
- };
19527
- }
19528
- const projectId = params.projectId;
19529
- if (typeof projectId === 'undefined') {
19530
- throw new AppwriteException('Missing required parameter: "projectId"');
19531
- }
19532
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
19533
- const payload = {};
19534
- const uri = new URL(this.client.config.endpoint + apiPath);
19535
- const apiHeaders = {
19536
- 'content-type': 'application/json',
19537
- };
19538
- return this.client.call('delete', uri, apiHeaders, payload);
19539
- }
19540
- updateMockNumbers(paramsOrFirst, ...rest) {
19541
- let params;
19542
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19543
- params = (paramsOrFirst || {});
19544
- }
19545
- else {
19546
- params = {
19547
- projectId: paramsOrFirst,
19548
- numbers: rest[0]
19549
- };
19550
- }
19551
- const projectId = params.projectId;
19552
- const numbers = params.numbers;
19553
- if (typeof projectId === 'undefined') {
19554
- throw new AppwriteException('Missing required parameter: "projectId"');
19555
- }
19556
- if (typeof numbers === 'undefined') {
19557
- throw new AppwriteException('Missing required parameter: "numbers"');
19558
- }
19559
- const apiPath = '/projects/{projectId}/auth/mock-numbers'.replace('{projectId}', projectId);
19560
- const payload = {};
19561
- if (typeof numbers !== 'undefined') {
19562
- payload['numbers'] = numbers;
19563
- }
19564
- const uri = new URL(this.client.config.endpoint + apiPath);
19565
- const apiHeaders = {
19566
- 'content-type': 'application/json',
19567
- };
19568
- return this.client.call('patch', uri, apiHeaders, payload);
19569
- }
19570
- updateAuthStatus(paramsOrFirst, ...rest) {
19571
- let params;
19572
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19573
- params = (paramsOrFirst || {});
19574
- }
19575
- else {
19576
- params = {
19577
- projectId: paramsOrFirst,
19578
- method: rest[0],
19579
- status: rest[1]
19580
- };
19581
- }
19582
- const projectId = params.projectId;
19583
- const method = params.method;
19584
- const status = params.status;
19585
- if (typeof projectId === 'undefined') {
19586
- throw new AppwriteException('Missing required parameter: "projectId"');
19587
- }
19588
- if (typeof method === 'undefined') {
19589
- throw new AppwriteException('Missing required parameter: "method"');
19590
- }
19591
- if (typeof status === 'undefined') {
19592
- throw new AppwriteException('Missing required parameter: "status"');
19593
- }
19594
- const apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
19595
- const payload = {};
19596
- if (typeof status !== 'undefined') {
19597
- payload['status'] = status;
19598
- }
19599
- const uri = new URL(this.client.config.endpoint + apiPath);
19600
- const apiHeaders = {
19601
- 'content-type': 'application/json',
19602
- };
19603
- return this.client.call('patch', uri, apiHeaders, payload);
19604
- }
19605
21466
  updateConsoleAccess(paramsOrFirst) {
19606
21467
  let params;
19607
21468
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -19782,86 +21643,6 @@ class Projects {
19782
21643
  };
19783
21644
  return this.client.call('delete', uri, apiHeaders, payload);
19784
21645
  }
19785
- createJWT(paramsOrFirst, ...rest) {
19786
- let params;
19787
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19788
- params = (paramsOrFirst || {});
19789
- }
19790
- else {
19791
- params = {
19792
- projectId: paramsOrFirst,
19793
- scopes: rest[0],
19794
- duration: rest[1]
19795
- };
19796
- }
19797
- const projectId = params.projectId;
19798
- const scopes = params.scopes;
19799
- const duration = params.duration;
19800
- if (typeof projectId === 'undefined') {
19801
- throw new AppwriteException('Missing required parameter: "projectId"');
19802
- }
19803
- if (typeof scopes === 'undefined') {
19804
- throw new AppwriteException('Missing required parameter: "scopes"');
19805
- }
19806
- const apiPath = '/projects/{projectId}/jwts'.replace('{projectId}', projectId);
19807
- const payload = {};
19808
- if (typeof scopes !== 'undefined') {
19809
- payload['scopes'] = scopes;
19810
- }
19811
- if (typeof duration !== 'undefined') {
19812
- payload['duration'] = duration;
19813
- }
19814
- const uri = new URL(this.client.config.endpoint + apiPath);
19815
- const apiHeaders = {
19816
- 'content-type': 'application/json',
19817
- };
19818
- return this.client.call('post', uri, apiHeaders, payload);
19819
- }
19820
- updateOAuth2(paramsOrFirst, ...rest) {
19821
- let params;
19822
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19823
- params = (paramsOrFirst || {});
19824
- }
19825
- else {
19826
- params = {
19827
- projectId: paramsOrFirst,
19828
- provider: rest[0],
19829
- appId: rest[1],
19830
- secret: rest[2],
19831
- enabled: rest[3]
19832
- };
19833
- }
19834
- const projectId = params.projectId;
19835
- const provider = params.provider;
19836
- const appId = params.appId;
19837
- const secret = params.secret;
19838
- const enabled = params.enabled;
19839
- if (typeof projectId === 'undefined') {
19840
- throw new AppwriteException('Missing required parameter: "projectId"');
19841
- }
19842
- if (typeof provider === 'undefined') {
19843
- throw new AppwriteException('Missing required parameter: "provider"');
19844
- }
19845
- const apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
19846
- const payload = {};
19847
- if (typeof provider !== 'undefined') {
19848
- payload['provider'] = provider;
19849
- }
19850
- if (typeof appId !== 'undefined') {
19851
- payload['appId'] = appId;
19852
- }
19853
- if (typeof secret !== 'undefined') {
19854
- payload['secret'] = secret;
19855
- }
19856
- if (typeof enabled !== 'undefined') {
19857
- payload['enabled'] = enabled;
19858
- }
19859
- const uri = new URL(this.client.config.endpoint + apiPath);
19860
- const apiHeaders = {
19861
- 'content-type': 'application/json',
19862
- };
19863
- return this.client.call('patch', uri, apiHeaders, payload);
19864
- }
19865
21646
  listSchedules(paramsOrFirst, ...rest) {
19866
21647
  let params;
19867
21648
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -30187,73 +31968,80 @@ var Scopes;
30187
31968
  Scopes["Account"] = "account";
30188
31969
  Scopes["TeamsRead"] = "teams.read";
30189
31970
  Scopes["TeamsWrite"] = "teams.write";
30190
- Scopes["SessionsWrite"] = "sessions.write";
31971
+ Scopes["ProjectRead"] = "project.read";
31972
+ Scopes["ProjectWrite"] = "project.write";
31973
+ Scopes["KeysRead"] = "keys.read";
31974
+ Scopes["KeysWrite"] = "keys.write";
31975
+ Scopes["PlatformsRead"] = "platforms.read";
31976
+ Scopes["PlatformsWrite"] = "platforms.write";
31977
+ Scopes["MocksRead"] = "mocks.read";
31978
+ Scopes["MocksWrite"] = "mocks.write";
31979
+ Scopes["PoliciesRead"] = "policies.read";
31980
+ Scopes["PoliciesWrite"] = "policies.write";
31981
+ Scopes["TemplatesRead"] = "templates.read";
31982
+ Scopes["TemplatesWrite"] = "templates.write";
31983
+ Scopes["Oauth2Read"] = "oauth2.read";
31984
+ Scopes["Oauth2Write"] = "oauth2.write";
30191
31985
  Scopes["UsersRead"] = "users.read";
30192
31986
  Scopes["UsersWrite"] = "users.write";
31987
+ Scopes["SessionsRead"] = "sessions.read";
31988
+ Scopes["SessionsWrite"] = "sessions.write";
30193
31989
  Scopes["DatabasesRead"] = "databases.read";
30194
31990
  Scopes["DatabasesWrite"] = "databases.write";
30195
- Scopes["CollectionsRead"] = "collections.read";
30196
- Scopes["CollectionsWrite"] = "collections.write";
30197
31991
  Scopes["TablesRead"] = "tables.read";
30198
31992
  Scopes["TablesWrite"] = "tables.write";
30199
- Scopes["AttributesRead"] = "attributes.read";
30200
- Scopes["AttributesWrite"] = "attributes.write";
30201
31993
  Scopes["ColumnsRead"] = "columns.read";
30202
31994
  Scopes["ColumnsWrite"] = "columns.write";
30203
31995
  Scopes["IndexesRead"] = "indexes.read";
30204
31996
  Scopes["IndexesWrite"] = "indexes.write";
30205
- Scopes["DocumentsRead"] = "documents.read";
30206
- Scopes["DocumentsWrite"] = "documents.write";
30207
31997
  Scopes["RowsRead"] = "rows.read";
30208
31998
  Scopes["RowsWrite"] = "rows.write";
30209
- Scopes["FilesRead"] = "files.read";
30210
- Scopes["FilesWrite"] = "files.write";
31999
+ Scopes["CollectionsRead"] = "collections.read";
32000
+ Scopes["CollectionsWrite"] = "collections.write";
32001
+ Scopes["AttributesRead"] = "attributes.read";
32002
+ Scopes["AttributesWrite"] = "attributes.write";
32003
+ Scopes["DocumentsRead"] = "documents.read";
32004
+ Scopes["DocumentsWrite"] = "documents.write";
30211
32005
  Scopes["BucketsRead"] = "buckets.read";
30212
32006
  Scopes["BucketsWrite"] = "buckets.write";
32007
+ Scopes["FilesRead"] = "files.read";
32008
+ Scopes["FilesWrite"] = "files.write";
32009
+ Scopes["TokensRead"] = "tokens.read";
32010
+ Scopes["TokensWrite"] = "tokens.write";
30213
32011
  Scopes["FunctionsRead"] = "functions.read";
30214
32012
  Scopes["FunctionsWrite"] = "functions.write";
32013
+ Scopes["ExecutionsRead"] = "executions.read";
32014
+ Scopes["ExecutionsWrite"] = "executions.write";
32015
+ Scopes["ExecutionRead"] = "execution.read";
32016
+ Scopes["ExecutionWrite"] = "execution.write";
30215
32017
  Scopes["SitesRead"] = "sites.read";
30216
32018
  Scopes["SitesWrite"] = "sites.write";
30217
32019
  Scopes["LogRead"] = "log.read";
30218
32020
  Scopes["LogWrite"] = "log.write";
30219
- Scopes["ExecutionRead"] = "execution.read";
30220
- Scopes["ExecutionWrite"] = "execution.write";
30221
- Scopes["LocaleRead"] = "locale.read";
30222
- Scopes["AvatarsRead"] = "avatars.read";
30223
- Scopes["HealthRead"] = "health.read";
30224
32021
  Scopes["ProvidersRead"] = "providers.read";
30225
32022
  Scopes["ProvidersWrite"] = "providers.write";
30226
- Scopes["MessagesRead"] = "messages.read";
30227
- Scopes["MessagesWrite"] = "messages.write";
30228
32023
  Scopes["TopicsRead"] = "topics.read";
30229
32024
  Scopes["TopicsWrite"] = "topics.write";
30230
32025
  Scopes["SubscribersRead"] = "subscribers.read";
30231
32026
  Scopes["SubscribersWrite"] = "subscribers.write";
30232
32027
  Scopes["TargetsRead"] = "targets.read";
30233
32028
  Scopes["TargetsWrite"] = "targets.write";
30234
- Scopes["RulesRead"] = "rules.read";
30235
- Scopes["RulesWrite"] = "rules.write";
30236
- Scopes["SchedulesRead"] = "schedules.read";
30237
- Scopes["SchedulesWrite"] = "schedules.write";
32029
+ Scopes["MessagesRead"] = "messages.read";
32030
+ Scopes["MessagesWrite"] = "messages.write";
32031
+ Scopes["WebhooksRead"] = "webhooks.read";
32032
+ Scopes["WebhooksWrite"] = "webhooks.write";
32033
+ Scopes["LocaleRead"] = "locale.read";
32034
+ Scopes["AvatarsRead"] = "avatars.read";
32035
+ Scopes["HealthRead"] = "health.read";
32036
+ Scopes["AssistantRead"] = "assistant.read";
30238
32037
  Scopes["MigrationsRead"] = "migrations.read";
30239
32038
  Scopes["MigrationsWrite"] = "migrations.write";
32039
+ Scopes["SchedulesRead"] = "schedules.read";
32040
+ Scopes["SchedulesWrite"] = "schedules.write";
30240
32041
  Scopes["VcsRead"] = "vcs.read";
30241
32042
  Scopes["VcsWrite"] = "vcs.write";
30242
- Scopes["AssistantRead"] = "assistant.read";
30243
- Scopes["TokensRead"] = "tokens.read";
30244
- Scopes["TokensWrite"] = "tokens.write";
30245
- Scopes["WebhooksRead"] = "webhooks.read";
30246
- Scopes["WebhooksWrite"] = "webhooks.write";
30247
- Scopes["ProjectRead"] = "project.read";
30248
- Scopes["ProjectWrite"] = "project.write";
30249
- Scopes["KeysRead"] = "keys.read";
30250
- Scopes["KeysWrite"] = "keys.write";
30251
- Scopes["PlatformsRead"] = "platforms.read";
30252
- Scopes["PlatformsWrite"] = "platforms.write";
30253
- Scopes["PoliciesWrite"] = "policies.write";
30254
- Scopes["TemplatesRead"] = "templates.read";
30255
- Scopes["TemplatesWrite"] = "templates.write";
30256
- Scopes["PoliciesRead"] = "policies.read";
32043
+ Scopes["RulesRead"] = "rules.read";
32044
+ Scopes["RulesWrite"] = "rules.write";
30257
32045
  Scopes["ArchivesRead"] = "archives.read";
30258
32046
  Scopes["ArchivesWrite"] = "archives.write";
30259
32047
  Scopes["RestorationsRead"] = "restorations.read";
@@ -30297,9 +32085,12 @@ var OAuthProvider;
30297
32085
  OAuthProvider["Etsy"] = "etsy";
30298
32086
  OAuthProvider["Facebook"] = "facebook";
30299
32087
  OAuthProvider["Figma"] = "figma";
32088
+ OAuthProvider["Fusionauth"] = "fusionauth";
30300
32089
  OAuthProvider["Github"] = "github";
30301
32090
  OAuthProvider["Gitlab"] = "gitlab";
30302
32091
  OAuthProvider["Google"] = "google";
32092
+ OAuthProvider["Keycloak"] = "keycloak";
32093
+ OAuthProvider["Kick"] = "kick";
30303
32094
  OAuthProvider["Linkedin"] = "linkedin";
30304
32095
  OAuthProvider["Microsoft"] = "microsoft";
30305
32096
  OAuthProvider["Notion"] = "notion";
@@ -31186,6 +32977,7 @@ var Runtime;
31186
32977
  Runtime["Go124"] = "go-1.24";
31187
32978
  Runtime["Go125"] = "go-1.25";
31188
32979
  Runtime["Go126"] = "go-1.26";
32980
+ Runtime["Rust183"] = "rust-1.83";
31189
32981
  Runtime["Static1"] = "static-1";
31190
32982
  Runtime["Flutter324"] = "flutter-3.24";
31191
32983
  Runtime["Flutter327"] = "flutter-3.27";
@@ -31278,6 +33070,7 @@ var Runtimes;
31278
33070
  Runtimes["Go124"] = "go-1.24";
31279
33071
  Runtimes["Go125"] = "go-1.25";
31280
33072
  Runtimes["Go126"] = "go-1.26";
33073
+ Runtimes["Rust183"] = "rust-1.83";
31281
33074
  Runtimes["Static1"] = "static-1";
31282
33075
  Runtimes["Flutter324"] = "flutter-3.24";
31283
33076
  Runtimes["Flutter327"] = "flutter-3.27";
@@ -31354,6 +33147,23 @@ var Name;
31354
33147
  Name["V1migrations"] = "v1-migrations";
31355
33148
  })(Name || (Name = {}));
31356
33149
 
33150
+ var ResourceType;
33151
+ (function (ResourceType) {
33152
+ ResourceType["Projects"] = "projects";
33153
+ ResourceType["Functions"] = "functions";
33154
+ ResourceType["Sites"] = "sites";
33155
+ ResourceType["Databases"] = "databases";
33156
+ ResourceType["Buckets"] = "buckets";
33157
+ ResourceType["Providers"] = "providers";
33158
+ ResourceType["Topics"] = "topics";
33159
+ ResourceType["Subscribers"] = "subscribers";
33160
+ ResourceType["Messages"] = "messages";
33161
+ ResourceType["Function"] = "function";
33162
+ ResourceType["Execution"] = "execution";
33163
+ ResourceType["Message"] = "message";
33164
+ ResourceType["Backup"] = "backup";
33165
+ })(ResourceType || (ResourceType = {}));
33166
+
31357
33167
  var MessagePriority;
31358
33168
  (function (MessagePriority) {
31359
33169
  MessagePriority["Normal"] = "normal";
@@ -31394,6 +33204,7 @@ var AppwriteMigrationResource;
31394
33204
  AppwriteMigrationResource["Site"] = "site";
31395
33205
  AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
31396
33206
  AppwriteMigrationResource["Sitevariable"] = "site-variable";
33207
+ AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
31397
33208
  })(AppwriteMigrationResource || (AppwriteMigrationResource = {}));
31398
33209
 
31399
33210
  var FirebaseMigrationResource;
@@ -31445,6 +33256,30 @@ var Addon;
31445
33256
  Addon["Baa"] = "baa";
31446
33257
  })(Addon || (Addon = {}));
31447
33258
 
33259
+ var MethodId;
33260
+ (function (MethodId) {
33261
+ MethodId["Emailpassword"] = "email-password";
33262
+ MethodId["Magicurl"] = "magic-url";
33263
+ MethodId["Emailotp"] = "email-otp";
33264
+ MethodId["Anonymous"] = "anonymous";
33265
+ MethodId["Invites"] = "invites";
33266
+ MethodId["Jwt"] = "jwt";
33267
+ MethodId["Phone"] = "phone";
33268
+ })(MethodId || (MethodId = {}));
33269
+
33270
+ var PolicyId;
33271
+ (function (PolicyId) {
33272
+ PolicyId["Passworddictionary"] = "password-dictionary";
33273
+ PolicyId["Passwordhistory"] = "password-history";
33274
+ PolicyId["Passwordpersonaldata"] = "password-personal-data";
33275
+ PolicyId["Sessionalert"] = "session-alert";
33276
+ PolicyId["Sessionduration"] = "session-duration";
33277
+ PolicyId["Sessioninvalidation"] = "session-invalidation";
33278
+ PolicyId["Sessionlimit"] = "session-limit";
33279
+ PolicyId["Userlimit"] = "user-limit";
33280
+ PolicyId["Membershipprivacy"] = "membership-privacy";
33281
+ })(PolicyId || (PolicyId = {}));
33282
+
31448
33283
  var ProtocolId;
31449
33284
  (function (ProtocolId) {
31450
33285
  ProtocolId["Rest"] = "rest";
@@ -31641,25 +33476,6 @@ var Region;
31641
33476
  Region["Tor"] = "tor";
31642
33477
  })(Region || (Region = {}));
31643
33478
 
31644
- var AuthMethod;
31645
- (function (AuthMethod) {
31646
- AuthMethod["Emailpassword"] = "email-password";
31647
- AuthMethod["Magicurl"] = "magic-url";
31648
- AuthMethod["Emailotp"] = "email-otp";
31649
- AuthMethod["Anonymous"] = "anonymous";
31650
- AuthMethod["Invites"] = "invites";
31651
- AuthMethod["Jwt"] = "jwt";
31652
- AuthMethod["Phone"] = "phone";
31653
- })(AuthMethod || (AuthMethod = {}));
31654
-
31655
- var ResourceType;
31656
- (function (ResourceType) {
31657
- ResourceType["Function"] = "function";
31658
- ResourceType["Execution"] = "execution";
31659
- ResourceType["Message"] = "message";
31660
- ResourceType["Backup"] = "backup";
31661
- })(ResourceType || (ResourceType = {}));
31662
-
31663
33479
  var Status;
31664
33480
  (function (Status) {
31665
33481
  Status["Active"] = "active";
@@ -31780,6 +33596,7 @@ var BuildRuntime;
31780
33596
  BuildRuntime["Go124"] = "go-1.24";
31781
33597
  BuildRuntime["Go125"] = "go-1.25";
31782
33598
  BuildRuntime["Go126"] = "go-1.26";
33599
+ BuildRuntime["Rust183"] = "rust-1.83";
31783
33600
  BuildRuntime["Static1"] = "static-1";
31784
33601
  BuildRuntime["Flutter324"] = "flutter-3.24";
31785
33602
  BuildRuntime["Flutter327"] = "flutter-3.27";
@@ -32029,5 +33846,5 @@ var DomainPurchaseStatus;
32029
33846
  DomainPurchaseStatus["Cancelled"] = "cancelled";
32030
33847
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
32031
33848
 
32032
- 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, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Model, NHostMigrationResource, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, ProtocolId, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, 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 };
33849
+ 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, 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 };
32033
33850
  //# sourceMappingURL=sdk.js.map