nestjs-openapi 0.3.0 → 0.3.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.
@@ -1141,14 +1141,10 @@ interface ExtractParametersOptions {
1141
1141
  }
1142
1142
  declare const getMethodInfo: (controller: ClassDeclaration, method: MethodDeclaration, options?: ExtractParametersOptions) => Option.Option<MethodInfo>;
1143
1143
  declare const getMethodInfoEffect: (controller: ClassDeclaration, method: MethodDeclaration, options?: ExtractParametersOptions | undefined) => Effect.Effect<Option.Option<{
1144
- readonly security: readonly {
1145
- readonly scopes: readonly string[];
1146
- readonly schemeName: string;
1147
- }[];
1148
1144
  readonly path: string;
1149
- readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1150
- readonly methodName: string;
1151
1145
  readonly controllerName: string;
1146
+ readonly methodName: string;
1147
+ readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1152
1148
  readonly controllerTags: readonly string[];
1153
1149
  readonly returnType: {
1154
1150
  readonly filePath: Option.Option<string>;
@@ -1158,10 +1154,10 @@ declare const getMethodInfoEffect: (controller: ClassDeclaration, method: Method
1158
1154
  };
1159
1155
  readonly parameters: readonly {
1160
1156
  readonly name: string;
1161
- readonly description: Option.Option<string>;
1162
- readonly location: "query" | "header" | "cookie" | "path" | "body";
1157
+ readonly location: "path" | "query" | "header" | "cookie" | "body";
1163
1158
  readonly tsType: string;
1164
1159
  readonly required: boolean;
1160
+ readonly description: Option.Option<string>;
1165
1161
  }[];
1166
1162
  readonly decorators: readonly string[];
1167
1163
  readonly operation: {
@@ -1179,17 +1175,17 @@ declare const getMethodInfoEffect: (controller: ClassDeclaration, method: Method
1179
1175
  readonly httpCode: Option.Option<number>;
1180
1176
  readonly consumes: readonly string[];
1181
1177
  readonly produces: readonly string[];
1182
- }>, never, never>;
1183
- declare const getControllerMethodInfos: (controller: ClassDeclaration, options?: ExtractParametersOptions) => readonly MethodInfo[];
1184
- declare const getControllerMethodInfosEffect: (controller: ClassDeclaration, options?: ExtractParametersOptions | undefined) => Effect.Effect<{
1185
1178
  readonly security: readonly {
1186
- readonly scopes: readonly string[];
1187
1179
  readonly schemeName: string;
1180
+ readonly scopes: readonly string[];
1188
1181
  }[];
1182
+ }>, never, never>;
1183
+ declare const getControllerMethodInfos: (controller: ClassDeclaration, options?: ExtractParametersOptions) => readonly MethodInfo[];
1184
+ declare const getControllerMethodInfosEffect: (controller: ClassDeclaration, options?: ExtractParametersOptions | undefined) => Effect.Effect<{
1189
1185
  readonly path: string;
1190
- readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1191
- readonly methodName: string;
1192
1186
  readonly controllerName: string;
1187
+ readonly methodName: string;
1188
+ readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1193
1189
  readonly controllerTags: readonly string[];
1194
1190
  readonly returnType: {
1195
1191
  readonly filePath: Option.Option<string>;
@@ -1199,10 +1195,10 @@ declare const getControllerMethodInfosEffect: (controller: ClassDeclaration, opt
1199
1195
  };
1200
1196
  readonly parameters: readonly {
1201
1197
  readonly name: string;
1202
- readonly description: Option.Option<string>;
1203
- readonly location: "query" | "header" | "cookie" | "path" | "body";
1198
+ readonly location: "path" | "query" | "header" | "cookie" | "body";
1204
1199
  readonly tsType: string;
1205
1200
  readonly required: boolean;
1201
+ readonly description: Option.Option<string>;
1206
1202
  }[];
1207
1203
  readonly decorators: readonly string[];
1208
1204
  readonly operation: {
@@ -1220,19 +1216,19 @@ declare const getControllerMethodInfosEffect: (controller: ClassDeclaration, opt
1220
1216
  readonly httpCode: Option.Option<number>;
1221
1217
  readonly consumes: readonly string[];
1222
1218
  readonly produces: readonly string[];
1219
+ readonly security: readonly {
1220
+ readonly schemeName: string;
1221
+ readonly scopes: readonly string[];
1222
+ }[];
1223
1223
  }[], never, never>;
1224
1224
  declare const MethodExtractionService_base: Effect.Service.Class<MethodExtractionService, "MethodExtractionService", {
1225
1225
  readonly accessors: true;
1226
1226
  readonly effect: Effect.Effect<{
1227
1227
  getMethodInfo: (controller: ClassDeclaration, method: MethodDeclaration, options?: ExtractParametersOptions | undefined) => Effect.Effect<Option.Option<{
1228
- readonly security: readonly {
1229
- readonly scopes: readonly string[];
1230
- readonly schemeName: string;
1231
- }[];
1232
1228
  readonly path: string;
1233
- readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1234
- readonly methodName: string;
1235
1229
  readonly controllerName: string;
1230
+ readonly methodName: string;
1231
+ readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1236
1232
  readonly controllerTags: readonly string[];
1237
1233
  readonly returnType: {
1238
1234
  readonly filePath: Option.Option<string>;
@@ -1242,10 +1238,10 @@ declare const MethodExtractionService_base: Effect.Service.Class<MethodExtractio
1242
1238
  };
1243
1239
  readonly parameters: readonly {
1244
1240
  readonly name: string;
1245
- readonly description: Option.Option<string>;
1246
- readonly location: "query" | "header" | "cookie" | "path" | "body";
1241
+ readonly location: "path" | "query" | "header" | "cookie" | "body";
1247
1242
  readonly tsType: string;
1248
1243
  readonly required: boolean;
1244
+ readonly description: Option.Option<string>;
1249
1245
  }[];
1250
1246
  readonly decorators: readonly string[];
1251
1247
  readonly operation: {
@@ -1263,16 +1259,16 @@ declare const MethodExtractionService_base: Effect.Service.Class<MethodExtractio
1263
1259
  readonly httpCode: Option.Option<number>;
1264
1260
  readonly consumes: readonly string[];
1265
1261
  readonly produces: readonly string[];
1266
- }>, never, never>;
1267
- getControllerMethodInfos: (controller: ClassDeclaration, options?: ExtractParametersOptions | undefined) => Effect.Effect<{
1268
1262
  readonly security: readonly {
1269
- readonly scopes: readonly string[];
1270
1263
  readonly schemeName: string;
1264
+ readonly scopes: readonly string[];
1271
1265
  }[];
1266
+ }>, never, never>;
1267
+ getControllerMethodInfos: (controller: ClassDeclaration, options?: ExtractParametersOptions | undefined) => Effect.Effect<{
1272
1268
  readonly path: string;
1273
- readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1274
- readonly methodName: string;
1275
1269
  readonly controllerName: string;
1270
+ readonly methodName: string;
1271
+ readonly httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "ALL";
1276
1272
  readonly controllerTags: readonly string[];
1277
1273
  readonly returnType: {
1278
1274
  readonly filePath: Option.Option<string>;
@@ -1282,10 +1278,10 @@ declare const MethodExtractionService_base: Effect.Service.Class<MethodExtractio
1282
1278
  };
1283
1279
  readonly parameters: readonly {
1284
1280
  readonly name: string;
1285
- readonly description: Option.Option<string>;
1286
- readonly location: "query" | "header" | "cookie" | "path" | "body";
1281
+ readonly location: "path" | "query" | "header" | "cookie" | "body";
1287
1282
  readonly tsType: string;
1288
1283
  readonly required: boolean;
1284
+ readonly description: Option.Option<string>;
1289
1285
  }[];
1290
1286
  readonly decorators: readonly string[];
1291
1287
  readonly operation: {
@@ -1303,6 +1299,10 @@ declare const MethodExtractionService_base: Effect.Service.Class<MethodExtractio
1303
1299
  readonly httpCode: Option.Option<number>;
1304
1300
  readonly consumes: readonly string[];
1305
1301
  readonly produces: readonly string[];
1302
+ readonly security: readonly {
1303
+ readonly schemeName: string;
1304
+ readonly scopes: readonly string[];
1305
+ }[];
1306
1306
  }[], never, never>;
1307
1307
  }, never, never>;
1308
1308
  }>;
@@ -1332,29 +1332,17 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1332
1332
  readonly effect: Effect.Effect<{
1333
1333
  findConfigFile: (startDir?: string | undefined) => Effect.Effect<string, ConfigNotFoundError, never>;
1334
1334
  loadConfigFromFile: (configPath: string) => Effect.Effect<{
1335
+ readonly format?: "json" | "yaml" | undefined;
1336
+ readonly extends?: string | undefined;
1337
+ readonly files?: {
1338
+ readonly tsconfig?: string | undefined;
1339
+ readonly entry?: string | readonly string[] | undefined;
1340
+ readonly dtoGlob?: string | readonly string[] | undefined;
1341
+ readonly include?: readonly string[] | undefined;
1342
+ readonly exclude?: readonly string[] | undefined;
1343
+ } | undefined;
1344
+ readonly output: string;
1335
1345
  readonly openapi: {
1336
- readonly info: {
1337
- readonly version: string;
1338
- readonly title: string;
1339
- readonly description?: string | undefined;
1340
- readonly contact?: {
1341
- readonly name?: string | undefined;
1342
- readonly email?: string | undefined;
1343
- readonly url?: string | undefined;
1344
- } | undefined;
1345
- readonly license?: {
1346
- readonly name: string;
1347
- readonly url?: string | undefined;
1348
- } | undefined;
1349
- };
1350
- readonly servers?: readonly {
1351
- readonly description?: string | undefined;
1352
- readonly url: string;
1353
- }[] | undefined;
1354
- readonly tags?: readonly {
1355
- readonly name: string;
1356
- readonly description?: string | undefined;
1357
- }[] | undefined;
1358
1346
  readonly security?: {
1359
1347
  readonly schemes?: readonly ({
1360
1348
  readonly name: string;
@@ -1374,36 +1362,36 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1374
1362
  readonly type: "oauth2";
1375
1363
  readonly flows: {
1376
1364
  readonly implicit?: {
1377
- readonly authorizationUrl?: string | undefined;
1378
- readonly tokenUrl?: string | undefined;
1379
- readonly refreshUrl?: string | undefined;
1380
1365
  readonly scopes?: {
1381
1366
  readonly [x: string]: string;
1382
1367
  } | undefined;
1383
- } | undefined;
1384
- readonly password?: {
1385
1368
  readonly authorizationUrl?: string | undefined;
1386
1369
  readonly tokenUrl?: string | undefined;
1387
1370
  readonly refreshUrl?: string | undefined;
1371
+ } | undefined;
1372
+ readonly password?: {
1388
1373
  readonly scopes?: {
1389
1374
  readonly [x: string]: string;
1390
1375
  } | undefined;
1391
- } | undefined;
1392
- readonly clientCredentials?: {
1393
1376
  readonly authorizationUrl?: string | undefined;
1394
1377
  readonly tokenUrl?: string | undefined;
1395
1378
  readonly refreshUrl?: string | undefined;
1379
+ } | undefined;
1380
+ readonly clientCredentials?: {
1396
1381
  readonly scopes?: {
1397
1382
  readonly [x: string]: string;
1398
1383
  } | undefined;
1399
- } | undefined;
1400
- readonly authorizationCode?: {
1401
1384
  readonly authorizationUrl?: string | undefined;
1402
1385
  readonly tokenUrl?: string | undefined;
1403
1386
  readonly refreshUrl?: string | undefined;
1387
+ } | undefined;
1388
+ readonly authorizationCode?: {
1404
1389
  readonly scopes?: {
1405
1390
  readonly [x: string]: string;
1406
1391
  } | undefined;
1392
+ readonly authorizationUrl?: string | undefined;
1393
+ readonly tokenUrl?: string | undefined;
1394
+ readonly refreshUrl?: string | undefined;
1407
1395
  } | undefined;
1408
1396
  };
1409
1397
  } | {
@@ -1416,37 +1404,15 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1416
1404
  readonly [x: string]: readonly string[];
1417
1405
  }[] | undefined;
1418
1406
  } | undefined;
1407
+ readonly tags?: readonly {
1408
+ readonly name: string;
1409
+ readonly description?: string | undefined;
1410
+ }[] | undefined;
1419
1411
  readonly version?: "3.0.3" | "3.1.0" | "3.2.0" | undefined;
1420
- };
1421
- readonly extends?: string | undefined;
1422
- readonly files?: {
1423
- readonly tsconfig?: string | undefined;
1424
- readonly entry?: string | readonly string[] | undefined;
1425
- readonly dtoGlob?: string | readonly string[] | undefined;
1426
- readonly include?: readonly string[] | undefined;
1427
- readonly exclude?: readonly string[] | undefined;
1428
- } | undefined;
1429
- readonly output: string;
1430
- readonly format?: "json" | "yaml" | undefined;
1431
- readonly options?: {
1432
- readonly query?: {
1433
- readonly style?: "inline" | "ref" | undefined;
1434
- } | undefined;
1435
- readonly basePath?: string | undefined;
1436
- readonly extractValidation?: boolean | undefined;
1437
- readonly excludeDecorators?: readonly string[] | undefined;
1438
- readonly schemas?: {
1439
- readonly aliasRefs?: "collapse" | "preserve" | undefined;
1440
- } | undefined;
1441
- readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1442
- } | undefined;
1443
- }, ConfigError, never>;
1444
- loadConfig: (configPath?: string | undefined, cwd?: string | undefined) => Effect.Effect<{
1445
- readonly openapi: {
1446
1412
  readonly info: {
1447
- readonly version: string;
1448
- readonly title: string;
1449
1413
  readonly description?: string | undefined;
1414
+ readonly title: string;
1415
+ readonly version: string;
1450
1416
  readonly contact?: {
1451
1417
  readonly name?: string | undefined;
1452
1418
  readonly email?: string | undefined;
@@ -1461,10 +1427,32 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1461
1427
  readonly description?: string | undefined;
1462
1428
  readonly url: string;
1463
1429
  }[] | undefined;
1464
- readonly tags?: readonly {
1465
- readonly name: string;
1466
- readonly description?: string | undefined;
1467
- }[] | undefined;
1430
+ };
1431
+ readonly options?: {
1432
+ readonly query?: {
1433
+ readonly style?: "inline" | "ref" | undefined;
1434
+ } | undefined;
1435
+ readonly basePath?: string | undefined;
1436
+ readonly extractValidation?: boolean | undefined;
1437
+ readonly excludeDecorators?: readonly string[] | undefined;
1438
+ readonly schemas?: {
1439
+ readonly aliasRefs?: "collapse" | "preserve" | undefined;
1440
+ } | undefined;
1441
+ readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1442
+ } | undefined;
1443
+ }, ConfigError, never>;
1444
+ loadConfig: (configPath?: string | undefined, cwd?: string | undefined) => Effect.Effect<{
1445
+ readonly format?: "json" | "yaml" | undefined;
1446
+ readonly extends?: string | undefined;
1447
+ readonly files?: {
1448
+ readonly tsconfig?: string | undefined;
1449
+ readonly entry?: string | readonly string[] | undefined;
1450
+ readonly dtoGlob?: string | readonly string[] | undefined;
1451
+ readonly include?: readonly string[] | undefined;
1452
+ readonly exclude?: readonly string[] | undefined;
1453
+ } | undefined;
1454
+ readonly output: string;
1455
+ readonly openapi: {
1468
1456
  readonly security?: {
1469
1457
  readonly schemes?: readonly ({
1470
1458
  readonly name: string;
@@ -1484,36 +1472,36 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1484
1472
  readonly type: "oauth2";
1485
1473
  readonly flows: {
1486
1474
  readonly implicit?: {
1487
- readonly authorizationUrl?: string | undefined;
1488
- readonly tokenUrl?: string | undefined;
1489
- readonly refreshUrl?: string | undefined;
1490
1475
  readonly scopes?: {
1491
1476
  readonly [x: string]: string;
1492
1477
  } | undefined;
1493
- } | undefined;
1494
- readonly password?: {
1495
1478
  readonly authorizationUrl?: string | undefined;
1496
1479
  readonly tokenUrl?: string | undefined;
1497
1480
  readonly refreshUrl?: string | undefined;
1481
+ } | undefined;
1482
+ readonly password?: {
1498
1483
  readonly scopes?: {
1499
1484
  readonly [x: string]: string;
1500
1485
  } | undefined;
1501
- } | undefined;
1502
- readonly clientCredentials?: {
1503
1486
  readonly authorizationUrl?: string | undefined;
1504
1487
  readonly tokenUrl?: string | undefined;
1505
1488
  readonly refreshUrl?: string | undefined;
1489
+ } | undefined;
1490
+ readonly clientCredentials?: {
1506
1491
  readonly scopes?: {
1507
1492
  readonly [x: string]: string;
1508
1493
  } | undefined;
1509
- } | undefined;
1510
- readonly authorizationCode?: {
1511
1494
  readonly authorizationUrl?: string | undefined;
1512
1495
  readonly tokenUrl?: string | undefined;
1513
1496
  readonly refreshUrl?: string | undefined;
1497
+ } | undefined;
1498
+ readonly authorizationCode?: {
1514
1499
  readonly scopes?: {
1515
1500
  readonly [x: string]: string;
1516
1501
  } | undefined;
1502
+ readonly authorizationUrl?: string | undefined;
1503
+ readonly tokenUrl?: string | undefined;
1504
+ readonly refreshUrl?: string | undefined;
1517
1505
  } | undefined;
1518
1506
  };
1519
1507
  } | {
@@ -1526,37 +1514,15 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1526
1514
  readonly [x: string]: readonly string[];
1527
1515
  }[] | undefined;
1528
1516
  } | undefined;
1517
+ readonly tags?: readonly {
1518
+ readonly name: string;
1519
+ readonly description?: string | undefined;
1520
+ }[] | undefined;
1529
1521
  readonly version?: "3.0.3" | "3.1.0" | "3.2.0" | undefined;
1530
- };
1531
- readonly extends?: string | undefined;
1532
- readonly files?: {
1533
- readonly tsconfig?: string | undefined;
1534
- readonly entry?: string | readonly string[] | undefined;
1535
- readonly dtoGlob?: string | readonly string[] | undefined;
1536
- readonly include?: readonly string[] | undefined;
1537
- readonly exclude?: readonly string[] | undefined;
1538
- } | undefined;
1539
- readonly output: string;
1540
- readonly format?: "json" | "yaml" | undefined;
1541
- readonly options?: {
1542
- readonly query?: {
1543
- readonly style?: "inline" | "ref" | undefined;
1544
- } | undefined;
1545
- readonly basePath?: string | undefined;
1546
- readonly extractValidation?: boolean | undefined;
1547
- readonly excludeDecorators?: readonly string[] | undefined;
1548
- readonly schemas?: {
1549
- readonly aliasRefs?: "collapse" | "preserve" | undefined;
1550
- } | undefined;
1551
- readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1552
- } | undefined;
1553
- }, ConfigError, never>;
1554
- resolveConfig: (config: {
1555
- readonly openapi: {
1556
1522
  readonly info: {
1557
- readonly version: string;
1558
- readonly title: string;
1559
1523
  readonly description?: string | undefined;
1524
+ readonly title: string;
1525
+ readonly version: string;
1560
1526
  readonly contact?: {
1561
1527
  readonly name?: string | undefined;
1562
1528
  readonly email?: string | undefined;
@@ -1571,10 +1537,32 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1571
1537
  readonly description?: string | undefined;
1572
1538
  readonly url: string;
1573
1539
  }[] | undefined;
1574
- readonly tags?: readonly {
1575
- readonly name: string;
1576
- readonly description?: string | undefined;
1577
- }[] | undefined;
1540
+ };
1541
+ readonly options?: {
1542
+ readonly query?: {
1543
+ readonly style?: "inline" | "ref" | undefined;
1544
+ } | undefined;
1545
+ readonly basePath?: string | undefined;
1546
+ readonly extractValidation?: boolean | undefined;
1547
+ readonly excludeDecorators?: readonly string[] | undefined;
1548
+ readonly schemas?: {
1549
+ readonly aliasRefs?: "collapse" | "preserve" | undefined;
1550
+ } | undefined;
1551
+ readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1552
+ } | undefined;
1553
+ }, ConfigError, never>;
1554
+ resolveConfig: (config: {
1555
+ readonly format?: "json" | "yaml" | undefined;
1556
+ readonly extends?: string | undefined;
1557
+ readonly files?: {
1558
+ readonly tsconfig?: string | undefined;
1559
+ readonly entry?: string | readonly string[] | undefined;
1560
+ readonly dtoGlob?: string | readonly string[] | undefined;
1561
+ readonly include?: readonly string[] | undefined;
1562
+ readonly exclude?: readonly string[] | undefined;
1563
+ } | undefined;
1564
+ readonly output: string;
1565
+ readonly openapi: {
1578
1566
  readonly security?: {
1579
1567
  readonly schemes?: readonly ({
1580
1568
  readonly name: string;
@@ -1594,36 +1582,36 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1594
1582
  readonly type: "oauth2";
1595
1583
  readonly flows: {
1596
1584
  readonly implicit?: {
1597
- readonly authorizationUrl?: string | undefined;
1598
- readonly tokenUrl?: string | undefined;
1599
- readonly refreshUrl?: string | undefined;
1600
1585
  readonly scopes?: {
1601
1586
  readonly [x: string]: string;
1602
1587
  } | undefined;
1603
- } | undefined;
1604
- readonly password?: {
1605
1588
  readonly authorizationUrl?: string | undefined;
1606
1589
  readonly tokenUrl?: string | undefined;
1607
1590
  readonly refreshUrl?: string | undefined;
1591
+ } | undefined;
1592
+ readonly password?: {
1608
1593
  readonly scopes?: {
1609
1594
  readonly [x: string]: string;
1610
1595
  } | undefined;
1611
- } | undefined;
1612
- readonly clientCredentials?: {
1613
1596
  readonly authorizationUrl?: string | undefined;
1614
1597
  readonly tokenUrl?: string | undefined;
1615
1598
  readonly refreshUrl?: string | undefined;
1599
+ } | undefined;
1600
+ readonly clientCredentials?: {
1616
1601
  readonly scopes?: {
1617
1602
  readonly [x: string]: string;
1618
1603
  } | undefined;
1619
- } | undefined;
1620
- readonly authorizationCode?: {
1621
1604
  readonly authorizationUrl?: string | undefined;
1622
1605
  readonly tokenUrl?: string | undefined;
1623
1606
  readonly refreshUrl?: string | undefined;
1607
+ } | undefined;
1608
+ readonly authorizationCode?: {
1624
1609
  readonly scopes?: {
1625
1610
  readonly [x: string]: string;
1626
1611
  } | undefined;
1612
+ readonly authorizationUrl?: string | undefined;
1613
+ readonly tokenUrl?: string | undefined;
1614
+ readonly refreshUrl?: string | undefined;
1627
1615
  } | undefined;
1628
1616
  };
1629
1617
  } | {
@@ -1636,18 +1624,30 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1636
1624
  readonly [x: string]: readonly string[];
1637
1625
  }[] | undefined;
1638
1626
  } | undefined;
1627
+ readonly tags?: readonly {
1628
+ readonly name: string;
1629
+ readonly description?: string | undefined;
1630
+ }[] | undefined;
1639
1631
  readonly version?: "3.0.3" | "3.1.0" | "3.2.0" | undefined;
1632
+ readonly info: {
1633
+ readonly description?: string | undefined;
1634
+ readonly title: string;
1635
+ readonly version: string;
1636
+ readonly contact?: {
1637
+ readonly name?: string | undefined;
1638
+ readonly email?: string | undefined;
1639
+ readonly url?: string | undefined;
1640
+ } | undefined;
1641
+ readonly license?: {
1642
+ readonly name: string;
1643
+ readonly url?: string | undefined;
1644
+ } | undefined;
1645
+ };
1646
+ readonly servers?: readonly {
1647
+ readonly description?: string | undefined;
1648
+ readonly url: string;
1649
+ }[] | undefined;
1640
1650
  };
1641
- readonly extends?: string | undefined;
1642
- readonly files?: {
1643
- readonly tsconfig?: string | undefined;
1644
- readonly entry?: string | readonly string[] | undefined;
1645
- readonly dtoGlob?: string | readonly string[] | undefined;
1646
- readonly include?: readonly string[] | undefined;
1647
- readonly exclude?: readonly string[] | undefined;
1648
- } | undefined;
1649
- readonly output: string;
1650
- readonly format?: "json" | "yaml" | undefined;
1651
1651
  readonly options?: {
1652
1652
  readonly query?: {
1653
1653
  readonly style?: "inline" | "ref" | undefined;
@@ -1661,10 +1661,21 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1661
1661
  readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1662
1662
  } | undefined;
1663
1663
  }, configPath?: string | undefined) => Effect.Effect<{
1664
+ readonly tsconfig: string;
1665
+ readonly entry: readonly string[];
1666
+ readonly format: "json" | "yaml";
1667
+ readonly dtoGlob: readonly string[];
1668
+ readonly tags: readonly {
1669
+ readonly name: string;
1670
+ readonly description?: string | undefined;
1671
+ }[];
1672
+ readonly version?: string | undefined;
1673
+ readonly include: readonly string[];
1674
+ readonly exclude: readonly string[];
1664
1675
  readonly info: {
1665
- readonly version: string;
1666
- readonly title: string;
1667
1676
  readonly description?: string | undefined;
1677
+ readonly title: string;
1678
+ readonly version: string;
1668
1679
  readonly contact?: {
1669
1680
  readonly name?: string | undefined;
1670
1681
  readonly email?: string | undefined;
@@ -1679,23 +1690,12 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1679
1690
  readonly description?: string | undefined;
1680
1691
  readonly url: string;
1681
1692
  }[];
1682
- readonly tags: readonly {
1683
- readonly name: string;
1684
- readonly description?: string | undefined;
1685
- }[];
1686
- readonly tsconfig: string;
1687
- readonly entry: readonly string[];
1688
- readonly dtoGlob: readonly string[];
1689
- readonly include: readonly string[];
1690
- readonly exclude: readonly string[];
1691
- readonly output: string;
1692
- readonly format: "json" | "yaml";
1693
- readonly version?: string | undefined;
1693
+ readonly aliasRefs: "collapse" | "preserve";
1694
1694
  readonly basePath?: string | undefined;
1695
1695
  readonly extractValidation: boolean;
1696
1696
  readonly excludeDecorators: readonly string[];
1697
- readonly aliasRefs: "collapse" | "preserve";
1698
1697
  readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1698
+ readonly output: string;
1699
1699
  readonly securitySchemes: readonly ({
1700
1700
  readonly name: string;
1701
1701
  readonly description?: string | undefined;
@@ -1714,36 +1714,36 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1714
1714
  readonly type: "oauth2";
1715
1715
  readonly flows: {
1716
1716
  readonly implicit?: {
1717
- readonly authorizationUrl?: string | undefined;
1718
- readonly tokenUrl?: string | undefined;
1719
- readonly refreshUrl?: string | undefined;
1720
1717
  readonly scopes?: {
1721
1718
  readonly [x: string]: string;
1722
1719
  } | undefined;
1723
- } | undefined;
1724
- readonly password?: {
1725
1720
  readonly authorizationUrl?: string | undefined;
1726
1721
  readonly tokenUrl?: string | undefined;
1727
1722
  readonly refreshUrl?: string | undefined;
1723
+ } | undefined;
1724
+ readonly password?: {
1728
1725
  readonly scopes?: {
1729
1726
  readonly [x: string]: string;
1730
1727
  } | undefined;
1731
- } | undefined;
1732
- readonly clientCredentials?: {
1733
1728
  readonly authorizationUrl?: string | undefined;
1734
1729
  readonly tokenUrl?: string | undefined;
1735
1730
  readonly refreshUrl?: string | undefined;
1731
+ } | undefined;
1732
+ readonly clientCredentials?: {
1736
1733
  readonly scopes?: {
1737
1734
  readonly [x: string]: string;
1738
1735
  } | undefined;
1739
- } | undefined;
1740
- readonly authorizationCode?: {
1741
1736
  readonly authorizationUrl?: string | undefined;
1742
1737
  readonly tokenUrl?: string | undefined;
1743
1738
  readonly refreshUrl?: string | undefined;
1739
+ } | undefined;
1740
+ readonly authorizationCode?: {
1744
1741
  readonly scopes?: {
1745
1742
  readonly [x: string]: string;
1746
1743
  } | undefined;
1744
+ readonly authorizationUrl?: string | undefined;
1745
+ readonly tokenUrl?: string | undefined;
1746
+ readonly refreshUrl?: string | undefined;
1747
1747
  } | undefined;
1748
1748
  };
1749
1749
  } | {
@@ -1757,10 +1757,21 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1757
1757
  }[];
1758
1758
  }, ConfigValidationError, never>;
1759
1759
  loadAndResolveConfig: (configPath?: string | undefined, cwd?: string | undefined) => Effect.Effect<{
1760
+ readonly tsconfig: string;
1761
+ readonly entry: readonly string[];
1762
+ readonly format: "json" | "yaml";
1763
+ readonly dtoGlob: readonly string[];
1764
+ readonly tags: readonly {
1765
+ readonly name: string;
1766
+ readonly description?: string | undefined;
1767
+ }[];
1768
+ readonly version?: string | undefined;
1769
+ readonly include: readonly string[];
1770
+ readonly exclude: readonly string[];
1760
1771
  readonly info: {
1761
- readonly version: string;
1762
- readonly title: string;
1763
1772
  readonly description?: string | undefined;
1773
+ readonly title: string;
1774
+ readonly version: string;
1764
1775
  readonly contact?: {
1765
1776
  readonly name?: string | undefined;
1766
1777
  readonly email?: string | undefined;
@@ -1775,23 +1786,12 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1775
1786
  readonly description?: string | undefined;
1776
1787
  readonly url: string;
1777
1788
  }[];
1778
- readonly tags: readonly {
1779
- readonly name: string;
1780
- readonly description?: string | undefined;
1781
- }[];
1782
- readonly tsconfig: string;
1783
- readonly entry: readonly string[];
1784
- readonly dtoGlob: readonly string[];
1785
- readonly include: readonly string[];
1786
- readonly exclude: readonly string[];
1787
- readonly output: string;
1788
- readonly format: "json" | "yaml";
1789
- readonly version?: string | undefined;
1789
+ readonly aliasRefs: "collapse" | "preserve";
1790
1790
  readonly basePath?: string | undefined;
1791
1791
  readonly extractValidation: boolean;
1792
1792
  readonly excludeDecorators: readonly string[];
1793
- readonly aliasRefs: "collapse" | "preserve";
1794
1793
  readonly pathFilter?: RegExp | ((path: string) => boolean) | undefined;
1794
+ readonly output: string;
1795
1795
  readonly securitySchemes: readonly ({
1796
1796
  readonly name: string;
1797
1797
  readonly description?: string | undefined;
@@ -1810,36 +1810,36 @@ declare const ConfigService_base: Effect.Service.Class<ConfigService, "ConfigSer
1810
1810
  readonly type: "oauth2";
1811
1811
  readonly flows: {
1812
1812
  readonly implicit?: {
1813
- readonly authorizationUrl?: string | undefined;
1814
- readonly tokenUrl?: string | undefined;
1815
- readonly refreshUrl?: string | undefined;
1816
1813
  readonly scopes?: {
1817
1814
  readonly [x: string]: string;
1818
1815
  } | undefined;
1819
- } | undefined;
1820
- readonly password?: {
1821
1816
  readonly authorizationUrl?: string | undefined;
1822
1817
  readonly tokenUrl?: string | undefined;
1823
1818
  readonly refreshUrl?: string | undefined;
1819
+ } | undefined;
1820
+ readonly password?: {
1824
1821
  readonly scopes?: {
1825
1822
  readonly [x: string]: string;
1826
1823
  } | undefined;
1827
- } | undefined;
1828
- readonly clientCredentials?: {
1829
1824
  readonly authorizationUrl?: string | undefined;
1830
1825
  readonly tokenUrl?: string | undefined;
1831
1826
  readonly refreshUrl?: string | undefined;
1827
+ } | undefined;
1828
+ readonly clientCredentials?: {
1832
1829
  readonly scopes?: {
1833
1830
  readonly [x: string]: string;
1834
1831
  } | undefined;
1835
- } | undefined;
1836
- readonly authorizationCode?: {
1837
1832
  readonly authorizationUrl?: string | undefined;
1838
1833
  readonly tokenUrl?: string | undefined;
1839
1834
  readonly refreshUrl?: string | undefined;
1835
+ } | undefined;
1836
+ readonly authorizationCode?: {
1840
1837
  readonly scopes?: {
1841
1838
  readonly [x: string]: string;
1842
1839
  } | undefined;
1840
+ readonly authorizationUrl?: string | undefined;
1841
+ readonly tokenUrl?: string | undefined;
1842
+ readonly refreshUrl?: string | undefined;
1843
1843
  } | undefined;
1844
1844
  };
1845
1845
  } | {
@@ -2058,7 +2058,7 @@ interface ClassValidationInfo {
2058
2058
  */
2059
2059
  declare const extractPropertyConstraints: (property: PropertyDeclaration) => ValidationConstraints;
2060
2060
  /**
2061
- * Check if a property has @IsOptional() decorator
2061
+ * Check if a property is optional.
2062
2062
  */
2063
2063
  declare const isPropertyOptional: (property: PropertyDeclaration) => boolean;
2064
2064
  /**
@@ -2271,5 +2271,5 @@ declare const generate: (options: GenerateOptions) => Effect.Effect<{
2271
2271
  }, ProjectInitError | EntryNotFoundError, ModuleTraversalService | ProjectService | MethodExtractionService>;
2272
2272
  declare const generateAsync: (options: GenerateOptions) => Promise<OpenApiPaths>;
2273
2273
 
2274
- export { MissingGenericSchemaTempFileCleanupError as $, generatePathsAsync as A, generateFromConfigEffect as B, ConfigService as C, generateFromConfigAsync as D, ParameterLocation as F, ReturnTypeInfo as H, HttpMethod as J, OpenApiGeneratorConfig as K, MethodInfo as M, ResolvedConfig as N, ProjectService as P, ProjectInitError as Q, ResolvedParameter as R, SpecFileNotFoundError as S, EntryNotFoundError as U, ValidationService as V, ConfigNotFoundError as W, ConfigLoadError as X, ConfigValidationError as Y, DtoGlobResolutionError as Z, InvalidMethodError as _, SpecFileReadError as a, MissingGenericSchemaTempFileWriteError as a0, PublicApiError as a1, ProjectServiceLive as a6, makeProjectContext as a7, findConfigFile as aA, loadConfigFromFile as aB, loadConfig as aC, resolveConfig as aD, loadAndResolveConfig as aE, validateSpec as aF, categorizeBrokenRefs as aG, formatValidationResult as aH, getModules as aa, getAllControllers as ab, getMethodInfo as ad, getMethodInfoEffect as ae, getControllerMethodInfos as af, getControllerMethodInfosEffect as ag, generateSchemas as ah, generateSchemasFromFiles as ai, SchemaGenerationError as aj, extractPropertyConstraints as an, isPropertyOptional as ao, extractPropertyValidationInfo as ap, extractClassValidationInfo as aq, extractClassValidationInfoEffect as ar, extractClassConstraints as as, getRequiredProperties as at, applyConstraintsToSchema as au, mergeValidationConstraints as av, mergeValidationConstraintsEffect as aw, SpecFileParseError as b, OpenApiOperation as d, ModuleTraversalService as g, SchemaService as h, MethodExtractionService as i, OutputService as j, generate$1 as k, defineConfig as m, generate as x, generateAsync as y, generatePathsEffect as z };
2274
+ export { MissingGenericSchemaTempFileCleanupError as $, generatePathsAsync as A, generateFromConfigEffect as B, ConfigService as C, generateFromConfigAsync as D, ParameterLocation as F, ReturnTypeInfo as H, HttpMethod as J, OpenApiGeneratorConfig as K, MethodInfo as M, ResolvedConfig as N, ProjectService as P, ProjectInitError as Q, ResolvedParameter as R, SpecFileNotFoundError as S, EntryNotFoundError as U, ValidationService as V, ConfigNotFoundError as W, ConfigLoadError as X, ConfigValidationError as Y, DtoGlobResolutionError as Z, InvalidMethodError as _, SpecFileReadError as a, MissingGenericSchemaTempFileWriteError as a0, PublicApiError as a1, ProjectServiceLive as a6, makeProjectContext as a7, findConfigFile as aA, loadConfigFromFile as aB, loadConfig as aC, resolveConfig as aD, loadAndResolveConfig as aE, validateSpec as aF, categorizeBrokenRefs as aG, formatValidationResult as aH, getModules as aa, getAllControllers as ab, getMethodInfo as ad, getMethodInfoEffect as ae, getControllerMethodInfos as af, getControllerMethodInfosEffect as ag, generateSchemas as ah, generateSchemasFromFiles as ai, SchemaGenerationError as aj, extractPropertyConstraints as an, isPropertyOptional as ao, extractPropertyValidationInfo as ap, extractClassValidationInfo as aq, extractClassValidationInfoEffect as ar, extractClassConstraints as as, getRequiredProperties as at, applyConstraintsToSchema as au, mergeValidationConstraints as av, mergeValidationConstraintsEffect as aw, SpecFileParseError as b, OpenApiOperation as d, SchemaService as g, OutputService as h, ModuleTraversalService as i, MethodExtractionService as j, generate$1 as k, defineConfig as m, generate as x, generateAsync as y, generatePathsEffect as z };
2275
2275
  export type { GenerateOptions as E, GeneratedSchemas as G, InfoConfig as I, LicenseConfig as L, OpenApiSpec as O, TagConfig as T, ProjectError as a2, ConfigError as a3, AnalysisError as a4, GeneratorError as a5, ProjectContext as a8, ProjectOptions as a9, ValidationResult as aI, BrokenRef as aJ, BrokenRefCategories as aK, ModuleWithControllers as ac, SchemaError as ak, SchemaGeneratorOptions as al, JsonSchema as am, ValidationConstraints as ax, PropertyValidationInfo as ay, ClassValidationInfo as az, OpenApiPaths as c, OpenApiPaths$1 as e, OpenApiSchema$1 as f, GenerateResult as l, Config as n, ContactConfig as o, ServerConfig as p, OutputFormat as q, TelemetryConfig as r, GenerateOverrides as s, OpenApiOperation$1 as t, OpenApiParameter as u, OpenApiRequestBody as v, OpenApiResponse as w };