@kya-os/consent 0.2.2 → 0.2.3

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 (132) hide show
  1. package/README.md +128 -0
  2. package/dist/bundle/index.d.ts +38 -36
  3. package/dist/bundle/index.d.ts.map +1 -1
  4. package/dist/bundle/index.js +35 -33
  5. package/dist/bundle/index.js.map +1 -1
  6. package/dist/bundle/inline.d.ts.map +1 -1
  7. package/dist/bundle/inline.js +4 -4
  8. package/dist/bundle/inline.js.map +1 -1
  9. package/dist/bundle/shell.d.ts +7 -0
  10. package/dist/bundle/shell.d.ts.map +1 -1
  11. package/dist/bundle/shell.js +5 -0
  12. package/dist/bundle/shell.js.map +1 -1
  13. package/dist/cjs/bundle/index.js +4 -1
  14. package/dist/cjs/bundle/index.js.map +1 -1
  15. package/dist/cjs/bundle/inline.js +4 -4
  16. package/dist/cjs/bundle/inline.js.map +1 -1
  17. package/dist/cjs/bundle/shell.js +5 -0
  18. package/dist/cjs/bundle/shell.js.map +1 -1
  19. package/dist/cjs/components/consent-agent-header.js +15 -9
  20. package/dist/cjs/components/consent-agent-header.js.map +1 -1
  21. package/dist/cjs/components/consent-capabilities-screen.js +40 -78
  22. package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
  23. package/dist/cjs/components/consent-headline.js +138 -0
  24. package/dist/cjs/components/consent-headline.js.map +1 -0
  25. package/dist/cjs/components/consent-otp-input.js +35 -18
  26. package/dist/cjs/components/consent-otp-input.js.map +1 -1
  27. package/dist/cjs/components/index.js +3 -1
  28. package/dist/cjs/components/index.js.map +1 -1
  29. package/dist/cjs/components/mcp-consent.js +42 -1
  30. package/dist/cjs/components/mcp-consent.js.map +1 -1
  31. package/dist/cjs/copy/tokens.js +16 -1
  32. package/dist/cjs/copy/tokens.js.map +1 -1
  33. package/dist/cjs/identity/agent-identity.js +314 -0
  34. package/dist/cjs/identity/agent-identity.js.map +1 -0
  35. package/dist/cjs/identity/documents.js +212 -0
  36. package/dist/cjs/identity/documents.js.map +1 -0
  37. package/dist/cjs/identity/entity-card.js +128 -0
  38. package/dist/cjs/identity/entity-card.js.map +1 -0
  39. package/dist/cjs/identity/index.js +31 -0
  40. package/dist/cjs/identity/index.js.map +1 -0
  41. package/dist/cjs/identity/resolve.js +122 -0
  42. package/dist/cjs/identity/resolve.js.map +1 -0
  43. package/dist/cjs/identity/schemas.js +88 -0
  44. package/dist/cjs/identity/schemas.js.map +1 -0
  45. package/dist/cjs/index.js +3 -1
  46. package/dist/cjs/index.js.map +1 -1
  47. package/dist/cjs/mcp-app/inline.js +2 -2
  48. package/dist/cjs/mcp-app/inline.js.map +1 -1
  49. package/dist/cjs/mcp-app/types.js +1 -1
  50. package/dist/cjs/popup/launcher.js +3 -3
  51. package/dist/cjs/react/index.js +141 -25
  52. package/dist/cjs/react/index.js.map +1 -1
  53. package/dist/cjs/templates/index.js +1 -1
  54. package/dist/cjs/types/index.js +1 -1
  55. package/dist/components/consent-agent-header.d.ts +3 -1
  56. package/dist/components/consent-agent-header.d.ts.map +1 -1
  57. package/dist/components/consent-agent-header.js +15 -9
  58. package/dist/components/consent-agent-header.js.map +1 -1
  59. package/dist/components/consent-capabilities-screen.d.ts +13 -3
  60. package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
  61. package/dist/components/consent-capabilities-screen.js +40 -78
  62. package/dist/components/consent-capabilities-screen.js.map +1 -1
  63. package/dist/components/consent-headline.d.ts +42 -0
  64. package/dist/components/consent-headline.d.ts.map +1 -0
  65. package/dist/components/consent-headline.js +135 -0
  66. package/dist/components/consent-headline.js.map +1 -0
  67. package/dist/components/consent-otp-input.d.ts +7 -2
  68. package/dist/components/consent-otp-input.d.ts.map +1 -1
  69. package/dist/components/consent-otp-input.js +35 -18
  70. package/dist/components/consent-otp-input.js.map +1 -1
  71. package/dist/components/index.d.ts +18 -17
  72. package/dist/components/index.d.ts.map +1 -1
  73. package/dist/components/index.js +18 -17
  74. package/dist/components/index.js.map +1 -1
  75. package/dist/components/mcp-consent.d.ts +16 -0
  76. package/dist/components/mcp-consent.d.ts.map +1 -1
  77. package/dist/components/mcp-consent.js +42 -1
  78. package/dist/components/mcp-consent.js.map +1 -1
  79. package/dist/consent.js +493 -100
  80. package/dist/consent.min.js +244 -232
  81. package/dist/copy/tokens.d.ts +16 -1
  82. package/dist/copy/tokens.d.ts.map +1 -1
  83. package/dist/copy/tokens.js +16 -1
  84. package/dist/copy/tokens.js.map +1 -1
  85. package/dist/identity/agent-identity.d.ts +199 -0
  86. package/dist/identity/agent-identity.d.ts.map +1 -0
  87. package/dist/identity/agent-identity.js +305 -0
  88. package/dist/identity/agent-identity.js.map +1 -0
  89. package/dist/identity/documents.d.ts +63 -0
  90. package/dist/identity/documents.d.ts.map +1 -0
  91. package/dist/identity/documents.js +206 -0
  92. package/dist/identity/documents.js.map +1 -0
  93. package/dist/identity/entity-card.d.ts +80 -0
  94. package/dist/identity/entity-card.d.ts.map +1 -0
  95. package/dist/identity/entity-card.js +119 -0
  96. package/dist/identity/entity-card.js.map +1 -0
  97. package/dist/identity/index.d.ts +15 -0
  98. package/dist/identity/index.d.ts.map +1 -0
  99. package/dist/identity/index.js +15 -0
  100. package/dist/identity/index.js.map +1 -0
  101. package/dist/identity/resolve.d.ts +31 -0
  102. package/dist/identity/resolve.d.ts.map +1 -0
  103. package/dist/identity/resolve.js +119 -0
  104. package/dist/identity/resolve.js.map +1 -0
  105. package/dist/identity/schemas.d.ts +404 -0
  106. package/dist/identity/schemas.d.ts.map +1 -0
  107. package/dist/identity/schemas.js +84 -0
  108. package/dist/identity/schemas.js.map +1 -0
  109. package/dist/index.d.ts +2 -1
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +3 -1
  112. package/dist/index.js.map +1 -1
  113. package/dist/kya-os/index.d.ts +55 -0
  114. package/dist/kya-os/index.d.ts.map +1 -0
  115. package/dist/kya-os/index.js +235 -0
  116. package/dist/kya-os/index.js.map +1 -0
  117. package/dist/mcp-app/inline.d.ts.map +1 -1
  118. package/dist/mcp-app/inline.js +2 -2
  119. package/dist/mcp-app/inline.js.map +1 -1
  120. package/dist/mcp-app/types.d.ts +1 -1
  121. package/dist/mcp-app/types.js +1 -1
  122. package/dist/popup/launcher.d.ts +3 -3
  123. package/dist/popup/launcher.js +3 -3
  124. package/dist/react/index.d.ts +108 -22
  125. package/dist/react/index.d.ts.map +1 -1
  126. package/dist/react/index.js +151 -35
  127. package/dist/react/index.js.map +1 -1
  128. package/dist/templates/index.d.ts +1 -1
  129. package/dist/templates/index.js +1 -1
  130. package/dist/types/index.d.ts +1 -1
  131. package/dist/types/index.js +1 -1
  132. package/package.json +41 -6
package/README.md CHANGED
@@ -2,6 +2,41 @@
2
2
 
3
3
  `@kya-os/consent` provides consent configuration, Cedar capability types, templates, and Lit web components.
4
4
  Import `@kya-os/consent/bundle` to register the components, or serve `CONSENT_BUNDLE` as an ES module for a standalone page.
5
+ See every component live, and the attacks it holds up against, at [consent.kya-os.ai](https://consent.kya-os.ai).
6
+
7
+ ## Where it fits
8
+
9
+ This package works on its own, with any agent framework that needs a person's approval.
10
+ It also works with KYA-OS, an open protocol, and Vouched KYA runs both for you as a hosted service.
11
+
12
+ - `@kya-os/consent` draws the consent screen and reports what the person chose.
13
+ It is open source under MIT.
14
+ - [KYA-OS](https://github.com/decentralized-identity/kya-os-mcp/blob/main/SPEC.md) is an open protocol the screen works with, and doesn't need.
15
+ It gives the agent a DID, records the approval as a delegation credential, and has the agent sign a proof on every call for your server to check.
16
+ Its [JSON Schemas](https://schema.kya-os.org/) and [reference implementation](https://github.com/decentralized-identity/kya-os-mcp) are public, and the work happens in the [DIF Trusted AI Agents Working Group](https://identity.foundation/working-groups/trusted-agents.html).
17
+ - [Vouched KYA](https://kya.vouched.id/docs/govern/consent) is the hosted, commercial service.
18
+ It serves a consent page built on this package, stores the delegations it creates, verifies agent requests against them, and keeps the audit trail.
19
+
20
+ The screen's default footer says "Protected by Checkpoint".
21
+ Checkpoint is Vouched KYA's former name, and its hosted page relies on that default.
22
+ When you host the screen yourself, put your own footer in the `footer` slot.
23
+
24
+ ## Install
25
+
26
+ ```bash
27
+ npm install @kya-os/consent
28
+ ```
29
+
30
+ The passkey component is the one exception to a single install.
31
+ Its entry points, `@kya-os/consent/passkey` and `@kya-os/consent/passkey/react`, need the optional peer dependency `@kya-os/id`.
32
+
33
+ ```bash
34
+ npm install @kya-os/id # only if you import @kya-os/consent/passkey
35
+ ```
36
+
37
+ Without `@kya-os/id`, importing a passkey entry point fails with a module-not-found error for `@kya-os/id/wallet/passkey`.
38
+ Install `@kya-os/id@^0.6.0` to fix it.
39
+ Every other entry point works without it, and so does the self-contained `consent.js` bundle, which inlines the passkey code.
5
40
 
6
41
  ## A standalone scope grant
7
42
 
@@ -48,6 +83,36 @@ Empty selections cannot emit approval.
48
83
  `allSelected` (`all-selected`) seeds every capability as checked; rerendering the same capability IDs preserves the human's subsequent selection.
49
84
  HTML attributes for custom labels are `submit-label` and `cancel-label`; JavaScript properties are `submitLabel` and `cancelLabel`.
50
85
 
86
+ ## React
87
+
88
+ `@kya-os/consent/react` has a React component for every element, such as `ConsentCapabilitiesScreenReact` for the screen above.
89
+ It needs two optional peer dependencies, `react` (18 or 19) and `@lit/react`:
90
+
91
+ ```bash
92
+ npm install @kya-os/consent @lit/react
93
+ ```
94
+
95
+ ```tsx
96
+ import { ConsentCapabilitiesScreenReact } from "@kya-os/consent/react";
97
+
98
+ <ConsentCapabilitiesScreenReact
99
+ agentMetadata={{ name: "Claude", did: agentDid, verification: "verified" }}
100
+ capabilities={capabilities}
101
+ submitLabel="Approve grant"
102
+ loading={approving}
103
+ onAllow={(event) => hostApprove(event.detail)}
104
+ onDeny={hostDeny}
105
+ />;
106
+ ```
107
+
108
+ Each component sets its props as element properties, so arrays and objects such as `capabilities` arrive intact, and takes an `onX` handler for each event the element fires.
109
+ React 18 can't do either for a custom element.
110
+ React 19 sets properties itself, and a React 19 app can render the elements directly: import `@kya-os/consent/bundle` to register them and listen with the raw event name, as in `oncapabilities-allow`.
111
+ The components keep the handlers typed in both versions.
112
+ `react` and `@lit/react` are peers, so the components use your app's copy of React.
113
+ No other entry point imports either one.
114
+ `<consent-passkey>` has its own component, `ConsentPasskeyReact`, in `@kya-os/consent/passkey/react` (see [Passkey mode](#passkey-mode)).
115
+
51
116
  ## Host content and styling
52
117
 
53
118
  Named slots place host content in the existing screen layout:
@@ -79,6 +144,69 @@ These hooks style the actual components without reaching into their shadow roots
79
144
  The deprecated `verified` boolean is read only when `verification` is absent.
80
145
  The domain pill is tinted from `--consent-primary` and takes the theme's text color; `--cs-pill-domain-bg`, `--cs-pill-domain-border`, and `--cs-pill-domain-text` override it.
81
146
 
147
+ ## Agent identity: Entity Cards
148
+
149
+ Instead of `agentMetadata`, a host can hand the screen the agent as a KYA-OS Entity Card plus what its verifier established: `agentIdentity` on `<consent-capabilities-screen>` and `<mcp-consent>`, the `agent-identity` attribute, or `agentIdentity` in `generateConsentShell`.
150
+ The screen picks the pill from the verification, bound to the card.
151
+ A `verified` result counts only when it names the card's own DID, and a `domain` result only when it names the card's own domain; anything else shows UNVERIFIED.
152
+ When `agentIdentity` is set it is the only source for the agent tile: one that doesn't validate shows no tile, and never falls back to `agentMetadata`.
153
+ On `<mcp-consent>`, the card must name the `agent-did` the grant is for, or no tile shows.
154
+
155
+ The screen never verifies anything; the host does, before it renders the page.
156
+ `@kya-os/consent/identity` reads what agents already publish into the card shape:
157
+
158
+ - a KYA-OS Entity Card, as is;
159
+ - CIMD client metadata, read the way `cardFromClientMetadata` in `@kya-os/mcp/card` reads it;
160
+ - an A2A AgentCard carrying the KYA-OS entity-card extension, or the extension on its own;
161
+ - a NANDA AgentFacts document whose `id` is a DID.
162
+
163
+ `resolveAgentIdentity(document, { verifier, context })` reads the document, runs the verifier, binds its result to the card, and returns the `AgentIdentity` to render.
164
+ A verifier that throws or returns something malformed leaves the identity unverified.
165
+ A `verified` result must come with the verifier's own card for the document's DID, and the identity shows that card, so the name next to Verified is one the verifier checked.
166
+ Without a valid one, the identity is unverified.
167
+ Three verifiers fit:
168
+
169
+ - `domainVerifier` binds the card to the domain the host fetched the document from (`context.fetchedFrom`), and never says verified.
170
+ - `createKyaOsAgentVerifier` from `@kya-os/consent/kya-os` is the KYA-OS reference verifier (server only, ESM only, needs the optional peer `@kya-os/mcp`).
171
+ - Any object with `verify(document, context)` is an `AgentIdentityVerifier`.
172
+
173
+ The KYA-OS verifier says `verified` only when all of these hold:
174
+
175
+ - the card is a `did:web` card, resolved from the DID's own DID document, never taken from the presented document;
176
+ - `verifyCard` passes: the card is not revoked, and every accountability or attestation claim it makes holds;
177
+ - the requester proved it holds the card's key for this request, with a holder-of-key proof signed by a key the DID document publishes, addressed to `audience` and never seen before, or as the card's own CIMD client.
178
+ For a CIMD client, `context.cimdClientAuth` names the `client_id` the authorization server authenticated with `private_key_jwt` and the `jwks_uri` it took the key from.
179
+ Both must equal the card's `cimd` coordinates, and the CIMD document must be bound to the DID both ways.
180
+
181
+ Without a key proof the result is `domain` at best.
182
+ A `did:key` card has no home to resolve, so its name is self-asserted and it is never verified.
183
+ A card that names a `responsibleParty` needs `checks.accountabilityVerifier` to verify.
184
+
185
+ ```ts
186
+ import { createSafeFetch, InMemoryNonceCache } from "@kya-os/mcp/card";
187
+ import { generateConsentShell } from "@kya-os/consent";
188
+ import { resolveAgentIdentity } from "@kya-os/consent/identity";
189
+ import { createKyaOsAgentVerifier } from "@kya-os/consent/kya-os";
190
+
191
+ const verifier = createKyaOsAgentVerifier({
192
+ fetch: createSafeFetch(),
193
+ audience: "did:web:shop.example.com",
194
+ consumeNonceIfFresh: new InMemoryNonceCache().consume,
195
+ });
196
+
197
+ const agentIdentity = await resolveAgentIdentity(agentFacts, {
198
+ verifier,
199
+ context: { proof, request: { method: "tools/call", params } },
200
+ connectedAt,
201
+ });
202
+
203
+ const html = generateConsentShell({ ...options, agentDid, agentIdentity });
204
+ ```
205
+
206
+ `agentMetadataFromIdentity(identity)` gives the same tile data as `AgentMetadata`, so `isCappedAtProbe` and `compileCapabilitiesToCedar` lift the probe cap only for an identity a verifier proved.
207
+ `parseAgentIdentity` and `AgentIdentitySchema` validate an identity on the host.
208
+ The screen reads it with `readAgentIdentity`, which needs no zod, so the browser bundle stays free of it.
209
+
82
210
  ## Brand colors
83
211
 
84
212
  Text drawn on or in a brand color reads its own variable, so it reaches WCAG AA (4.5:1) on any brand:
@@ -21,40 +21,42 @@
21
21
  *
22
22
  * @module @kya-os/consent/bundle
23
23
  */
24
- import '../components/consent-button.js';
25
- import '../components/consent-checkbox.js';
26
- import '../components/consent-input.js';
27
- import '../components/consent-shell.js';
28
- import '../components/consent-permissions.js';
29
- import '../components/consent-terms.js';
30
- import '../components/consent-oauth-button.js';
31
- import '../components/consent-otp-input.js';
32
- import '../components/consent-agent-header.js';
33
- import '../components/consent-capability-card.js';
34
- import '../components/consent-action-bar.js';
35
- import '../components/consent-footer.js';
36
- import '../components/consent-revocation-notice.js';
37
- import '../components/consent-connector-header.js';
38
- import '../components/consent-capabilities-screen.js';
39
- import '../components/mcp-consent.js';
40
- export { McpConsent } from '../components/mcp-consent.js';
41
- export { ConsentButton } from '../components/consent-button.js';
42
- export { ConsentCheckbox } from '../components/consent-checkbox.js';
43
- export { ConsentInput } from '../components/consent-input.js';
44
- export { ConsentShell } from '../components/consent-shell.js';
45
- export { ConsentPermissions } from '../components/consent-permissions.js';
46
- export { ConsentTerms } from '../components/consent-terms.js';
47
- export { ConsentOAuthButton } from '../components/consent-oauth-button.js';
48
- export { ConsentOTPInput } from '../components/consent-otp-input.js';
49
- export { ConsentAgentHeader } from '../components/consent-agent-header.js';
50
- export { ConsentCapabilityCard } from '../components/consent-capability-card.js';
51
- export { ConsentActionBar } from '../components/consent-action-bar.js';
52
- export { ConsentFooter } from '../components/consent-footer.js';
53
- export { ConsentRevocationNotice } from '../components/consent-revocation-notice.js';
54
- export { ConsentConnectorHeader } from '../components/consent-connector-header.js';
55
- export { ConsentCapabilitiesScreen } from '../components/consent-capabilities-screen.js';
56
- export { CONSENT_CAPABILITIES_FEATURES } from '../constants/capabilities.js';
57
- export type { ConsentConfig, ResolvedConsentConfig } from '../types/config.types.js';
58
- export type { OAuthIdentity } from '../types/api.types.js';
59
- export type { ConsentScopeCapability } from '../types/capabilities.types.js';
24
+ import "../components/consent-button.js";
25
+ import "../components/consent-checkbox.js";
26
+ import "../components/consent-input.js";
27
+ import "../components/consent-shell.js";
28
+ import "../components/consent-permissions.js";
29
+ import "../components/consent-terms.js";
30
+ import "../components/consent-oauth-button.js";
31
+ import "../components/consent-otp-input.js";
32
+ import "../components/consent-agent-header.js";
33
+ import "../components/consent-headline.js";
34
+ import "../components/consent-capability-card.js";
35
+ import "../components/consent-action-bar.js";
36
+ import "../components/consent-footer.js";
37
+ import "../components/consent-revocation-notice.js";
38
+ import "../components/consent-connector-header.js";
39
+ import "../components/consent-capabilities-screen.js";
40
+ import "../components/mcp-consent.js";
41
+ export { McpConsent } from "../components/mcp-consent.js";
42
+ export { ConsentButton } from "../components/consent-button.js";
43
+ export { ConsentCheckbox } from "../components/consent-checkbox.js";
44
+ export { ConsentInput } from "../components/consent-input.js";
45
+ export { ConsentShell } from "../components/consent-shell.js";
46
+ export { ConsentPermissions } from "../components/consent-permissions.js";
47
+ export { ConsentTerms } from "../components/consent-terms.js";
48
+ export { ConsentOAuthButton } from "../components/consent-oauth-button.js";
49
+ export { ConsentOTPInput } from "../components/consent-otp-input.js";
50
+ export { ConsentAgentHeader } from "../components/consent-agent-header.js";
51
+ export { ConsentHeadline } from "../components/consent-headline.js";
52
+ export { ConsentCapabilityCard } from "../components/consent-capability-card.js";
53
+ export { ConsentActionBar } from "../components/consent-action-bar.js";
54
+ export { ConsentFooter } from "../components/consent-footer.js";
55
+ export { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
56
+ export { ConsentConnectorHeader } from "../components/consent-connector-header.js";
57
+ export { ConsentCapabilitiesScreen } from "../components/consent-capabilities-screen.js";
58
+ export { CONSENT_CAPABILITIES_FEATURES } from "../constants/capabilities.js";
59
+ export type { ConsentConfig, ResolvedConsentConfig, } from "../types/config.types.js";
60
+ export type { OAuthIdentity } from "../types/api.types.js";
61
+ export type { ConsentScopeCapability } from "../types/capabilities.types.js";
60
62
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0CAA0C,CAAC;AAClD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC;AACzC,OAAO,4CAA4C,CAAC;AACpD,OAAO,2CAA2C,CAAC;AACnD,OAAO,8CAA8C,CAAC;AACtD,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAA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AChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAG7E,YAAY,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -22,39 +22,41 @@
22
22
  * @module @kya-os/consent/bundle
23
23
  */
24
24
  // Import all components - this registers them as custom elements
25
- import '../components/consent-button.js';
26
- import '../components/consent-checkbox.js';
27
- import '../components/consent-input.js';
28
- import '../components/consent-shell.js';
29
- import '../components/consent-permissions.js';
30
- import '../components/consent-terms.js';
31
- import '../components/consent-oauth-button.js';
32
- import '../components/consent-otp-input.js';
33
- import '../components/consent-agent-header.js';
34
- import '../components/consent-capability-card.js';
35
- import '../components/consent-action-bar.js';
36
- import '../components/consent-footer.js';
37
- import '../components/consent-revocation-notice.js';
38
- import '../components/consent-connector-header.js';
39
- import '../components/consent-capabilities-screen.js';
40
- import '../components/mcp-consent.js';
25
+ import "../components/consent-button.js";
26
+ import "../components/consent-checkbox.js";
27
+ import "../components/consent-input.js";
28
+ import "../components/consent-shell.js";
29
+ import "../components/consent-permissions.js";
30
+ import "../components/consent-terms.js";
31
+ import "../components/consent-oauth-button.js";
32
+ import "../components/consent-otp-input.js";
33
+ import "../components/consent-agent-header.js";
34
+ import "../components/consent-headline.js";
35
+ import "../components/consent-capability-card.js";
36
+ import "../components/consent-action-bar.js";
37
+ import "../components/consent-footer.js";
38
+ import "../components/consent-revocation-notice.js";
39
+ import "../components/consent-connector-header.js";
40
+ import "../components/consent-capabilities-screen.js";
41
+ import "../components/mcp-consent.js";
41
42
  // Re-export the main composite component for programmatic use
42
- export { McpConsent } from '../components/mcp-consent.js';
43
+ export { McpConsent } from "../components/mcp-consent.js";
43
44
  // Re-export individual components for advanced usage
44
- export { ConsentButton } from '../components/consent-button.js';
45
- export { ConsentCheckbox } from '../components/consent-checkbox.js';
46
- export { ConsentInput } from '../components/consent-input.js';
47
- export { ConsentShell } from '../components/consent-shell.js';
48
- export { ConsentPermissions } from '../components/consent-permissions.js';
49
- export { ConsentTerms } from '../components/consent-terms.js';
50
- export { ConsentOAuthButton } from '../components/consent-oauth-button.js';
51
- export { ConsentOTPInput } from '../components/consent-otp-input.js';
52
- export { ConsentAgentHeader } from '../components/consent-agent-header.js';
53
- export { ConsentCapabilityCard } from '../components/consent-capability-card.js';
54
- export { ConsentActionBar } from '../components/consent-action-bar.js';
55
- export { ConsentFooter } from '../components/consent-footer.js';
56
- export { ConsentRevocationNotice } from '../components/consent-revocation-notice.js';
57
- export { ConsentConnectorHeader } from '../components/consent-connector-header.js';
58
- export { ConsentCapabilitiesScreen } from '../components/consent-capabilities-screen.js';
59
- export { CONSENT_CAPABILITIES_FEATURES } from '../constants/capabilities.js';
45
+ export { ConsentButton } from "../components/consent-button.js";
46
+ export { ConsentCheckbox } from "../components/consent-checkbox.js";
47
+ export { ConsentInput } from "../components/consent-input.js";
48
+ export { ConsentShell } from "../components/consent-shell.js";
49
+ export { ConsentPermissions } from "../components/consent-permissions.js";
50
+ export { ConsentTerms } from "../components/consent-terms.js";
51
+ export { ConsentOAuthButton } from "../components/consent-oauth-button.js";
52
+ export { ConsentOTPInput } from "../components/consent-otp-input.js";
53
+ export { ConsentAgentHeader } from "../components/consent-agent-header.js";
54
+ export { ConsentHeadline } from "../components/consent-headline.js";
55
+ export { ConsentCapabilityCard } from "../components/consent-capability-card.js";
56
+ export { ConsentActionBar } from "../components/consent-action-bar.js";
57
+ export { ConsentFooter } from "../components/consent-footer.js";
58
+ export { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
59
+ export { ConsentConnectorHeader } from "../components/consent-connector-header.js";
60
+ export { ConsentCapabilitiesScreen } from "../components/consent-capabilities-screen.js";
61
+ export { CONSENT_CAPABILITIES_FEATURES } from "../constants/capabilities.js";
60
62
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,iEAAiE;AACjE,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0CAA0C,CAAC;AAClD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC;AACzC,OAAO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nF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAA0huS,CAAC;AAExjuS;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}
1
+ {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAwg6S,CAAC;AAEti6S;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}