@lssm/example.openbanking-powens 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221132705

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.
@@ -50,55 +50,55 @@ $ tsdown
50
50
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js  2.80 kB │ gzip: 1.24 kB
51
51
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map  2.68 kB │ gzip: 1.21 kB
52
52
  ℹ dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map  2.58 kB │ gzip: 1.16 kB
53
+ ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map  2.58 kB │ gzip: 1.16 kB
53
54
  ℹ dist/libs/contracts/dist/docs/registry.js.map  2.51 kB │ gzip: 1.01 kB
54
- ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map  2.51 kB │ gzip: 1.15 kB
55
55
  ℹ dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js  2.46 kB │ gzip: 1.15 kB
56
56
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map  2.41 kB │ gzip: 1.06 kB
57
57
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map  2.26 kB │ gzip: 1.00 kB
58
58
  ℹ dist/libs/contracts/dist/docs/presentations.js  2.22 kB │ gzip: 0.79 kB
59
59
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js  2.18 kB │ gzip: 1.04 kB
60
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in src/handlers/webhook-handler.ts
61
+ ╭─[ src/handlers/webhook-handler.ts:7:45 ]
62
+ │
63
+ 7 │ import { createHmac, timingSafeEqual } from 'node:crypto';
64
+  │ ──────┬──────
60
65
  ℹ dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js  2.09 kB │ gzip: 0.99 kB
66
+ ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js  2.08 kB │ gzip: 1.00 kB
67
+  │ ╰──────── Module not found, treating it as an external dependency
61
68
  ℹ dist/docs/openbanking-powens.docblock.js.map  2.05 kB │ gzip: 0.94 kB
62
- ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js  2.01 kB │ gzip: 0.99 kB
63
69
  ℹ dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map  1.95 kB │ gzip: 0.95 kB
64
70
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js  1.91 kB │ gzip: 0.90 kB
71
+  │
65
72
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js  1.78 kB │ gzip: 0.84 kB
73
+  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
66
74
  ℹ dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map  1.64 kB │ gzip: 0.83 kB
67
75
  ℹ dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js  1.51 kB │ gzip: 0.79 kB
76
+ ───╯
68
77
  ℹ dist/libs/contracts/dist/docs/meta.docs.js.map  1.38 kB │ gzip: 0.78 kB
69
78
  ℹ dist/libs/contracts/dist/docs/index.js  1.38 kB │ gzip: 0.43 kB
79
+
70
80
  ℹ dist/libs/contracts/dist/docs/registry.js  1.29 kB │ gzip: 0.58 kB
71
81
  ℹ dist/example.js.map  1.24 kB │ gzip: 0.64 kB
72
82
  ℹ dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js  1.20 kB │ gzip: 0.67 kB
73
83
  ℹ dist/libs/contracts/dist/docs/meta.docs.js  1.07 kB │ gzip: 0.63 kB
74
84
  ℹ dist/handlers/webhook-handler.d.ts.map  0.17 kB │ gzip: 0.14 kB
85
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:url' in ../../integrations/providers-impls/dist/impls/powens-client.js
75
86
  ℹ dist/handlers/oauth-callback.d.ts.map  0.17 kB │ gzip: 0.15 kB
76
87
  ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
88
+ ╭─[ ../../integrations/providers-impls/dist/impls/powens-client.js:1:21 ]
77
89
  ℹ dist/example.d.ts  1.11 kB │ gzip: 0.46 kB
90
+ │
78
91
  ℹ dist/index.d.ts  0.25 kB │ gzip: 0.13 kB
92
+ 1 │ import { URL } from "node:url";
79
93
  ℹ dist/handlers/oauth-callback.d.ts  0.22 kB │ gzip: 0.17 kB
80
94
  ℹ dist/handlers/webhook-handler.d.ts  0.21 kB │ gzip: 0.16 kB
81
- ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
82
- ℹ dist/docs/openbanking-powens.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
83
- ℹ 74 files, total: 292.54 kB
84
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in src/handlers/webhook-handler.ts
85
- ╭─[ src/handlers/webhook-handler.ts:7:45 ]
86
- │
87
- 7 │ import { createHmac, timingSafeEqual } from 'node:crypto';
88
-  │ ──────┬──────
89
-  │ ╰──────── Module not found, treating it as an external dependency
90
-  │
91
-  │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
92
- ───╯
93
-
94
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:url' in ../../integrations/providers-impls/dist/impls/powens-client.js
95
- ╭─[ ../../integrations/providers-impls/dist/impls/powens-client.js:1:21 ]
96
- │
97
- 1 │ import { URL } from "node:url";
98
95
   │ ─────┬────
99
96
   │ ╰────── Module not found, treating it as an external dependency
97
+ ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
98
+ ℹ dist/docs/openbanking-powens.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
99
+ ℹ 74 files, total: 292.68 kB
100
100
   │
101
101
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
102
102
  ───╯
103
103
 
104
- ✔ Build complete in 14126ms
104
+ ✔ Build complete in 20189ms
@@ -50,16 +50,16 @@ $ tsdown
50
50
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js  2.80 kB │ gzip: 1.24 kB
51
51
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map  2.68 kB │ gzip: 1.21 kB
52
52
  ℹ dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map  2.58 kB │ gzip: 1.16 kB
53
+ ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map  2.58 kB │ gzip: 1.16 kB
53
54
  ℹ dist/libs/contracts/dist/docs/registry.js.map  2.51 kB │ gzip: 1.01 kB
54
- ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map  2.51 kB │ gzip: 1.15 kB
55
55
  ℹ dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js  2.46 kB │ gzip: 1.15 kB
56
56
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map  2.41 kB │ gzip: 1.06 kB
57
57
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map  2.26 kB │ gzip: 1.00 kB
58
58
  ℹ dist/libs/contracts/dist/docs/presentations.js  2.22 kB │ gzip: 0.79 kB
59
59
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js  2.18 kB │ gzip: 1.04 kB
60
60
  ℹ dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js  2.09 kB │ gzip: 0.99 kB
61
+ ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js  2.08 kB │ gzip: 1.00 kB
61
62
  ℹ dist/docs/openbanking-powens.docblock.js.map  2.05 kB │ gzip: 0.94 kB
62
- ℹ dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js  2.01 kB │ gzip: 0.99 kB
63
63
  ℹ dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map  1.95 kB │ gzip: 0.95 kB
64
64
  ℹ dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js  1.91 kB │ gzip: 0.90 kB
65
65
  ℹ dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js  1.78 kB │ gzip: 0.84 kB
@@ -80,7 +80,7 @@ $ tsdown
80
80
  ℹ dist/handlers/webhook-handler.d.ts  0.21 kB │ gzip: 0.16 kB
81
81
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
82
82
  ℹ dist/docs/openbanking-powens.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
83
- ℹ 74 files, total: 292.54 kB
83
+ ℹ 74 files, total: 292.68 kB
84
84
  [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in src/handlers/webhook-handler.ts
85
85
  â•­─[ src/handlers/webhook-handler.ts:7:45 ]
86
86
  │
@@ -101,5 +101,5 @@ $ tsdown
101
101
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
102
102
  ───╯
103
103
 
104
- ✔ Build complete in 23085ms
104
+ ✔ Build complete in 6179ms
105
105
  $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.openbanking-powens
2
2
 
3
- ## 0.0.0-canary-20251220041653
3
+ ## 0.0.0-canary-20251221132705
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,6 +9,6 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/integration.providers-impls@0.0.0-canary-20251220041653
13
- - @lssm/lib.contracts@0.0.0-canary-20251220041653
14
- - @lssm/lib.schema@0.0.0-canary-20251220041653
12
+ - @lssm/integration.providers-impls@0.0.0-canary-20251221132705
13
+ - @lssm/lib.contracts@0.0.0-canary-20251221132705
14
+ - @lssm/lib.schema@0.0.0-canary-20251221132705
@@ -3,8 +3,8 @@ import { registerDocBlocks } from "../../registry.js";
3
3
  //#region ../../libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js
4
4
  const tech_contracts_openapi_export_DocBlocks = [{
5
5
  id: "docs.tech.contracts.openapi-export",
6
- title: "OpenAPI export (OpenAPI 3.1) from SpecRegistry",
7
- summary: "Generate a deterministic OpenAPI document from a SpecRegistry using jsonSchemaForSpec + REST transport metadata.",
6
+ title: "OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry",
7
+ summary: "Generate a deterministic OpenAPI document from a OperationSpecRegistry using jsonSchemaForSpec + REST transport metadata.",
8
8
  kind: "reference",
9
9
  visibility: "public",
10
10
  route: "/docs/tech/contracts/openapi-export",
@@ -13,7 +13,7 @@ const tech_contracts_openapi_export_DocBlocks = [{
13
13
  "openapi",
14
14
  "rest"
15
15
  ],
16
- body: `## OpenAPI export (OpenAPI 3.1) from SpecRegistry
16
+ body: `## OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry
17
17
 
18
18
  ### Purpose
19
19
 
@@ -42,9 +42,9 @@ contractspec openapi --registry ./src/registry.ts --out ./openapi.json
42
42
 
43
43
  The registry module must export one of:
44
44
 
45
- - \`registry: SpecRegistry\`
46
- - \`default(): SpecRegistry | Promise<SpecRegistry>\`
47
- - \`createRegistry(): SpecRegistry | Promise<SpecRegistry>\`
45
+ - \`registry: OperationSpecRegistry\`
46
+ - \`default(): OperationSpecRegistry | Promise<OperationSpecRegistry>\`
47
+ - \`createRegistry(): OperationSpecRegistry | Promise<OperationSpecRegistry>\`
48
48
 
49
49
  ### Notes / limitations (current)
50
50
 
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-export.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/contracts/openapi-export.docblock.ts\nconst tech_contracts_openapi_export_DocBlocks = [{\n\tid: \"docs.tech.contracts.openapi-export\",\n\ttitle: \"OpenAPI export (OpenAPI 3.1) from SpecRegistry\",\n\tsummary: \"Generate a deterministic OpenAPI document from a SpecRegistry using jsonSchemaForSpec + REST transport metadata.\",\n\tkind: \"reference\",\n\tvisibility: \"public\",\n\troute: \"/docs/tech/contracts/openapi-export\",\n\ttags: [\n\t\t\"contracts\",\n\t\t\"openapi\",\n\t\t\"rest\"\n\t],\n\tbody: `## OpenAPI export (OpenAPI 3.1) from SpecRegistry\n\n### Purpose\n\nContractSpec specs can be exported into an **OpenAPI 3.1** document for tooling (SDK generation, docs, gateways).\n\nThe export is **spec-first**:\n\n- Uses \\`jsonSchemaForSpec(spec)\\` for input/output JSON Schema (from SchemaModel → zod → JSON Schema)\n- Uses \\`spec.transport.rest.method/path\\` when present\n- Falls back to deterministic defaults:\n - Method: \\`POST\\` for commands, \\`GET\\` for queries\n - Path: \\`defaultRestPath(name, version)\\` → \\`/<dot/name>/v<version>\\`\n\n### Library API\n\n- Function: \\`openApiForRegistry(registry, options?)\\`\n- Location: \\`@lssm/lib.contracts/openapi\\`\n\n### CLI\n\nExport OpenAPI from a registry module:\n\n\\`\\`\\`bash\ncontractspec openapi --registry ./src/registry.ts --out ./openapi.json\n\\`\\`\\`\n\nThe registry module must export one of:\n\n- \\`registry: SpecRegistry\\`\n- \\`default(): SpecRegistry | Promise<SpecRegistry>\\`\n- \\`createRegistry(): SpecRegistry | Promise<SpecRegistry>\\`\n\n### Notes / limitations (current)\n\n- Responses are generated as a basic \\`200\\` response (plus schemas when available).\n- Query (GET) inputs are currently represented as a JSON request body when an input schema exists.\n- Errors are not yet expanded into OpenAPI responses; that will be added when we standardize error envelopes.`\n}];\nregisterDocBlocks(tech_contracts_openapi_export_DocBlocks);\n\n//#endregion\nexport { tech_contracts_openapi_export_DocBlocks };"],"mappings":";;;AAGA,MAAM,0CAA0C,CAAC;CAChD,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EACL;EACA;EACA;EACA;CACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCN,CAAC;AACF,kBAAkB,wCAAwC"}
1
+ {"version":3,"file":"openapi-export.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/contracts/openapi-export.docblock.ts\nconst tech_contracts_openapi_export_DocBlocks = [{\n\tid: \"docs.tech.contracts.openapi-export\",\n\ttitle: \"OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry\",\n\tsummary: \"Generate a deterministic OpenAPI document from a OperationSpecRegistry using jsonSchemaForSpec + REST transport metadata.\",\n\tkind: \"reference\",\n\tvisibility: \"public\",\n\troute: \"/docs/tech/contracts/openapi-export\",\n\ttags: [\n\t\t\"contracts\",\n\t\t\"openapi\",\n\t\t\"rest\"\n\t],\n\tbody: `## OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry\n\n### Purpose\n\nContractSpec specs can be exported into an **OpenAPI 3.1** document for tooling (SDK generation, docs, gateways).\n\nThe export is **spec-first**:\n\n- Uses \\`jsonSchemaForSpec(spec)\\` for input/output JSON Schema (from SchemaModel → zod → JSON Schema)\n- Uses \\`spec.transport.rest.method/path\\` when present\n- Falls back to deterministic defaults:\n - Method: \\`POST\\` for commands, \\`GET\\` for queries\n - Path: \\`defaultRestPath(name, version)\\` → \\`/<dot/name>/v<version>\\`\n\n### Library API\n\n- Function: \\`openApiForRegistry(registry, options?)\\`\n- Location: \\`@lssm/lib.contracts/openapi\\`\n\n### CLI\n\nExport OpenAPI from a registry module:\n\n\\`\\`\\`bash\ncontractspec openapi --registry ./src/registry.ts --out ./openapi.json\n\\`\\`\\`\n\nThe registry module must export one of:\n\n- \\`registry: OperationSpecRegistry\\`\n- \\`default(): OperationSpecRegistry | Promise<OperationSpecRegistry>\\`\n- \\`createRegistry(): OperationSpecRegistry | Promise<OperationSpecRegistry>\\`\n\n### Notes / limitations (current)\n\n- Responses are generated as a basic \\`200\\` response (plus schemas when available).\n- Query (GET) inputs are currently represented as a JSON request body when an input schema exists.\n- Errors are not yet expanded into OpenAPI responses; that will be added when we standardize error envelopes.`\n}];\nregisterDocBlocks(tech_contracts_openapi_export_DocBlocks);\n\n//#endregion\nexport { tech_contracts_openapi_export_DocBlocks };"],"mappings":";;;AAGA,MAAM,0CAA0C,CAAC;CAChD,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EACL;EACA;EACA;EACA;CACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCN,CAAC;AACF,kBAAkB,wCAAwC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.openbanking-powens",
3
- "version": "0.0.0-canary-20251220041653",
3
+ "version": "0.0.0-canary-20251221132705",
4
4
  "description": "OpenBanking Powens example: OAuth callback + webhook handler patterns (provider + workflows).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,13 +28,13 @@
28
28
  "test": "bun test"
29
29
  },
30
30
  "dependencies": {
31
- "@lssm/integration.providers-impls": "0.0.0-canary-20251220041653",
32
- "@lssm/lib.schema": "0.0.0-canary-20251220041653",
33
- "@lssm/lib.contracts": "0.0.0-canary-20251220041653"
31
+ "@lssm/integration.providers-impls": "0.0.0-canary-20251221132705",
32
+ "@lssm/lib.schema": "0.0.0-canary-20251221132705",
33
+ "@lssm/lib.contracts": "0.0.0-canary-20251221132705"
34
34
  },
35
35
  "devDependencies": {
36
- "@lssm/tool.tsdown": "0.0.0-canary-20251220041653",
37
- "@lssm/tool.typescript": "0.0.0-canary-20251220041653",
36
+ "@lssm/tool.tsdown": "0.0.0-canary-20251221132705",
37
+ "@lssm/tool.typescript": "0.0.0-canary-20251221132705",
38
38
  "tsdown": "^0.18.1",
39
39
  "typescript": "^5.9.3"
40
40
  },