@workos/oagen-emitters 0.5.0 → 0.6.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.5.0"
2
+ ".": "0.6.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.0](https://github.com/workos/oagen-emitters/compare/v0.5.0...v0.6.0) (2026-04-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * extract plugin bundle and move manifest ownership to framework ([#44](https://github.com/workos/oagen-emitters/issues/44)) ([6a8c3a9](https://github.com/workos/oagen-emitters/commit/6a8c3a9897bf9952e83b7143037a97b0c5ecc508))
9
+
3
10
  ## [0.5.0](https://github.com/workos/oagen-emitters/compare/v0.4.0...v0.5.0) (2026-04-24)
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-BSop9f9z.mjs";
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-Dws9b6T7.mjs";
2
2
  export { dotnetEmitter, dotnetExtractor, elixirExtractor, goEmitter, goExtractor, kotlinEmitter, kotlinExtractor, nodeEmitter, nodeExtractor, phpEmitter, phpExtractor, pythonEmitter, pythonExtractor, rubyEmitter, rubyExtractor, rustExtractor, workosEmittersPlugin };
@@ -6603,7 +6603,7 @@ function generateSerializerTests(spec, ctx) {
6603
6603
  }
6604
6604
  //#endregion
6605
6605
  //#region src/node/manifest.ts
6606
- function generateManifest$6(spec, ctx) {
6606
+ function buildOperationsMap$6(spec, ctx) {
6607
6607
  const manifest = {};
6608
6608
  for (const service of spec.services) {
6609
6609
  const propName = servicePropertyName$4(resolveResourceClassName$3(service, ctx));
@@ -6615,12 +6615,7 @@ function generateManifest$6(spec, ctx) {
6615
6615
  };
6616
6616
  }
6617
6617
  }
6618
- return [{
6619
- path: "smoke-manifest.json",
6620
- content: JSON.stringify(manifest, null, 2),
6621
- integrateTarget: false,
6622
- overwriteExisting: true
6623
- }];
6618
+ return manifest;
6624
6619
  }
6625
6620
  //#endregion
6626
6621
  //#region src/node/index.ts
@@ -6652,8 +6647,8 @@ const nodeEmitter = {
6652
6647
  generateTests(spec, ctx) {
6653
6648
  return ensureTrailingNewlines$6(generateTests$6(spec, ctx));
6654
6649
  },
6655
- generateManifest(spec, ctx) {
6656
- return ensureTrailingNewlines$6(generateManifest$6(spec, ctx));
6650
+ buildOperationsMap(spec, ctx) {
6651
+ return buildOperationsMap$6(spec, ctx);
6657
6652
  },
6658
6653
  fileHeader() {
6659
6654
  return "// This file is auto-generated by oagen. Do not edit.";
@@ -10254,9 +10249,9 @@ function generateModelRoundTripTests(spec, ctx) {
10254
10249
  //#endregion
10255
10250
  //#region src/python/manifest.ts
10256
10251
  /**
10257
- * Generate smoke test manifest mapping HTTP operations to SDK methods.
10252
+ * Build operation-to-SDK-method mapping for the manifest.
10258
10253
  */
10259
- function generateManifest$5(spec, ctx) {
10254
+ function buildOperationsMap$5(spec, ctx) {
10260
10255
  const manifest = {};
10261
10256
  const accessPaths = buildServiceAccessPaths$3(spec.services, ctx);
10262
10257
  for (const service of spec.services) {
@@ -10274,12 +10269,7 @@ function generateManifest$5(spec, ctx) {
10274
10269
  };
10275
10270
  }
10276
10271
  }
10277
- return [{
10278
- path: "smoke-manifest.json",
10279
- content: JSON.stringify(manifest, null, 2),
10280
- integrateTarget: false,
10281
- overwriteExisting: true
10282
- }];
10272
+ return manifest;
10283
10273
  }
10284
10274
  //#endregion
10285
10275
  //#region src/python/index.ts
@@ -10337,8 +10327,8 @@ const pythonEmitter = {
10337
10327
  spec: testSpec
10338
10328
  }));
10339
10329
  },
10340
- generateManifest(spec, ctx) {
10341
- return ensureTrailingNewlines$5(generateManifest$5(spec, ctx));
10330
+ buildOperationsMap(spec, ctx) {
10331
+ return buildOperationsMap$5(spec, ctx);
10342
10332
  },
10343
10333
  fileHeader() {
10344
10334
  return "# This file is auto-generated by oagen. Do not edit.";
@@ -12020,9 +12010,9 @@ function emitBodyAssertions(lines, op, ctx, hidden) {
12020
12010
  //#endregion
12021
12011
  //#region src/php/manifest.ts
12022
12012
  /**
12023
- * Generate smoke test manifest mapping HTTP operations to SDK methods.
12013
+ * Build operation-to-SDK-method mapping for the manifest.
12024
12014
  */
12025
- function generateManifest$4(spec, ctx) {
12015
+ function buildOperationsMap$4(spec, ctx) {
12026
12016
  const manifest = {};
12027
12017
  const accessPaths = buildServiceAccessPaths$2(spec.services, ctx);
12028
12018
  for (const service of spec.services) {
@@ -12040,11 +12030,7 @@ function generateManifest$4(spec, ctx) {
12040
12030
  };
12041
12031
  }
12042
12032
  }
12043
- return [{
12044
- path: "smoke-manifest.json",
12045
- content: JSON.stringify(manifest, null, 2),
12046
- integrateTarget: false
12047
- }];
12033
+ return manifest;
12048
12034
  }
12049
12035
  //#endregion
12050
12036
  //#region src/php/index.ts
@@ -12085,9 +12071,9 @@ const phpEmitter = {
12085
12071
  ensureNamingInitialized(ctx);
12086
12072
  return ensureTrailingNewlines$4(generateTests$4(spec, ctx));
12087
12073
  },
12088
- generateManifest(spec, ctx) {
12074
+ buildOperationsMap(spec, ctx) {
12089
12075
  ensureNamingInitialized(ctx);
12090
- return ensureTrailingNewlines$4(generateManifest$4(spec, ctx));
12076
+ return buildOperationsMap$4(spec, ctx);
12091
12077
  },
12092
12078
  fileHeader() {
12093
12079
  return "<?php\n\ndeclare(strict_types=1);\n\n// This file is auto-generated by oagen. Do not edit.";
@@ -14464,9 +14450,9 @@ function generateModelFixtureValues(model) {
14464
14450
  //#endregion
14465
14451
  //#region src/go/manifest.ts
14466
14452
  /**
14467
- * Generate smoke test manifest mapping HTTP operations to SDK methods.
14453
+ * Build operation-to-SDK-method mapping for the manifest.
14468
14454
  */
14469
- function generateManifest$3(spec, ctx) {
14455
+ function buildOperationsMap$3(spec, ctx) {
14470
14456
  const manifest = {};
14471
14457
  const accessPaths = buildServiceAccessPaths$1(spec.services, ctx);
14472
14458
  for (const service of spec.services) {
@@ -14484,11 +14470,7 @@ function generateManifest$3(spec, ctx) {
14484
14470
  };
14485
14471
  }
14486
14472
  }
14487
- return [{
14488
- path: "smoke-manifest.json",
14489
- content: JSON.stringify(manifest, null, 2),
14490
- integrateTarget: false
14491
- }];
14473
+ return manifest;
14492
14474
  }
14493
14475
  //#endregion
14494
14476
  //#region src/go/index.ts
@@ -14521,8 +14503,8 @@ const goEmitter = {
14521
14503
  generateTests(spec, ctx) {
14522
14504
  return ensureTrailingNewlines$3(generateTests$3(spec, ctx));
14523
14505
  },
14524
- generateManifest(spec, ctx) {
14525
- return ensureTrailingNewlines$3(generateManifest$3(spec, ctx));
14506
+ buildOperationsMap(spec, ctx) {
14507
+ return buildOperationsMap$3(spec, ctx);
14526
14508
  },
14527
14509
  fileHeader() {
14528
14510
  return "// Code generated by oagen. DO NOT EDIT.";
@@ -16740,9 +16722,9 @@ function csStringLiteral(s) {
16740
16722
  //#endregion
16741
16723
  //#region src/dotnet/manifest.ts
16742
16724
  /**
16743
- * Generate smoke test manifest mapping HTTP operations to SDK methods.
16725
+ * Build operation-to-SDK-method mapping for the manifest.
16744
16726
  */
16745
- function generateManifest$2(spec, ctx) {
16727
+ function buildOperationsMap$2(spec, ctx) {
16746
16728
  const manifest = {};
16747
16729
  const accessPaths = buildServiceAccessPaths(spec.services, ctx);
16748
16730
  for (const service of spec.services) {
@@ -16760,11 +16742,7 @@ function generateManifest$2(spec, ctx) {
16760
16742
  };
16761
16743
  }
16762
16744
  }
16763
- return [{
16764
- path: "smoke-manifest.json",
16765
- content: JSON.stringify(manifest, null, 2),
16766
- integrateTarget: false
16767
- }];
16745
+ return manifest;
16768
16746
  }
16769
16747
  //#endregion
16770
16748
  //#region src/dotnet/index.ts
@@ -16906,8 +16884,8 @@ const dotnetEmitter = {
16906
16884
  primeModelAliases(enrichModelsFromSpec(c.spec.models));
16907
16885
  return prefixTestPaths(ensureTrailingNewlines$2(generateTests$2(spec, c)));
16908
16886
  },
16909
- generateManifest(spec, ctx) {
16910
- return ensureTrailingNewlines$2(generateManifest$2(spec, fixNamespace(ctx)));
16887
+ buildOperationsMap(spec, ctx) {
16888
+ return buildOperationsMap$2(spec, fixNamespace(ctx));
16911
16889
  },
16912
16890
  fileHeader() {
16913
16891
  return "// This file is auto-generated by oagen. Do not edit.";
@@ -19319,14 +19297,15 @@ function findService(ctx, op) {
19319
19297
  //#endregion
19320
19298
  //#region src/kotlin/manifest.ts
19321
19299
  /**
19322
- * Generate the smoke-test manifest mapping `"HTTP_METHOD /path"` to
19323
- * `{ sdkMethod, service }`. The `service` is the camelCase accessor property
19324
- * on the main `WorkOS` client (e.g., `organizations`).
19300
+ * Build the operation-to-SDK-method mapping for the manifest.
19301
+ *
19302
+ * The `service` is the camelCase accessor property on the main `WorkOS`
19303
+ * client (e.g., `organizations`).
19325
19304
  *
19326
19305
  * For polymorphic/split operations (e.g., authenticate -> 8 methods), the
19327
- * manifest emits one entry per wrapper method so each variant is addressable.
19306
+ * manifest emits an array of methods so each variant is addressable.
19328
19307
  */
19329
- function generateManifest$1(spec, ctx) {
19308
+ function buildOperationsMap$1(spec, ctx) {
19330
19309
  const manifest = {};
19331
19310
  const resolvedLookup = buildResolvedLookup(ctx);
19332
19311
  for (const service of spec.services) {
@@ -19348,11 +19327,7 @@ function generateManifest$1(spec, ctx) {
19348
19327
  };
19349
19328
  }
19350
19329
  }
19351
- return [{
19352
- path: "smoke-manifest.json",
19353
- content: JSON.stringify(manifest, null, 2),
19354
- integrateTarget: false
19355
- }];
19330
+ return manifest;
19356
19331
  }
19357
19332
  //#endregion
19358
19333
  //#region src/kotlin/index.ts
@@ -19393,8 +19368,8 @@ const kotlinEmitter = {
19393
19368
  spec: enrichedSpec
19394
19369
  }));
19395
19370
  },
19396
- generateManifest(spec, ctx) {
19397
- return ensureTrailingNewlines$1(generateManifest$1(spec, ctx));
19371
+ buildOperationsMap(spec, ctx) {
19372
+ return buildOperationsMap$1(spec, ctx);
19398
19373
  },
19399
19374
  fileHeader() {
19400
19375
  return "// This file is auto-generated by oagen. Do not edit.";
@@ -21121,13 +21096,13 @@ function stubUrlRegex(escaped) {
21121
21096
  //#endregion
21122
21097
  //#region src/ruby/manifest.ts
21123
21098
  /**
21124
- * Generate smoke test manifest mapping HTTP operations to SDK methods.
21099
+ * Build operation-to-SDK-method mapping for the manifest.
21125
21100
  *
21126
21101
  * Uses each resolved operation's actual mountOn (not the service default) so
21127
21102
  * operations remounted via operationHints land on the correct service prop.
21128
21103
  * Split operations emit one entry per wrapper (keyed by wrapper name + variant).
21129
21104
  */
21130
- function generateManifest(spec, ctx) {
21105
+ function buildOperationsMap(spec, ctx) {
21131
21106
  const manifest = {};
21132
21107
  for (const r of ctx.resolvedOperations ?? []) {
21133
21108
  const op = r.operation;
@@ -21142,12 +21117,7 @@ function generateManifest(spec, ctx) {
21142
21117
  service: propName
21143
21118
  };
21144
21119
  }
21145
- return [{
21146
- path: "smoke-manifest.json",
21147
- content: JSON.stringify(manifest, null, 2),
21148
- integrateTarget: false,
21149
- overwriteExisting: true
21150
- }];
21120
+ return manifest;
21151
21121
  }
21152
21122
  //#endregion
21153
21123
  //#region src/ruby/rbi.ts
@@ -21410,8 +21380,8 @@ const rubyEmitter = {
21410
21380
  generateTests(spec, ctx) {
21411
21381
  return ensureTrailingNewlines(generateTests(spec, ctx));
21412
21382
  },
21413
- generateManifest(spec, ctx) {
21414
- return ensureTrailingNewlines(generateManifest(spec, ctx));
21383
+ buildOperationsMap(spec, ctx) {
21384
+ return buildOperationsMap(spec, ctx);
21415
21385
  },
21416
21386
  fileHeader() {
21417
21387
  return `# frozen_string_literal: true\n\n# This file is auto-generated by oagen. Do not edit.`;
@@ -21468,4 +21438,4 @@ const workosEmittersPlugin = {
21468
21438
  //#endregion
21469
21439
  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 };
21470
21440
 
21471
- //# sourceMappingURL=plugin-BSop9f9z.mjs.map
21441
+ //# sourceMappingURL=plugin-Dws9b6T7.mjs.map