@contractspec/example.openbanking-powens 2.9.1 → 3.1.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.
@@ -3,7 +3,7 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
3
3
  $ contractspec-bun-build prebuild
4
4
  $ contractspec-bun-build transpile
5
5
  [contractspec-bun-build] transpile target=bun root=src entries=6
6
- Bundled 6 modules in 7ms
6
+ Bundled 6 modules in 21ms
7
7
 
8
8
  docs/index.js 1.58 KB (entry point)
9
9
  ./index.js 8.1 KB (entry point)
@@ -13,7 +13,7 @@ Bundled 6 modules in 7ms
13
13
  handlers/webhook-handler.js 3.22 KB (entry point)
14
14
 
15
15
  [contractspec-bun-build] transpile target=node root=src entries=6
16
- Bundled 6 modules in 19ms
16
+ Bundled 6 modules in 17ms
17
17
 
18
18
  docs/index.js 1.56 KB (entry point)
19
19
  ./index.js 8.1 KB (entry point)
package/AGENTS.md ADDED
@@ -0,0 +1,30 @@
1
+ # AI Agent Guide -- `@contractspec/example.openbanking-powens`
2
+
3
+ Scope: `packages/examples/openbanking-powens/*`
4
+
5
+ OpenBanking Powens example: OAuth callback + webhook handler patterns for provider integration.
6
+
7
+ ## Quick Context
8
+
9
+ - **Layer**: example
10
+ - **Related Packages**: `integration.providers-impls`, `lib.contracts-spec`
11
+
12
+ ## What This Demonstrates
13
+
14
+ - OAuth callback handler pattern for open banking
15
+ - Webhook handler for asynchronous bank event ingestion
16
+ - Provider integration via contracts-integrations
17
+
18
+ ## Public Exports
19
+
20
+ - `.` -- root barrel
21
+ - `./handlers/oauth-callback` -- OAuth flow handler
22
+ - `./handlers/webhook-handler` -- webhook ingestion
23
+ - `./docs`, `./example`
24
+
25
+ ## Local Commands
26
+
27
+ - Build: `bun run build`
28
+ - Dev: `bun run dev`
29
+ - Test: `bun test --pass-with-no-tests`
30
+ - Typecheck: `bun run typecheck`
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @contractspec/example.openbanking-powens
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [02c0cc5]
8
+ - @contractspec/lib.contracts-spec@3.1.1
9
+ - @contractspec/integration.providers-impls@3.1.1
10
+
11
+ ## 3.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 28987eb: chore: upgrade dependencies
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [f2a4faf]
20
+ - Updated dependencies [28987eb]
21
+ - Updated dependencies [28987eb]
22
+ - @contractspec/lib.contracts-spec@3.1.0
23
+ - @contractspec/integration.providers-impls@3.1.0
24
+
25
+ ## 3.0.0
26
+
27
+ ### Major Changes
28
+
29
+ - b781ce6: feat: improve ai readiness
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [7cbdb7f]
34
+ - Updated dependencies [c608804]
35
+ - Updated dependencies [e3bc858]
36
+ - Updated dependencies [b19ae0a]
37
+ - Updated dependencies [aa4a9c9]
38
+ - Updated dependencies [b781ce6]
39
+ - @contractspec/lib.contracts-spec@3.0.0
40
+ - @contractspec/integration.providers-impls@3.0.0
41
+
3
42
  ## 2.9.1
4
43
 
5
44
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @contractspec/example.openbanking-powens
2
+
3
+ Website: https://contractspec.io/
4
+
5
+ **OAuth callback + webhook handler patterns**
6
+
7
+ OpenBanking Powens example: OAuth callback + webhook handler patterns. Framework-neutral handlers operate on standard `Request` for use in Next.js, Elysia, or any fetch-compatible runtime.
8
+
9
+ ## What This Demonstrates
10
+
11
+ - OAuth callback handler for Powens open banking
12
+ - Webhook handler for Powens events
13
+ - Example spec with provider and workflow orchestration
14
+
15
+ ## Exports
16
+
17
+ - `.` — main entry (registers docs, exports example and handlers)
18
+ - `./docs` — doc blocks
19
+ - `./example` — example metadata
20
+ - `./handlers/oauth-callback` — OAuth callback handler
21
+ - `./handlers/webhook-handler` — webhook handler
22
+
23
+ ## Usage
24
+
25
+ ```ts
26
+ import { powensOAuthCallbackHandler } from "@contractspec/example.openbanking-powens/handlers/oauth-callback";
27
+ import { powensWebhookHandler } from "@contractspec/example.openbanking-powens/handlers/webhook-handler";
28
+
29
+ // Wire into your framework (Next.js, Elysia, etc.)
30
+ // GET /api/oauth/callback → powensOAuthCallbackHandler
31
+ // POST /api/webhooks/powens → powensWebhookHandler
32
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.openbanking-powens",
3
- "version": "2.9.1",
3
+ "version": "3.1.1",
4
4
  "description": "OpenBanking Powens example: OAuth callback + webhook handler patterns (provider + workflows).",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -64,13 +64,13 @@
64
64
  "typecheck": "tsc --noEmit"
65
65
  },
66
66
  "dependencies": {
67
- "@contractspec/integration.providers-impls": "2.10.0",
68
- "@contractspec/lib.contracts-spec": "2.10.0"
67
+ "@contractspec/integration.providers-impls": "3.1.1",
68
+ "@contractspec/lib.contracts-spec": "3.1.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@contractspec/tool.typescript": "2.9.0",
71
+ "@contractspec/tool.typescript": "3.1.0",
72
72
  "typescript": "^5.9.3",
73
- "@contractspec/tool.bun": "2.9.0"
73
+ "@contractspec/tool.bun": "3.1.0"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public",