@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/cjs/sdk.js CHANGED
@@ -653,7 +653,6 @@ class Client {
653
653
  mode: '',
654
654
  cookie: '',
655
655
  session: '',
656
- devkey: '',
657
656
  impersonateuserid: '',
658
657
  impersonateuseremail: '',
659
658
  impersonateuserphone: '',
@@ -668,8 +667,8 @@ class Client {
668
667
  'x-sdk-name': 'Console',
669
668
  'x-sdk-platform': 'console',
670
669
  'x-sdk-language': 'web',
671
- 'x-sdk-version': '16.1.0',
672
- 'X-Appwrite-Response-Format': '2.0.0',
670
+ 'x-sdk-version': '17.0.0',
671
+ 'X-Appwrite-Response-Format': '2.2.0',
673
672
  };
674
673
  this.realtime = {
675
674
  socket: undefined,
@@ -1081,20 +1080,6 @@ class Client {
1081
1080
  this.config.session = value;
1082
1081
  return this;
1083
1082
  }
1084
- /**
1085
- * Set DevKey
1086
- *
1087
- * Your secret dev API key
1088
- *
1089
- * @param value string
1090
- *
1091
- * @return {this}
1092
- */
1093
- setDevKey(value) {
1094
- this.headers['X-Appwrite-Dev-Key'] = value;
1095
- this.config.devkey = value;
1096
- return this;
1097
- }
1098
1083
  /**
1099
1084
  * Set ImpersonateUserId
1100
1085
  *
@@ -2324,37 +2309,6 @@ class Account {
2324
2309
  };
2325
2310
  return this.client.call('delete', uri, apiHeaders, payload);
2326
2311
  }
2327
- listLogs(paramsOrFirst, ...rest) {
2328
- let params;
2329
- if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
2330
- (paramsOrFirst &&
2331
- typeof paramsOrFirst === 'object' &&
2332
- !Array.isArray(paramsOrFirst))) {
2333
- params = (paramsOrFirst || {});
2334
- }
2335
- else {
2336
- params = {
2337
- queries: paramsOrFirst,
2338
- total: rest[0],
2339
- };
2340
- }
2341
- const queries = params.queries;
2342
- const total = params.total;
2343
- const apiPath = '/account/logs';
2344
- const payload = {};
2345
- if (typeof queries !== 'undefined') {
2346
- payload['queries'] = queries;
2347
- }
2348
- if (typeof total !== 'undefined') {
2349
- payload['total'] = total;
2350
- }
2351
- const uri = new URL(this.client.config.endpoint + apiPath);
2352
- const apiHeaders = {
2353
- 'X-Appwrite-Project': this.client.config.project,
2354
- accept: 'application/json',
2355
- };
2356
- return this.client.call('get', uri, apiHeaders, payload);
2357
- }
2358
2312
  updateMFA(paramsOrFirst) {
2359
2313
  let params;
2360
2314
  if (paramsOrFirst &&
@@ -3361,6 +3315,69 @@ class Account {
3361
3315
  };
3362
3316
  return this.client.call('post', uri, apiHeaders, payload);
3363
3317
  }
3318
+ createIdTokenSession(paramsOrFirst, ...rest) {
3319
+ let params;
3320
+ if (paramsOrFirst &&
3321
+ typeof paramsOrFirst === 'object' &&
3322
+ !Array.isArray(paramsOrFirst) &&
3323
+ ('provider' in paramsOrFirst ||
3324
+ 'idToken' in paramsOrFirst ||
3325
+ 'nonce' in paramsOrFirst ||
3326
+ 'accessToken' in paramsOrFirst ||
3327
+ 'accessTokenExpiry' in paramsOrFirst ||
3328
+ 'name' in paramsOrFirst)) {
3329
+ params = (paramsOrFirst || {});
3330
+ }
3331
+ else {
3332
+ params = {
3333
+ provider: paramsOrFirst,
3334
+ idToken: rest[0],
3335
+ nonce: rest[1],
3336
+ accessToken: rest[2],
3337
+ accessTokenExpiry: rest[3],
3338
+ name: rest[4],
3339
+ };
3340
+ }
3341
+ const provider = params.provider;
3342
+ const idToken = params.idToken;
3343
+ const nonce = params.nonce;
3344
+ const accessToken = params.accessToken;
3345
+ const accessTokenExpiry = params.accessTokenExpiry;
3346
+ const name = params.name;
3347
+ if (typeof provider === 'undefined') {
3348
+ throw new AppwriteException('Missing required parameter: "provider"');
3349
+ }
3350
+ if (typeof idToken === 'undefined') {
3351
+ throw new AppwriteException('Missing required parameter: "idToken"');
3352
+ }
3353
+ const apiPath = '/account/sessions/id-token';
3354
+ const payload = {};
3355
+ if (typeof provider !== 'undefined') {
3356
+ payload['provider'] = provider;
3357
+ }
3358
+ if (typeof idToken !== 'undefined') {
3359
+ payload['idToken'] = idToken;
3360
+ }
3361
+ if (typeof nonce !== 'undefined') {
3362
+ payload['nonce'] = nonce;
3363
+ }
3364
+ if (typeof accessToken !== 'undefined') {
3365
+ payload['accessToken'] = accessToken;
3366
+ }
3367
+ if (typeof accessTokenExpiry !== 'undefined') {
3368
+ payload['accessTokenExpiry'] = accessTokenExpiry;
3369
+ }
3370
+ if (typeof name !== 'undefined') {
3371
+ payload['name'] = name;
3372
+ }
3373
+ const uri = new URL(this.client.config.endpoint + apiPath);
3374
+ const apiHeaders = {
3375
+ 'X-Appwrite-Project': this.client.config.project,
3376
+ 'content-type': 'application/json',
3377
+ accept: 'application/json',
3378
+ };
3379
+ return this.client.call('post', uri, apiHeaders, payload);
3380
+ }
3364
3381
  updateMagicURLSession(paramsOrFirst, ...rest) {
3365
3382
  let params;
3366
3383
  if (paramsOrFirst &&
@@ -4026,6 +4043,70 @@ class Account {
4026
4043
  };
4027
4044
  return this.client.call('put', uri, apiHeaders, payload);
4028
4045
  }
4046
+ createEmailVerificationOTP(paramsOrFirst) {
4047
+ let params;
4048
+ if (typeof paramsOrFirst === 'undefined' ||
4049
+ (paramsOrFirst &&
4050
+ typeof paramsOrFirst === 'object' &&
4051
+ !Array.isArray(paramsOrFirst))) {
4052
+ params = (paramsOrFirst || {});
4053
+ }
4054
+ else {
4055
+ params = {
4056
+ phrase: paramsOrFirst,
4057
+ };
4058
+ }
4059
+ const phrase = params.phrase;
4060
+ const apiPath = '/account/verifications/email/otp';
4061
+ const payload = {};
4062
+ if (typeof phrase !== 'undefined') {
4063
+ payload['phrase'] = phrase;
4064
+ }
4065
+ const uri = new URL(this.client.config.endpoint + apiPath);
4066
+ const apiHeaders = {
4067
+ 'X-Appwrite-Project': this.client.config.project,
4068
+ 'content-type': 'application/json',
4069
+ accept: 'application/json',
4070
+ };
4071
+ return this.client.call('post', uri, apiHeaders, payload);
4072
+ }
4073
+ updateEmailVerificationOTP(paramsOrFirst, ...rest) {
4074
+ let params;
4075
+ if (paramsOrFirst &&
4076
+ typeof paramsOrFirst === 'object' &&
4077
+ !Array.isArray(paramsOrFirst)) {
4078
+ params = (paramsOrFirst || {});
4079
+ }
4080
+ else {
4081
+ params = {
4082
+ userId: paramsOrFirst,
4083
+ secret: rest[0],
4084
+ };
4085
+ }
4086
+ const userId = params.userId;
4087
+ const secret = params.secret;
4088
+ if (typeof userId === 'undefined') {
4089
+ throw new AppwriteException('Missing required parameter: "userId"');
4090
+ }
4091
+ if (typeof secret === 'undefined') {
4092
+ throw new AppwriteException('Missing required parameter: "secret"');
4093
+ }
4094
+ const apiPath = '/account/verifications/email/otp';
4095
+ const payload = {};
4096
+ if (typeof userId !== 'undefined') {
4097
+ payload['userId'] = userId;
4098
+ }
4099
+ if (typeof secret !== 'undefined') {
4100
+ payload['secret'] = secret;
4101
+ }
4102
+ const uri = new URL(this.client.config.endpoint + apiPath);
4103
+ const apiHeaders = {
4104
+ 'X-Appwrite-Project': this.client.config.project,
4105
+ 'content-type': 'application/json',
4106
+ accept: 'application/json',
4107
+ };
4108
+ return this.client.call('put', uri, apiHeaders, payload);
4109
+ }
4029
4110
  /**
4030
4111
  * 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.
4031
4112
  *
@@ -17089,6 +17170,104 @@ class Messaging {
17089
17170
  };
17090
17171
  return this.client.call('patch', uri, apiHeaders, payload);
17091
17172
  }
17173
+ createAppwriteProvider(paramsOrFirst, ...rest) {
17174
+ let params;
17175
+ if (paramsOrFirst &&
17176
+ typeof paramsOrFirst === 'object' &&
17177
+ !Array.isArray(paramsOrFirst)) {
17178
+ params = (paramsOrFirst || {});
17179
+ }
17180
+ else {
17181
+ params = {
17182
+ providerId: paramsOrFirst,
17183
+ name: rest[0],
17184
+ enabled: rest[1],
17185
+ qos: rest[2],
17186
+ expiry: rest[3],
17187
+ };
17188
+ }
17189
+ const providerId = params.providerId;
17190
+ const name = params.name;
17191
+ const enabled = params.enabled;
17192
+ const qos = params.qos;
17193
+ const expiry = params.expiry;
17194
+ if (typeof providerId === 'undefined') {
17195
+ throw new AppwriteException('Missing required parameter: "providerId"');
17196
+ }
17197
+ if (typeof name === 'undefined') {
17198
+ throw new AppwriteException('Missing required parameter: "name"');
17199
+ }
17200
+ const apiPath = '/messaging/providers/appwrite';
17201
+ const payload = {};
17202
+ if (typeof providerId !== 'undefined') {
17203
+ payload['providerId'] = providerId;
17204
+ }
17205
+ if (typeof name !== 'undefined') {
17206
+ payload['name'] = name;
17207
+ }
17208
+ if (typeof enabled !== 'undefined') {
17209
+ payload['enabled'] = enabled;
17210
+ }
17211
+ if (typeof qos !== 'undefined') {
17212
+ payload['qos'] = qos;
17213
+ }
17214
+ if (typeof expiry !== 'undefined') {
17215
+ payload['expiry'] = expiry;
17216
+ }
17217
+ const uri = new URL(this.client.config.endpoint + apiPath);
17218
+ const apiHeaders = {
17219
+ 'X-Appwrite-Project': this.client.config.project,
17220
+ 'content-type': 'application/json',
17221
+ accept: 'application/json',
17222
+ };
17223
+ return this.client.call('post', uri, apiHeaders, payload);
17224
+ }
17225
+ updateAppwriteProvider(paramsOrFirst, ...rest) {
17226
+ let params;
17227
+ if (paramsOrFirst &&
17228
+ typeof paramsOrFirst === 'object' &&
17229
+ !Array.isArray(paramsOrFirst)) {
17230
+ params = (paramsOrFirst || {});
17231
+ }
17232
+ else {
17233
+ params = {
17234
+ providerId: paramsOrFirst,
17235
+ name: rest[0],
17236
+ enabled: rest[1],
17237
+ qos: rest[2],
17238
+ expiry: rest[3],
17239
+ };
17240
+ }
17241
+ const providerId = params.providerId;
17242
+ const name = params.name;
17243
+ const enabled = params.enabled;
17244
+ const qos = params.qos;
17245
+ const expiry = params.expiry;
17246
+ if (typeof providerId === 'undefined' || providerId === '') {
17247
+ throw new AppwriteException('Missing required parameter: "providerId"');
17248
+ }
17249
+ const apiPath = '/messaging/providers/appwrite/{providerId}'.replace('{providerId}', encodeURIComponent(String(providerId)));
17250
+ const payload = {};
17251
+ if (typeof name !== 'undefined') {
17252
+ payload['name'] = name;
17253
+ }
17254
+ if (typeof enabled !== 'undefined') {
17255
+ payload['enabled'] = enabled;
17256
+ }
17257
+ if (typeof qos !== 'undefined') {
17258
+ payload['qos'] = qos;
17259
+ }
17260
+ if (typeof expiry !== 'undefined') {
17261
+ payload['expiry'] = expiry;
17262
+ }
17263
+ const uri = new URL(this.client.config.endpoint + apiPath);
17264
+ const apiHeaders = {
17265
+ 'X-Appwrite-Project': this.client.config.project,
17266
+ 'content-type': 'application/json',
17267
+ accept: 'application/json',
17268
+ };
17269
+ return this.client.call('patch', uri, apiHeaders, payload);
17270
+ }
17092
17271
  createFcmProvider(paramsOrFirst, ...rest) {
17093
17272
  let params;
17094
17273
  if (paramsOrFirst &&
@@ -18838,11 +19017,15 @@ class Messaging {
18838
19017
  topicId: paramsOrFirst,
18839
19018
  name: rest[0],
18840
19019
  subscribe: rest[1],
19020
+ qos: rest[2],
19021
+ expiry: rest[3],
18841
19022
  };
18842
19023
  }
18843
19024
  const topicId = params.topicId;
18844
19025
  const name = params.name;
18845
19026
  const subscribe = params.subscribe;
19027
+ const qos = params.qos;
19028
+ const expiry = params.expiry;
18846
19029
  if (typeof topicId === 'undefined') {
18847
19030
  throw new AppwriteException('Missing required parameter: "topicId"');
18848
19031
  }
@@ -18860,6 +19043,12 @@ class Messaging {
18860
19043
  if (typeof subscribe !== 'undefined') {
18861
19044
  payload['subscribe'] = subscribe;
18862
19045
  }
19046
+ if (typeof qos !== 'undefined') {
19047
+ payload['qos'] = qos;
19048
+ }
19049
+ if (typeof expiry !== 'undefined') {
19050
+ payload['expiry'] = expiry;
19051
+ }
18863
19052
  const uri = new URL(this.client.config.endpoint + apiPath);
18864
19053
  const apiHeaders = {
18865
19054
  'X-Appwrite-Project': this.client.config.project,
@@ -18905,11 +19094,15 @@ class Messaging {
18905
19094
  topicId: paramsOrFirst,
18906
19095
  name: rest[0],
18907
19096
  subscribe: rest[1],
19097
+ qos: rest[2],
19098
+ expiry: rest[3],
18908
19099
  };
18909
19100
  }
18910
19101
  const topicId = params.topicId;
18911
19102
  const name = params.name;
18912
19103
  const subscribe = params.subscribe;
19104
+ const qos = params.qos;
19105
+ const expiry = params.expiry;
18913
19106
  if (typeof topicId === 'undefined' || topicId === '') {
18914
19107
  throw new AppwriteException('Missing required parameter: "topicId"');
18915
19108
  }
@@ -18921,6 +19114,12 @@ class Messaging {
18921
19114
  if (typeof subscribe !== 'undefined') {
18922
19115
  payload['subscribe'] = subscribe;
18923
19116
  }
19117
+ if (typeof qos !== 'undefined') {
19118
+ payload['qos'] = qos;
19119
+ }
19120
+ if (typeof expiry !== 'undefined') {
19121
+ payload['expiry'] = expiry;
19122
+ }
18924
19123
  const uri = new URL(this.client.config.endpoint + apiPath);
18925
19124
  const apiHeaders = {
18926
19125
  'X-Appwrite-Project': this.client.config.project,
@@ -24176,6 +24375,257 @@ class Organization {
24176
24375
  };
24177
24376
  return this.client.call('delete', uri, apiHeaders, payload);
24178
24377
  }
24378
+ listProjectKeys(paramsOrFirst, ...rest) {
24379
+ let params;
24380
+ if (paramsOrFirst &&
24381
+ typeof paramsOrFirst === 'object' &&
24382
+ !Array.isArray(paramsOrFirst)) {
24383
+ params = (paramsOrFirst || {});
24384
+ }
24385
+ else {
24386
+ params = {
24387
+ projectId: paramsOrFirst,
24388
+ queries: rest[0],
24389
+ total: rest[1],
24390
+ };
24391
+ }
24392
+ const projectId = params.projectId;
24393
+ const queries = params.queries;
24394
+ const total = params.total;
24395
+ if (typeof projectId === 'undefined' || projectId === '') {
24396
+ throw new AppwriteException('Missing required parameter: "projectId"');
24397
+ }
24398
+ const apiPath = '/organization/projects/{projectId}/keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
24399
+ const payload = {};
24400
+ if (typeof queries !== 'undefined') {
24401
+ payload['queries'] = queries;
24402
+ }
24403
+ if (typeof total !== 'undefined') {
24404
+ payload['total'] = total;
24405
+ }
24406
+ const uri = new URL(this.client.config.endpoint + apiPath);
24407
+ const apiHeaders = {
24408
+ 'X-Appwrite-Project': this.client.config.project,
24409
+ accept: 'application/json',
24410
+ };
24411
+ return this.client.call('get', uri, apiHeaders, payload);
24412
+ }
24413
+ createProjectKey(paramsOrFirst, ...rest) {
24414
+ let params;
24415
+ if (paramsOrFirst &&
24416
+ typeof paramsOrFirst === 'object' &&
24417
+ !Array.isArray(paramsOrFirst)) {
24418
+ params = (paramsOrFirst || {});
24419
+ }
24420
+ else {
24421
+ params = {
24422
+ projectId: paramsOrFirst,
24423
+ keyId: rest[0],
24424
+ name: rest[1],
24425
+ scopes: rest[2],
24426
+ expire: rest[3],
24427
+ };
24428
+ }
24429
+ const projectId = params.projectId;
24430
+ const keyId = params.keyId;
24431
+ const name = params.name;
24432
+ const scopes = params.scopes;
24433
+ const expire = params.expire;
24434
+ if (typeof projectId === 'undefined' || projectId === '') {
24435
+ throw new AppwriteException('Missing required parameter: "projectId"');
24436
+ }
24437
+ if (typeof keyId === 'undefined') {
24438
+ throw new AppwriteException('Missing required parameter: "keyId"');
24439
+ }
24440
+ if (typeof name === 'undefined') {
24441
+ throw new AppwriteException('Missing required parameter: "name"');
24442
+ }
24443
+ if (typeof scopes === 'undefined') {
24444
+ throw new AppwriteException('Missing required parameter: "scopes"');
24445
+ }
24446
+ const apiPath = '/organization/projects/{projectId}/keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
24447
+ const payload = {};
24448
+ if (typeof keyId !== 'undefined') {
24449
+ payload['keyId'] = keyId;
24450
+ }
24451
+ if (typeof name !== 'undefined') {
24452
+ payload['name'] = name;
24453
+ }
24454
+ if (typeof scopes !== 'undefined') {
24455
+ payload['scopes'] = scopes;
24456
+ }
24457
+ if (typeof expire !== 'undefined') {
24458
+ payload['expire'] = expire;
24459
+ }
24460
+ const uri = new URL(this.client.config.endpoint + apiPath);
24461
+ const apiHeaders = {
24462
+ 'X-Appwrite-Project': this.client.config.project,
24463
+ 'content-type': 'application/json',
24464
+ accept: 'application/json',
24465
+ };
24466
+ return this.client.call('post', uri, apiHeaders, payload);
24467
+ }
24468
+ createEphemeralProjectKey(paramsOrFirst, ...rest) {
24469
+ let params;
24470
+ if (paramsOrFirst &&
24471
+ typeof paramsOrFirst === 'object' &&
24472
+ !Array.isArray(paramsOrFirst)) {
24473
+ params = (paramsOrFirst || {});
24474
+ }
24475
+ else {
24476
+ params = {
24477
+ projectId: paramsOrFirst,
24478
+ scopes: rest[0],
24479
+ duration: rest[1],
24480
+ };
24481
+ }
24482
+ const projectId = params.projectId;
24483
+ const scopes = params.scopes;
24484
+ const duration = params.duration;
24485
+ if (typeof projectId === 'undefined' || projectId === '') {
24486
+ throw new AppwriteException('Missing required parameter: "projectId"');
24487
+ }
24488
+ if (typeof scopes === 'undefined') {
24489
+ throw new AppwriteException('Missing required parameter: "scopes"');
24490
+ }
24491
+ if (typeof duration === 'undefined') {
24492
+ throw new AppwriteException('Missing required parameter: "duration"');
24493
+ }
24494
+ const apiPath = '/organization/projects/{projectId}/keys/ephemeral'.replace('{projectId}', encodeURIComponent(String(projectId)));
24495
+ const payload = {};
24496
+ if (typeof scopes !== 'undefined') {
24497
+ payload['scopes'] = scopes;
24498
+ }
24499
+ if (typeof duration !== 'undefined') {
24500
+ payload['duration'] = duration;
24501
+ }
24502
+ const uri = new URL(this.client.config.endpoint + apiPath);
24503
+ const apiHeaders = {
24504
+ 'X-Appwrite-Project': this.client.config.project,
24505
+ 'content-type': 'application/json',
24506
+ accept: 'application/json',
24507
+ };
24508
+ return this.client.call('post', uri, apiHeaders, payload);
24509
+ }
24510
+ getProjectKey(paramsOrFirst, ...rest) {
24511
+ let params;
24512
+ if (paramsOrFirst &&
24513
+ typeof paramsOrFirst === 'object' &&
24514
+ !Array.isArray(paramsOrFirst)) {
24515
+ params = (paramsOrFirst || {});
24516
+ }
24517
+ else {
24518
+ params = {
24519
+ projectId: paramsOrFirst,
24520
+ keyId: rest[0],
24521
+ };
24522
+ }
24523
+ const projectId = params.projectId;
24524
+ const keyId = params.keyId;
24525
+ if (typeof projectId === 'undefined' || projectId === '') {
24526
+ throw new AppwriteException('Missing required parameter: "projectId"');
24527
+ }
24528
+ if (typeof keyId === 'undefined' || keyId === '') {
24529
+ throw new AppwriteException('Missing required parameter: "keyId"');
24530
+ }
24531
+ const apiPath = '/organization/projects/{projectId}/keys/{keyId}'
24532
+ .replace('{projectId}', encodeURIComponent(String(projectId)))
24533
+ .replace('{keyId}', encodeURIComponent(String(keyId)));
24534
+ const payload = {};
24535
+ const uri = new URL(this.client.config.endpoint + apiPath);
24536
+ const apiHeaders = {
24537
+ 'X-Appwrite-Project': this.client.config.project,
24538
+ accept: 'application/json',
24539
+ };
24540
+ return this.client.call('get', uri, apiHeaders, payload);
24541
+ }
24542
+ updateProjectKey(paramsOrFirst, ...rest) {
24543
+ let params;
24544
+ if (paramsOrFirst &&
24545
+ typeof paramsOrFirst === 'object' &&
24546
+ !Array.isArray(paramsOrFirst)) {
24547
+ params = (paramsOrFirst || {});
24548
+ }
24549
+ else {
24550
+ params = {
24551
+ projectId: paramsOrFirst,
24552
+ keyId: rest[0],
24553
+ name: rest[1],
24554
+ scopes: rest[2],
24555
+ expire: rest[3],
24556
+ };
24557
+ }
24558
+ const projectId = params.projectId;
24559
+ const keyId = params.keyId;
24560
+ const name = params.name;
24561
+ const scopes = params.scopes;
24562
+ const expire = params.expire;
24563
+ if (typeof projectId === 'undefined' || projectId === '') {
24564
+ throw new AppwriteException('Missing required parameter: "projectId"');
24565
+ }
24566
+ if (typeof keyId === 'undefined' || keyId === '') {
24567
+ throw new AppwriteException('Missing required parameter: "keyId"');
24568
+ }
24569
+ if (typeof name === 'undefined') {
24570
+ throw new AppwriteException('Missing required parameter: "name"');
24571
+ }
24572
+ if (typeof scopes === 'undefined') {
24573
+ throw new AppwriteException('Missing required parameter: "scopes"');
24574
+ }
24575
+ const apiPath = '/organization/projects/{projectId}/keys/{keyId}'
24576
+ .replace('{projectId}', encodeURIComponent(String(projectId)))
24577
+ .replace('{keyId}', encodeURIComponent(String(keyId)));
24578
+ const payload = {};
24579
+ if (typeof name !== 'undefined') {
24580
+ payload['name'] = name;
24581
+ }
24582
+ if (typeof scopes !== 'undefined') {
24583
+ payload['scopes'] = scopes;
24584
+ }
24585
+ if (typeof expire !== 'undefined') {
24586
+ payload['expire'] = expire;
24587
+ }
24588
+ const uri = new URL(this.client.config.endpoint + apiPath);
24589
+ const apiHeaders = {
24590
+ 'X-Appwrite-Project': this.client.config.project,
24591
+ 'content-type': 'application/json',
24592
+ accept: 'application/json',
24593
+ };
24594
+ return this.client.call('put', uri, apiHeaders, payload);
24595
+ }
24596
+ deleteProjectKey(paramsOrFirst, ...rest) {
24597
+ let params;
24598
+ if (paramsOrFirst &&
24599
+ typeof paramsOrFirst === 'object' &&
24600
+ !Array.isArray(paramsOrFirst)) {
24601
+ params = (paramsOrFirst || {});
24602
+ }
24603
+ else {
24604
+ params = {
24605
+ projectId: paramsOrFirst,
24606
+ keyId: rest[0],
24607
+ };
24608
+ }
24609
+ const projectId = params.projectId;
24610
+ const keyId = params.keyId;
24611
+ if (typeof projectId === 'undefined' || projectId === '') {
24612
+ throw new AppwriteException('Missing required parameter: "projectId"');
24613
+ }
24614
+ if (typeof keyId === 'undefined' || keyId === '') {
24615
+ throw new AppwriteException('Missing required parameter: "keyId"');
24616
+ }
24617
+ const apiPath = '/organization/projects/{projectId}/keys/{keyId}'
24618
+ .replace('{projectId}', encodeURIComponent(String(projectId)))
24619
+ .replace('{keyId}', encodeURIComponent(String(keyId)));
24620
+ const payload = {};
24621
+ const uri = new URL(this.client.config.endpoint + apiPath);
24622
+ const apiHeaders = {
24623
+ 'X-Appwrite-Project': this.client.config.project,
24624
+ 'content-type': 'application/json',
24625
+ accept: 'application/json',
24626
+ };
24627
+ return this.client.call('delete', uri, apiHeaders, payload);
24628
+ }
24179
24629
  }
24180
24630
 
24181
24631
  class Organizations {
@@ -24934,6 +25384,31 @@ class Organizations {
24934
25384
  };
24935
25385
  return this.client.call('get', uri, apiHeaders, payload);
24936
25386
  }
25387
+ getEstimation(paramsOrFirst) {
25388
+ let params;
25389
+ if (paramsOrFirst &&
25390
+ typeof paramsOrFirst === 'object' &&
25391
+ !Array.isArray(paramsOrFirst)) {
25392
+ params = (paramsOrFirst || {});
25393
+ }
25394
+ else {
25395
+ params = {
25396
+ organizationId: paramsOrFirst,
25397
+ };
25398
+ }
25399
+ const organizationId = params.organizationId;
25400
+ if (typeof organizationId === 'undefined' || organizationId === '') {
25401
+ throw new AppwriteException('Missing required parameter: "organizationId"');
25402
+ }
25403
+ const apiPath = '/organizations/{organizationId}/estimations'.replace('{organizationId}', encodeURIComponent(String(organizationId)));
25404
+ const payload = {};
25405
+ const uri = new URL(this.client.config.endpoint + apiPath);
25406
+ const apiHeaders = {
25407
+ 'X-Appwrite-Project': this.client.config.project,
25408
+ accept: 'application/json',
25409
+ };
25410
+ return this.client.call('get', uri, apiHeaders, payload);
25411
+ }
24937
25412
  estimationDeleteOrganization(paramsOrFirst) {
24938
25413
  let params;
24939
25414
  if (paramsOrFirst &&
@@ -25505,32 +25980,6 @@ class Organizations {
25505
25980
  };
25506
25981
  return this.client.call('patch', uri, apiHeaders, payload);
25507
25982
  }
25508
- cancelDowngrade(paramsOrFirst) {
25509
- let params;
25510
- if (paramsOrFirst &&
25511
- typeof paramsOrFirst === 'object' &&
25512
- !Array.isArray(paramsOrFirst)) {
25513
- params = (paramsOrFirst || {});
25514
- }
25515
- else {
25516
- params = {
25517
- organizationId: paramsOrFirst,
25518
- };
25519
- }
25520
- const organizationId = params.organizationId;
25521
- if (typeof organizationId === 'undefined' || organizationId === '') {
25522
- throw new AppwriteException('Missing required parameter: "organizationId"');
25523
- }
25524
- const apiPath = '/organizations/{organizationId}/plan/cancel'.replace('{organizationId}', encodeURIComponent(String(organizationId)));
25525
- const payload = {};
25526
- const uri = new URL(this.client.config.endpoint + apiPath);
25527
- const apiHeaders = {
25528
- 'X-Appwrite-Project': this.client.config.project,
25529
- 'content-type': 'application/json',
25530
- accept: 'application/json',
25531
- };
25532
- return this.client.call('patch', uri, apiHeaders, payload);
25533
- }
25534
25983
  createPlanEstimation(paramsOrFirst, ...rest) {
25535
25984
  let params;
25536
25985
  if (paramsOrFirst &&
@@ -28084,14 +28533,18 @@ class Project {
28084
28533
  keyId: rest[0],
28085
28534
  teamId: rest[1],
28086
28535
  p8File: rest[2],
28087
- enabled: rest[3],
28536
+ nativeClientIds: rest[3],
28537
+ enabled: rest[4],
28538
+ nativeEnabled: rest[5],
28088
28539
  };
28089
28540
  }
28090
28541
  const serviceId = params.serviceId;
28091
28542
  const keyId = params.keyId;
28092
28543
  const teamId = params.teamId;
28093
28544
  const p8File = params.p8File;
28545
+ const nativeClientIds = params.nativeClientIds;
28094
28546
  const enabled = params.enabled;
28547
+ const nativeEnabled = params.nativeEnabled;
28095
28548
  const apiPath = '/project/oauth2/apple';
28096
28549
  const payload = {};
28097
28550
  if (typeof serviceId !== 'undefined') {
@@ -28106,9 +28559,15 @@ class Project {
28106
28559
  if (typeof p8File !== 'undefined') {
28107
28560
  payload['p8File'] = p8File;
28108
28561
  }
28562
+ if (typeof nativeClientIds !== 'undefined') {
28563
+ payload['nativeClientIds'] = nativeClientIds;
28564
+ }
28109
28565
  if (typeof enabled !== 'undefined') {
28110
28566
  payload['enabled'] = enabled;
28111
28567
  }
28568
+ if (typeof nativeEnabled !== 'undefined') {
28569
+ payload['nativeEnabled'] = nativeEnabled;
28570
+ }
28112
28571
  const uri = new URL(this.client.config.endpoint + apiPath);
28113
28572
  const apiHeaders = {
28114
28573
  'X-Appwrite-Project': this.client.config.project,
@@ -28816,13 +29275,17 @@ class Project {
28816
29275
  clientId: paramsOrFirst,
28817
29276
  clientSecret: rest[0],
28818
29277
  prompt: rest[1],
28819
- enabled: rest[2],
29278
+ nativeClientIds: rest[2],
29279
+ enabled: rest[3],
29280
+ nativeEnabled: rest[4],
28820
29281
  };
28821
29282
  }
28822
29283
  const clientId = params.clientId;
28823
29284
  const clientSecret = params.clientSecret;
28824
29285
  const prompt = params.prompt;
29286
+ const nativeClientIds = params.nativeClientIds;
28825
29287
  const enabled = params.enabled;
29288
+ const nativeEnabled = params.nativeEnabled;
28826
29289
  const apiPath = '/project/oauth2/google';
28827
29290
  const payload = {};
28828
29291
  if (typeof clientId !== 'undefined') {
@@ -28834,9 +29297,15 @@ class Project {
28834
29297
  if (typeof prompt !== 'undefined') {
28835
29298
  payload['prompt'] = prompt;
28836
29299
  }
29300
+ if (typeof nativeClientIds !== 'undefined') {
29301
+ payload['nativeClientIds'] = nativeClientIds;
29302
+ }
28837
29303
  if (typeof enabled !== 'undefined') {
28838
29304
  payload['enabled'] = enabled;
28839
29305
  }
29306
+ if (typeof nativeEnabled !== 'undefined') {
29307
+ payload['nativeEnabled'] = nativeEnabled;
29308
+ }
28840
29309
  const uri = new URL(this.client.config.endpoint + apiPath);
28841
29310
  const apiHeaders = {
28842
29311
  'X-Appwrite-Project': this.client.config.project,
@@ -30770,6 +31239,43 @@ class Project {
30770
31239
  };
30771
31240
  return this.client.call('patch', uri, apiHeaders, payload);
30772
31241
  }
31242
+ updatePasswordPwnedPolicy(paramsOrFirst, ...rest) {
31243
+ let params;
31244
+ if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
31245
+ (paramsOrFirst &&
31246
+ typeof paramsOrFirst === 'object' &&
31247
+ !Array.isArray(paramsOrFirst))) {
31248
+ params = (paramsOrFirst || {});
31249
+ }
31250
+ else {
31251
+ params = {
31252
+ enabled: paramsOrFirst,
31253
+ sessions: rest[0],
31254
+ users: rest[1],
31255
+ };
31256
+ }
31257
+ const enabled = params.enabled;
31258
+ const sessions = params.sessions;
31259
+ const users = params.users;
31260
+ const apiPath = '/project/policies/password-pwned';
31261
+ const payload = {};
31262
+ if (typeof enabled !== 'undefined') {
31263
+ payload['enabled'] = enabled;
31264
+ }
31265
+ if (typeof sessions !== 'undefined') {
31266
+ payload['sessions'] = sessions;
31267
+ }
31268
+ if (typeof users !== 'undefined') {
31269
+ payload['users'] = users;
31270
+ }
31271
+ const uri = new URL(this.client.config.endpoint + apiPath);
31272
+ const apiHeaders = {
31273
+ 'X-Appwrite-Project': this.client.config.project,
31274
+ 'content-type': 'application/json',
31275
+ accept: 'application/json',
31276
+ };
31277
+ return this.client.call('patch', uri, apiHeaders, payload);
31278
+ }
30773
31279
  updatePasswordStrengthPolicy(paramsOrFirst, ...rest) {
30774
31280
  let params;
30775
31281
  if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
@@ -31293,47 +31799,6 @@ class Project {
31293
31799
  };
31294
31800
  return this.client.call('get', uri, apiHeaders, payload);
31295
31801
  }
31296
- getUsage(paramsOrFirst, ...rest) {
31297
- let params;
31298
- if (paramsOrFirst &&
31299
- typeof paramsOrFirst === 'object' &&
31300
- !Array.isArray(paramsOrFirst)) {
31301
- params = (paramsOrFirst || {});
31302
- }
31303
- else {
31304
- params = {
31305
- startDate: paramsOrFirst,
31306
- endDate: rest[0],
31307
- period: rest[1],
31308
- };
31309
- }
31310
- const startDate = params.startDate;
31311
- const endDate = params.endDate;
31312
- const period = params.period;
31313
- if (typeof startDate === 'undefined') {
31314
- throw new AppwriteException('Missing required parameter: "startDate"');
31315
- }
31316
- if (typeof endDate === 'undefined') {
31317
- throw new AppwriteException('Missing required parameter: "endDate"');
31318
- }
31319
- const apiPath = '/project/usage';
31320
- const payload = {};
31321
- if (typeof startDate !== 'undefined') {
31322
- payload['startDate'] = startDate;
31323
- }
31324
- if (typeof endDate !== 'undefined') {
31325
- payload['endDate'] = endDate;
31326
- }
31327
- if (typeof period !== 'undefined') {
31328
- payload['period'] = period;
31329
- }
31330
- const uri = new URL(this.client.config.endpoint + apiPath);
31331
- const apiHeaders = {
31332
- 'X-Appwrite-Project': this.client.config.project,
31333
- accept: 'application/json',
31334
- };
31335
- return this.client.call('get', uri, apiHeaders, payload);
31336
- }
31337
31802
  listVariables(paramsOrFirst, ...rest) {
31338
31803
  let params;
31339
31804
  if ((typeof paramsOrFirst === 'undefined' && rest.length === 0) ||
@@ -31720,150 +32185,6 @@ class Projects {
31720
32185
  };
31721
32186
  return this.client.call('patch', uri, apiHeaders, payload);
31722
32187
  }
31723
- listDevKeys(paramsOrFirst, ...rest) {
31724
- let params;
31725
- if (paramsOrFirst &&
31726
- typeof paramsOrFirst === 'object' &&
31727
- !Array.isArray(paramsOrFirst)) {
31728
- params = (paramsOrFirst || {});
31729
- }
31730
- else {
31731
- params = {
31732
- projectId: paramsOrFirst,
31733
- queries: rest[0],
31734
- };
31735
- }
31736
- const projectId = params.projectId;
31737
- const queries = params.queries;
31738
- if (typeof projectId === 'undefined' || projectId === '') {
31739
- throw new AppwriteException('Missing required parameter: "projectId"');
31740
- }
31741
- const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
31742
- const payload = {};
31743
- if (typeof queries !== 'undefined') {
31744
- payload['queries'] = queries;
31745
- }
31746
- const uri = new URL(this.client.config.endpoint + apiPath);
31747
- const apiHeaders = {
31748
- 'X-Appwrite-Project': this.client.config.project,
31749
- accept: 'application/json',
31750
- };
31751
- return this.client.call('get', uri, apiHeaders, payload);
31752
- }
31753
- getDevKey(paramsOrFirst, ...rest) {
31754
- let params;
31755
- if (paramsOrFirst &&
31756
- typeof paramsOrFirst === 'object' &&
31757
- !Array.isArray(paramsOrFirst)) {
31758
- params = (paramsOrFirst || {});
31759
- }
31760
- else {
31761
- params = {
31762
- projectId: paramsOrFirst,
31763
- keyId: rest[0],
31764
- };
31765
- }
31766
- const projectId = params.projectId;
31767
- const keyId = params.keyId;
31768
- if (typeof projectId === 'undefined' || projectId === '') {
31769
- throw new AppwriteException('Missing required parameter: "projectId"');
31770
- }
31771
- if (typeof keyId === 'undefined' || keyId === '') {
31772
- throw new AppwriteException('Missing required parameter: "keyId"');
31773
- }
31774
- const apiPath = '/projects/{projectId}/dev-keys/{keyId}'
31775
- .replace('{projectId}', encodeURIComponent(String(projectId)))
31776
- .replace('{keyId}', encodeURIComponent(String(keyId)));
31777
- const payload = {};
31778
- const uri = new URL(this.client.config.endpoint + apiPath);
31779
- const apiHeaders = {
31780
- 'X-Appwrite-Project': this.client.config.project,
31781
- accept: 'application/json',
31782
- };
31783
- return this.client.call('get', uri, apiHeaders, payload);
31784
- }
31785
- updateDevKey(paramsOrFirst, ...rest) {
31786
- let params;
31787
- if (paramsOrFirst &&
31788
- typeof paramsOrFirst === 'object' &&
31789
- !Array.isArray(paramsOrFirst)) {
31790
- params = (paramsOrFirst || {});
31791
- }
31792
- else {
31793
- params = {
31794
- projectId: paramsOrFirst,
31795
- keyId: rest[0],
31796
- name: rest[1],
31797
- expire: rest[2],
31798
- };
31799
- }
31800
- const projectId = params.projectId;
31801
- const keyId = params.keyId;
31802
- const name = params.name;
31803
- const expire = params.expire;
31804
- if (typeof projectId === 'undefined' || projectId === '') {
31805
- throw new AppwriteException('Missing required parameter: "projectId"');
31806
- }
31807
- if (typeof keyId === 'undefined' || keyId === '') {
31808
- throw new AppwriteException('Missing required parameter: "keyId"');
31809
- }
31810
- if (typeof name === 'undefined') {
31811
- throw new AppwriteException('Missing required parameter: "name"');
31812
- }
31813
- if (typeof expire === 'undefined') {
31814
- throw new AppwriteException('Missing required parameter: "expire"');
31815
- }
31816
- const apiPath = '/projects/{projectId}/dev-keys/{keyId}'
31817
- .replace('{projectId}', encodeURIComponent(String(projectId)))
31818
- .replace('{keyId}', encodeURIComponent(String(keyId)));
31819
- const payload = {};
31820
- if (typeof name !== 'undefined') {
31821
- payload['name'] = name;
31822
- }
31823
- if (typeof expire !== 'undefined') {
31824
- payload['expire'] = expire;
31825
- }
31826
- const uri = new URL(this.client.config.endpoint + apiPath);
31827
- const apiHeaders = {
31828
- 'X-Appwrite-Project': this.client.config.project,
31829
- 'content-type': 'application/json',
31830
- accept: 'application/json',
31831
- };
31832
- return this.client.call('put', uri, apiHeaders, payload);
31833
- }
31834
- deleteDevKey(paramsOrFirst, ...rest) {
31835
- let params;
31836
- if (paramsOrFirst &&
31837
- typeof paramsOrFirst === 'object' &&
31838
- !Array.isArray(paramsOrFirst)) {
31839
- params = (paramsOrFirst || {});
31840
- }
31841
- else {
31842
- params = {
31843
- projectId: paramsOrFirst,
31844
- keyId: rest[0],
31845
- };
31846
- }
31847
- const projectId = params.projectId;
31848
- const keyId = params.keyId;
31849
- if (typeof projectId === 'undefined' || projectId === '') {
31850
- throw new AppwriteException('Missing required parameter: "projectId"');
31851
- }
31852
- if (typeof keyId === 'undefined' || keyId === '') {
31853
- throw new AppwriteException('Missing required parameter: "keyId"');
31854
- }
31855
- const apiPath = '/projects/{projectId}/dev-keys/{keyId}'
31856
- .replace('{projectId}', encodeURIComponent(String(projectId)))
31857
- .replace('{keyId}', encodeURIComponent(String(keyId)));
31858
- const payload = {};
31859
- const uri = new URL(this.client.config.endpoint + apiPath);
31860
- const apiHeaders = {
31861
- 'X-Appwrite-Project': this.client.config.project,
31862
- 'content-type': 'application/json',
31863
- accept: 'application/json',
31864
- };
31865
- return this.client.call('delete', uri, apiHeaders, payload);
31866
- }
31867
32188
  listSchedules(paramsOrFirst, ...rest) {
31868
32189
  let params;
31869
32190
  if (paramsOrFirst &&
@@ -38875,41 +39196,6 @@ class Teams {
38875
39196
  };
38876
39197
  return this.client.call('delete', uri, apiHeaders, payload);
38877
39198
  }
38878
- listLogs(paramsOrFirst, ...rest) {
38879
- let params;
38880
- if (paramsOrFirst &&
38881
- typeof paramsOrFirst === 'object' &&
38882
- !Array.isArray(paramsOrFirst)) {
38883
- params = (paramsOrFirst || {});
38884
- }
38885
- else {
38886
- params = {
38887
- teamId: paramsOrFirst,
38888
- queries: rest[0],
38889
- total: rest[1],
38890
- };
38891
- }
38892
- const teamId = params.teamId;
38893
- const queries = params.queries;
38894
- const total = params.total;
38895
- if (typeof teamId === 'undefined' || teamId === '') {
38896
- throw new AppwriteException('Missing required parameter: "teamId"');
38897
- }
38898
- const apiPath = '/teams/{teamId}/logs'.replace('{teamId}', encodeURIComponent(String(teamId)));
38899
- const payload = {};
38900
- if (typeof queries !== 'undefined') {
38901
- payload['queries'] = queries;
38902
- }
38903
- if (typeof total !== 'undefined') {
38904
- payload['total'] = total;
38905
- }
38906
- const uri = new URL(this.client.config.endpoint + apiPath);
38907
- const apiHeaders = {
38908
- 'X-Appwrite-Project': this.client.config.project,
38909
- accept: 'application/json',
38910
- };
38911
- return this.client.call('get', uri, apiHeaders, payload);
38912
- }
38913
39199
  listMemberships(paramsOrFirst, ...rest) {
38914
39200
  let params;
38915
39201
  if (paramsOrFirst &&
@@ -40357,41 +40643,6 @@ class Users {
40357
40643
  };
40358
40644
  return this.client.call('put', uri, apiHeaders, payload);
40359
40645
  }
40360
- listLogs(paramsOrFirst, ...rest) {
40361
- let params;
40362
- if (paramsOrFirst &&
40363
- typeof paramsOrFirst === 'object' &&
40364
- !Array.isArray(paramsOrFirst)) {
40365
- params = (paramsOrFirst || {});
40366
- }
40367
- else {
40368
- params = {
40369
- userId: paramsOrFirst,
40370
- queries: rest[0],
40371
- total: rest[1],
40372
- };
40373
- }
40374
- const userId = params.userId;
40375
- const queries = params.queries;
40376
- const total = params.total;
40377
- if (typeof userId === 'undefined' || userId === '') {
40378
- throw new AppwriteException('Missing required parameter: "userId"');
40379
- }
40380
- const apiPath = '/users/{userId}/logs'.replace('{userId}', encodeURIComponent(String(userId)));
40381
- const payload = {};
40382
- if (typeof queries !== 'undefined') {
40383
- payload['queries'] = queries;
40384
- }
40385
- if (typeof total !== 'undefined') {
40386
- payload['total'] = total;
40387
- }
40388
- const uri = new URL(this.client.config.endpoint + apiPath);
40389
- const apiHeaders = {
40390
- 'X-Appwrite-Project': this.client.config.project,
40391
- accept: 'application/json',
40392
- };
40393
- return this.client.call('get', uri, apiHeaders, payload);
40394
- }
40395
40646
  listMemberships(paramsOrFirst, ...rest) {
40396
40647
  let params;
40397
40648
  if (paramsOrFirst &&
@@ -45591,6 +45842,12 @@ exports.AuthenticationFactor = void 0;
45591
45842
  AuthenticationFactor["Custom"] = "custom";
45592
45843
  })(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
45593
45844
 
45845
+ exports.IdTokenProvider = void 0;
45846
+ (function (IdTokenProvider) {
45847
+ IdTokenProvider["Apple"] = "apple";
45848
+ IdTokenProvider["Google"] = "google";
45849
+ })(exports.IdTokenProvider || (exports.IdTokenProvider = {}));
45850
+
45594
45851
  exports.OAuthProvider = void 0;
45595
45852
  (function (OAuthProvider) {
45596
45853
  OAuthProvider["Amazon"] = "amazon";
@@ -46389,7 +46646,6 @@ exports.QuerySuggestionResource = void 0;
46389
46646
  QuerySuggestionResource["Schedules"] = "schedules";
46390
46647
  QuerySuggestionResource["Platforms"] = "platforms";
46391
46648
  QuerySuggestionResource["Keys"] = "keys";
46392
- QuerySuggestionResource["DevKeys"] = "devkeys";
46393
46649
  QuerySuggestionResource["Webhooks"] = "webhooks";
46394
46650
  QuerySuggestionResource["Notifications"] = "notifications";
46395
46651
  QuerySuggestionResource["Certificates"] = "certificates";
@@ -46412,6 +46668,7 @@ exports.QuerySuggestionResource = void 0;
46412
46668
  QuerySuggestionResource["Buckets"] = "buckets";
46413
46669
  QuerySuggestionResource["Providers"] = "providers";
46414
46670
  QuerySuggestionResource["Messages"] = "messages";
46671
+ QuerySuggestionResource["AppwritePushLedger"] = "appwritepushledger";
46415
46672
  QuerySuggestionResource["Topics"] = "topics";
46416
46673
  QuerySuggestionResource["Subscribers"] = "subscribers";
46417
46674
  QuerySuggestionResource["Targets"] = "targets";
@@ -46454,13 +46711,11 @@ exports.QuerySuggestionResource = void 0;
46454
46711
  QuerySuggestionResource["Functions"] = "functions";
46455
46712
  QuerySuggestionResource["Sites"] = "sites";
46456
46713
  QuerySuggestionResource["Deployments"] = "deployments";
46457
- QuerySuggestionResource["Executions"] = "executions";
46458
46714
  QuerySuggestionResource["Variables"] = "variables";
46459
46715
  QuerySuggestionResource["Migrations"] = "migrations";
46460
46716
  QuerySuggestionResource["ResourceTokens"] = "resourcetokens";
46461
46717
  QuerySuggestionResource["Transactions"] = "transactions";
46462
46718
  QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
46463
- QuerySuggestionResource["Stats"] = "stats";
46464
46719
  QuerySuggestionResource["DedicatedDatabases"] = "dedicateddatabases";
46465
46720
  QuerySuggestionResource["DedicatedDatabaseConfigs"] = "dedicateddatabaseconfigs";
46466
46721
  QuerySuggestionResource["DedicatedDatabaseRuntimes"] = "dedicateddatabaseruntimes";
@@ -46479,6 +46734,7 @@ exports.ProjectEmailTemplateId = void 0;
46479
46734
  ProjectEmailTemplateId["MfaChallenge"] = "mfaChallenge";
46480
46735
  ProjectEmailTemplateId["SessionAlert"] = "sessionAlert";
46481
46736
  ProjectEmailTemplateId["OtpSession"] = "otpSession";
46737
+ ProjectEmailTemplateId["OtpVerification"] = "otpVerification";
46482
46738
  })(exports.ProjectEmailTemplateId || (exports.ProjectEmailTemplateId = {}));
46483
46739
 
46484
46740
  exports.ProjectEmailTemplateLocale = void 0;
@@ -46877,6 +47133,7 @@ exports.ProjectKeyScopes = void 0;
46877
47133
  ProjectKeyScopes["ReportsWrite"] = "reports.write";
46878
47134
  ProjectKeyScopes["PresencesRead"] = "presences.read";
46879
47135
  ProjectKeyScopes["PresencesWrite"] = "presences.write";
47136
+ ProjectKeyScopes["DedicatedDatabasesExecute"] = "dedicatedDatabases.execute";
46880
47137
  ProjectKeyScopes["BackupsPoliciesRead"] = "backups.policies.read";
46881
47138
  ProjectKeyScopes["BackupsPoliciesWrite"] = "backups.policies.write";
46882
47139
  ProjectKeyScopes["ArchivesRead"] = "archives.read";
@@ -46981,7 +47238,6 @@ exports.CacheDatabase = void 0;
46981
47238
  (function (CacheDatabase) {
46982
47239
  CacheDatabase["Console"] = "console";
46983
47240
  CacheDatabase["Project"] = "project";
46984
- CacheDatabase["Logs"] = "logs";
46985
47241
  })(exports.CacheDatabase || (exports.CacheDatabase = {}));
46986
47242
 
46987
47243
  exports.MessagePriority = void 0;
@@ -47095,10 +47351,8 @@ exports.OrganizationKeyScopes = void 0;
47095
47351
  (function (OrganizationKeyScopes) {
47096
47352
  OrganizationKeyScopes["ProjectsRead"] = "projects.read";
47097
47353
  OrganizationKeyScopes["ProjectsWrite"] = "projects.write";
47098
- OrganizationKeyScopes["DevKeysRead"] = "devKeys.read";
47099
- OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
47100
- OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
47101
- OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
47354
+ OrganizationKeyScopes["OrganizationProjectsKeysRead"] = "organization.projects.keys.read";
47355
+ OrganizationKeyScopes["OrganizationProjectsKeysWrite"] = "organization.projects.keys.write";
47102
47356
  OrganizationKeyScopes["OrganizationInstallationsRead"] = "organization.installations.read";
47103
47357
  OrganizationKeyScopes["OrganizationInstallationsWrite"] = "organization.installations.write";
47104
47358
  OrganizationKeyScopes["OrganizationMembershipsRead"] = "organization.memberships.read";
@@ -47211,6 +47465,7 @@ exports.ProjectPolicyId = void 0;
47211
47465
  ProjectPolicyId["Passwordhistory"] = "password-history";
47212
47466
  ProjectPolicyId["Passwordstrength"] = "password-strength";
47213
47467
  ProjectPolicyId["Passwordpersonaldata"] = "password-personal-data";
47468
+ ProjectPolicyId["Passwordpwned"] = "password-pwned";
47214
47469
  ProjectPolicyId["Sessionalert"] = "session-alert";
47215
47470
  ProjectPolicyId["Sessionduration"] = "session-duration";
47216
47471
  ProjectPolicyId["Sessioninvalidation"] = "session-invalidation";
@@ -47260,12 +47515,6 @@ exports.ProjectSMTPSecure = void 0;
47260
47515
  ProjectSMTPSecure["Ssl"] = "ssl";
47261
47516
  })(exports.ProjectSMTPSecure || (exports.ProjectSMTPSecure = {}));
47262
47517
 
47263
- exports.ProjectUsageRange = void 0;
47264
- (function (ProjectUsageRange) {
47265
- ProjectUsageRange["OneHour"] = "1h";
47266
- ProjectUsageRange["OneDay"] = "1d";
47267
- })(exports.ProjectUsageRange || (exports.ProjectUsageRange = {}));
47268
-
47269
47518
  exports.ScheduleResourceType = void 0;
47270
47519
  (function (ScheduleResourceType) {
47271
47520
  ScheduleResourceType["Function"] = "function";
@@ -47314,6 +47563,7 @@ exports.Framework = void 0;
47314
47563
  Framework["Remix"] = "remix";
47315
47564
  Framework["Lynx"] = "lynx";
47316
47565
  Framework["Flutter"] = "flutter";
47566
+ Framework["Jaspr"] = "jaspr";
47317
47567
  Framework["Reactnative"] = "react-native";
47318
47568
  Framework["Vite"] = "vite";
47319
47569
  Framework["Other"] = "other";
@@ -47818,7 +48068,8 @@ exports.MessageStatus = void 0;
47818
48068
 
47819
48069
  exports.BillingPlanGroup = void 0;
47820
48070
  (function (BillingPlanGroup) {
47821
- BillingPlanGroup["Starter"] = "starter";
48071
+ BillingPlanGroup["Free"] = "free";
48072
+ BillingPlanGroup["Start"] = "start";
47822
48073
  BillingPlanGroup["Pro"] = "pro";
47823
48074
  BillingPlanGroup["Scale"] = "scale";
47824
48075
  })(exports.BillingPlanGroup || (exports.BillingPlanGroup = {}));