@suveren/gateway 0.19.4 → 0.20.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.
Files changed (51) hide show
  1. package/content/guides/1-interview.md +6 -0
  2. package/content/guides/2-package.md +4 -1
  3. package/content/guides/3-mandates.md +3 -0
  4. package/content/guides/6-risks.md +2 -0
  5. package/content/integrations/crm.json +1 -1
  6. package/content/integrations/deploy-github.json +1 -1
  7. package/content/integrations/erp.json +1 -1
  8. package/content/integrations/mail.json +1 -1
  9. package/content/integrations/records.json +1 -1
  10. package/dist/control-plane/index.mjs +21 -13
  11. package/dist/mcp-server/{chunk-ZRRZFGRL.mjs → chunk-APIQIEUA.mjs} +39 -27
  12. package/dist/mcp-server/http.mjs +382 -97
  13. package/dist/mcp-server/report-verify-cli.mjs +1 -1
  14. package/dist/ui/assets/index-1gCMlbLl.js +116 -0
  15. package/dist/ui/assets/{index-RCFQUjaF.css → index-blnpvM2g.css} +1 -1
  16. package/dist/ui/index.html +2 -2
  17. package/node_modules/@hap/core/README.md +92 -29
  18. package/node_modules/@hap/core/dist/index.d.mts +614 -593
  19. package/node_modules/@hap/core/dist/index.d.ts +614 -593
  20. package/node_modules/@hap/core/dist/index.js +774 -749
  21. package/node_modules/@hap/core/dist/index.mjs +744 -724
  22. package/node_modules/@hap/core/package.json +1 -1
  23. package/node_modules/@hap/core/src/base64url.ts +39 -0
  24. package/node_modules/@hap/core/src/commitment-modes.ts +0 -21
  25. package/node_modules/@hap/core/src/errors.ts +76 -0
  26. package/node_modules/@hap/core/src/frame.ts +47 -178
  27. package/node_modules/@hap/core/src/gatekeeper.ts +219 -600
  28. package/node_modules/@hap/core/src/identity.ts +9 -12
  29. package/node_modules/@hap/core/src/index.ts +8 -4
  30. package/node_modules/@hap/core/src/mandate.ts +177 -166
  31. package/node_modules/@hap/core/src/owner-signature.ts +282 -0
  32. package/node_modules/@hap/core/src/profile.ts +234 -0
  33. package/node_modules/@hap/core/src/ticket.ts +148 -0
  34. package/node_modules/@hap/core/src/types.ts +191 -344
  35. package/node_modules/@hap/core/src/versions.ts +47 -0
  36. package/package.json +2 -2
  37. package/profiles/calendar/0.6.profile.json +191 -0
  38. package/profiles/charge/0.6.profile.json +211 -0
  39. package/profiles/customers/0.9.profile.json +182 -0
  40. package/profiles/delegation/0.3.profile.json +118 -0
  41. package/profiles/deploy/0.11.profile.json +177 -0
  42. package/profiles/email/0.8.profile.json +226 -0
  43. package/profiles/index.json +12 -1
  44. package/profiles/publish/0.6.profile.json +187 -0
  45. package/profiles/purchase/0.7.profile.json +235 -0
  46. package/profiles/records/0.6.profile.json +118 -0
  47. package/profiles/reporting/0.3.profile.json +98 -0
  48. package/profiles/sales/0.4.profile.json +291 -0
  49. package/dist/ui/assets/index-BseWI4iJ.js +0 -116
  50. package/node_modules/@hap/core/src/attestation.ts +0 -173
  51. package/node_modules/@hap/core/src/receipt.ts +0 -74
@@ -0,0 +1,291 @@
1
+ {
2
+ "id": "github.com/humanagencyprotocol/hap-profiles/sales@0.4",
3
+ "name": "Sales",
4
+ "version": "0.4",
5
+ "description": "Sales authority — governs quote-to-order in an ERP: draft quotes, send quotes to customers, convert quotes to orders. No invoicing, delivery, payments or master data.",
6
+ "whatsNew": "Protocol v0.7 wording: the scope schema replaces the context schema, and the required gate is the Mandate Owner. Limits and scope are unchanged.",
7
+ "boundsSchema": {
8
+ "actionTypes": [
9
+ "quote",
10
+ "send",
11
+ "order",
12
+ "setup"
13
+ ],
14
+ "keyOrder": [
15
+ "profile",
16
+ "read_access",
17
+ "value_max",
18
+ "discount_max",
19
+ "order_value_daily_max",
20
+ "quote_daily_max",
21
+ "send_daily_max",
22
+ "order_daily_max",
23
+ "setup_daily_max"
24
+ ],
25
+ "fields": {
26
+ "profile": {
27
+ "type": "string",
28
+ "required": true
29
+ },
30
+ "read_access": {
31
+ "type": "string",
32
+ "required": true,
33
+ "displayName": "Read access",
34
+ "description": "Allow the agent to look up items, stock, list prices, customers (incl. credit limit and open balance), quotes and orders.",
35
+ "boundType": {
36
+ "kind": "enum",
37
+ "values": [
38
+ "unlimited",
39
+ "none"
40
+ ]
41
+ },
42
+ "toolsDescription": "list_items, get_item, find_customers, get_customer, list_quotes, get_quote, list_orders, get_order",
43
+ "default": "unlimited"
44
+ },
45
+ "value_max": {
46
+ "type": "number",
47
+ "required": true,
48
+ "displayName": "Max value per quote or order",
49
+ "description": "Maximum net document total of a single quote or order, in currency units. The connector recalculates the total from the lines and refuses a call whose declared value does not match.",
50
+ "unit": "currency:EUR",
51
+ "boundType": {
52
+ "kind": "per_transaction",
53
+ "of": "value",
54
+ "requiredFor": [
55
+ "quote",
56
+ "order"
57
+ ]
58
+ }
59
+ },
60
+ "discount_max": {
61
+ "type": "number",
62
+ "required": true,
63
+ "displayName": "Max discount",
64
+ "description": "Maximum document discount against list price, in percent. 0 means list price only. The connector recalculates the discount from list prices and refuses a call whose declared discount does not match.",
65
+ "unit": "percent",
66
+ "boundType": {
67
+ "kind": "per_transaction",
68
+ "of": "discount_pct",
69
+ "requiredFor": [
70
+ "quote",
71
+ "order"
72
+ ]
73
+ }
74
+ },
75
+ "order_value_daily_max": {
76
+ "type": "number",
77
+ "required": true,
78
+ "displayName": "Daily order value",
79
+ "description": "Maximum cumulative net value of orders created per day, in currency units.",
80
+ "unit": "currency:EUR",
81
+ "boundType": {
82
+ "kind": "cumulative_sum",
83
+ "of": "value",
84
+ "window": "daily"
85
+ },
86
+ "appliesTo": [
87
+ "order"
88
+ ]
89
+ },
90
+ "quote_daily_max": {
91
+ "type": "number",
92
+ "required": true,
93
+ "displayName": "Quotes per day",
94
+ "description": "Maximum draft quotes created or edited per day",
95
+ "unit": "count",
96
+ "boundType": {
97
+ "kind": "cumulative_count",
98
+ "window": "daily"
99
+ },
100
+ "appliesTo": [
101
+ "quote"
102
+ ]
103
+ },
104
+ "send_daily_max": {
105
+ "type": "number",
106
+ "required": true,
107
+ "displayName": "Quotes sent per day",
108
+ "description": "Maximum quotes sent to customers per day. Sending a quote is a binding offer.",
109
+ "unit": "count",
110
+ "boundType": {
111
+ "kind": "cumulative_count",
112
+ "window": "daily"
113
+ },
114
+ "appliesTo": [
115
+ "send"
116
+ ]
117
+ },
118
+ "order_daily_max": {
119
+ "type": "number",
120
+ "required": true,
121
+ "displayName": "Orders per day",
122
+ "description": "Maximum quotes converted to orders per day. An order reserves stock and commits a delivery date.",
123
+ "unit": "count",
124
+ "boundType": {
125
+ "kind": "cumulative_count",
126
+ "window": "daily"
127
+ },
128
+ "appliesTo": [
129
+ "order"
130
+ ]
131
+ },
132
+ "setup_daily_max": {
133
+ "type": "number",
134
+ "required": true,
135
+ "displayName": "Test-data loads per day",
136
+ "description": "How many times per day the simulated system may be loaded with a simulation package (load_simulation). Only works while the connector runs in simulation mode, and only into an empty system — a load cannot edit or replace existing test data. 0 = not allowed. Grant it only in a separate setup mandate, never in the mandate the AI uses for its work.",
137
+ "unit": "count",
138
+ "boundType": {
139
+ "kind": "cumulative_count",
140
+ "window": "daily"
141
+ },
142
+ "appliesTo": [
143
+ "setup"
144
+ ],
145
+ "default": 0
146
+ }
147
+ }
148
+ },
149
+ "scopeSchema": {
150
+ "keyOrder": [
151
+ "currency"
152
+ ],
153
+ "fields": {
154
+ "currency": {
155
+ "type": "string",
156
+ "required": true,
157
+ "displayName": "Currency",
158
+ "description": "Permitted document currency",
159
+ "constraint": {
160
+ "type": "string",
161
+ "enforceable": [
162
+ "enum"
163
+ ]
164
+ },
165
+ "enum": [
166
+ "EUR",
167
+ "CHF",
168
+ "USD",
169
+ "GBP"
170
+ ]
171
+ }
172
+ }
173
+ },
174
+ "executionContextSchema": {
175
+ "fields": {
176
+ "value": {
177
+ "source": "declared",
178
+ "description": "Net document total in currency units (verified by the connector against the lines)",
179
+ "required": true,
180
+ "constraint": {
181
+ "type": "number",
182
+ "enforceable": [
183
+ "max"
184
+ ]
185
+ }
186
+ },
187
+ "discount_pct": {
188
+ "source": "declared",
189
+ "description": "Document discount against list price in percent (verified by the connector against list prices)",
190
+ "required": true,
191
+ "constraint": {
192
+ "type": "number",
193
+ "enforceable": [
194
+ "max"
195
+ ]
196
+ }
197
+ },
198
+ "currency": {
199
+ "source": "declared",
200
+ "description": "Document currency",
201
+ "required": true,
202
+ "constraint": {
203
+ "type": "string",
204
+ "enforceable": [
205
+ "enum"
206
+ ]
207
+ }
208
+ },
209
+ "order_value_daily": {
210
+ "source": "cumulative",
211
+ "description": "Running daily order value (resolved from execution log)",
212
+ "required": true,
213
+ "constraint": {
214
+ "type": "number",
215
+ "enforceable": [
216
+ "max"
217
+ ]
218
+ },
219
+ "cumulativeField": "value",
220
+ "window": "daily"
221
+ },
222
+ "quote_count_daily": {
223
+ "source": "cumulative",
224
+ "description": "Running daily quote count",
225
+ "required": true,
226
+ "constraint": {
227
+ "type": "number",
228
+ "enforceable": [
229
+ "max"
230
+ ]
231
+ },
232
+ "cumulativeField": "_count",
233
+ "window": "daily"
234
+ },
235
+ "send_count_daily": {
236
+ "source": "cumulative",
237
+ "description": "Running daily send count",
238
+ "required": true,
239
+ "constraint": {
240
+ "type": "number",
241
+ "enforceable": [
242
+ "max"
243
+ ]
244
+ },
245
+ "cumulativeField": "_count",
246
+ "window": "daily"
247
+ },
248
+ "order_count_daily": {
249
+ "source": "cumulative",
250
+ "description": "Running daily order count",
251
+ "required": true,
252
+ "constraint": {
253
+ "type": "number",
254
+ "enforceable": [
255
+ "max"
256
+ ]
257
+ },
258
+ "cumulativeField": "_count",
259
+ "window": "daily"
260
+ },
261
+ "setup_count_daily": {
262
+ "source": "cumulative",
263
+ "cumulativeField": "_count",
264
+ "window": "daily",
265
+ "description": "Running daily count of test-data loads",
266
+ "required": true,
267
+ "constraint": {
268
+ "type": "number",
269
+ "enforceable": [
270
+ "max"
271
+ ]
272
+ }
273
+ }
274
+ }
275
+ },
276
+ "requiredGates": [
277
+ "bounds",
278
+ "intent",
279
+ "commitment",
280
+ "mandate_owner"
281
+ ],
282
+ "ttl": {
283
+ "default": 86400,
284
+ "max": 2592000
285
+ },
286
+ "retention_minimum": 7776000,
287
+ "content_binding": {
288
+ "version": "1",
289
+ "kind": "jcs"
290
+ }
291
+ }