@envarai/envarpay 0.2.0-alpha.8 → 2026.1025.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.
Files changed (85) hide show
  1. package/README.md +18 -56
  2. package/dist/commerce/agent-setup.d.ts +19 -0
  3. package/dist/commerce/agent-setup.js +210 -0
  4. package/dist/commerce/alerts.d.ts +5 -15
  5. package/dist/commerce/alerts.js +21 -77
  6. package/dist/commerce/card.js +1 -1
  7. package/dist/commerce/cli.js +74 -137
  8. package/dist/commerce/config.d.ts +1 -4
  9. package/dist/commerce/config.js +5 -81
  10. package/dist/commerce/configure.d.ts +2 -0
  11. package/dist/commerce/configure.js +78 -0
  12. package/dist/commerce/discovery.d.ts +20 -0
  13. package/dist/commerce/discovery.js +162 -0
  14. package/dist/commerce/envar-balance.d.ts +25 -0
  15. package/dist/commerce/envar-balance.js +65 -0
  16. package/dist/commerce/envar-runtime.d.ts +1 -0
  17. package/dist/commerce/envar-runtime.js +7 -0
  18. package/dist/commerce/envar.d.ts +13 -31
  19. package/dist/commerce/envar.js +35 -83
  20. package/dist/commerce/external-agent.d.ts +26 -0
  21. package/dist/commerce/external-agent.js +129 -0
  22. package/dist/commerce/external-events.d.ts +76 -0
  23. package/dist/commerce/external-events.js +273 -0
  24. package/dist/commerce/external-mcp.d.ts +10 -0
  25. package/dist/commerce/external-mcp.js +199 -0
  26. package/dist/commerce/external-oauth.d.ts +12 -0
  27. package/dist/commerce/external-oauth.js +230 -0
  28. package/dist/commerce/external-runtime.d.ts +25 -0
  29. package/dist/commerce/external-runtime.js +244 -0
  30. package/dist/commerce/managed.d.ts +3 -0
  31. package/dist/commerce/managed.js +143 -0
  32. package/dist/commerce/native-inventory.d.ts +9 -0
  33. package/dist/commerce/native-inventory.js +75 -0
  34. package/dist/commerce/native-skills.d.ts +8 -0
  35. package/dist/commerce/native-skills.js +11 -8
  36. package/dist/commerce/openclaw-setup.d.ts +28 -0
  37. package/dist/commerce/openclaw-setup.js +43 -0
  38. package/dist/commerce/operations.d.ts +1 -2
  39. package/dist/commerce/operations.js +17 -20
  40. package/dist/commerce/pricing.d.ts +0 -1
  41. package/dist/commerce/pricing.js +1 -3
  42. package/dist/commerce/runtime.d.ts +2 -2
  43. package/dist/commerce/runtime.js +2 -2
  44. package/dist/commerce/server.d.ts +0 -1
  45. package/dist/commerce/server.js +2 -3
  46. package/dist/commerce/setup.d.ts +25 -0
  47. package/dist/commerce/setup.js +379 -0
  48. package/dist/commerce/store.d.ts +11 -1
  49. package/dist/commerce/store.js +36 -2
  50. package/dist/commerce/types.d.ts +1 -56
  51. package/examples/envar-integration-policy.json +1 -9
  52. package/examples/seller.json +143 -26
  53. package/package.json +11 -20
  54. package/runtime/hermes-setup-probe.py +109 -0
  55. package/runtime/hermes-skill-inventory.py +108 -0
  56. package/schemas/envarpay.config.schema.json +7 -73
  57. package/dist/commerce/buyer-store.d.ts +0 -101
  58. package/dist/commerce/buyer-store.js +0 -168
  59. package/dist/commerce/buyer.d.ts +0 -138
  60. package/dist/commerce/buyer.js +0 -775
  61. package/dist/commerce/chain.d.ts +0 -24
  62. package/dist/commerce/chain.js +0 -146
  63. package/dist/commerce/client-runtime.d.ts +0 -8
  64. package/dist/commerce/client-runtime.js +0 -7
  65. package/dist/commerce/management.d.ts +0 -14
  66. package/dist/commerce/management.js +0 -140
  67. package/dist/commerce/mpp-client.d.ts +0 -70
  68. package/dist/commerce/mpp-client.js +0 -29
  69. package/dist/commerce/mpp-runtime.d.ts +0 -4
  70. package/dist/commerce/mpp-runtime.js +0 -4
  71. package/dist/commerce/mpp.d.ts +0 -53
  72. package/dist/commerce/mpp.js +0 -163
  73. package/dist/commerce/peer-proxy.d.ts +0 -44
  74. package/dist/commerce/peer-proxy.js +0 -673
  75. package/dist/commerce/stripe-issuer.d.ts +0 -41
  76. package/dist/commerce/stripe-issuer.js +0 -351
  77. package/dist/commerce/stripe-provider.d.ts +0 -11
  78. package/dist/commerce/stripe-provider.js +0 -132
  79. package/dist/commerce/x402.d.ts +0 -37
  80. package/dist/commerce/x402.js +0 -174
  81. package/dist/index.d.ts +0 -95
  82. package/dist/index.js +0 -163
  83. package/examples/buyer-policy.json +0 -18
  84. package/schemas/buyer-policy.schema.json +0 -253
  85. /package/{examples → runtime}/native-skill-runner.py +0 -0
@@ -1,253 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:envarpay:buyer-policy:1",
4
- "title": "Local buyer permission policy; not supplied by the seller",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": [
8
- "policyVersion",
9
- "paymentsEnabled",
10
- "approval",
11
- "peers",
12
- "budgets"
13
- ],
14
- "properties": {
15
- "policyVersion": {
16
- "const": 1
17
- },
18
- "paymentsEnabled": {
19
- "type": "boolean"
20
- },
21
- "approval": {
22
- "enum": [
23
- "per_purchase",
24
- "within_preapproved_limits"
25
- ]
26
- },
27
- "peers": {
28
- "type": "array",
29
- "minItems": 1,
30
- "items": {
31
- "type": "object",
32
- "additionalProperties": false,
33
- "required": [
34
- "id",
35
- "cardUrl",
36
- "protocol",
37
- "currency",
38
- "recipient",
39
- "maxPerPurchase"
40
- ],
41
- "properties": {
42
- "id": {
43
- "type": "string",
44
- "pattern": "^[a-z][a-z0-9-]{0,63}$"
45
- },
46
- "cardUrl": {
47
- "type": "string",
48
- "format": "uri",
49
- "pattern": "^https://"
50
- },
51
- "protocol": {
52
- "enum": [
53
- "x402",
54
- "mpp",
55
- "free"
56
- ]
57
- },
58
- "currency": {
59
- "type": [
60
- "string",
61
- "null"
62
- ]
63
- },
64
- "recipient": {
65
- "type": [
66
- "string",
67
- "null"
68
- ]
69
- },
70
- "maxPerPurchase": {
71
- "type": "string",
72
- "pattern": "^(0|[1-9][0-9]{0,77})$"
73
- },
74
- "mode": {
75
- "enum": [
76
- "envarpay",
77
- "standard-a2a"
78
- ]
79
- },
80
- "endpoint": {
81
- "type": "string",
82
- "format": "uri",
83
- "pattern": "^https://"
84
- },
85
- "authentication": {
86
- "enum": [
87
- "none",
88
- "bearer"
89
- ]
90
- },
91
- "localContract": {
92
- "type": "object",
93
- "additionalProperties": false,
94
- "required": [
95
- "revision",
96
- "offerId",
97
- "inputSchema",
98
- "amount",
99
- "paidOnly"
100
- ],
101
- "properties": {
102
- "revision": {
103
- "type": "integer",
104
- "minimum": 1,
105
- "maximum": 9007199254740991
106
- },
107
- "offerId": {
108
- "type": "string",
109
- "pattern": "^[a-z][a-z0-9-]{0,63}$"
110
- },
111
- "inputSchema": {
112
- "type": "object"
113
- },
114
- "amount": {
115
- "$ref": "#/$defs/amount"
116
- },
117
- "paidOnly": {
118
- "const": true
119
- }
120
- }
121
- }
122
- },
123
- "allOf": [
124
- {
125
- "if": {
126
- "properties": {
127
- "protocol": {
128
- "const": "free"
129
- }
130
- }
131
- },
132
- "then": {
133
- "properties": {
134
- "currency": {
135
- "const": null
136
- },
137
- "recipient": {
138
- "const": null
139
- },
140
- "maxPerPurchase": {
141
- "const": "0"
142
- }
143
- }
144
- },
145
- "else": {
146
- "properties": {
147
- "currency": {
148
- "type": "string",
149
- "minLength": 1
150
- },
151
- "recipient": {
152
- "type": "string",
153
- "minLength": 1
154
- },
155
- "maxPerPurchase": {
156
- "$ref": "#/$defs/amount"
157
- }
158
- }
159
- }
160
- },
161
- {
162
- "if": {
163
- "required": [
164
- "mode"
165
- ],
166
- "properties": {
167
- "mode": {
168
- "const": "standard-a2a"
169
- }
170
- }
171
- },
172
- "then": {
173
- "required": [
174
- "endpoint",
175
- "authentication",
176
- "localContract"
177
- ],
178
- "properties": {
179
- "protocol": {
180
- "const": "x402"
181
- },
182
- "endpoint": {},
183
- "authentication": {},
184
- "localContract": {}
185
- }
186
- },
187
- "else": {
188
- "not": {
189
- "anyOf": [
190
- {
191
- "required": [
192
- "endpoint"
193
- ],
194
- "properties": {
195
- "endpoint": {}
196
- }
197
- },
198
- {
199
- "required": [
200
- "authentication"
201
- ],
202
- "properties": {
203
- "authentication": {}
204
- }
205
- },
206
- {
207
- "required": [
208
- "localContract"
209
- ],
210
- "properties": {
211
- "localContract": {}
212
- }
213
- }
214
- ]
215
- }
216
- }
217
- }
218
- ]
219
- }
220
- },
221
- "budgets": {
222
- "type": "array",
223
- "minItems": 0,
224
- "items": {
225
- "type": "object",
226
- "additionalProperties": false,
227
- "required": [
228
- "currency",
229
- "maxTotal",
230
- "period"
231
- ],
232
- "properties": {
233
- "currency": {
234
- "type": "string",
235
- "minLength": 1
236
- },
237
- "maxTotal": {
238
- "$ref": "#/$defs/amount"
239
- },
240
- "period": {
241
- "const": "cumulative"
242
- }
243
- }
244
- }
245
- }
246
- },
247
- "$defs": {
248
- "amount": {
249
- "type": "string",
250
- "pattern": "^[1-9][0-9]{0,77}$"
251
- }
252
- }
253
- }
File without changes