@appwrite.io/console 16.1.0 → 17.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
@@ -651,7 +651,6 @@ class Client {
651
651
  mode: '',
652
652
  cookie: '',
653
653
  session: '',
654
- devkey: '',
655
654
  impersonateuserid: '',
656
655
  impersonateuseremail: '',
657
656
  impersonateuserphone: '',
@@ -666,8 +665,8 @@ class Client {
666
665
  'x-sdk-name': 'Console',
667
666
  'x-sdk-platform': 'console',
668
667
  'x-sdk-language': 'web',
669
- 'x-sdk-version': '16.1.0',
670
- 'X-Appwrite-Response-Format': '2.0.0',
668
+ 'x-sdk-version': '17.0.0',
669
+ 'X-Appwrite-Response-Format': '2.2.0',
671
670
  };
672
671
  this.realtime = {
673
672
  socket: undefined,
@@ -1079,20 +1078,6 @@ class Client {
1079
1078
  this.config.session = value;
1080
1079
  return this;
1081
1080
  }
1082
- /**
1083
- * Set DevKey
1084
- *
1085
- * Your secret dev API key
1086
- *
1087
- * @param value string
1088
- *
1089
- * @return {this}
1090
- */
1091
- setDevKey(value) {
1092
- this.headers['X-Appwrite-Dev-Key'] = value;
1093
- this.config.devkey = value;
1094
- return this;
1095
- }
1096
1081
  /**
1097
1082
  * Set ImpersonateUserId
1098
1083
  *
@@ -2322,37 +2307,6 @@ class Account {
2322
2307
  };
2323
2308
  return this.client.call('delete', uri, apiHeaders, payload);
2324
2309
  }
2325
- listLogs(paramsOrFirst, ...rest) {
2326
- let params;
2327
- if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
2328
- (paramsOrFirst &&
2329
- typeof paramsOrFirst === 'object' &&
2330
- !Array.isArray(paramsOrFirst))) {
2331
- params = (paramsOrFirst || {});
2332
- }
2333
- else {
2334
- params = {
2335
- queries: paramsOrFirst,
2336
- total: rest[0],
2337
- };
2338
- }
2339
- const queries = params.queries;
2340
- const total = params.total;
2341
- const apiPath = '/account/logs';
2342
- const payload = {};
2343
- if (typeof queries !== 'undefined') {
2344
- payload['queries'] = queries;
2345
- }
2346
- if (typeof total !== 'undefined') {
2347
- payload['total'] = total;
2348
- }
2349
- const uri = new URL(this.client.config.endpoint + apiPath);
2350
- const apiHeaders = {
2351
- 'X-Appwrite-Project': this.client.config.project,
2352
- accept: 'application/json',
2353
- };
2354
- return this.client.call('get', uri, apiHeaders, payload);
2355
- }
2356
2310
  updateMFA(paramsOrFirst) {
2357
2311
  let params;
2358
2312
  if (paramsOrFirst &&
@@ -3359,6 +3313,69 @@ class Account {
3359
3313
  };
3360
3314
  return this.client.call('post', uri, apiHeaders, payload);
3361
3315
  }
3316
+ createIdTokenSession(paramsOrFirst, ...rest) {
3317
+ let params;
3318
+ if (paramsOrFirst &&
3319
+ typeof paramsOrFirst === 'object' &&
3320
+ !Array.isArray(paramsOrFirst) &&
3321
+ ('provider' in paramsOrFirst ||
3322
+ 'idToken' in paramsOrFirst ||
3323
+ 'nonce' in paramsOrFirst ||
3324
+ 'accessToken' in paramsOrFirst ||
3325
+ 'accessTokenExpiry' in paramsOrFirst ||
3326
+ 'name' in paramsOrFirst)) {
3327
+ params = (paramsOrFirst || {});
3328
+ }
3329
+ else {
3330
+ params = {
3331
+ provider: paramsOrFirst,
3332
+ idToken: rest[0],
3333
+ nonce: rest[1],
3334
+ accessToken: rest[2],
3335
+ accessTokenExpiry: rest[3],
3336
+ name: rest[4],
3337
+ };
3338
+ }
3339
+ const provider = params.provider;
3340
+ const idToken = params.idToken;
3341
+ const nonce = params.nonce;
3342
+ const accessToken = params.accessToken;
3343
+ const accessTokenExpiry = params.accessTokenExpiry;
3344
+ const name = params.name;
3345
+ if (typeof provider === 'undefined') {
3346
+ throw new AppwriteException('Missing required parameter: "provider"');
3347
+ }
3348
+ if (typeof idToken === 'undefined') {
3349
+ throw new AppwriteException('Missing required parameter: "idToken"');
3350
+ }
3351
+ const apiPath = '/account/sessions/id-token';
3352
+ const payload = {};
3353
+ if (typeof provider !== 'undefined') {
3354
+ payload['provider'] = provider;
3355
+ }
3356
+ if (typeof idToken !== 'undefined') {
3357
+ payload['idToken'] = idToken;
3358
+ }
3359
+ if (typeof nonce !== 'undefined') {
3360
+ payload['nonce'] = nonce;
3361
+ }
3362
+ if (typeof accessToken !== 'undefined') {
3363
+ payload['accessToken'] = accessToken;
3364
+ }
3365
+ if (typeof accessTokenExpiry !== 'undefined') {
3366
+ payload['accessTokenExpiry'] = accessTokenExpiry;
3367
+ }
3368
+ if (typeof name !== 'undefined') {
3369
+ payload['name'] = name;
3370
+ }
3371
+ const uri = new URL(this.client.config.endpoint + apiPath);
3372
+ const apiHeaders = {
3373
+ 'X-Appwrite-Project': this.client.config.project,
3374
+ 'content-type': 'application/json',
3375
+ accept: 'application/json',
3376
+ };
3377
+ return this.client.call('post', uri, apiHeaders, payload);
3378
+ }
3362
3379
  updateMagicURLSession(paramsOrFirst, ...rest) {
3363
3380
  let params;
3364
3381
  if (paramsOrFirst &&
@@ -4024,6 +4041,70 @@ class Account {
4024
4041
  };
4025
4042
  return this.client.call('put', uri, apiHeaders, payload);
4026
4043
  }
4044
+ createEmailVerificationOTP(paramsOrFirst) {
4045
+ let params;
4046
+ if (typeof paramsOrFirst === 'undefined' ||
4047
+ (paramsOrFirst &&
4048
+ typeof paramsOrFirst === 'object' &&
4049
+ !Array.isArray(paramsOrFirst))) {
4050
+ params = (paramsOrFirst || {});
4051
+ }
4052
+ else {
4053
+ params = {
4054
+ phrase: paramsOrFirst,
4055
+ };
4056
+ }
4057
+ const phrase = params.phrase;
4058
+ const apiPath = '/account/verifications/email/otp';
4059
+ const payload = {};
4060
+ if (typeof phrase !== 'undefined') {
4061
+ payload['phrase'] = phrase;
4062
+ }
4063
+ const uri = new URL(this.client.config.endpoint + apiPath);
4064
+ const apiHeaders = {
4065
+ 'X-Appwrite-Project': this.client.config.project,
4066
+ 'content-type': 'application/json',
4067
+ accept: 'application/json',
4068
+ };
4069
+ return this.client.call('post', uri, apiHeaders, payload);
4070
+ }
4071
+ updateEmailVerificationOTP(paramsOrFirst, ...rest) {
4072
+ let params;
4073
+ if (paramsOrFirst &&
4074
+ typeof paramsOrFirst === 'object' &&
4075
+ !Array.isArray(paramsOrFirst)) {
4076
+ params = (paramsOrFirst || {});
4077
+ }
4078
+ else {
4079
+ params = {
4080
+ userId: paramsOrFirst,
4081
+ secret: rest[0],
4082
+ };
4083
+ }
4084
+ const userId = params.userId;
4085
+ const secret = params.secret;
4086
+ if (typeof userId === 'undefined') {
4087
+ throw new AppwriteException('Missing required parameter: "userId"');
4088
+ }
4089
+ if (typeof secret === 'undefined') {
4090
+ throw new AppwriteException('Missing required parameter: "secret"');
4091
+ }
4092
+ const apiPath = '/account/verifications/email/otp';
4093
+ const payload = {};
4094
+ if (typeof userId !== 'undefined') {
4095
+ payload['userId'] = userId;
4096
+ }
4097
+ if (typeof secret !== 'undefined') {
4098
+ payload['secret'] = secret;
4099
+ }
4100
+ const uri = new URL(this.client.config.endpoint + apiPath);
4101
+ const apiHeaders = {
4102
+ 'X-Appwrite-Project': this.client.config.project,
4103
+ 'content-type': 'application/json',
4104
+ accept: 'application/json',
4105
+ };
4106
+ return this.client.call('put', uri, apiHeaders, payload);
4107
+ }
4027
4108
  /**
4028
4109
  * Use this endpoint to send a verification SMS to the currently logged in user. This endpoint is meant for use after updating a user's phone number using the [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) endpoint. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). The verification code sent to the user's phone number is valid for 15 minutes.
4029
4110
  *
@@ -17087,6 +17168,104 @@ class Messaging {
17087
17168
  };
17088
17169
  return this.client.call('patch', uri, apiHeaders, payload);
17089
17170
  }
17171
+ createAppwriteProvider(paramsOrFirst, ...rest) {
17172
+ let params;
17173
+ if (paramsOrFirst &&
17174
+ typeof paramsOrFirst === 'object' &&
17175
+ !Array.isArray(paramsOrFirst)) {
17176
+ params = (paramsOrFirst || {});
17177
+ }
17178
+ else {
17179
+ params = {
17180
+ providerId: paramsOrFirst,
17181
+ name: rest[0],
17182
+ enabled: rest[1],
17183
+ qos: rest[2],
17184
+ expiry: rest[3],
17185
+ };
17186
+ }
17187
+ const providerId = params.providerId;
17188
+ const name = params.name;
17189
+ const enabled = params.enabled;
17190
+ const qos = params.qos;
17191
+ const expiry = params.expiry;
17192
+ if (typeof providerId === 'undefined') {
17193
+ throw new AppwriteException('Missing required parameter: "providerId"');
17194
+ }
17195
+ if (typeof name === 'undefined') {
17196
+ throw new AppwriteException('Missing required parameter: "name"');
17197
+ }
17198
+ const apiPath = '/messaging/providers/appwrite';
17199
+ const payload = {};
17200
+ if (typeof providerId !== 'undefined') {
17201
+ payload['providerId'] = providerId;
17202
+ }
17203
+ if (typeof name !== 'undefined') {
17204
+ payload['name'] = name;
17205
+ }
17206
+ if (typeof enabled !== 'undefined') {
17207
+ payload['enabled'] = enabled;
17208
+ }
17209
+ if (typeof qos !== 'undefined') {
17210
+ payload['qos'] = qos;
17211
+ }
17212
+ if (typeof expiry !== 'undefined') {
17213
+ payload['expiry'] = expiry;
17214
+ }
17215
+ const uri = new URL(this.client.config.endpoint + apiPath);
17216
+ const apiHeaders = {
17217
+ 'X-Appwrite-Project': this.client.config.project,
17218
+ 'content-type': 'application/json',
17219
+ accept: 'application/json',
17220
+ };
17221
+ return this.client.call('post', uri, apiHeaders, payload);
17222
+ }
17223
+ updateAppwriteProvider(paramsOrFirst, ...rest) {
17224
+ let params;
17225
+ if (paramsOrFirst &&
17226
+ typeof paramsOrFirst === 'object' &&
17227
+ !Array.isArray(paramsOrFirst)) {
17228
+ params = (paramsOrFirst || {});
17229
+ }
17230
+ else {
17231
+ params = {
17232
+ providerId: paramsOrFirst,
17233
+ name: rest[0],
17234
+ enabled: rest[1],
17235
+ qos: rest[2],
17236
+ expiry: rest[3],
17237
+ };
17238
+ }
17239
+ const providerId = params.providerId;
17240
+ const name = params.name;
17241
+ const enabled = params.enabled;
17242
+ const qos = params.qos;
17243
+ const expiry = params.expiry;
17244
+ if (typeof providerId === 'undefined' || providerId === '') {
17245
+ throw new AppwriteException('Missing required parameter: "providerId"');
17246
+ }
17247
+ const apiPath = '/messaging/providers/appwrite/{providerId}'.replace('{providerId}', encodeURIComponent(String(providerId)));
17248
+ const payload = {};
17249
+ if (typeof name !== 'undefined') {
17250
+ payload['name'] = name;
17251
+ }
17252
+ if (typeof enabled !== 'undefined') {
17253
+ payload['enabled'] = enabled;
17254
+ }
17255
+ if (typeof qos !== 'undefined') {
17256
+ payload['qos'] = qos;
17257
+ }
17258
+ if (typeof expiry !== 'undefined') {
17259
+ payload['expiry'] = expiry;
17260
+ }
17261
+ const uri = new URL(this.client.config.endpoint + apiPath);
17262
+ const apiHeaders = {
17263
+ 'X-Appwrite-Project': this.client.config.project,
17264
+ 'content-type': 'application/json',
17265
+ accept: 'application/json',
17266
+ };
17267
+ return this.client.call('patch', uri, apiHeaders, payload);
17268
+ }
17090
17269
  createFcmProvider(paramsOrFirst, ...rest) {
17091
17270
  let params;
17092
17271
  if (paramsOrFirst &&
@@ -18836,11 +19015,15 @@ class Messaging {
18836
19015
  topicId: paramsOrFirst,
18837
19016
  name: rest[0],
18838
19017
  subscribe: rest[1],
19018
+ qos: rest[2],
19019
+ expiry: rest[3],
18839
19020
  };
18840
19021
  }
18841
19022
  const topicId = params.topicId;
18842
19023
  const name = params.name;
18843
19024
  const subscribe = params.subscribe;
19025
+ const qos = params.qos;
19026
+ const expiry = params.expiry;
18844
19027
  if (typeof topicId === 'undefined') {
18845
19028
  throw new AppwriteException('Missing required parameter: "topicId"');
18846
19029
  }
@@ -18858,6 +19041,12 @@ class Messaging {
18858
19041
  if (typeof subscribe !== 'undefined') {
18859
19042
  payload['subscribe'] = subscribe;
18860
19043
  }
19044
+ if (typeof qos !== 'undefined') {
19045
+ payload['qos'] = qos;
19046
+ }
19047
+ if (typeof expiry !== 'undefined') {
19048
+ payload['expiry'] = expiry;
19049
+ }
18861
19050
  const uri = new URL(this.client.config.endpoint + apiPath);
18862
19051
  const apiHeaders = {
18863
19052
  'X-Appwrite-Project': this.client.config.project,
@@ -18903,11 +19092,15 @@ class Messaging {
18903
19092
  topicId: paramsOrFirst,
18904
19093
  name: rest[0],
18905
19094
  subscribe: rest[1],
19095
+ qos: rest[2],
19096
+ expiry: rest[3],
18906
19097
  };
18907
19098
  }
18908
19099
  const topicId = params.topicId;
18909
19100
  const name = params.name;
18910
19101
  const subscribe = params.subscribe;
19102
+ const qos = params.qos;
19103
+ const expiry = params.expiry;
18911
19104
  if (typeof topicId === 'undefined' || topicId === '') {
18912
19105
  throw new AppwriteException('Missing required parameter: "topicId"');
18913
19106
  }
@@ -18919,6 +19112,12 @@ class Messaging {
18919
19112
  if (typeof subscribe !== 'undefined') {
18920
19113
  payload['subscribe'] = subscribe;
18921
19114
  }
19115
+ if (typeof qos !== 'undefined') {
19116
+ payload['qos'] = qos;
19117
+ }
19118
+ if (typeof expiry !== 'undefined') {
19119
+ payload['expiry'] = expiry;
19120
+ }
18922
19121
  const uri = new URL(this.client.config.endpoint + apiPath);
18923
19122
  const apiHeaders = {
18924
19123
  'X-Appwrite-Project': this.client.config.project,
@@ -24174,6 +24373,257 @@ class Organization {
24174
24373
  };
24175
24374
  return this.client.call('delete', uri, apiHeaders, payload);
24176
24375
  }
24376
+ listProjectKeys(paramsOrFirst, ...rest) {
24377
+ let params;
24378
+ if (paramsOrFirst &&
24379
+ typeof paramsOrFirst === 'object' &&
24380
+ !Array.isArray(paramsOrFirst)) {
24381
+ params = (paramsOrFirst || {});
24382
+ }
24383
+ else {
24384
+ params = {
24385
+ projectId: paramsOrFirst,
24386
+ queries: rest[0],
24387
+ total: rest[1],
24388
+ };
24389
+ }
24390
+ const projectId = params.projectId;
24391
+ const queries = params.queries;
24392
+ const total = params.total;
24393
+ if (typeof projectId === 'undefined' || projectId === '') {
24394
+ throw new AppwriteException('Missing required parameter: "projectId"');
24395
+ }
24396
+ const apiPath = '/organization/projects/{projectId}/keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
24397
+ const payload = {};
24398
+ if (typeof queries !== 'undefined') {
24399
+ payload['queries'] = queries;
24400
+ }
24401
+ if (typeof total !== 'undefined') {
24402
+ payload['total'] = total;
24403
+ }
24404
+ const uri = new URL(this.client.config.endpoint + apiPath);
24405
+ const apiHeaders = {
24406
+ 'X-Appwrite-Project': this.client.config.project,
24407
+ accept: 'application/json',
24408
+ };
24409
+ return this.client.call('get', uri, apiHeaders, payload);
24410
+ }
24411
+ createProjectKey(paramsOrFirst, ...rest) {
24412
+ let params;
24413
+ if (paramsOrFirst &&
24414
+ typeof paramsOrFirst === 'object' &&
24415
+ !Array.isArray(paramsOrFirst)) {
24416
+ params = (paramsOrFirst || {});
24417
+ }
24418
+ else {
24419
+ params = {
24420
+ projectId: paramsOrFirst,
24421
+ keyId: rest[0],
24422
+ name: rest[1],
24423
+ scopes: rest[2],
24424
+ expire: rest[3],
24425
+ };
24426
+ }
24427
+ const projectId = params.projectId;
24428
+ const keyId = params.keyId;
24429
+ const name = params.name;
24430
+ const scopes = params.scopes;
24431
+ const expire = params.expire;
24432
+ if (typeof projectId === 'undefined' || projectId === '') {
24433
+ throw new AppwriteException('Missing required parameter: "projectId"');
24434
+ }
24435
+ if (typeof keyId === 'undefined') {
24436
+ throw new AppwriteException('Missing required parameter: "keyId"');
24437
+ }
24438
+ if (typeof name === 'undefined') {
24439
+ throw new AppwriteException('Missing required parameter: "name"');
24440
+ }
24441
+ if (typeof scopes === 'undefined') {
24442
+ throw new AppwriteException('Missing required parameter: "scopes"');
24443
+ }
24444
+ const apiPath = '/organization/projects/{projectId}/keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
24445
+ const payload = {};
24446
+ if (typeof keyId !== 'undefined') {
24447
+ payload['keyId'] = keyId;
24448
+ }
24449
+ if (typeof name !== 'undefined') {
24450
+ payload['name'] = name;
24451
+ }
24452
+ if (typeof scopes !== 'undefined') {
24453
+ payload['scopes'] = scopes;
24454
+ }
24455
+ if (typeof expire !== 'undefined') {
24456
+ payload['expire'] = expire;
24457
+ }
24458
+ const uri = new URL(this.client.config.endpoint + apiPath);
24459
+ const apiHeaders = {
24460
+ 'X-Appwrite-Project': this.client.config.project,
24461
+ 'content-type': 'application/json',
24462
+ accept: 'application/json',
24463
+ };
24464
+ return this.client.call('post', uri, apiHeaders, payload);
24465
+ }
24466
+ createEphemeralProjectKey(paramsOrFirst, ...rest) {
24467
+ let params;
24468
+ if (paramsOrFirst &&
24469
+ typeof paramsOrFirst === 'object' &&
24470
+ !Array.isArray(paramsOrFirst)) {
24471
+ params = (paramsOrFirst || {});
24472
+ }
24473
+ else {
24474
+ params = {
24475
+ projectId: paramsOrFirst,
24476
+ scopes: rest[0],
24477
+ duration: rest[1],
24478
+ };
24479
+ }
24480
+ const projectId = params.projectId;
24481
+ const scopes = params.scopes;
24482
+ const duration = params.duration;
24483
+ if (typeof projectId === 'undefined' || projectId === '') {
24484
+ throw new AppwriteException('Missing required parameter: "projectId"');
24485
+ }
24486
+ if (typeof scopes === 'undefined') {
24487
+ throw new AppwriteException('Missing required parameter: "scopes"');
24488
+ }
24489
+ if (typeof duration === 'undefined') {
24490
+ throw new AppwriteException('Missing required parameter: "duration"');
24491
+ }
24492
+ const apiPath = '/organization/projects/{projectId}/keys/ephemeral'.replace('{projectId}', encodeURIComponent(String(projectId)));
24493
+ const payload = {};
24494
+ if (typeof scopes !== 'undefined') {
24495
+ payload['scopes'] = scopes;
24496
+ }
24497
+ if (typeof duration !== 'undefined') {
24498
+ payload['duration'] = duration;
24499
+ }
24500
+ const uri = new URL(this.client.config.endpoint + apiPath);
24501
+ const apiHeaders = {
24502
+ 'X-Appwrite-Project': this.client.config.project,
24503
+ 'content-type': 'application/json',
24504
+ accept: 'application/json',
24505
+ };
24506
+ return this.client.call('post', uri, apiHeaders, payload);
24507
+ }
24508
+ getProjectKey(paramsOrFirst, ...rest) {
24509
+ let params;
24510
+ if (paramsOrFirst &&
24511
+ typeof paramsOrFirst === 'object' &&
24512
+ !Array.isArray(paramsOrFirst)) {
24513
+ params = (paramsOrFirst || {});
24514
+ }
24515
+ else {
24516
+ params = {
24517
+ projectId: paramsOrFirst,
24518
+ keyId: rest[0],
24519
+ };
24520
+ }
24521
+ const projectId = params.projectId;
24522
+ const keyId = params.keyId;
24523
+ if (typeof projectId === 'undefined' || projectId === '') {
24524
+ throw new AppwriteException('Missing required parameter: "projectId"');
24525
+ }
24526
+ if (typeof keyId === 'undefined' || keyId === '') {
24527
+ throw new AppwriteException('Missing required parameter: "keyId"');
24528
+ }
24529
+ const apiPath = '/organization/projects/{projectId}/keys/{keyId}'
24530
+ .replace('{projectId}', encodeURIComponent(String(projectId)))
24531
+ .replace('{keyId}', encodeURIComponent(String(keyId)));
24532
+ const payload = {};
24533
+ const uri = new URL(this.client.config.endpoint + apiPath);
24534
+ const apiHeaders = {
24535
+ 'X-Appwrite-Project': this.client.config.project,
24536
+ accept: 'application/json',
24537
+ };
24538
+ return this.client.call('get', uri, apiHeaders, payload);
24539
+ }
24540
+ updateProjectKey(paramsOrFirst, ...rest) {
24541
+ let params;
24542
+ if (paramsOrFirst &&
24543
+ typeof paramsOrFirst === 'object' &&
24544
+ !Array.isArray(paramsOrFirst)) {
24545
+ params = (paramsOrFirst || {});
24546
+ }
24547
+ else {
24548
+ params = {
24549
+ projectId: paramsOrFirst,
24550
+ keyId: rest[0],
24551
+ name: rest[1],
24552
+ scopes: rest[2],
24553
+ expire: rest[3],
24554
+ };
24555
+ }
24556
+ const projectId = params.projectId;
24557
+ const keyId = params.keyId;
24558
+ const name = params.name;
24559
+ const scopes = params.scopes;
24560
+ const expire = params.expire;
24561
+ if (typeof projectId === 'undefined' || projectId === '') {
24562
+ throw new AppwriteException('Missing required parameter: "projectId"');
24563
+ }
24564
+ if (typeof keyId === 'undefined' || keyId === '') {
24565
+ throw new AppwriteException('Missing required parameter: "keyId"');
24566
+ }
24567
+ if (typeof name === 'undefined') {
24568
+ throw new AppwriteException('Missing required parameter: "name"');
24569
+ }
24570
+ if (typeof scopes === 'undefined') {
24571
+ throw new AppwriteException('Missing required parameter: "scopes"');
24572
+ }
24573
+ const apiPath = '/organization/projects/{projectId}/keys/{keyId}'
24574
+ .replace('{projectId}', encodeURIComponent(String(projectId)))
24575
+ .replace('{keyId}', encodeURIComponent(String(keyId)));
24576
+ const payload = {};
24577
+ if (typeof name !== 'undefined') {
24578
+ payload['name'] = name;
24579
+ }
24580
+ if (typeof scopes !== 'undefined') {
24581
+ payload['scopes'] = scopes;
24582
+ }
24583
+ if (typeof expire !== 'undefined') {
24584
+ payload['expire'] = expire;
24585
+ }
24586
+ const uri = new URL(this.client.config.endpoint + apiPath);
24587
+ const apiHeaders = {
24588
+ 'X-Appwrite-Project': this.client.config.project,
24589
+ 'content-type': 'application/json',
24590
+ accept: 'application/json',
24591
+ };
24592
+ return this.client.call('put', uri, apiHeaders, payload);
24593
+ }
24594
+ deleteProjectKey(paramsOrFirst, ...rest) {
24595
+ let params;
24596
+ if (paramsOrFirst &&
24597
+ typeof paramsOrFirst === 'object' &&
24598
+ !Array.isArray(paramsOrFirst)) {
24599
+ params = (paramsOrFirst || {});
24600
+ }
24601
+ else {
24602
+ params = {
24603
+ projectId: paramsOrFirst,
24604
+ keyId: rest[0],
24605
+ };
24606
+ }
24607
+ const projectId = params.projectId;
24608
+ const keyId = params.keyId;
24609
+ if (typeof projectId === 'undefined' || projectId === '') {
24610
+ throw new AppwriteException('Missing required parameter: "projectId"');
24611
+ }
24612
+ if (typeof keyId === 'undefined' || keyId === '') {
24613
+ throw new AppwriteException('Missing required parameter: "keyId"');
24614
+ }
24615
+ const apiPath = '/organization/projects/{projectId}/keys/{keyId}'
24616
+ .replace('{projectId}', encodeURIComponent(String(projectId)))
24617
+ .replace('{keyId}', encodeURIComponent(String(keyId)));
24618
+ const payload = {};
24619
+ const uri = new URL(this.client.config.endpoint + apiPath);
24620
+ const apiHeaders = {
24621
+ 'X-Appwrite-Project': this.client.config.project,
24622
+ 'content-type': 'application/json',
24623
+ accept: 'application/json',
24624
+ };
24625
+ return this.client.call('delete', uri, apiHeaders, payload);
24626
+ }
24177
24627
  }
24178
24628
 
24179
24629
  class Organizations {
@@ -24932,6 +25382,31 @@ class Organizations {
24932
25382
  };
24933
25383
  return this.client.call('get', uri, apiHeaders, payload);
24934
25384
  }
25385
+ getEstimation(paramsOrFirst) {
25386
+ let params;
25387
+ if (paramsOrFirst &&
25388
+ typeof paramsOrFirst === 'object' &&
25389
+ !Array.isArray(paramsOrFirst)) {
25390
+ params = (paramsOrFirst || {});
25391
+ }
25392
+ else {
25393
+ params = {
25394
+ organizationId: paramsOrFirst,
25395
+ };
25396
+ }
25397
+ const organizationId = params.organizationId;
25398
+ if (typeof organizationId === 'undefined' || organizationId === '') {
25399
+ throw new AppwriteException('Missing required parameter: "organizationId"');
25400
+ }
25401
+ const apiPath = '/organizations/{organizationId}/estimations'.replace('{organizationId}', encodeURIComponent(String(organizationId)));
25402
+ const payload = {};
25403
+ const uri = new URL(this.client.config.endpoint + apiPath);
25404
+ const apiHeaders = {
25405
+ 'X-Appwrite-Project': this.client.config.project,
25406
+ accept: 'application/json',
25407
+ };
25408
+ return this.client.call('get', uri, apiHeaders, payload);
25409
+ }
24935
25410
  estimationDeleteOrganization(paramsOrFirst) {
24936
25411
  let params;
24937
25412
  if (paramsOrFirst &&
@@ -25503,32 +25978,6 @@ class Organizations {
25503
25978
  };
25504
25979
  return this.client.call('patch', uri, apiHeaders, payload);
25505
25980
  }
25506
- cancelDowngrade(paramsOrFirst) {
25507
- let params;
25508
- if (paramsOrFirst &&
25509
- typeof paramsOrFirst === 'object' &&
25510
- !Array.isArray(paramsOrFirst)) {
25511
- params = (paramsOrFirst || {});
25512
- }
25513
- else {
25514
- params = {
25515
- organizationId: paramsOrFirst,
25516
- };
25517
- }
25518
- const organizationId = params.organizationId;
25519
- if (typeof organizationId === 'undefined' || organizationId === '') {
25520
- throw new AppwriteException('Missing required parameter: "organizationId"');
25521
- }
25522
- const apiPath = '/organizations/{organizationId}/plan/cancel'.replace('{organizationId}', encodeURIComponent(String(organizationId)));
25523
- const payload = {};
25524
- const uri = new URL(this.client.config.endpoint + apiPath);
25525
- const apiHeaders = {
25526
- 'X-Appwrite-Project': this.client.config.project,
25527
- 'content-type': 'application/json',
25528
- accept: 'application/json',
25529
- };
25530
- return this.client.call('patch', uri, apiHeaders, payload);
25531
- }
25532
25981
  createPlanEstimation(paramsOrFirst, ...rest) {
25533
25982
  let params;
25534
25983
  if (paramsOrFirst &&
@@ -28082,14 +28531,18 @@ class Project {
28082
28531
  keyId: rest[0],
28083
28532
  teamId: rest[1],
28084
28533
  p8File: rest[2],
28085
- enabled: rest[3],
28534
+ nativeClientIds: rest[3],
28535
+ enabled: rest[4],
28536
+ nativeEnabled: rest[5],
28086
28537
  };
28087
28538
  }
28088
28539
  const serviceId = params.serviceId;
28089
28540
  const keyId = params.keyId;
28090
28541
  const teamId = params.teamId;
28091
28542
  const p8File = params.p8File;
28543
+ const nativeClientIds = params.nativeClientIds;
28092
28544
  const enabled = params.enabled;
28545
+ const nativeEnabled = params.nativeEnabled;
28093
28546
  const apiPath = '/project/oauth2/apple';
28094
28547
  const payload = {};
28095
28548
  if (typeof serviceId !== 'undefined') {
@@ -28104,9 +28557,15 @@ class Project {
28104
28557
  if (typeof p8File !== 'undefined') {
28105
28558
  payload['p8File'] = p8File;
28106
28559
  }
28560
+ if (typeof nativeClientIds !== 'undefined') {
28561
+ payload['nativeClientIds'] = nativeClientIds;
28562
+ }
28107
28563
  if (typeof enabled !== 'undefined') {
28108
28564
  payload['enabled'] = enabled;
28109
28565
  }
28566
+ if (typeof nativeEnabled !== 'undefined') {
28567
+ payload['nativeEnabled'] = nativeEnabled;
28568
+ }
28110
28569
  const uri = new URL(this.client.config.endpoint + apiPath);
28111
28570
  const apiHeaders = {
28112
28571
  'X-Appwrite-Project': this.client.config.project,
@@ -28814,13 +29273,17 @@ class Project {
28814
29273
  clientId: paramsOrFirst,
28815
29274
  clientSecret: rest[0],
28816
29275
  prompt: rest[1],
28817
- enabled: rest[2],
29276
+ nativeClientIds: rest[2],
29277
+ enabled: rest[3],
29278
+ nativeEnabled: rest[4],
28818
29279
  };
28819
29280
  }
28820
29281
  const clientId = params.clientId;
28821
29282
  const clientSecret = params.clientSecret;
28822
29283
  const prompt = params.prompt;
29284
+ const nativeClientIds = params.nativeClientIds;
28823
29285
  const enabled = params.enabled;
29286
+ const nativeEnabled = params.nativeEnabled;
28824
29287
  const apiPath = '/project/oauth2/google';
28825
29288
  const payload = {};
28826
29289
  if (typeof clientId !== 'undefined') {
@@ -28832,9 +29295,15 @@ class Project {
28832
29295
  if (typeof prompt !== 'undefined') {
28833
29296
  payload['prompt'] = prompt;
28834
29297
  }
29298
+ if (typeof nativeClientIds !== 'undefined') {
29299
+ payload['nativeClientIds'] = nativeClientIds;
29300
+ }
28835
29301
  if (typeof enabled !== 'undefined') {
28836
29302
  payload['enabled'] = enabled;
28837
29303
  }
29304
+ if (typeof nativeEnabled !== 'undefined') {
29305
+ payload['nativeEnabled'] = nativeEnabled;
29306
+ }
28838
29307
  const uri = new URL(this.client.config.endpoint + apiPath);
28839
29308
  const apiHeaders = {
28840
29309
  'X-Appwrite-Project': this.client.config.project,
@@ -30768,6 +31237,43 @@ class Project {
30768
31237
  };
30769
31238
  return this.client.call('patch', uri, apiHeaders, payload);
30770
31239
  }
31240
+ updatePasswordPwnedPolicy(paramsOrFirst, ...rest) {
31241
+ let params;
31242
+ if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
31243
+ (paramsOrFirst &&
31244
+ typeof paramsOrFirst === 'object' &&
31245
+ !Array.isArray(paramsOrFirst))) {
31246
+ params = (paramsOrFirst || {});
31247
+ }
31248
+ else {
31249
+ params = {
31250
+ enabled: paramsOrFirst,
31251
+ sessions: rest[0],
31252
+ users: rest[1],
31253
+ };
31254
+ }
31255
+ const enabled = params.enabled;
31256
+ const sessions = params.sessions;
31257
+ const users = params.users;
31258
+ const apiPath = '/project/policies/password-pwned';
31259
+ const payload = {};
31260
+ if (typeof enabled !== 'undefined') {
31261
+ payload['enabled'] = enabled;
31262
+ }
31263
+ if (typeof sessions !== 'undefined') {
31264
+ payload['sessions'] = sessions;
31265
+ }
31266
+ if (typeof users !== 'undefined') {
31267
+ payload['users'] = users;
31268
+ }
31269
+ const uri = new URL(this.client.config.endpoint + apiPath);
31270
+ const apiHeaders = {
31271
+ 'X-Appwrite-Project': this.client.config.project,
31272
+ 'content-type': 'application/json',
31273
+ accept: 'application/json',
31274
+ };
31275
+ return this.client.call('patch', uri, apiHeaders, payload);
31276
+ }
30771
31277
  updatePasswordStrengthPolicy(paramsOrFirst, ...rest) {
30772
31278
  let params;
30773
31279
  if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
@@ -31291,47 +31797,6 @@ class Project {
31291
31797
  };
31292
31798
  return this.client.call('get', uri, apiHeaders, payload);
31293
31799
  }
31294
- getUsage(paramsOrFirst, ...rest) {
31295
- let params;
31296
- if (paramsOrFirst &&
31297
- typeof paramsOrFirst === 'object' &&
31298
- !Array.isArray(paramsOrFirst)) {
31299
- params = (paramsOrFirst || {});
31300
- }
31301
- else {
31302
- params = {
31303
- startDate: paramsOrFirst,
31304
- endDate: rest[0],
31305
- period: rest[1],
31306
- };
31307
- }
31308
- const startDate = params.startDate;
31309
- const endDate = params.endDate;
31310
- const period = params.period;
31311
- if (typeof startDate === 'undefined') {
31312
- throw new AppwriteException('Missing required parameter: "startDate"');
31313
- }
31314
- if (typeof endDate === 'undefined') {
31315
- throw new AppwriteException('Missing required parameter: "endDate"');
31316
- }
31317
- const apiPath = '/project/usage';
31318
- const payload = {};
31319
- if (typeof startDate !== 'undefined') {
31320
- payload['startDate'] = startDate;
31321
- }
31322
- if (typeof endDate !== 'undefined') {
31323
- payload['endDate'] = endDate;
31324
- }
31325
- if (typeof period !== 'undefined') {
31326
- payload['period'] = period;
31327
- }
31328
- const uri = new URL(this.client.config.endpoint + apiPath);
31329
- const apiHeaders = {
31330
- 'X-Appwrite-Project': this.client.config.project,
31331
- accept: 'application/json',
31332
- };
31333
- return this.client.call('get', uri, apiHeaders, payload);
31334
- }
31335
31800
  listVariables(paramsOrFirst, ...rest) {
31336
31801
  let params;
31337
31802
  if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
@@ -31718,150 +32183,6 @@ class Projects {
31718
32183
  };
31719
32184
  return this.client.call('patch', uri, apiHeaders, payload);
31720
32185
  }
31721
- listDevKeys(paramsOrFirst, ...rest) {
31722
- let params;
31723
- if (paramsOrFirst &&
31724
- typeof paramsOrFirst === 'object' &&
31725
- !Array.isArray(paramsOrFirst)) {
31726
- params = (paramsOrFirst || {});
31727
- }
31728
- else {
31729
- params = {
31730
- projectId: paramsOrFirst,
31731
- queries: rest[0],
31732
- };
31733
- }
31734
- const projectId = params.projectId;
31735
- const queries = params.queries;
31736
- if (typeof projectId === 'undefined' || projectId === '') {
31737
- throw new AppwriteException('Missing required parameter: "projectId"');
31738
- }
31739
- const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
31740
- const payload = {};
31741
- if (typeof queries !== 'undefined') {
31742
- payload['queries'] = queries;
31743
- }
31744
- const uri = new URL(this.client.config.endpoint + apiPath);
31745
- const apiHeaders = {
31746
- 'X-Appwrite-Project': this.client.config.project,
31747
- accept: 'application/json',
31748
- };
31749
- return this.client.call('get', uri, apiHeaders, payload);
31750
- }
31751
- getDevKey(paramsOrFirst, ...rest) {
31752
- let params;
31753
- if (paramsOrFirst &&
31754
- typeof paramsOrFirst === 'object' &&
31755
- !Array.isArray(paramsOrFirst)) {
31756
- params = (paramsOrFirst || {});
31757
- }
31758
- else {
31759
- params = {
31760
- projectId: paramsOrFirst,
31761
- keyId: rest[0],
31762
- };
31763
- }
31764
- const projectId = params.projectId;
31765
- const keyId = params.keyId;
31766
- if (typeof projectId === 'undefined' || projectId === '') {
31767
- throw new AppwriteException('Missing required parameter: "projectId"');
31768
- }
31769
- if (typeof keyId === 'undefined' || keyId === '') {
31770
- throw new AppwriteException('Missing required parameter: "keyId"');
31771
- }
31772
- const apiPath = '/projects/{projectId}/dev-keys/{keyId}'
31773
- .replace('{projectId}', encodeURIComponent(String(projectId)))
31774
- .replace('{keyId}', encodeURIComponent(String(keyId)));
31775
- const payload = {};
31776
- const uri = new URL(this.client.config.endpoint + apiPath);
31777
- const apiHeaders = {
31778
- 'X-Appwrite-Project': this.client.config.project,
31779
- accept: 'application/json',
31780
- };
31781
- return this.client.call('get', uri, apiHeaders, payload);
31782
- }
31783
- updateDevKey(paramsOrFirst, ...rest) {
31784
- let params;
31785
- if (paramsOrFirst &&
31786
- typeof paramsOrFirst === 'object' &&
31787
- !Array.isArray(paramsOrFirst)) {
31788
- params = (paramsOrFirst || {});
31789
- }
31790
- else {
31791
- params = {
31792
- projectId: paramsOrFirst,
31793
- keyId: rest[0],
31794
- name: rest[1],
31795
- expire: rest[2],
31796
- };
31797
- }
31798
- const projectId = params.projectId;
31799
- const keyId = params.keyId;
31800
- const name = params.name;
31801
- const expire = params.expire;
31802
- if (typeof projectId === 'undefined' || projectId === '') {
31803
- throw new AppwriteException('Missing required parameter: "projectId"');
31804
- }
31805
- if (typeof keyId === 'undefined' || keyId === '') {
31806
- throw new AppwriteException('Missing required parameter: "keyId"');
31807
- }
31808
- if (typeof name === 'undefined') {
31809
- throw new AppwriteException('Missing required parameter: "name"');
31810
- }
31811
- if (typeof expire === 'undefined') {
31812
- throw new AppwriteException('Missing required parameter: "expire"');
31813
- }
31814
- const apiPath = '/projects/{projectId}/dev-keys/{keyId}'
31815
- .replace('{projectId}', encodeURIComponent(String(projectId)))
31816
- .replace('{keyId}', encodeURIComponent(String(keyId)));
31817
- const payload = {};
31818
- if (typeof name !== 'undefined') {
31819
- payload['name'] = name;
31820
- }
31821
- if (typeof expire !== 'undefined') {
31822
- payload['expire'] = expire;
31823
- }
31824
- const uri = new URL(this.client.config.endpoint + apiPath);
31825
- const apiHeaders = {
31826
- 'X-Appwrite-Project': this.client.config.project,
31827
- 'content-type': 'application/json',
31828
- accept: 'application/json',
31829
- };
31830
- return this.client.call('put', uri, apiHeaders, payload);
31831
- }
31832
- deleteDevKey(paramsOrFirst, ...rest) {
31833
- let params;
31834
- if (paramsOrFirst &&
31835
- typeof paramsOrFirst === 'object' &&
31836
- !Array.isArray(paramsOrFirst)) {
31837
- params = (paramsOrFirst || {});
31838
- }
31839
- else {
31840
- params = {
31841
- projectId: paramsOrFirst,
31842
- keyId: rest[0],
31843
- };
31844
- }
31845
- const projectId = params.projectId;
31846
- const keyId = params.keyId;
31847
- if (typeof projectId === 'undefined' || projectId === '') {
31848
- throw new AppwriteException('Missing required parameter: "projectId"');
31849
- }
31850
- if (typeof keyId === 'undefined' || keyId === '') {
31851
- throw new AppwriteException('Missing required parameter: "keyId"');
31852
- }
31853
- const apiPath = '/projects/{projectId}/dev-keys/{keyId}'
31854
- .replace('{projectId}', encodeURIComponent(String(projectId)))
31855
- .replace('{keyId}', encodeURIComponent(String(keyId)));
31856
- const payload = {};
31857
- const uri = new URL(this.client.config.endpoint + apiPath);
31858
- const apiHeaders = {
31859
- 'X-Appwrite-Project': this.client.config.project,
31860
- 'content-type': 'application/json',
31861
- accept: 'application/json',
31862
- };
31863
- return this.client.call('delete', uri, apiHeaders, payload);
31864
- }
31865
32186
  listSchedules(paramsOrFirst, ...rest) {
31866
32187
  let params;
31867
32188
  if (paramsOrFirst &&
@@ -38873,41 +39194,6 @@ class Teams {
38873
39194
  };
38874
39195
  return this.client.call('delete', uri, apiHeaders, payload);
38875
39196
  }
38876
- listLogs(paramsOrFirst, ...rest) {
38877
- let params;
38878
- if (paramsOrFirst &&
38879
- typeof paramsOrFirst === 'object' &&
38880
- !Array.isArray(paramsOrFirst)) {
38881
- params = (paramsOrFirst || {});
38882
- }
38883
- else {
38884
- params = {
38885
- teamId: paramsOrFirst,
38886
- queries: rest[0],
38887
- total: rest[1],
38888
- };
38889
- }
38890
- const teamId = params.teamId;
38891
- const queries = params.queries;
38892
- const total = params.total;
38893
- if (typeof teamId === 'undefined' || teamId === '') {
38894
- throw new AppwriteException('Missing required parameter: "teamId"');
38895
- }
38896
- const apiPath = '/teams/{teamId}/logs'.replace('{teamId}', encodeURIComponent(String(teamId)));
38897
- const payload = {};
38898
- if (typeof queries !== 'undefined') {
38899
- payload['queries'] = queries;
38900
- }
38901
- if (typeof total !== 'undefined') {
38902
- payload['total'] = total;
38903
- }
38904
- const uri = new URL(this.client.config.endpoint + apiPath);
38905
- const apiHeaders = {
38906
- 'X-Appwrite-Project': this.client.config.project,
38907
- accept: 'application/json',
38908
- };
38909
- return this.client.call('get', uri, apiHeaders, payload);
38910
- }
38911
39197
  listMemberships(paramsOrFirst, ...rest) {
38912
39198
  let params;
38913
39199
  if (paramsOrFirst &&
@@ -40355,41 +40641,6 @@ class Users {
40355
40641
  };
40356
40642
  return this.client.call('put', uri, apiHeaders, payload);
40357
40643
  }
40358
- listLogs(paramsOrFirst, ...rest) {
40359
- let params;
40360
- if (paramsOrFirst &&
40361
- typeof paramsOrFirst === 'object' &&
40362
- !Array.isArray(paramsOrFirst)) {
40363
- params = (paramsOrFirst || {});
40364
- }
40365
- else {
40366
- params = {
40367
- userId: paramsOrFirst,
40368
- queries: rest[0],
40369
- total: rest[1],
40370
- };
40371
- }
40372
- const userId = params.userId;
40373
- const queries = params.queries;
40374
- const total = params.total;
40375
- if (typeof userId === 'undefined' || userId === '') {
40376
- throw new AppwriteException('Missing required parameter: "userId"');
40377
- }
40378
- const apiPath = '/users/{userId}/logs'.replace('{userId}', encodeURIComponent(String(userId)));
40379
- const payload = {};
40380
- if (typeof queries !== 'undefined') {
40381
- payload['queries'] = queries;
40382
- }
40383
- if (typeof total !== 'undefined') {
40384
- payload['total'] = total;
40385
- }
40386
- const uri = new URL(this.client.config.endpoint + apiPath);
40387
- const apiHeaders = {
40388
- 'X-Appwrite-Project': this.client.config.project,
40389
- accept: 'application/json',
40390
- };
40391
- return this.client.call('get', uri, apiHeaders, payload);
40392
- }
40393
40644
  listMemberships(paramsOrFirst, ...rest) {
40394
40645
  let params;
40395
40646
  if (paramsOrFirst &&
@@ -45589,6 +45840,12 @@ var AuthenticationFactor;
45589
45840
  AuthenticationFactor["Custom"] = "custom";
45590
45841
  })(AuthenticationFactor || (AuthenticationFactor = {}));
45591
45842
 
45843
+ var IdTokenProvider;
45844
+ (function (IdTokenProvider) {
45845
+ IdTokenProvider["Apple"] = "apple";
45846
+ IdTokenProvider["Google"] = "google";
45847
+ })(IdTokenProvider || (IdTokenProvider = {}));
45848
+
45592
45849
  var OAuthProvider;
45593
45850
  (function (OAuthProvider) {
45594
45851
  OAuthProvider["Amazon"] = "amazon";
@@ -46387,7 +46644,6 @@ var QuerySuggestionResource;
46387
46644
  QuerySuggestionResource["Schedules"] = "schedules";
46388
46645
  QuerySuggestionResource["Platforms"] = "platforms";
46389
46646
  QuerySuggestionResource["Keys"] = "keys";
46390
- QuerySuggestionResource["DevKeys"] = "devkeys";
46391
46647
  QuerySuggestionResource["Webhooks"] = "webhooks";
46392
46648
  QuerySuggestionResource["Notifications"] = "notifications";
46393
46649
  QuerySuggestionResource["Certificates"] = "certificates";
@@ -46410,6 +46666,7 @@ var QuerySuggestionResource;
46410
46666
  QuerySuggestionResource["Buckets"] = "buckets";
46411
46667
  QuerySuggestionResource["Providers"] = "providers";
46412
46668
  QuerySuggestionResource["Messages"] = "messages";
46669
+ QuerySuggestionResource["AppwritePushLedger"] = "appwritepushledger";
46413
46670
  QuerySuggestionResource["Topics"] = "topics";
46414
46671
  QuerySuggestionResource["Subscribers"] = "subscribers";
46415
46672
  QuerySuggestionResource["Targets"] = "targets";
@@ -46452,13 +46709,11 @@ var QuerySuggestionResource;
46452
46709
  QuerySuggestionResource["Functions"] = "functions";
46453
46710
  QuerySuggestionResource["Sites"] = "sites";
46454
46711
  QuerySuggestionResource["Deployments"] = "deployments";
46455
- QuerySuggestionResource["Executions"] = "executions";
46456
46712
  QuerySuggestionResource["Variables"] = "variables";
46457
46713
  QuerySuggestionResource["Migrations"] = "migrations";
46458
46714
  QuerySuggestionResource["ResourceTokens"] = "resourcetokens";
46459
46715
  QuerySuggestionResource["Transactions"] = "transactions";
46460
46716
  QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
46461
- QuerySuggestionResource["Stats"] = "stats";
46462
46717
  QuerySuggestionResource["DedicatedDatabases"] = "dedicateddatabases";
46463
46718
  QuerySuggestionResource["DedicatedDatabaseConfigs"] = "dedicateddatabaseconfigs";
46464
46719
  QuerySuggestionResource["DedicatedDatabaseRuntimes"] = "dedicateddatabaseruntimes";
@@ -46477,6 +46732,7 @@ var ProjectEmailTemplateId;
46477
46732
  ProjectEmailTemplateId["MfaChallenge"] = "mfaChallenge";
46478
46733
  ProjectEmailTemplateId["SessionAlert"] = "sessionAlert";
46479
46734
  ProjectEmailTemplateId["OtpSession"] = "otpSession";
46735
+ ProjectEmailTemplateId["OtpVerification"] = "otpVerification";
46480
46736
  })(ProjectEmailTemplateId || (ProjectEmailTemplateId = {}));
46481
46737
 
46482
46738
  var ProjectEmailTemplateLocale;
@@ -46875,6 +47131,7 @@ var ProjectKeyScopes;
46875
47131
  ProjectKeyScopes["ReportsWrite"] = "reports.write";
46876
47132
  ProjectKeyScopes["PresencesRead"] = "presences.read";
46877
47133
  ProjectKeyScopes["PresencesWrite"] = "presences.write";
47134
+ ProjectKeyScopes["DedicatedDatabasesExecute"] = "dedicatedDatabases.execute";
46878
47135
  ProjectKeyScopes["BackupsPoliciesRead"] = "backups.policies.read";
46879
47136
  ProjectKeyScopes["BackupsPoliciesWrite"] = "backups.policies.write";
46880
47137
  ProjectKeyScopes["ArchivesRead"] = "archives.read";
@@ -46979,7 +47236,6 @@ var CacheDatabase;
46979
47236
  (function (CacheDatabase) {
46980
47237
  CacheDatabase["Console"] = "console";
46981
47238
  CacheDatabase["Project"] = "project";
46982
- CacheDatabase["Logs"] = "logs";
46983
47239
  })(CacheDatabase || (CacheDatabase = {}));
46984
47240
 
46985
47241
  var MessagePriority;
@@ -47093,10 +47349,8 @@ var OrganizationKeyScopes;
47093
47349
  (function (OrganizationKeyScopes) {
47094
47350
  OrganizationKeyScopes["ProjectsRead"] = "projects.read";
47095
47351
  OrganizationKeyScopes["ProjectsWrite"] = "projects.write";
47096
- OrganizationKeyScopes["DevKeysRead"] = "devKeys.read";
47097
- OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
47098
- OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
47099
- OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
47352
+ OrganizationKeyScopes["OrganizationProjectsKeysRead"] = "organization.projects.keys.read";
47353
+ OrganizationKeyScopes["OrganizationProjectsKeysWrite"] = "organization.projects.keys.write";
47100
47354
  OrganizationKeyScopes["OrganizationInstallationsRead"] = "organization.installations.read";
47101
47355
  OrganizationKeyScopes["OrganizationInstallationsWrite"] = "organization.installations.write";
47102
47356
  OrganizationKeyScopes["OrganizationMembershipsRead"] = "organization.memberships.read";
@@ -47209,6 +47463,7 @@ var ProjectPolicyId;
47209
47463
  ProjectPolicyId["Passwordhistory"] = "password-history";
47210
47464
  ProjectPolicyId["Passwordstrength"] = "password-strength";
47211
47465
  ProjectPolicyId["Passwordpersonaldata"] = "password-personal-data";
47466
+ ProjectPolicyId["Passwordpwned"] = "password-pwned";
47212
47467
  ProjectPolicyId["Sessionalert"] = "session-alert";
47213
47468
  ProjectPolicyId["Sessionduration"] = "session-duration";
47214
47469
  ProjectPolicyId["Sessioninvalidation"] = "session-invalidation";
@@ -47258,12 +47513,6 @@ var ProjectSMTPSecure;
47258
47513
  ProjectSMTPSecure["Ssl"] = "ssl";
47259
47514
  })(ProjectSMTPSecure || (ProjectSMTPSecure = {}));
47260
47515
 
47261
- var ProjectUsageRange;
47262
- (function (ProjectUsageRange) {
47263
- ProjectUsageRange["OneHour"] = "1h";
47264
- ProjectUsageRange["OneDay"] = "1d";
47265
- })(ProjectUsageRange || (ProjectUsageRange = {}));
47266
-
47267
47516
  var ScheduleResourceType;
47268
47517
  (function (ScheduleResourceType) {
47269
47518
  ScheduleResourceType["Function"] = "function";
@@ -47312,6 +47561,7 @@ var Framework;
47312
47561
  Framework["Remix"] = "remix";
47313
47562
  Framework["Lynx"] = "lynx";
47314
47563
  Framework["Flutter"] = "flutter";
47564
+ Framework["Jaspr"] = "jaspr";
47315
47565
  Framework["Reactnative"] = "react-native";
47316
47566
  Framework["Vite"] = "vite";
47317
47567
  Framework["Other"] = "other";
@@ -47816,7 +48066,8 @@ var MessageStatus;
47816
48066
 
47817
48067
  var BillingPlanGroup;
47818
48068
  (function (BillingPlanGroup) {
47819
- BillingPlanGroup["Starter"] = "starter";
48069
+ BillingPlanGroup["Free"] = "free";
48070
+ BillingPlanGroup["Start"] = "start";
47820
48071
  BillingPlanGroup["Pro"] = "pro";
47821
48072
  BillingPlanGroup["Scale"] = "scale";
47822
48073
  })(BillingPlanGroup || (BillingPlanGroup = {}));
@@ -47850,5 +48101,5 @@ var WafRuleAction;
47850
48101
  WafRuleAction["Redirect"] = "redirect";
47851
48102
  })(WafRuleAction || (WafRuleAction = {}));
47852
48103
 
47853
- export { Account, AccountKeyScopes, Activities, Adapter, AddonKey, Advisor, Affiliates, Apps, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, BlockMode, BlockResourceType, Browser, BrowserPermission, BrowserTheme, BuildRuntime, CacheDatabase, CacheTarget, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseStatus, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainRegistrationType, DomainSuggestionType, DomainTransferStatusEnum, Domains, EmbeddingModel, Embeddings, ExecutionMethod, ExecutionResourceType, ExecutionStatus, ExecutionTrigger, FirebaseMigrationResource, Flag, Framework, FunctionTemplateUseCase, Functions, Graphql, ID, ImageFormat, ImageGravity, IndexStatus, InvalidationType, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Mongo, Mysql, NHostMigrationResource, Notifications, OAuth2GooglePrompt, OAuth2OidcPrompt, OAuthProvider, Oauth2, OnDuplicate, Operator, OrderBy, Organization, OrganizationKeyScopes, Organizations, PasswordHash, Permission, Platform, PlatformType, Postgresql, Presences, Project, ProjectAuthMethodId, ProjectEmailTemplateId, ProjectEmailTemplateLocale, ProjectKeyScopes, ProjectOAuth2GooglePrompt, ProjectOAuth2OidcPrompt, ProjectOAuthProviderId, ProjectPolicyId, ProjectProtocolId, ProjectSMTPSecure, ProjectServiceId, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RelationMutate, RelationshipType, Role, Runtime, ScheduleResourceType, SiteTemplateUseCase, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Timezone, Tokens, Usage, UsageEventDimension, UsageEventMetric, UsageGaugeDimension, UsageGaugeMetric, UsageInterval, UsageOrderBy, UsageOrderDirection, UsageRange, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Waf, WafRuleAction, Webhooks };
48104
+ export { Account, AccountKeyScopes, Activities, Adapter, AddonKey, Advisor, Affiliates, Apps, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, BlockMode, BlockResourceType, Browser, BrowserPermission, BrowserTheme, BuildRuntime, CacheDatabase, CacheTarget, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseStatus, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainRegistrationType, DomainSuggestionType, DomainTransferStatusEnum, Domains, EmbeddingModel, Embeddings, ExecutionMethod, ExecutionResourceType, ExecutionStatus, ExecutionTrigger, FirebaseMigrationResource, Flag, Framework, FunctionTemplateUseCase, Functions, Graphql, ID, IdTokenProvider, ImageFormat, ImageGravity, IndexStatus, InvalidationType, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Mongo, Mysql, NHostMigrationResource, Notifications, OAuth2GooglePrompt, OAuth2OidcPrompt, OAuthProvider, Oauth2, OnDuplicate, Operator, OrderBy, Organization, OrganizationKeyScopes, Organizations, PasswordHash, Permission, Platform, PlatformType, Postgresql, Presences, Project, ProjectAuthMethodId, ProjectEmailTemplateId, ProjectEmailTemplateLocale, ProjectKeyScopes, ProjectOAuth2GooglePrompt, ProjectOAuth2OidcPrompt, ProjectOAuthProviderId, ProjectPolicyId, ProjectProtocolId, ProjectSMTPSecure, ProjectServiceId, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RelationMutate, RelationshipType, Role, Runtime, ScheduleResourceType, SiteTemplateUseCase, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Timezone, Tokens, Usage, UsageEventDimension, UsageEventMetric, UsageGaugeDimension, UsageGaugeMetric, UsageInterval, UsageOrderBy, UsageOrderDirection, UsageRange, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Waf, WafRuleAction, Webhooks };
47854
48105
  //# sourceMappingURL=sdk.js.map