@kya-os/consent 0.2.1 → 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
@@ -1 +1 @@
1
- {"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,2/lxBAA2/lxB,CAAC;AAEximxB,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
1
+ {"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,y+xxBAAy+xxB,CAAC;AAEthyxB,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Type definitions for the inline consent UI rendered via MCP Apps.
5
5
  * These match the structuredContent shape produced by
6
- * MCPIRuntimeBase.buildConsentUIResult().
6
+ * the runtime that builds the inline consent UI result.
7
7
  */
8
8
  /** Parameters passed via structuredContent from the runtime */
9
9
  export interface ConsentParams {
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Type definitions for the inline consent UI rendered via MCP Apps.
5
5
  * These match the structuredContent shape produced by
6
- * MCPIRuntimeBase.buildConsentUIResult().
6
+ * the runtime that builds the inline consent UI result.
7
7
  */
8
8
  export {};
9
9
  //# sourceMappingURL=types.js.map
@@ -11,7 +11,7 @@
11
11
  * popup closes itself on success. The user never leaves the chat.
12
12
  *
13
13
  * This module is runtime-agnostic. It returns plain data; the runtime adapter
14
- * (e.g. `@kya-os/mcp-i-cloudflare`) is responsible for delivering the chosen
14
+ * is responsible for delivering the chosen
15
15
  * representation back to the MCP client.
16
16
  *
17
17
  * @module @kya-os/consent/popup/launcher
@@ -19,8 +19,8 @@
19
19
  /**
20
20
  * Stable identifiers for clients that support the embedded popup launcher.
21
21
  *
22
- * These IDs match the canonical IDs in `@kya-os/mcp-i-cloudflare`'s
23
- * `findKnownClient` registry. Adding a new client here requires that the
22
+ * These IDs match the canonical IDs in the runtime adapter's known-client
23
+ * registry. Adding a new client here requires that the
24
24
  * client also surface a usable embedded browser.
25
25
  */
26
26
  export declare const POPUP_CAPABLE_CLIENT_IDS: readonly ["claude"];
@@ -11,7 +11,7 @@
11
11
  * popup closes itself on success. The user never leaves the chat.
12
12
  *
13
13
  * This module is runtime-agnostic. It returns plain data; the runtime adapter
14
- * (e.g. `@kya-os/mcp-i-cloudflare`) is responsible for delivering the chosen
14
+ * is responsible for delivering the chosen
15
15
  * representation back to the MCP client.
16
16
  *
17
17
  * @module @kya-os/consent/popup/launcher
@@ -19,8 +19,8 @@
19
19
  /**
20
20
  * Stable identifiers for clients that support the embedded popup launcher.
21
21
  *
22
- * These IDs match the canonical IDs in `@kya-os/mcp-i-cloudflare`'s
23
- * `findKnownClient` registry. Adding a new client here requires that the
22
+ * These IDs match the canonical IDs in the runtime adapter's known-client
23
+ * registry. Adding a new client here requires that the
24
24
  * client also surface a usable embedded browser.
25
25
  */
26
26
  export const POPUP_CAPABLE_CLIENT_IDS = ["claude"];
@@ -1,21 +1,38 @@
1
1
  /**
2
- * React Wrappers for Consent Web Components
2
+ * `@kya-os/consent/react`
3
3
  *
4
- * Uses @lit/react to create React components from Lit web components.
5
- * This enables using the same components in Checkpoint (React/Next.js).
4
+ * React components for every consent element, made with `@lit/react`.
5
+ * Each one sets props as element properties and takes `onX` handlers for
6
+ * the element's events, which React 18 can't do for a custom element.
7
+ * React 19 can, but only through the raw event name
8
+ * (`oncapabilities-allow`), so the wrappers keep the handlers typed there too.
9
+ *
10
+ * `react` and `@lit/react` are optional peer dependencies: install both to
11
+ * use this entry point. No other entry point imports either.
12
+ *
13
+ * `<consent-passkey>` has its own wrapper in `@kya-os/consent/passkey/react`,
14
+ * so this entry point never imports `@kya-os/id`.
6
15
  *
7
16
  * @module react
8
17
  */
9
- import { type EventName } from '@lit/react';
10
- import { ConsentButton } from '../components/consent-button.js';
11
- import { ConsentCheckbox } from '../components/consent-checkbox.js';
12
- import { ConsentInput } from '../components/consent-input.js';
13
- import { ConsentShell } from '../components/consent-shell.js';
14
- import { ConsentPermissions } from '../components/consent-permissions.js';
15
- import { ConsentTerms } from '../components/consent-terms.js';
16
- import { ConsentOAuthButton } from '../components/consent-oauth-button.js';
17
- import { ConsentOTPInput } from '../components/consent-otp-input.js';
18
- import { McpConsent } from '../components/mcp-consent.js';
18
+ import { type EventName } from "@lit/react";
19
+ import { ConsentButton } from "../components/consent-button.js";
20
+ import { ConsentCheckbox } from "../components/consent-checkbox.js";
21
+ import { ConsentInput } from "../components/consent-input.js";
22
+ import { ConsentShell } from "../components/consent-shell.js";
23
+ import { ConsentPermissions } from "../components/consent-permissions.js";
24
+ import { ConsentTerms } from "../components/consent-terms.js";
25
+ import { ConsentOAuthButton } from "../components/consent-oauth-button.js";
26
+ import { ConsentOTPInput } from "../components/consent-otp-input.js";
27
+ import { McpConsent, type ConsentApproveDetail, type ConsentErrorDetail } from "../components/mcp-consent.js";
28
+ import { ConsentCapabilitiesScreen, type CapabilitiesApproveDetail } from "../components/consent-capabilities-screen.js";
29
+ import { ConsentCapabilityCard, type CapabilityToggleDetail } from "../components/consent-capability-card.js";
30
+ import { ConsentAgentHeader } from "../components/consent-agent-header.js";
31
+ import { ConsentHeadline } from "../components/consent-headline.js";
32
+ import { ConsentConnectorHeader } from "../components/consent-connector-header.js";
33
+ import { ConsentActionBar } from "../components/consent-action-bar.js";
34
+ import { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
35
+ import { ConsentFooter } from "../components/consent-footer.js";
19
36
  /**
20
37
  * React wrapper for consent-button
21
38
  */
@@ -76,10 +93,12 @@ export declare const ConsentOAuthButtonReact: import("@lit/react").ReactWebCompo
76
93
  * React wrapper for consent-otp-input
77
94
  *
78
95
  * Events:
96
+ * - onInput: Fired when a digit is typed (detail: { value, index, digit })
79
97
  * - onComplete: Fired when all digits are entered (detail: { value: string })
80
98
  * - onChange: Fired when value changes (detail: { value: string })
81
99
  */
82
100
  export declare const ConsentOTPInputReact: import("@lit/react").ReactWebComponent<ConsentOTPInput, {
101
+ onInput: EventName<CustomEvent<OTPInputDetail>>;
83
102
  onComplete: EventName<CustomEvent<{
84
103
  value: string;
85
104
  }>>;
@@ -87,6 +106,15 @@ export declare const ConsentOTPInputReact: import("@lit/react").ReactWebComponen
87
106
  value: string;
88
107
  }>>;
89
108
  }>;
109
+ /**
110
+ * Detail of consent-otp-input's `input` event. A paste fills every digit
111
+ * at once and reports index 0.
112
+ */
113
+ export interface OTPInputDetail {
114
+ value: string;
115
+ index: number;
116
+ digit: string;
117
+ }
90
118
  /**
91
119
  * React wrapper for mcp-consent (full consent flow)
92
120
  *
@@ -105,19 +133,77 @@ export declare const ConsentOTPInputReact: import("@lit/react").ReactWebComponen
105
133
  * onApprove={(e) => console.log('Approved', e.detail)}
106
134
  * onDeny={() => console.log('Denied')}
107
135
  * onError={(e) => console.log('Error', e.detail)}
136
+ * onResendOtp={() => sendCodeAgain()}
108
137
  * />
109
138
  * ```
110
139
  */
111
140
  export declare const McpConsentReact: import("@lit/react").ReactWebComponent<McpConsent, {
112
- onApprove: EventName<CustomEvent>;
141
+ onApprove: EventName<CustomEvent<ConsentApproveDetail>>;
113
142
  onDeny: EventName<CustomEvent>;
114
- onError: EventName<CustomEvent<{
115
- error: string;
116
- }>>;
143
+ onError: EventName<CustomEvent<ConsentErrorDetail>>;
144
+ onResendOtp: EventName<CustomEvent>;
117
145
  }>;
118
- export type { ButtonVariant } from '../components/consent-button.js';
119
- export type { InputType } from '../components/consent-input.js';
120
- export type { PermissionItem } from '../components/consent-permissions.js';
121
- export type { OAuthProvider } from '../components/consent-oauth-button.js';
122
- export type { OAuthIdentity, ConsentApproveDetail, ConsentErrorDetail, } from '../components/mcp-consent.js';
146
+ /**
147
+ * React wrapper for consent-capabilities-screen, the whole consent screen
148
+ * for a capability grant.
149
+ *
150
+ * @example
151
+ * ```tsx
152
+ * import { ConsentCapabilitiesScreenReact } from '@kya-os/consent/react';
153
+ *
154
+ * <ConsentCapabilitiesScreenReact
155
+ * agentMetadata={{ name: 'Claude', did: 'did:key:z6Mk...', verification: 'verified' }}
156
+ * capabilities={capabilities}
157
+ * orgName="Acme"
158
+ * onAllow={(e) => grant(e.detail.selectedScopes)}
159
+ * onDeny={() => close()}
160
+ * />
161
+ * ```
162
+ */
163
+ export declare const ConsentCapabilitiesScreenReact: import("@lit/react").ReactWebComponent<ConsentCapabilitiesScreen, {
164
+ onAllow: EventName<CustomEvent<CapabilitiesApproveDetail>>;
165
+ onDeny: EventName<CustomEvent>;
166
+ }>;
167
+ /**
168
+ * React wrapper for consent-capability-card, one capability with its toggle.
169
+ */
170
+ export declare const ConsentCapabilityCardReact: import("@lit/react").ReactWebComponent<ConsentCapabilityCard, {
171
+ onToggle: EventName<CustomEvent<CapabilityToggleDetail>>;
172
+ }>;
173
+ /**
174
+ * React wrapper for consent-agent-header, the agent's name, pill and meta line.
175
+ */
176
+ export declare const ConsentAgentHeaderReact: import("@lit/react").ReactWebComponent<ConsentAgentHeader, {}>;
177
+ /**
178
+ * React wrapper for consent-headline, the eyebrow, the headline that says who
179
+ * is asking and where, and the subhead.
180
+ */
181
+ export declare const ConsentHeadlineReact: import("@lit/react").ReactWebComponent<ConsentHeadline, {}>;
182
+ /**
183
+ * React wrapper for consent-connector-header, the client and the server it
184
+ * connects to.
185
+ */
186
+ export declare const ConsentConnectorHeaderReact: import("@lit/react").ReactWebComponent<ConsentConnectorHeader, {}>;
187
+ /**
188
+ * React wrapper for consent-action-bar, the Allow and Deny buttons.
189
+ */
190
+ export declare const ConsentActionBarReact: import("@lit/react").ReactWebComponent<ConsentActionBar, {
191
+ onAllow: EventName<CustomEvent>;
192
+ onDeny: EventName<CustomEvent>;
193
+ }>;
194
+ /**
195
+ * React wrapper for consent-revocation-notice, how and when access ends.
196
+ */
197
+ export declare const ConsentRevocationNoticeReact: import("@lit/react").ReactWebComponent<ConsentRevocationNotice, {}>;
198
+ /**
199
+ * React wrapper for consent-footer.
200
+ */
201
+ export declare const ConsentFooterReact: import("@lit/react").ReactWebComponent<ConsentFooter, {}>;
202
+ export type { CapabilitiesApproveDetail } from "../components/consent-capabilities-screen.js";
203
+ export type { CapabilityToggleDetail } from "../components/consent-capability-card.js";
204
+ export type { ButtonVariant } from "../components/consent-button.js";
205
+ export type { InputType } from "../components/consent-input.js";
206
+ export type { PermissionItem } from "../components/consent-permissions.js";
207
+ export type { OAuthProvider } from "../components/consent-oauth-button.js";
208
+ export type { OAuthIdentity, ConsentApproveDetail, ConsentErrorDetail, } from "../components/mcp-consent.js";
123
209
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI7D,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;AAG9D,OAAO,EAAE,kBAAkB,EA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AItC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;aAKF,SAAS,CAAC,WAAW,CAAC;YACxB,SAAS,CAAC,WAAW,CAAC;EAElD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B,qEAIvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB,2DAI7B,CAAC;AAMH,YAAY,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAC9F,YAAY,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,YAAY,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
@@ -1,25 +1,43 @@
1
1
  /**
2
- * React Wrappers for Consent Web Components
2
+ * `@kya-os/consent/react`
3
3
  *
4
- * Uses @lit/react to create React components from Lit web components.
5
- * This enables using the same components in Checkpoint (React/Next.js).
4
+ * React components for every consent element, made with `@lit/react`.
5
+ * Each one sets props as element properties and takes `onX` handlers for
6
+ * the element's events, which React 18 can't do for a custom element.
7
+ * React 19 can, but only through the raw event name
8
+ * (`oncapabilities-allow`), so the wrappers keep the handlers typed there too.
9
+ *
10
+ * `react` and `@lit/react` are optional peer dependencies: install both to
11
+ * use this entry point. No other entry point imports either.
12
+ *
13
+ * `<consent-passkey>` has its own wrapper in `@kya-os/consent/passkey/react`,
14
+ * so this entry point never imports `@kya-os/id`.
6
15
  *
7
16
  * @module react
8
17
  */
9
- import { createComponent } from '@lit/react';
10
- import * as React from 'react';
18
+ import { createComponent } from "@lit/react";
19
+ import * as React from "react";
11
20
  // Core components
12
- import { ConsentButton } from '../components/consent-button.js';
13
- import { ConsentCheckbox } from '../components/consent-checkbox.js';
14
- import { ConsentInput } from '../components/consent-input.js';
15
- import { ConsentShell } from '../components/consent-shell.js';
21
+ import { ConsentButton } from "../components/consent-button.js";
22
+ import { ConsentCheckbox } from "../components/consent-checkbox.js";
23
+ import { ConsentInput } from "../components/consent-input.js";
24
+ import { ConsentShell } from "../components/consent-shell.js";
16
25
  // Extended components
17
- import { ConsentPermissions } from '../components/consent-permissions.js';
18
- import { ConsentTerms } from '../components/consent-terms.js';
19
- import { ConsentOAuthButton } from '../components/consent-oauth-button.js';
20
- import { ConsentOTPInput } from '../components/consent-otp-input.js';
26
+ import { ConsentPermissions } from "../components/consent-permissions.js";
27
+ import { ConsentTerms } from "../components/consent-terms.js";
28
+ import { ConsentOAuthButton } from "../components/consent-oauth-button.js";
29
+ import { ConsentOTPInput } from "../components/consent-otp-input.js";
21
30
  // Composite component
22
- import { McpConsent } from '../components/mcp-consent.js';
31
+ import { McpConsent, } from "../components/mcp-consent.js";
32
+ // Capability screen and its parts
33
+ import { ConsentCapabilitiesScreen, } from "../components/consent-capabilities-screen.js";
34
+ import { ConsentCapabilityCard, } from "../components/consent-capability-card.js";
35
+ import { ConsentAgentHeader } from "../components/consent-agent-header.js";
36
+ import { ConsentHeadline } from "../components/consent-headline.js";
37
+ import { ConsentConnectorHeader } from "../components/consent-connector-header.js";
38
+ import { ConsentActionBar } from "../components/consent-action-bar.js";
39
+ import { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
40
+ import { ConsentFooter } from "../components/consent-footer.js";
23
41
  // ============================================================================
24
42
  // Core Component Wrappers
25
43
  // ============================================================================
@@ -27,41 +45,41 @@ import { McpConsent } from '../components/mcp-consent.js';
27
45
  * React wrapper for consent-button
28
46
  */
29
47
  export const ConsentButtonReact = createComponent({
30
- tagName: 'consent-button',
48
+ tagName: "consent-button",
31
49
  elementClass: ConsentButton,
32
50
  react: React,
33
51
  events: {
34
- onClick: 'click',
52
+ onClick: "click",
35
53
  },
36
54
  });
37
55
  /**
38
56
  * React wrapper for consent-checkbox
39
57
  */
40
58
  export const ConsentCheckboxReact = createComponent({
41
- tagName: 'consent-checkbox',
59
+ tagName: "consent-checkbox",
42
60
  elementClass: ConsentCheckbox,
43
61
  react: React,
44
62
  events: {
45
- onChange: 'change',
63
+ onChange: "change",
46
64
  },
47
65
  });
48
66
  /**
49
67
  * React wrapper for consent-input
50
68
  */
51
69
  export const ConsentInputReact = createComponent({
52
- tagName: 'consent-input',
70
+ tagName: "consent-input",
53
71
  elementClass: ConsentInput,
54
72
  react: React,
55
73
  events: {
56
- onInput: 'input',
57
- onChange: 'change',
74
+ onInput: "input",
75
+ onChange: "change",
58
76
  },
59
77
  });
60
78
  /**
61
79
  * React wrapper for consent-shell
62
80
  */
63
81
  export const ConsentShellReact = createComponent({
64
- tagName: 'consent-shell',
82
+ tagName: "consent-shell",
65
83
  elementClass: ConsentShell,
66
84
  react: React,
67
85
  });
@@ -72,49 +90,51 @@ export const ConsentShellReact = createComponent({
72
90
  * React wrapper for consent-permissions
73
91
  */
74
92
  export const ConsentPermissionsReact = createComponent({
75
- tagName: 'consent-permissions',
93
+ tagName: "consent-permissions",
76
94
  elementClass: ConsentPermissions,
77
95
  react: React,
78
96
  events: {
79
- onChange: 'change',
97
+ onChange: "change",
80
98
  },
81
99
  });
82
100
  /**
83
101
  * React wrapper for consent-terms
84
102
  */
85
103
  export const ConsentTermsReact = createComponent({
86
- tagName: 'consent-terms',
104
+ tagName: "consent-terms",
87
105
  elementClass: ConsentTerms,
88
106
  react: React,
89
107
  events: {
90
- onChange: 'change',
108
+ onChange: "change",
91
109
  },
92
110
  });
93
111
  /**
94
112
  * React wrapper for consent-oauth-button
95
113
  */
96
114
  export const ConsentOAuthButtonReact = createComponent({
97
- tagName: 'consent-oauth-button',
115
+ tagName: "consent-oauth-button",
98
116
  elementClass: ConsentOAuthButton,
99
117
  react: React,
100
118
  events: {
101
- onOAuthClick: 'oauth-click',
119
+ onOAuthClick: "oauth-click",
102
120
  },
103
121
  });
104
122
  /**
105
123
  * React wrapper for consent-otp-input
106
124
  *
107
125
  * Events:
126
+ * - onInput: Fired when a digit is typed (detail: { value, index, digit })
108
127
  * - onComplete: Fired when all digits are entered (detail: { value: string })
109
128
  * - onChange: Fired when value changes (detail: { value: string })
110
129
  */
111
130
  export const ConsentOTPInputReact = createComponent({
112
- tagName: 'consent-otp-input',
131
+ tagName: "consent-otp-input",
113
132
  elementClass: ConsentOTPInput,
114
133
  react: React,
115
134
  events: {
116
- onComplete: 'complete',
117
- onChange: 'change',
135
+ onInput: "input",
136
+ onComplete: "complete",
137
+ onChange: "change",
118
138
  },
119
139
  });
120
140
  // ============================================================================
@@ -138,17 +158,113 @@ export const ConsentOTPInputReact = createComponent({
138
158
  * onApprove={(e) => console.log('Approved', e.detail)}
139
159
  * onDeny={() => console.log('Denied')}
140
160
  * onError={(e) => console.log('Error', e.detail)}
161
+ * onResendOtp={() => sendCodeAgain()}
141
162
  * />
142
163
  * ```
143
164
  */
144
165
  export const McpConsentReact = createComponent({
145
- tagName: 'mcp-consent',
166
+ tagName: "mcp-consent",
146
167
  elementClass: McpConsent,
147
168
  react: React,
148
169
  events: {
149
- onApprove: 'mcp-consent:approve',
150
- onDeny: 'mcp-consent:deny',
151
- onError: 'mcp-consent:error',
170
+ onApprove: "mcp-consent:approve",
171
+ onDeny: "mcp-consent:deny",
172
+ onError: "mcp-consent:error",
173
+ onResendOtp: "mcp-consent:resend-otp",
174
+ },
175
+ });
176
+ // ============================================================================
177
+ // Capability Screen Wrappers
178
+ // ============================================================================
179
+ /**
180
+ * React wrapper for consent-capabilities-screen, the whole consent screen
181
+ * for a capability grant.
182
+ *
183
+ * @example
184
+ * ```tsx
185
+ * import { ConsentCapabilitiesScreenReact } from '@kya-os/consent/react';
186
+ *
187
+ * <ConsentCapabilitiesScreenReact
188
+ * agentMetadata={{ name: 'Claude', did: 'did:key:z6Mk...', verification: 'verified' }}
189
+ * capabilities={capabilities}
190
+ * orgName="Acme"
191
+ * onAllow={(e) => grant(e.detail.selectedScopes)}
192
+ * onDeny={() => close()}
193
+ * />
194
+ * ```
195
+ */
196
+ export const ConsentCapabilitiesScreenReact = createComponent({
197
+ tagName: "consent-capabilities-screen",
198
+ elementClass: ConsentCapabilitiesScreen,
199
+ react: React,
200
+ events: {
201
+ onAllow: "capabilities-allow",
202
+ onDeny: "capabilities-deny",
203
+ },
204
+ });
205
+ /**
206
+ * React wrapper for consent-capability-card, one capability with its toggle.
207
+ */
208
+ export const ConsentCapabilityCardReact = createComponent({
209
+ tagName: "consent-capability-card",
210
+ elementClass: ConsentCapabilityCard,
211
+ react: React,
212
+ events: {
213
+ onToggle: "capability-toggle",
214
+ },
215
+ });
216
+ /**
217
+ * React wrapper for consent-agent-header, the agent's name, pill and meta line.
218
+ */
219
+ export const ConsentAgentHeaderReact = createComponent({
220
+ tagName: "consent-agent-header",
221
+ elementClass: ConsentAgentHeader,
222
+ react: React,
223
+ });
224
+ /**
225
+ * React wrapper for consent-headline, the eyebrow, the headline that says who
226
+ * is asking and where, and the subhead.
227
+ */
228
+ export const ConsentHeadlineReact = createComponent({
229
+ tagName: "consent-headline",
230
+ elementClass: ConsentHeadline,
231
+ react: React,
232
+ });
233
+ /**
234
+ * React wrapper for consent-connector-header, the client and the server it
235
+ * connects to.
236
+ */
237
+ export const ConsentConnectorHeaderReact = createComponent({
238
+ tagName: "consent-connector-header",
239
+ elementClass: ConsentConnectorHeader,
240
+ react: React,
241
+ });
242
+ /**
243
+ * React wrapper for consent-action-bar, the Allow and Deny buttons.
244
+ */
245
+ export const ConsentActionBarReact = createComponent({
246
+ tagName: "consent-action-bar",
247
+ elementClass: ConsentActionBar,
248
+ react: React,
249
+ events: {
250
+ onAllow: "consent-allow",
251
+ onDeny: "consent-deny",
152
252
  },
153
253
  });
254
+ /**
255
+ * React wrapper for consent-revocation-notice, how and when access ends.
256
+ */
257
+ export const ConsentRevocationNoticeReact = createComponent({
258
+ tagName: "consent-revocation-notice",
259
+ elementClass: ConsentRevocationNotice,
260
+ react: React,
261
+ });
262
+ /**
263
+ * React wrapper for consent-footer.
264
+ */
265
+ export const ConsentFooterReact = createComponent({
266
+ tagName: "consent-footer",
267
+ elementClass: ConsentFooter,
268
+ react: React,
269
+ });
154
270
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,kBAAkB;AAClB,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;AAE9D,sBAAsB;AACtB,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;AAErE,sBAAsB;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,+EAA+E;AAC/E,0BAA0B;AAC1B,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,OAAO,EAAE,gBAAgB;IACzB,YAAY,EAAE,aAAa;IAC3B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACN,OAAO,EAAE,OAAgC;KAC1C;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC;IAClD,OAAO,EAAE,kBAAkB;IAC3B,YA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;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC;IAC1D,OAAO,EAAE,2BAA2B;IACpC,YAAY,EAAE,uBAAuB;IACrC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,OAAO,EAAE,gBAAgB;IACzB,YAAY,EAAE,aAAa;IAC3B,KAAK,EAAE,KAAK;CACb,CAAC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * Consent Templates
3
3
  *
4
4
  * Template Method pattern implementation for consent page rendering.
5
- * Used by MCP-I Cloudflare runtime to generate consent pages.
5
+ * Used by server runtimes to generate consent pages.
6
6
  *
7
7
  * @module @kya-os/consent/templates
8
8
  */
@@ -2,7 +2,7 @@
2
2
  * Consent Templates
3
3
  *
4
4
  * Template Method pattern implementation for consent page rendering.
5
- * Used by MCP-I Cloudflare runtime to generate consent pages.
5
+ * Used by server runtimes to generate consent pages.
6
6
  *
7
7
  * @module @kya-os/consent/templates
8
8
  */
@@ -2,7 +2,7 @@
2
2
  * Consent Type Definitions
3
3
  *
4
4
  * Canonical types for consent configuration, branding, copy, and auth modes.
5
- * These types are the single source of truth shared between MCP-I and Checkpoint.
5
+ * These types are the single source of truth shared between the server runtime and the dashboard preview.
6
6
  *
7
7
  * @module @kya-os/consent/types
8
8
  */
@@ -2,7 +2,7 @@
2
2
  * Consent Type Definitions
3
3
  *
4
4
  * Canonical types for consent configuration, branding, copy, and auth modes.
5
- * These types are the single source of truth shared between MCP-I and Checkpoint.
5
+ * These types are the single source of truth shared between the server runtime and the dashboard preview.
6
6
  *
7
7
  * @module @kya-os/consent/types
8
8
  */