@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.
- package/README.md +128 -0
- package/dist/bundle/index.d.ts +38 -36
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +35 -33
- package/dist/bundle/index.js.map +1 -1
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +4 -4
- package/dist/bundle/inline.js.map +1 -1
- package/dist/bundle/shell.d.ts +7 -0
- package/dist/bundle/shell.d.ts.map +1 -1
- package/dist/bundle/shell.js +5 -0
- package/dist/bundle/shell.js.map +1 -1
- package/dist/cjs/bundle/index.js +4 -1
- package/dist/cjs/bundle/index.js.map +1 -1
- package/dist/cjs/bundle/inline.js +4 -4
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/shell.js +5 -0
- package/dist/cjs/bundle/shell.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +15 -9
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +40 -78
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +138 -0
- package/dist/cjs/components/consent-headline.js.map +1 -0
- package/dist/cjs/components/consent-otp-input.js +35 -18
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/index.js +3 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +42 -1
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/copy/tokens.js +16 -1
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/identity/agent-identity.js +314 -0
- package/dist/cjs/identity/agent-identity.js.map +1 -0
- package/dist/cjs/identity/documents.js +212 -0
- package/dist/cjs/identity/documents.js.map +1 -0
- package/dist/cjs/identity/entity-card.js +128 -0
- package/dist/cjs/identity/entity-card.js.map +1 -0
- package/dist/cjs/identity/index.js +31 -0
- package/dist/cjs/identity/index.js.map +1 -0
- package/dist/cjs/identity/resolve.js +122 -0
- package/dist/cjs/identity/resolve.js.map +1 -0
- package/dist/cjs/identity/schemas.js +88 -0
- package/dist/cjs/identity/schemas.js.map +1 -0
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/cjs/mcp-app/types.js +1 -1
- package/dist/cjs/popup/launcher.js +3 -3
- package/dist/cjs/react/index.js +141 -25
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/templates/index.js +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/components/consent-agent-header.d.ts +3 -1
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +15 -9
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +13 -3
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +40 -78
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-headline.d.ts +42 -0
- package/dist/components/consent-headline.d.ts.map +1 -0
- package/dist/components/consent-headline.js +135 -0
- package/dist/components/consent-headline.js.map +1 -0
- package/dist/components/consent-otp-input.d.ts +7 -2
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +35 -18
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/index.d.ts +18 -17
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +18 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +16 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +42 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +493 -100
- package/dist/consent.min.js +244 -232
- package/dist/copy/tokens.d.ts +16 -1
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +16 -1
- package/dist/copy/tokens.js.map +1 -1
- package/dist/identity/agent-identity.d.ts +199 -0
- package/dist/identity/agent-identity.d.ts.map +1 -0
- package/dist/identity/agent-identity.js +305 -0
- package/dist/identity/agent-identity.js.map +1 -0
- package/dist/identity/documents.d.ts +63 -0
- package/dist/identity/documents.d.ts.map +1 -0
- package/dist/identity/documents.js +206 -0
- package/dist/identity/documents.js.map +1 -0
- package/dist/identity/entity-card.d.ts +80 -0
- package/dist/identity/entity-card.d.ts.map +1 -0
- package/dist/identity/entity-card.js +119 -0
- package/dist/identity/entity-card.js.map +1 -0
- package/dist/identity/index.d.ts +15 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +15 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/identity/resolve.d.ts +31 -0
- package/dist/identity/resolve.d.ts.map +1 -0
- package/dist/identity/resolve.js +119 -0
- package/dist/identity/resolve.js.map +1 -0
- package/dist/identity/schemas.d.ts +404 -0
- package/dist/identity/schemas.d.ts.map +1 -0
- package/dist/identity/schemas.js +84 -0
- package/dist/identity/schemas.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/kya-os/index.d.ts +55 -0
- package/dist/kya-os/index.d.ts.map +1 -0
- package/dist/kya-os/index.js +235 -0
- package/dist/kya-os/index.js.map +1 -0
- package/dist/mcp-app/inline.d.ts.map +1 -1
- package/dist/mcp-app/inline.js +2 -2
- package/dist/mcp-app/inline.js.map +1 -1
- package/dist/mcp-app/types.d.ts +1 -1
- package/dist/mcp-app/types.js +1 -1
- package/dist/popup/launcher.d.ts +3 -3
- package/dist/popup/launcher.js +3 -3
- package/dist/react/index.d.ts +108 -22
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +151 -35
- package/dist/react/index.js.map +1 -1
- package/dist/templates/index.d.ts +1 -1
- package/dist/templates/index.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- 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,
|
|
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"}
|
package/dist/mcp-app/types.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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 {
|
package/dist/mcp-app/types.js
CHANGED
|
@@ -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
|
-
*
|
|
6
|
+
* the runtime that builds the inline consent UI result.
|
|
7
7
|
*/
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=types.js.map
|
package/dist/popup/launcher.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
23
|
-
*
|
|
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"];
|
package/dist/popup/launcher.js
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
23
|
-
*
|
|
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"];
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,21 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* `@kya-os/consent/react`
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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
|
|
10
|
-
import { ConsentButton } from
|
|
11
|
-
import { ConsentCheckbox } from
|
|
12
|
-
import { ConsentInput } from
|
|
13
|
-
import { ConsentShell } from
|
|
14
|
-
import { ConsentPermissions } from
|
|
15
|
-
import { ConsentTerms } from
|
|
16
|
-
import { ConsentOAuthButton } from
|
|
17
|
-
import { ConsentOTPInput } from
|
|
18
|
-
import { McpConsent } from
|
|
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
|
-
|
|
116
|
-
}>>;
|
|
143
|
+
onError: EventName<CustomEvent<ConsentErrorDetail>>;
|
|
144
|
+
onResendOtp: EventName<CustomEvent>;
|
|
117
145
|
}>;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;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,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;AAGrE,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,yBAAyB,EACzB,KAAK,yBAAyB,EAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAA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7B,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"}
|
package/dist/react/index.js
CHANGED
|
@@ -1,25 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* `@kya-os/consent/react`
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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
|
|
10
|
-
import * as React from
|
|
18
|
+
import { createComponent } from "@lit/react";
|
|
19
|
+
import * as React from "react";
|
|
11
20
|
// Core components
|
|
12
|
-
import { ConsentButton } from
|
|
13
|
-
import { ConsentCheckbox } from
|
|
14
|
-
import { ConsentInput } from
|
|
15
|
-
import { ConsentShell } from
|
|
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
|
|
18
|
-
import { ConsentTerms } from
|
|
19
|
-
import { ConsentOAuthButton } from
|
|
20
|
-
import { ConsentOTPInput } from
|
|
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
|
|
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:
|
|
48
|
+
tagName: "consent-button",
|
|
31
49
|
elementClass: ConsentButton,
|
|
32
50
|
react: React,
|
|
33
51
|
events: {
|
|
34
|
-
onClick:
|
|
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:
|
|
59
|
+
tagName: "consent-checkbox",
|
|
42
60
|
elementClass: ConsentCheckbox,
|
|
43
61
|
react: React,
|
|
44
62
|
events: {
|
|
45
|
-
onChange:
|
|
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:
|
|
70
|
+
tagName: "consent-input",
|
|
53
71
|
elementClass: ConsentInput,
|
|
54
72
|
react: React,
|
|
55
73
|
events: {
|
|
56
|
-
onInput:
|
|
57
|
-
onChange:
|
|
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:
|
|
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:
|
|
93
|
+
tagName: "consent-permissions",
|
|
76
94
|
elementClass: ConsentPermissions,
|
|
77
95
|
react: React,
|
|
78
96
|
events: {
|
|
79
|
-
onChange:
|
|
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:
|
|
104
|
+
tagName: "consent-terms",
|
|
87
105
|
elementClass: ConsentTerms,
|
|
88
106
|
react: React,
|
|
89
107
|
events: {
|
|
90
|
-
onChange:
|
|
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:
|
|
115
|
+
tagName: "consent-oauth-button",
|
|
98
116
|
elementClass: ConsentOAuthButton,
|
|
99
117
|
react: React,
|
|
100
118
|
events: {
|
|
101
|
-
onOAuthClick:
|
|
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:
|
|
131
|
+
tagName: "consent-otp-input",
|
|
113
132
|
elementClass: ConsentOTPInput,
|
|
114
133
|
react: React,
|
|
115
134
|
events: {
|
|
116
|
-
|
|
117
|
-
|
|
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:
|
|
166
|
+
tagName: "mcp-consent",
|
|
146
167
|
elementClass: McpConsent,
|
|
147
168
|
react: React,
|
|
148
169
|
events: {
|
|
149
|
-
onApprove:
|
|
150
|
-
onDeny:
|
|
151
|
-
onError:
|
|
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
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;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,EACL,UAAU,GAGX,MAAM,8BAA8B,CAAC;AAEtC,kCAAkC;AAClC,OAAO,EACL,yBAAyB,GAE1B,MAA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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"}
|
package/dist/templates/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
*/
|
package/dist/types/index.js
CHANGED
|
@@ -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
|
|
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
|
*/
|