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