@owbase/node 1.0.1 → 2.0.1

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.
Files changed (92) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +3 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +3 -3
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/databases-index-type.d.mts +2 -1
  7. package/dist/enums/databases-index-type.d.ts +2 -1
  8. package/dist/enums/databases-index-type.js +1 -0
  9. package/dist/enums/databases-index-type.js.map +1 -1
  10. package/dist/enums/databases-index-type.mjs +1 -0
  11. package/dist/enums/databases-index-type.mjs.map +1 -1
  12. package/dist/enums/project-policy-id.d.mts +1 -0
  13. package/dist/enums/project-policy-id.d.ts +1 -0
  14. package/dist/enums/project-policy-id.js +1 -0
  15. package/dist/enums/project-policy-id.js.map +1 -1
  16. package/dist/enums/project-policy-id.mjs +1 -0
  17. package/dist/enums/project-policy-id.mjs.map +1 -1
  18. package/dist/enums/tables-db-index-type.d.mts +2 -1
  19. package/dist/enums/tables-db-index-type.d.ts +2 -1
  20. package/dist/enums/tables-db-index-type.js +1 -0
  21. package/dist/enums/tables-db-index-type.js.map +1 -1
  22. package/dist/enums/tables-db-index-type.mjs +1 -0
  23. package/dist/enums/tables-db-index-type.mjs.map +1 -1
  24. package/dist/models.d.mts +236 -3
  25. package/dist/models.d.ts +236 -3
  26. package/dist/services/account.d.mts +32 -0
  27. package/dist/services/account.d.ts +32 -0
  28. package/dist/services/account.js +27 -0
  29. package/dist/services/account.js.map +1 -1
  30. package/dist/services/account.mjs +27 -0
  31. package/dist/services/account.mjs.map +1 -1
  32. package/dist/services/databases.d.mts +211 -47
  33. package/dist/services/databases.d.ts +211 -47
  34. package/dist/services/databases.js +301 -41
  35. package/dist/services/databases.js.map +1 -1
  36. package/dist/services/databases.mjs +301 -41
  37. package/dist/services/databases.mjs.map +1 -1
  38. package/dist/services/functions.d.mts +30 -12
  39. package/dist/services/functions.d.ts +30 -12
  40. package/dist/services/functions.js +34 -4
  41. package/dist/services/functions.js.map +1 -1
  42. package/dist/services/functions.mjs +34 -4
  43. package/dist/services/functions.mjs.map +1 -1
  44. package/dist/services/messaging.d.mts +56 -44
  45. package/dist/services/messaging.d.ts +56 -44
  46. package/dist/services/messaging.js +96 -76
  47. package/dist/services/messaging.js.map +1 -1
  48. package/dist/services/messaging.mjs +96 -76
  49. package/dist/services/messaging.mjs.map +1 -1
  50. package/dist/services/organization.d.mts +4 -1
  51. package/dist/services/organization.d.ts +4 -1
  52. package/dist/services/organization.js +6 -1
  53. package/dist/services/organization.js.map +1 -1
  54. package/dist/services/organization.mjs +6 -1
  55. package/dist/services/organization.mjs.map +1 -1
  56. package/dist/services/project.d.mts +115 -65
  57. package/dist/services/project.d.ts +115 -65
  58. package/dist/services/project.js +138 -77
  59. package/dist/services/project.js.map +1 -1
  60. package/dist/services/project.mjs +138 -77
  61. package/dist/services/project.mjs.map +1 -1
  62. package/dist/services/sites.d.mts +20 -8
  63. package/dist/services/sites.d.ts +20 -8
  64. package/dist/services/sites.js +24 -4
  65. package/dist/services/sites.js.map +1 -1
  66. package/dist/services/sites.mjs +24 -4
  67. package/dist/services/sites.mjs.map +1 -1
  68. package/dist/services/storage.d.mts +16 -4
  69. package/dist/services/storage.d.ts +16 -4
  70. package/dist/services/storage.js +22 -2
  71. package/dist/services/storage.js.map +1 -1
  72. package/dist/services/storage.mjs +22 -2
  73. package/dist/services/storage.mjs.map +1 -1
  74. package/dist/services/tables-db.d.mts +210 -47
  75. package/dist/services/tables-db.d.ts +210 -47
  76. package/dist/services/tables-db.js +296 -41
  77. package/dist/services/tables-db.js.map +1 -1
  78. package/dist/services/tables-db.mjs +296 -41
  79. package/dist/services/tables-db.mjs.map +1 -1
  80. package/dist/services/teams.d.mts +4 -1
  81. package/dist/services/teams.d.ts +4 -1
  82. package/dist/services/teams.js +6 -1
  83. package/dist/services/teams.js.map +1 -1
  84. package/dist/services/teams.mjs +6 -1
  85. package/dist/services/teams.mjs.map +1 -1
  86. package/dist/services/webhooks.d.mts +16 -10
  87. package/dist/services/webhooks.d.ts +16 -10
  88. package/dist/services/webhooks.js +12 -2
  89. package/dist/services/webhooks.js.map +1 -1
  90. package/dist/services/webhooks.mjs +12 -2
  91. package/dist/services/webhooks.mjs.map +1 -1
  92. package/package.json +2 -2
@@ -168,13 +168,15 @@ class Project {
168
168
  keyId: paramsOrFirst,
169
169
  name: rest[0],
170
170
  scopes: rest[1],
171
- expire: rest[2]
171
+ expire: rest[2],
172
+ description: rest[3]
172
173
  };
173
174
  }
174
175
  const keyId = params.keyId;
175
176
  const name = params.name;
176
177
  const scopes = params.scopes;
177
178
  const expire = params.expire;
179
+ const description = params.description;
178
180
  if (typeof keyId === "undefined" || keyId === "") {
179
181
  throw new client.OwbaseException('Missing required parameter: "keyId"');
180
182
  }
@@ -198,6 +200,9 @@ class Project {
198
200
  if (typeof expire !== "undefined") {
199
201
  apiPayload["expire"] = expire;
200
202
  }
203
+ if (typeof description !== "undefined") {
204
+ apiPayload["description"] = description;
205
+ }
201
206
  const uri = new URL(this.client.config.endpoint + apiPath);
202
207
  const apiHeaders = {
203
208
  "X-Owbase-Project": this.client.config.project,
@@ -474,8 +479,8 @@ class Project {
474
479
  keyId: rest[0],
475
480
  teamId: rest[1],
476
481
  p8File: rest[2],
477
- nativeClientIds: rest[3],
478
- enabled: rest[4],
482
+ enabled: rest[3],
483
+ nativeClientIds: rest[4],
479
484
  nativeEnabled: rest[5]
480
485
  };
481
486
  }
@@ -483,8 +488,8 @@ class Project {
483
488
  const keyId = params.keyId;
484
489
  const teamId = params.teamId;
485
490
  const p8File = params.p8File;
486
- const nativeClientIds = params.nativeClientIds;
487
491
  const enabled = params.enabled;
492
+ const nativeClientIds = params.nativeClientIds;
488
493
  const nativeEnabled = params.nativeEnabled;
489
494
  const apiPath = "/project/oauth2/apple";
490
495
  const apiPayload = {};
@@ -500,12 +505,12 @@ class Project {
500
505
  if (typeof p8File !== "undefined") {
501
506
  apiPayload["p8File"] = p8File;
502
507
  }
503
- if (typeof nativeClientIds !== "undefined") {
504
- apiPayload["nativeClientIds"] = nativeClientIds;
505
- }
506
508
  if (typeof enabled !== "undefined") {
507
509
  apiPayload["enabled"] = enabled;
508
510
  }
511
+ if (typeof nativeClientIds !== "undefined") {
512
+ apiPayload["nativeClientIds"] = nativeClientIds;
513
+ }
509
514
  if (typeof nativeEnabled !== "undefined") {
510
515
  apiPayload["nativeEnabled"] = nativeEnabled;
511
516
  }
@@ -526,15 +531,15 @@ class Project {
526
531
  clientId: paramsOrFirst,
527
532
  clientSecret: rest[0],
528
533
  endpoint: rest[1],
529
- prompt: rest[2],
530
- enabled: rest[3]
534
+ enabled: rest[2],
535
+ prompt: rest[3]
531
536
  };
532
537
  }
533
538
  const clientId = params.clientId;
534
539
  const clientSecret = params.clientSecret;
535
540
  const endpoint = params.endpoint;
536
- const prompt = params.prompt;
537
541
  const enabled = params.enabled;
542
+ const prompt = params.prompt;
538
543
  const apiPath = "/project/oauth2/auth0";
539
544
  const apiPayload = {};
540
545
  if (typeof clientId !== "undefined") {
@@ -546,12 +551,12 @@ class Project {
546
551
  if (typeof endpoint !== "undefined") {
547
552
  apiPayload["endpoint"] = endpoint;
548
553
  }
549
- if (typeof prompt !== "undefined") {
550
- apiPayload["prompt"] = prompt;
551
- }
552
554
  if (typeof enabled !== "undefined") {
553
555
  apiPayload["enabled"] = enabled;
554
556
  }
557
+ if (typeof prompt !== "undefined") {
558
+ apiPayload["prompt"] = prompt;
559
+ }
555
560
  const uri = new URL(this.client.config.endpoint + apiPath);
556
561
  const apiHeaders = {
557
562
  "X-Owbase-Project": this.client.config.project,
@@ -804,14 +809,14 @@ class Project {
804
809
  params = {
805
810
  clientId: paramsOrFirst,
806
811
  clientSecret: rest[0],
807
- prompt: rest[1],
808
- enabled: rest[2]
812
+ enabled: rest[1],
813
+ prompt: rest[2]
809
814
  };
810
815
  }
811
816
  const clientId = params.clientId;
812
817
  const clientSecret = params.clientSecret;
813
- const prompt = params.prompt;
814
818
  const enabled = params.enabled;
819
+ const prompt = params.prompt;
815
820
  const apiPath = "/project/oauth2/discord";
816
821
  const apiPayload = {};
817
822
  if (typeof clientId !== "undefined") {
@@ -820,12 +825,12 @@ class Project {
820
825
  if (typeof clientSecret !== "undefined") {
821
826
  apiPayload["clientSecret"] = clientSecret;
822
827
  }
823
- if (typeof prompt !== "undefined") {
824
- apiPayload["prompt"] = prompt;
825
- }
826
828
  if (typeof enabled !== "undefined") {
827
829
  apiPayload["enabled"] = enabled;
828
830
  }
831
+ if (typeof prompt !== "undefined") {
832
+ apiPayload["prompt"] = prompt;
833
+ }
829
834
  const uri = new URL(this.client.config.endpoint + apiPath);
830
835
  const apiHeaders = {
831
836
  "X-Owbase-Project": this.client.config.project,
@@ -1045,14 +1050,14 @@ class Project {
1045
1050
  params = {
1046
1051
  clientId: paramsOrFirst,
1047
1052
  clientSecret: rest[0],
1048
- prompt: rest[1],
1049
- enabled: rest[2]
1053
+ enabled: rest[1],
1054
+ prompt: rest[2]
1050
1055
  };
1051
1056
  }
1052
1057
  const clientId = params.clientId;
1053
1058
  const clientSecret = params.clientSecret;
1054
- const prompt = params.prompt;
1055
1059
  const enabled = params.enabled;
1060
+ const prompt = params.prompt;
1056
1061
  const apiPath = "/project/oauth2/github";
1057
1062
  const apiPayload = {};
1058
1063
  if (typeof clientId !== "undefined") {
@@ -1061,12 +1066,12 @@ class Project {
1061
1066
  if (typeof clientSecret !== "undefined") {
1062
1067
  apiPayload["clientSecret"] = clientSecret;
1063
1068
  }
1064
- if (typeof prompt !== "undefined") {
1065
- apiPayload["prompt"] = prompt;
1066
- }
1067
1069
  if (typeof enabled !== "undefined") {
1068
1070
  apiPayload["enabled"] = enabled;
1069
1071
  }
1072
+ if (typeof prompt !== "undefined") {
1073
+ apiPayload["prompt"] = prompt;
1074
+ }
1070
1075
  const uri = new URL(this.client.config.endpoint + apiPath);
1071
1076
  const apiHeaders = {
1072
1077
  "X-Owbase-Project": this.client.config.project,
@@ -1122,16 +1127,16 @@ class Project {
1122
1127
  clientId: paramsOrFirst,
1123
1128
  clientSecret: rest[0],
1124
1129
  prompt: rest[1],
1125
- nativeClientIds: rest[2],
1126
- enabled: rest[3],
1130
+ enabled: rest[2],
1131
+ nativeClientIds: rest[3],
1127
1132
  nativeEnabled: rest[4]
1128
1133
  };
1129
1134
  }
1130
1135
  const clientId = params.clientId;
1131
1136
  const clientSecret = params.clientSecret;
1132
1137
  const prompt = params.prompt;
1133
- const nativeClientIds = params.nativeClientIds;
1134
1138
  const enabled = params.enabled;
1139
+ const nativeClientIds = params.nativeClientIds;
1135
1140
  const nativeEnabled = params.nativeEnabled;
1136
1141
  const apiPath = "/project/oauth2/google";
1137
1142
  const apiPayload = {};
@@ -1144,12 +1149,12 @@ class Project {
1144
1149
  if (typeof prompt !== "undefined") {
1145
1150
  apiPayload["prompt"] = prompt;
1146
1151
  }
1147
- if (typeof nativeClientIds !== "undefined") {
1148
- apiPayload["nativeClientIds"] = nativeClientIds;
1149
- }
1150
1152
  if (typeof enabled !== "undefined") {
1151
1153
  apiPayload["enabled"] = enabled;
1152
1154
  }
1155
+ if (typeof nativeClientIds !== "undefined") {
1156
+ apiPayload["nativeClientIds"] = nativeClientIds;
1157
+ }
1153
1158
  if (typeof nativeEnabled !== "undefined") {
1154
1159
  apiPayload["nativeEnabled"] = nativeEnabled;
1155
1160
  }
@@ -1202,14 +1207,14 @@ class Project {
1202
1207
  params = {
1203
1208
  clientId: paramsOrFirst,
1204
1209
  clientSecret: rest[0],
1205
- prompt: rest[1],
1206
- enabled: rest[2]
1210
+ enabled: rest[1],
1211
+ prompt: rest[2]
1207
1212
  };
1208
1213
  }
1209
1214
  const clientId = params.clientId;
1210
1215
  const clientSecret = params.clientSecret;
1211
- const prompt = params.prompt;
1212
1216
  const enabled = params.enabled;
1217
+ const prompt = params.prompt;
1213
1218
  const apiPath = "/project/oauth2/kakao";
1214
1219
  const apiPayload = {};
1215
1220
  if (typeof clientId !== "undefined") {
@@ -1218,12 +1223,12 @@ class Project {
1218
1223
  if (typeof clientSecret !== "undefined") {
1219
1224
  apiPayload["clientSecret"] = clientSecret;
1220
1225
  }
1221
- if (typeof prompt !== "undefined") {
1222
- apiPayload["prompt"] = prompt;
1223
- }
1224
1226
  if (typeof enabled !== "undefined") {
1225
1227
  apiPayload["enabled"] = enabled;
1226
1228
  }
1229
+ if (typeof prompt !== "undefined") {
1230
+ apiPayload["prompt"] = prompt;
1231
+ }
1227
1232
  const uri = new URL(this.client.config.endpoint + apiPath);
1228
1233
  const apiHeaders = {
1229
1234
  "X-Owbase-Project": this.client.config.project,
@@ -1350,15 +1355,15 @@ class Project {
1350
1355
  applicationId: paramsOrFirst,
1351
1356
  applicationSecret: rest[0],
1352
1357
  tenant: rest[1],
1353
- prompt: rest[2],
1354
- enabled: rest[3]
1358
+ enabled: rest[2],
1359
+ prompt: rest[3]
1355
1360
  };
1356
1361
  }
1357
1362
  const applicationId = params.applicationId;
1358
1363
  const applicationSecret = params.applicationSecret;
1359
1364
  const tenant = params.tenant;
1360
- const prompt = params.prompt;
1361
1365
  const enabled = params.enabled;
1366
+ const prompt = params.prompt;
1362
1367
  const apiPath = "/project/oauth2/microsoft";
1363
1368
  const apiPayload = {};
1364
1369
  if (typeof applicationId !== "undefined") {
@@ -1370,12 +1375,12 @@ class Project {
1370
1375
  if (typeof tenant !== "undefined") {
1371
1376
  apiPayload["tenant"] = tenant;
1372
1377
  }
1373
- if (typeof prompt !== "undefined") {
1374
- apiPayload["prompt"] = prompt;
1375
- }
1376
1378
  if (typeof enabled !== "undefined") {
1377
1379
  apiPayload["enabled"] = enabled;
1378
1380
  }
1381
+ if (typeof prompt !== "undefined") {
1382
+ apiPayload["prompt"] = prompt;
1383
+ }
1379
1384
  const uri = new URL(this.client.config.endpoint + apiPath);
1380
1385
  const apiHeaders = {
1381
1386
  "X-Owbase-Project": this.client.config.project,
@@ -1490,16 +1495,16 @@ class Project {
1490
1495
  clientSecret: rest[0],
1491
1496
  domain: rest[1],
1492
1497
  authorizationServerId: rest[2],
1493
- prompt: rest[3],
1494
- enabled: rest[4]
1498
+ enabled: rest[3],
1499
+ prompt: rest[4]
1495
1500
  };
1496
1501
  }
1497
1502
  const clientId = params.clientId;
1498
1503
  const clientSecret = params.clientSecret;
1499
1504
  const domain = params.domain;
1500
1505
  const authorizationServerId = params.authorizationServerId;
1501
- const prompt = params.prompt;
1502
1506
  const enabled = params.enabled;
1507
+ const prompt = params.prompt;
1503
1508
  const apiPath = "/project/oauth2/okta";
1504
1509
  const apiPayload = {};
1505
1510
  if (typeof clientId !== "undefined") {
@@ -1514,12 +1519,12 @@ class Project {
1514
1519
  if (typeof authorizationServerId !== "undefined") {
1515
1520
  apiPayload["authorizationServerId"] = authorizationServerId;
1516
1521
  }
1517
- if (typeof prompt !== "undefined") {
1518
- apiPayload["prompt"] = prompt;
1519
- }
1520
1522
  if (typeof enabled !== "undefined") {
1521
1523
  apiPayload["enabled"] = enabled;
1522
1524
  }
1525
+ if (typeof prompt !== "undefined") {
1526
+ apiPayload["prompt"] = prompt;
1527
+ }
1523
1528
  const uri = new URL(this.client.config.endpoint + apiPath);
1524
1529
  const apiHeaders = {
1525
1530
  "X-Owbase-Project": this.client.config.project,
@@ -1668,14 +1673,14 @@ class Project {
1668
1673
  params = {
1669
1674
  customerKey: paramsOrFirst,
1670
1675
  customerSecret: rest[0],
1671
- prompt: rest[1],
1672
- enabled: rest[2]
1676
+ enabled: rest[1],
1677
+ prompt: rest[2]
1673
1678
  };
1674
1679
  }
1675
1680
  const customerKey = params.customerKey;
1676
1681
  const customerSecret = params.customerSecret;
1677
- const prompt = params.prompt;
1678
1682
  const enabled = params.enabled;
1683
+ const prompt = params.prompt;
1679
1684
  const apiPath = "/project/oauth2/salesforce";
1680
1685
  const apiPayload = {};
1681
1686
  if (typeof customerKey !== "undefined") {
@@ -1684,12 +1689,12 @@ class Project {
1684
1689
  if (typeof customerSecret !== "undefined") {
1685
1690
  apiPayload["customerSecret"] = customerSecret;
1686
1691
  }
1687
- if (typeof prompt !== "undefined") {
1688
- apiPayload["prompt"] = prompt;
1689
- }
1690
1692
  if (typeof enabled !== "undefined") {
1691
1693
  apiPayload["enabled"] = enabled;
1692
1694
  }
1695
+ if (typeof prompt !== "undefined") {
1696
+ apiPayload["prompt"] = prompt;
1697
+ }
1693
1698
  const uri = new URL(this.client.config.endpoint + apiPath);
1694
1699
  const apiHeaders = {
1695
1700
  "X-Owbase-Project": this.client.config.project,
@@ -2102,14 +2107,14 @@ class Project {
2102
2107
  params = {
2103
2108
  clientId: paramsOrFirst,
2104
2109
  clientSecret: rest[0],
2105
- prompt: rest[1],
2106
- enabled: rest[2]
2110
+ enabled: rest[1],
2111
+ prompt: rest[2]
2107
2112
  };
2108
2113
  }
2109
2114
  const clientId = params.clientId;
2110
2115
  const clientSecret = params.clientSecret;
2111
- const prompt = params.prompt;
2112
2116
  const enabled = params.enabled;
2117
+ const prompt = params.prompt;
2113
2118
  const apiPath = "/project/oauth2/zoho";
2114
2119
  const apiPayload = {};
2115
2120
  if (typeof clientId !== "undefined") {
@@ -2118,12 +2123,12 @@ class Project {
2118
2123
  if (typeof clientSecret !== "undefined") {
2119
2124
  apiPayload["clientSecret"] = clientSecret;
2120
2125
  }
2121
- if (typeof prompt !== "undefined") {
2122
- apiPayload["prompt"] = prompt;
2123
- }
2124
2126
  if (typeof enabled !== "undefined") {
2125
2127
  apiPayload["enabled"] = enabled;
2126
2128
  }
2129
+ if (typeof prompt !== "undefined") {
2130
+ apiPayload["prompt"] = prompt;
2131
+ }
2127
2132
  const uri = new URL(this.client.config.endpoint + apiPath);
2128
2133
  const apiHeaders = {
2129
2134
  "X-Owbase-Project": this.client.config.project,
@@ -2227,12 +2232,14 @@ class Project {
2227
2232
  params = {
2228
2233
  platformId: paramsOrFirst,
2229
2234
  name: rest[0],
2230
- applicationId: rest[1]
2235
+ applicationId: rest[1],
2236
+ fingerprints: rest[2]
2231
2237
  };
2232
2238
  }
2233
2239
  const platformId = params.platformId;
2234
2240
  const name = params.name;
2235
2241
  const applicationId = params.applicationId;
2242
+ const fingerprints = params.fingerprints;
2236
2243
  if (typeof platformId === "undefined") {
2237
2244
  throw new client.OwbaseException(
2238
2245
  'Missing required parameter: "platformId"'
@@ -2257,6 +2264,9 @@ class Project {
2257
2264
  if (typeof applicationId !== "undefined") {
2258
2265
  apiPayload["applicationId"] = applicationId;
2259
2266
  }
2267
+ if (typeof fingerprints !== "undefined") {
2268
+ apiPayload["fingerprints"] = fingerprints;
2269
+ }
2260
2270
  const uri = new URL(this.client.config.endpoint + apiPath);
2261
2271
  const apiHeaders = {
2262
2272
  "X-Owbase-Project": this.client.config.project,
@@ -2273,12 +2283,14 @@ class Project {
2273
2283
  params = {
2274
2284
  platformId: paramsOrFirst,
2275
2285
  name: rest[0],
2276
- applicationId: rest[1]
2286
+ applicationId: rest[1],
2287
+ fingerprints: rest[2]
2277
2288
  };
2278
2289
  }
2279
2290
  const platformId = params.platformId;
2280
2291
  const name = params.name;
2281
2292
  const applicationId = params.applicationId;
2293
+ const fingerprints = params.fingerprints;
2282
2294
  if (typeof platformId === "undefined" || platformId === "") {
2283
2295
  throw new client.OwbaseException(
2284
2296
  'Missing required parameter: "platformId"'
@@ -2303,6 +2315,9 @@ class Project {
2303
2315
  if (typeof applicationId !== "undefined") {
2304
2316
  apiPayload["applicationId"] = applicationId;
2305
2317
  }
2318
+ if (typeof fingerprints !== "undefined") {
2319
+ apiPayload["fingerprints"] = fingerprints;
2320
+ }
2306
2321
  const uri = new URL(this.client.config.endpoint + apiPath);
2307
2322
  const apiHeaders = {
2308
2323
  "X-Owbase-Project": this.client.config.project,
@@ -2947,26 +2962,24 @@ class Project {
2947
2962
  };
2948
2963
  return this.client.call("patch", uri, apiHeaders, apiPayload);
2949
2964
  }
2950
- updatePasskeyPolicy(paramsOrFirst, ...rest) {
2965
+ updatePasskeyPolicy(paramsOrFirst) {
2951
2966
  let params;
2952
- if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2967
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2953
2968
  params = paramsOrFirst || {};
2954
2969
  } else {
2955
2970
  params = {
2956
- rpId: paramsOrFirst,
2957
- origins: rest[0]
2971
+ rpId: paramsOrFirst
2958
2972
  };
2959
2973
  }
2960
2974
  const rpId = params.rpId;
2961
- const origins = params.origins;
2975
+ if (typeof rpId === "undefined") {
2976
+ throw new client.OwbaseException('Missing required parameter: "rpId"');
2977
+ }
2962
2978
  const apiPath = "/project/policies/passkey";
2963
2979
  const apiPayload = {};
2964
2980
  if (typeof rpId !== "undefined") {
2965
2981
  apiPayload["rpId"] = rpId;
2966
2982
  }
2967
- if (typeof origins !== "undefined") {
2968
- apiPayload["origins"] = origins;
2969
- }
2970
2983
  const uri = new URL(this.client.config.endpoint + apiPath);
2971
2984
  const apiHeaders = {
2972
2985
  "X-Owbase-Project": this.client.config.project,
@@ -2975,16 +2988,18 @@ class Project {
2975
2988
  };
2976
2989
  return this.client.call("patch", uri, apiHeaders, apiPayload);
2977
2990
  }
2978
- updatePasswordDictionaryPolicy(paramsOrFirst) {
2991
+ updatePasswordDictionaryPolicy(paramsOrFirst, ...rest) {
2979
2992
  let params;
2980
2993
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2981
2994
  params = paramsOrFirst || {};
2982
2995
  } else {
2983
2996
  params = {
2984
- enabled: paramsOrFirst
2997
+ enabled: paramsOrFirst,
2998
+ denyList: rest[0]
2985
2999
  };
2986
3000
  }
2987
3001
  const enabled = params.enabled;
3002
+ const denyList = params.denyList;
2988
3003
  if (typeof enabled === "undefined") {
2989
3004
  throw new client.OwbaseException('Missing required parameter: "enabled"');
2990
3005
  }
@@ -2993,6 +3008,9 @@ class Project {
2993
3008
  if (typeof enabled !== "undefined") {
2994
3009
  apiPayload["enabled"] = enabled;
2995
3010
  }
3011
+ if (typeof denyList !== "undefined") {
3012
+ apiPayload["denyList"] = denyList;
3013
+ }
2996
3014
  const uri = new URL(this.client.config.endpoint + apiPath);
2997
3015
  const apiHeaders = {
2998
3016
  "X-Owbase-Project": this.client.config.project,
@@ -3027,16 +3045,18 @@ class Project {
3027
3045
  };
3028
3046
  return this.client.call("patch", uri, apiHeaders, apiPayload);
3029
3047
  }
3030
- updatePasswordPersonalDataPolicy(paramsOrFirst) {
3048
+ updatePasswordPersonalDataPolicy(paramsOrFirst, ...rest) {
3031
3049
  let params;
3032
3050
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3033
3051
  params = paramsOrFirst || {};
3034
3052
  } else {
3035
3053
  params = {
3036
- enabled: paramsOrFirst
3054
+ enabled: paramsOrFirst,
3055
+ denyList: rest[0]
3037
3056
  };
3038
3057
  }
3039
3058
  const enabled = params.enabled;
3059
+ const denyList = params.denyList;
3040
3060
  if (typeof enabled === "undefined") {
3041
3061
  throw new client.OwbaseException('Missing required parameter: "enabled"');
3042
3062
  }
@@ -3045,6 +3065,9 @@ class Project {
3045
3065
  if (typeof enabled !== "undefined") {
3046
3066
  apiPayload["enabled"] = enabled;
3047
3067
  }
3068
+ if (typeof denyList !== "undefined") {
3069
+ apiPayload["denyList"] = denyList;
3070
+ }
3048
3071
  const uri = new URL(this.client.config.endpoint + apiPath);
3049
3072
  const apiHeaders = {
3050
3073
  "X-Owbase-Project": this.client.config.project,
@@ -3086,6 +3109,34 @@ class Project {
3086
3109
  };
3087
3110
  return this.client.call("patch", uri, apiHeaders, apiPayload);
3088
3111
  }
3112
+ updatePasswordRotationPolicy(paramsOrFirst, ...rest) {
3113
+ let params;
3114
+ if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
3115
+ params = paramsOrFirst || {};
3116
+ } else {
3117
+ params = {
3118
+ enabled: paramsOrFirst,
3119
+ maxAge: rest[0]
3120
+ };
3121
+ }
3122
+ const enabled = params.enabled;
3123
+ const maxAge = params.maxAge;
3124
+ const apiPath = "/project/policies/password-rotation";
3125
+ const apiPayload = {};
3126
+ if (typeof enabled !== "undefined") {
3127
+ apiPayload["enabled"] = enabled;
3128
+ }
3129
+ if (typeof maxAge !== "undefined") {
3130
+ apiPayload["maxAge"] = maxAge;
3131
+ }
3132
+ const uri = new URL(this.client.config.endpoint + apiPath);
3133
+ const apiHeaders = {
3134
+ "X-Owbase-Project": this.client.config.project,
3135
+ "content-type": "application/json",
3136
+ accept: "application/json"
3137
+ };
3138
+ return this.client.call("patch", uri, apiHeaders, apiPayload);
3139
+ }
3089
3140
  updatePasswordStrengthPolicy(paramsOrFirst, ...rest) {
3090
3141
  let params;
3091
3142
  if (typeof paramsOrFirst === "undefined" && rest.length === 0 || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -3608,13 +3659,15 @@ class Project {
3608
3659
  variableId: paramsOrFirst,
3609
3660
  key: rest[0],
3610
3661
  value: rest[1],
3611
- secret: rest[2]
3662
+ secret: rest[2],
3663
+ description: rest[3]
3612
3664
  };
3613
3665
  }
3614
3666
  const variableId = params.variableId;
3615
3667
  const key = params.key;
3616
3668
  const value = params.value;
3617
3669
  const secret = params.secret;
3670
+ const description = params.description;
3618
3671
  if (typeof variableId === "undefined") {
3619
3672
  throw new client.OwbaseException(
3620
3673
  'Missing required parameter: "variableId"'
@@ -3640,6 +3693,9 @@ class Project {
3640
3693
  if (typeof secret !== "undefined") {
3641
3694
  apiPayload["secret"] = secret;
3642
3695
  }
3696
+ if (typeof description !== "undefined") {
3697
+ apiPayload["description"] = description;
3698
+ }
3643
3699
  const uri = new URL(this.client.config.endpoint + apiPath);
3644
3700
  const apiHeaders = {
3645
3701
  "X-Owbase-Project": this.client.config.project,
@@ -3684,13 +3740,15 @@ class Project {
3684
3740
  variableId: paramsOrFirst,
3685
3741
  key: rest[0],
3686
3742
  value: rest[1],
3687
- secret: rest[2]
3743
+ secret: rest[2],
3744
+ description: rest[3]
3688
3745
  };
3689
3746
  }
3690
3747
  const variableId = params.variableId;
3691
3748
  const key = params.key;
3692
3749
  const value = params.value;
3693
3750
  const secret = params.secret;
3751
+ const description = params.description;
3694
3752
  if (typeof variableId === "undefined" || variableId === "") {
3695
3753
  throw new client.OwbaseException(
3696
3754
  'Missing required parameter: "variableId"'
@@ -3710,6 +3768,9 @@ class Project {
3710
3768
  if (typeof secret !== "undefined") {
3711
3769
  apiPayload["secret"] = secret;
3712
3770
  }
3771
+ if (typeof description !== "undefined") {
3772
+ apiPayload["description"] = description;
3773
+ }
3713
3774
  const uri = new URL(this.client.config.endpoint + apiPath);
3714
3775
  const apiHeaders = {
3715
3776
  "X-Owbase-Project": this.client.config.project,