@contractspec/example.openbanking-powens 3.0.0 → 3.2.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/.turbo/turbo-build.log +2 -2
- package/AGENTS.md +30 -0
- package/CHANGELOG.md +34 -0
- package/README.md +32 -0
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -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
|
|
6
|
+
Bundled 6 modules in 41ms
|
|
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 11ms
|
|
|
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
|
|
16
|
+
Bundled 6 modules in 21ms
|
|
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,39 @@
|
|
|
1
1
|
# @contractspec/example.openbanking-powens
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a281fc5: fix: missing dependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [a281fc5]
|
|
12
|
+
- @contractspec/integration.providers-impls@3.2.0
|
|
13
|
+
- @contractspec/lib.contracts-spec@3.2.0
|
|
14
|
+
|
|
15
|
+
## 3.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [02c0cc5]
|
|
20
|
+
- @contractspec/lib.contracts-spec@3.1.1
|
|
21
|
+
- @contractspec/integration.providers-impls@3.1.1
|
|
22
|
+
|
|
23
|
+
## 3.1.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- 28987eb: chore: upgrade dependencies
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [f2a4faf]
|
|
32
|
+
- Updated dependencies [28987eb]
|
|
33
|
+
- Updated dependencies [28987eb]
|
|
34
|
+
- @contractspec/lib.contracts-spec@3.1.0
|
|
35
|
+
- @contractspec/integration.providers-impls@3.1.0
|
|
36
|
+
|
|
3
37
|
## 3.0.0
|
|
4
38
|
|
|
5
39
|
### Major 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": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
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": "3.
|
|
68
|
-
"@contractspec/lib.contracts-spec": "3.
|
|
67
|
+
"@contractspec/integration.providers-impls": "3.2.0",
|
|
68
|
+
"@contractspec/lib.contracts-spec": "3.2.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@contractspec/tool.typescript": "3.
|
|
71
|
+
"@contractspec/tool.typescript": "3.2.0",
|
|
72
72
|
"typescript": "^5.9.3",
|
|
73
|
-
"@contractspec/tool.bun": "3.
|
|
73
|
+
"@contractspec/tool.bun": "3.2.0"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public",
|