@vinaystwt/xmpp-http-interceptor 0.1.0 → 0.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.
- package/README.md +37 -0
- package/package.json +13 -10
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @vinaystwt/xmpp-http-interceptor
|
|
2
|
+
|
|
3
|
+
xMPP HTTP Interceptor is the execution engine that turns ordinary HTTP calls into payment-aware calls.
|
|
4
|
+
|
|
5
|
+
It intercepts `402 Payment Required`, applies policy, chooses adapters, retries the request, records receipts, and updates operator-facing state.
|
|
6
|
+
|
|
7
|
+
## Position In The Package Family
|
|
8
|
+
|
|
9
|
+
Most builders should start with:
|
|
10
|
+
|
|
11
|
+
- `@vinaystwt/xmpp-core`
|
|
12
|
+
- `@vinaystwt/xmpp-mcp`
|
|
13
|
+
|
|
14
|
+
Use `@vinaystwt/xmpp-http-interceptor` directly only if you are building a custom gateway, worker, or middleware layer on top of xMPP internals.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @vinaystwt/xmpp-http-interceptor
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Best For
|
|
23
|
+
|
|
24
|
+
- custom HTTP payment middleware
|
|
25
|
+
- receipt and operator-state capture
|
|
26
|
+
- advanced retry and route-execution control
|
|
27
|
+
|
|
28
|
+
## Related Packages
|
|
29
|
+
|
|
30
|
+
- `@vinaystwt/xmpp-payment-adapters`
|
|
31
|
+
- `@vinaystwt/xmpp-policy-engine`
|
|
32
|
+
- `@vinaystwt/xmpp-router`
|
|
33
|
+
|
|
34
|
+
## Docs
|
|
35
|
+
|
|
36
|
+
- repo:
|
|
37
|
+
- https://github.com/Vinaystwt/xMPP
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinaystwt/xmpp-http-interceptor",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "HTTP 402 interception,
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Advanced xMPP execution engine for HTTP 402 interception, retries, receipts, and operator state.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/http-interceptor/src/index.js",
|
|
8
8
|
"types": "dist/http-interceptor/src/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"README.md",
|
|
11
12
|
"LICENSE"
|
|
12
13
|
],
|
|
13
14
|
"sideEffects": false,
|
|
@@ -25,7 +26,9 @@
|
|
|
25
26
|
"stellar",
|
|
26
27
|
"http",
|
|
27
28
|
"x402",
|
|
28
|
-
"mpp"
|
|
29
|
+
"mpp",
|
|
30
|
+
"receipts",
|
|
31
|
+
"operators"
|
|
29
32
|
],
|
|
30
33
|
"exports": {
|
|
31
34
|
".": {
|
|
@@ -45,12 +48,12 @@
|
|
|
45
48
|
"test": "vitest run"
|
|
46
49
|
},
|
|
47
50
|
"dependencies": {
|
|
48
|
-
"@vinaystwt/xmpp-config": "0.1.
|
|
49
|
-
"@vinaystwt/xmpp-contract-runtime": "0.1.
|
|
50
|
-
"@vinaystwt/xmpp-payment-adapters": "0.1.
|
|
51
|
-
"@vinaystwt/xmpp-policy-engine": "0.1.
|
|
52
|
-
"@vinaystwt/xmpp-router": "0.1.
|
|
53
|
-
"@vinaystwt/xmpp-types": "0.1.
|
|
54
|
-
"@vinaystwt/xmpp-wallet": "0.1.
|
|
51
|
+
"@vinaystwt/xmpp-config": "0.1.1",
|
|
52
|
+
"@vinaystwt/xmpp-contract-runtime": "0.1.1",
|
|
53
|
+
"@vinaystwt/xmpp-payment-adapters": "0.1.1",
|
|
54
|
+
"@vinaystwt/xmpp-policy-engine": "0.1.1",
|
|
55
|
+
"@vinaystwt/xmpp-router": "0.1.1",
|
|
56
|
+
"@vinaystwt/xmpp-types": "0.1.1",
|
|
57
|
+
"@vinaystwt/xmpp-wallet": "0.1.1"
|
|
55
58
|
}
|
|
56
59
|
}
|