@workos/oagen 0.10.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +21 -11
- package/dist/cli/index.mjs.map +1 -1
- package/dist/compat/index.d.mts +2 -2
- package/dist/compat/index.mjs +1 -1
- package/dist/{differ-CTl98yoS.d.mts → differ-8emGtevH.d.mts} +2 -2
- package/dist/{differ-CTl98yoS.d.mts.map → differ-8emGtevH.d.mts.map} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{overlay-uz2WOJIP.mjs → overlay-Dddz3Awz.mjs} +22 -12
- package/dist/overlay-Dddz3Awz.mjs.map +1 -0
- package/dist/{types-mTtkgy_h.d.mts → types-DpD1SBY_.d.mts} +3 -1
- package/dist/types-DpD1SBY_.d.mts.map +1 -0
- package/dist/verify/index.d.mts +2 -2
- package/dist/verify/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/overlay-uz2WOJIP.mjs.map +0 -1
- package/dist/types-mTtkgy_h.d.mts.map +0 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -6427,7 +6427,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6427
6427
|
displayName: className,
|
|
6428
6428
|
visibility: "public",
|
|
6429
6429
|
stability: cls.deprecationMessage ? "deprecated" : "stable",
|
|
6430
|
-
sourceKind: "generated_service_wrapper"
|
|
6430
|
+
sourceKind: "generated_service_wrapper",
|
|
6431
|
+
...cls.sourceFile ? { sourceFile: cls.sourceFile } : {}
|
|
6431
6432
|
});
|
|
6432
6433
|
if (cls.constructorParams.length > 0) symbols.push({
|
|
6433
6434
|
id: `ctor:${className}`,
|
|
@@ -6438,7 +6439,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6438
6439
|
visibility: "public",
|
|
6439
6440
|
stability: "stable",
|
|
6440
6441
|
sourceKind: "generated_resource_constructor",
|
|
6441
|
-
parameters: cls.constructorParams.map((p, i) => apiParamToCompatParam(p, i, language))
|
|
6442
|
+
parameters: cls.constructorParams.map((p, i) => apiParamToCompatParam(p, i, language)),
|
|
6443
|
+
...cls.sourceFile ? { sourceFile: cls.sourceFile } : {}
|
|
6442
6444
|
});
|
|
6443
6445
|
for (const [methodName, overloads] of Object.entries(cls.methods)) for (let oi = 0; oi < overloads.length; oi++) {
|
|
6444
6446
|
const method = overloads[oi];
|
|
@@ -6453,7 +6455,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6453
6455
|
stability: "stable",
|
|
6454
6456
|
sourceKind: "generated_service_wrapper",
|
|
6455
6457
|
parameters: method.params.map((p, i) => apiParamToCompatParam(p, i, language)),
|
|
6456
|
-
returns: { name: method.returnType }
|
|
6458
|
+
returns: { name: method.returnType },
|
|
6459
|
+
...cls.sourceFile ? { sourceFile: cls.sourceFile } : {}
|
|
6457
6460
|
});
|
|
6458
6461
|
}
|
|
6459
6462
|
for (const [propName, prop] of Object.entries(cls.properties)) symbols.push({
|
|
@@ -6465,7 +6468,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6465
6468
|
visibility: "public",
|
|
6466
6469
|
stability: "stable",
|
|
6467
6470
|
sourceKind: "generated_service_wrapper",
|
|
6468
|
-
typeRef: { name: prop.type }
|
|
6471
|
+
typeRef: { name: prop.type },
|
|
6472
|
+
...cls.sourceFile ? { sourceFile: cls.sourceFile } : {}
|
|
6469
6473
|
});
|
|
6470
6474
|
}
|
|
6471
6475
|
for (const [ifaceName, iface] of Object.entries(surface.interfaces)) {
|
|
@@ -6476,7 +6480,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6476
6480
|
displayName: ifaceName,
|
|
6477
6481
|
visibility: "public",
|
|
6478
6482
|
stability: "stable",
|
|
6479
|
-
sourceKind: "generated_resource_constructor"
|
|
6483
|
+
sourceKind: "generated_resource_constructor",
|
|
6484
|
+
...iface.sourceFile ? { sourceFile: iface.sourceFile } : {}
|
|
6480
6485
|
});
|
|
6481
6486
|
for (const [fieldName, field] of Object.entries(iface.fields)) symbols.push({
|
|
6482
6487
|
id: `field:${ifaceName}.${fieldName}`,
|
|
@@ -6487,7 +6492,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6487
6492
|
visibility: "public",
|
|
6488
6493
|
stability: "stable",
|
|
6489
6494
|
sourceKind: "generated_resource_constructor",
|
|
6490
|
-
typeRef: { name: field.type }
|
|
6495
|
+
typeRef: { name: field.type },
|
|
6496
|
+
...iface.sourceFile ? { sourceFile: iface.sourceFile } : {}
|
|
6491
6497
|
});
|
|
6492
6498
|
if (iface.hasCustomConstructor) symbols.push({
|
|
6493
6499
|
id: `ctor:${ifaceName}`,
|
|
@@ -6497,17 +6503,19 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6497
6503
|
displayName: `new ${ifaceName}`,
|
|
6498
6504
|
visibility: "public",
|
|
6499
6505
|
stability: "stable",
|
|
6500
|
-
sourceKind: "generated_resource_constructor"
|
|
6506
|
+
sourceKind: "generated_resource_constructor",
|
|
6507
|
+
...iface.sourceFile ? { sourceFile: iface.sourceFile } : {}
|
|
6501
6508
|
});
|
|
6502
6509
|
}
|
|
6503
|
-
for (const [aliasName] of Object.entries(surface.typeAliases)) symbols.push({
|
|
6510
|
+
for (const [aliasName, alias] of Object.entries(surface.typeAliases)) symbols.push({
|
|
6504
6511
|
id: `alias:${aliasName}`,
|
|
6505
6512
|
kind: "alias",
|
|
6506
6513
|
fqName: aliasName,
|
|
6507
6514
|
displayName: aliasName,
|
|
6508
6515
|
visibility: "public",
|
|
6509
6516
|
stability: "stable",
|
|
6510
|
-
sourceKind: "generated_resource_constructor"
|
|
6517
|
+
sourceKind: "generated_resource_constructor",
|
|
6518
|
+
...alias.sourceFile ? { sourceFile: alias.sourceFile } : {}
|
|
6511
6519
|
});
|
|
6512
6520
|
for (const [enumName, enumDef] of Object.entries(surface.enums)) {
|
|
6513
6521
|
symbols.push({
|
|
@@ -6517,7 +6525,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6517
6525
|
displayName: enumName,
|
|
6518
6526
|
visibility: "public",
|
|
6519
6527
|
stability: "stable",
|
|
6520
|
-
sourceKind: "generated_enum"
|
|
6528
|
+
sourceKind: "generated_enum",
|
|
6529
|
+
...enumDef.sourceFile ? { sourceFile: enumDef.sourceFile } : {}
|
|
6521
6530
|
});
|
|
6522
6531
|
for (const [memberName, memberValue] of Object.entries(enumDef.members)) symbols.push({
|
|
6523
6532
|
id: `enum_member:${enumName}.${memberName}`,
|
|
@@ -6528,7 +6537,8 @@ function apiSurfaceToSnapshot(surface) {
|
|
|
6528
6537
|
visibility: "public",
|
|
6529
6538
|
stability: "stable",
|
|
6530
6539
|
sourceKind: "generated_enum",
|
|
6531
|
-
value: memberValue
|
|
6540
|
+
value: memberValue,
|
|
6541
|
+
...enumDef.sourceFile ? { sourceFile: enumDef.sourceFile } : {}
|
|
6532
6542
|
});
|
|
6533
6543
|
}
|
|
6534
6544
|
return {
|