@workos/oagen-emitters 0.6.1 → 0.6.2
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.mjs +1 -1
- package/dist/{plugin-CZc7Teko.mjs → plugin-DgjQSh2G.mjs} +43 -28
- package/dist/plugin-DgjQSh2G.mjs.map +1 -0
- package/dist/plugin.mjs +1 -1
- package/package.json +1 -1
- package/src/dotnet/manifest.ts +11 -5
- package/src/go/manifest.ts +11 -5
- package/src/node/manifest.ts +8 -1
- package/src/php/manifest.ts +11 -5
- package/src/python/manifest.ts +11 -5
- package/dist/plugin-CZc7Teko.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.2](https://github.com/workos/oagen-emitters/compare/v0.6.1...v0.6.2) (2026-04-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use per-operation mountOn in manifest service field ([#48](https://github.com/workos/oagen-emitters/issues/48)) ([f55bf72](https://github.com/workos/oagen-emitters/commit/f55bf72c9b3011785a060f079dd8fc0ed9984af4))
|
|
9
|
+
|
|
3
10
|
## [0.6.1](https://github.com/workos/oagen-emitters/compare/v0.6.0...v0.6.1) (2026-04-25)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as nodeEmitter, a as rustExtractor, c as pythonExtractor, d as rubyEmitter, f as kotlinEmitter, g as pythonEmitter, h as phpEmitter, i as kotlinExtractor, l as rubyExtractor, m as goEmitter, n as elixirExtractor, o as goExtractor, p as dotnetEmitter, r as dotnetExtractor, s as phpExtractor, t as workosEmittersPlugin, u as nodeExtractor } from "./plugin-
|
|
1
|
+
import { _ as nodeEmitter, a as rustExtractor, c as pythonExtractor, d as rubyEmitter, f as kotlinEmitter, g as pythonEmitter, h as phpEmitter, i as kotlinExtractor, l as rubyExtractor, m as goEmitter, n as elixirExtractor, o as goExtractor, p as dotnetEmitter, r as dotnetExtractor, s as phpExtractor, t as workosEmittersPlugin, u as nodeExtractor } from "./plugin-DgjQSh2G.mjs";
|
|
2
2
|
export { dotnetEmitter, dotnetExtractor, elixirExtractor, goEmitter, goExtractor, kotlinEmitter, kotlinExtractor, nodeEmitter, nodeExtractor, phpEmitter, phpExtractor, pythonEmitter, pythonExtractor, rubyEmitter, rubyExtractor, rustExtractor, workosEmittersPlugin };
|
|
@@ -6605,13 +6605,16 @@ function generateSerializerTests(spec, ctx) {
|
|
|
6605
6605
|
//#region src/node/manifest.ts
|
|
6606
6606
|
function buildOperationsMap$6(spec, ctx) {
|
|
6607
6607
|
const manifest = {};
|
|
6608
|
+
const resolvedLookup = buildResolvedLookup(ctx);
|
|
6608
6609
|
for (const service of spec.services) {
|
|
6609
|
-
const
|
|
6610
|
+
const serviceProp = servicePropertyName$4(resolveResourceClassName$3(service, ctx));
|
|
6610
6611
|
for (const op of service.operations) {
|
|
6611
6612
|
const httpKey = `${op.httpMethod.toUpperCase()} ${op.path}`;
|
|
6613
|
+
const method = resolveMethodName$6(op, service, ctx);
|
|
6614
|
+
const resolved = lookupResolved(op, resolvedLookup);
|
|
6612
6615
|
manifest[httpKey] = {
|
|
6613
|
-
sdkMethod:
|
|
6614
|
-
service:
|
|
6616
|
+
sdkMethod: method,
|
|
6617
|
+
service: resolved ? servicePropertyName$4(resolved.mountOn) : serviceProp
|
|
6615
6618
|
};
|
|
6616
6619
|
}
|
|
6617
6620
|
}
|
|
@@ -10254,18 +10257,21 @@ function generateModelRoundTripTests(spec, ctx) {
|
|
|
10254
10257
|
function buildOperationsMap$5(spec, ctx) {
|
|
10255
10258
|
const manifest = {};
|
|
10256
10259
|
const accessPaths = buildServiceAccessPaths$3(spec.services, ctx);
|
|
10260
|
+
const resolvedLookup = buildResolvedLookup(ctx);
|
|
10257
10261
|
for (const service of spec.services) {
|
|
10258
|
-
let
|
|
10259
|
-
if (!
|
|
10262
|
+
let serviceProp = accessPaths.get(service.name);
|
|
10263
|
+
if (!serviceProp) {
|
|
10260
10264
|
const mountTarget = getMountTarget(service, ctx);
|
|
10261
|
-
|
|
10265
|
+
serviceProp = accessPaths.get(mountTarget);
|
|
10262
10266
|
}
|
|
10263
|
-
if (!
|
|
10267
|
+
if (!serviceProp) throw new Error(`Missing public client access path for service ${service.name}`);
|
|
10264
10268
|
for (const op of service.operations) {
|
|
10265
10269
|
const httpKey = `${op.httpMethod.toUpperCase()} ${op.path}`;
|
|
10270
|
+
const method = resolveMethodName$5(op, service, ctx);
|
|
10271
|
+
const resolved = lookupResolved(op, resolvedLookup);
|
|
10266
10272
|
manifest[httpKey] = {
|
|
10267
|
-
sdkMethod:
|
|
10268
|
-
service:
|
|
10273
|
+
sdkMethod: method,
|
|
10274
|
+
service: (resolved && accessPaths.get(resolved.mountOn)) ?? serviceProp
|
|
10269
10275
|
};
|
|
10270
10276
|
}
|
|
10271
10277
|
}
|
|
@@ -12019,18 +12025,21 @@ function emitBodyAssertions(lines, op, ctx, hidden) {
|
|
|
12019
12025
|
function buildOperationsMap$4(spec, ctx) {
|
|
12020
12026
|
const manifest = {};
|
|
12021
12027
|
const accessPaths = buildServiceAccessPaths$2(spec.services, ctx);
|
|
12028
|
+
const resolvedLookup = buildResolvedLookup(ctx);
|
|
12022
12029
|
for (const service of spec.services) {
|
|
12023
|
-
let
|
|
12024
|
-
if (!
|
|
12030
|
+
let serviceProp = accessPaths.get(service.name);
|
|
12031
|
+
if (!serviceProp) {
|
|
12025
12032
|
const mountTarget = getMountTarget(service, ctx);
|
|
12026
|
-
|
|
12033
|
+
serviceProp = accessPaths.get(mountTarget);
|
|
12027
12034
|
}
|
|
12028
|
-
if (!
|
|
12035
|
+
if (!serviceProp) throw new Error(`Missing public client access path for service ${service.name}`);
|
|
12029
12036
|
for (const op of service.operations) {
|
|
12030
12037
|
const httpKey = `${op.httpMethod.toUpperCase()} ${op.path}`;
|
|
12038
|
+
const method = resolveMethodName$4(op, service, ctx);
|
|
12039
|
+
const resolved = lookupResolved(op, resolvedLookup);
|
|
12031
12040
|
manifest[httpKey] = {
|
|
12032
|
-
sdkMethod:
|
|
12033
|
-
service:
|
|
12041
|
+
sdkMethod: method,
|
|
12042
|
+
service: (resolved && accessPaths.get(resolved.mountOn)) ?? serviceProp
|
|
12034
12043
|
};
|
|
12035
12044
|
}
|
|
12036
12045
|
}
|
|
@@ -14459,18 +14468,21 @@ function generateModelFixtureValues(model) {
|
|
|
14459
14468
|
function buildOperationsMap$3(spec, ctx) {
|
|
14460
14469
|
const manifest = {};
|
|
14461
14470
|
const accessPaths = buildServiceAccessPaths$1(spec.services, ctx);
|
|
14471
|
+
const resolvedLookup = buildResolvedLookup(ctx);
|
|
14462
14472
|
for (const service of spec.services) {
|
|
14463
|
-
let
|
|
14464
|
-
if (!
|
|
14473
|
+
let serviceProp = accessPaths.get(service.name);
|
|
14474
|
+
if (!serviceProp) {
|
|
14465
14475
|
const mountTarget = getMountTarget(service, ctx);
|
|
14466
|
-
|
|
14476
|
+
serviceProp = accessPaths.get(mountTarget);
|
|
14467
14477
|
}
|
|
14468
|
-
if (!
|
|
14478
|
+
if (!serviceProp) throw new Error(`Missing public client access path for service ${service.name}`);
|
|
14469
14479
|
for (const op of service.operations) {
|
|
14470
14480
|
const httpKey = `${op.httpMethod.toUpperCase()} ${op.path}`;
|
|
14481
|
+
const method = resolveMethodName$3(op, service, ctx);
|
|
14482
|
+
const resolved = lookupResolved(op, resolvedLookup);
|
|
14471
14483
|
manifest[httpKey] = {
|
|
14472
|
-
sdkMethod:
|
|
14473
|
-
service:
|
|
14484
|
+
sdkMethod: method,
|
|
14485
|
+
service: (resolved && accessPaths.get(resolved.mountOn)) ?? serviceProp
|
|
14474
14486
|
};
|
|
14475
14487
|
}
|
|
14476
14488
|
}
|
|
@@ -16742,18 +16754,21 @@ function csStringLiteral(s) {
|
|
|
16742
16754
|
function buildOperationsMap$2(spec, ctx) {
|
|
16743
16755
|
const manifest = {};
|
|
16744
16756
|
const accessPaths = buildServiceAccessPaths(spec.services, ctx);
|
|
16757
|
+
const resolvedLookup = buildResolvedLookup(ctx);
|
|
16745
16758
|
for (const service of spec.services) {
|
|
16746
|
-
let
|
|
16747
|
-
if (!
|
|
16759
|
+
let serviceProp = accessPaths.get(service.name);
|
|
16760
|
+
if (!serviceProp) {
|
|
16748
16761
|
const mountTarget = getMountTarget(service, ctx);
|
|
16749
|
-
|
|
16762
|
+
serviceProp = accessPaths.get(mountTarget);
|
|
16750
16763
|
}
|
|
16751
|
-
if (!
|
|
16764
|
+
if (!serviceProp) throw new Error(`Missing public client access path for service ${service.name}`);
|
|
16752
16765
|
for (const op of service.operations) {
|
|
16753
16766
|
const httpKey = `${op.httpMethod.toUpperCase()} ${op.path}`;
|
|
16767
|
+
const method = resolveMethodName$2(op, service, ctx);
|
|
16768
|
+
const resolved = lookupResolved(op, resolvedLookup);
|
|
16754
16769
|
manifest[httpKey] = {
|
|
16755
|
-
sdkMethod:
|
|
16756
|
-
service:
|
|
16770
|
+
sdkMethod: method,
|
|
16771
|
+
service: (resolved && accessPaths.get(resolved.mountOn)) ?? serviceProp
|
|
16757
16772
|
};
|
|
16758
16773
|
}
|
|
16759
16774
|
}
|
|
@@ -21453,4 +21468,4 @@ const workosEmittersPlugin = {
|
|
|
21453
21468
|
//#endregion
|
|
21454
21469
|
export { nodeEmitter as _, rustExtractor as a, pythonExtractor as c, rubyEmitter as d, kotlinEmitter as f, pythonEmitter as g, phpEmitter as h, kotlinExtractor as i, rubyExtractor as l, goEmitter as m, elixirExtractor as n, goExtractor as o, dotnetEmitter as p, dotnetExtractor as r, phpExtractor as s, workosEmittersPlugin as t, nodeExtractor as u };
|
|
21455
21470
|
|
|
21456
|
-
//# sourceMappingURL=plugin-
|
|
21471
|
+
//# sourceMappingURL=plugin-DgjQSh2G.mjs.map
|