@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;AACzD,QAAA,oBAAoB,GAAW,
|
|
1
|
+
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/mcp-app/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,sEAAsE;AACzD,QAAA,oBAAoB,GAAW,y+xxBAAy+xxB,CAAC;AAEthyxB,4CAA4C;AAC/B,QAAA,yBAAyB,GAAW,MAAM,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Type definitions for the inline consent UI rendered via MCP Apps.
|
|
6
6
|
* These match the structuredContent shape produced by
|
|
7
|
-
*
|
|
7
|
+
* the runtime that builds the inline consent UI result.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
//# sourceMappingURL=types.js.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* popup closes itself on success. The user never leaves the chat.
|
|
13
13
|
*
|
|
14
14
|
* This module is runtime-agnostic. It returns plain data; the runtime adapter
|
|
15
|
-
*
|
|
15
|
+
* is responsible for delivering the chosen
|
|
16
16
|
* representation back to the MCP client.
|
|
17
17
|
*
|
|
18
18
|
* @module @kya-os/consent/popup/launcher
|
|
@@ -25,8 +25,8 @@ exports.buildConsentMarkdownLink = buildConsentMarkdownLink;
|
|
|
25
25
|
/**
|
|
26
26
|
* Stable identifiers for clients that support the embedded popup launcher.
|
|
27
27
|
*
|
|
28
|
-
* These IDs match the canonical IDs in
|
|
29
|
-
*
|
|
28
|
+
* These IDs match the canonical IDs in the runtime adapter's known-client
|
|
29
|
+
* registry. Adding a new client here requires that the
|
|
30
30
|
* client also surface a usable embedded browser.
|
|
31
31
|
*/
|
|
32
32
|
exports.POPUP_CAPABLE_CLIENT_IDS = ["claude"];
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* `@kya-os/consent/react`
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* React components for every consent element, made with `@lit/react`.
|
|
6
|
+
* Each one sets props as element properties and takes `onX` handlers for
|
|
7
|
+
* the element's events, which React 18 can't do for a custom element.
|
|
8
|
+
* React 19 can, but only through the raw event name
|
|
9
|
+
* (`oncapabilities-allow`), so the wrappers keep the handlers typed there too.
|
|
10
|
+
*
|
|
11
|
+
* `react` and `@lit/react` are optional peer dependencies: install both to
|
|
12
|
+
* use this entry point. No other entry point imports either.
|
|
13
|
+
*
|
|
14
|
+
* `<consent-passkey>` has its own wrapper in `@kya-os/consent/passkey/react`,
|
|
15
|
+
* so this entry point never imports `@kya-os/id`.
|
|
7
16
|
*
|
|
8
17
|
* @module react
|
|
9
18
|
*/
|
|
@@ -41,7 +50,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
41
50
|
};
|
|
42
51
|
})();
|
|
43
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.McpConsentReact = exports.ConsentOTPInputReact = exports.ConsentOAuthButtonReact = exports.ConsentTermsReact = exports.ConsentPermissionsReact = exports.ConsentShellReact = exports.ConsentInputReact = exports.ConsentCheckboxReact = exports.ConsentButtonReact = void 0;
|
|
53
|
+
exports.ConsentFooterReact = exports.ConsentRevocationNoticeReact = exports.ConsentActionBarReact = exports.ConsentConnectorHeaderReact = exports.ConsentHeadlineReact = exports.ConsentAgentHeaderReact = exports.ConsentCapabilityCardReact = exports.ConsentCapabilitiesScreenReact = exports.McpConsentReact = exports.ConsentOTPInputReact = exports.ConsentOAuthButtonReact = exports.ConsentTermsReact = exports.ConsentPermissionsReact = exports.ConsentShellReact = exports.ConsentInputReact = exports.ConsentCheckboxReact = exports.ConsentButtonReact = void 0;
|
|
45
54
|
const react_1 = require("@lit/react");
|
|
46
55
|
const React = __importStar(require("react"));
|
|
47
56
|
// Core components
|
|
@@ -56,6 +65,15 @@ const consent_oauth_button_js_1 = require("../components/consent-oauth-button.js
|
|
|
56
65
|
const consent_otp_input_js_1 = require("../components/consent-otp-input.js");
|
|
57
66
|
// Composite component
|
|
58
67
|
const mcp_consent_js_1 = require("../components/mcp-consent.js");
|
|
68
|
+
// Capability screen and its parts
|
|
69
|
+
const consent_capabilities_screen_js_1 = require("../components/consent-capabilities-screen.js");
|
|
70
|
+
const consent_capability_card_js_1 = require("../components/consent-capability-card.js");
|
|
71
|
+
const consent_agent_header_js_1 = require("../components/consent-agent-header.js");
|
|
72
|
+
const consent_headline_js_1 = require("../components/consent-headline.js");
|
|
73
|
+
const consent_connector_header_js_1 = require("../components/consent-connector-header.js");
|
|
74
|
+
const consent_action_bar_js_1 = require("../components/consent-action-bar.js");
|
|
75
|
+
const consent_revocation_notice_js_1 = require("../components/consent-revocation-notice.js");
|
|
76
|
+
const consent_footer_js_1 = require("../components/consent-footer.js");
|
|
59
77
|
// ============================================================================
|
|
60
78
|
// Core Component Wrappers
|
|
61
79
|
// ============================================================================
|
|
@@ -63,41 +81,41 @@ const mcp_consent_js_1 = require("../components/mcp-consent.js");
|
|
|
63
81
|
* React wrapper for consent-button
|
|
64
82
|
*/
|
|
65
83
|
exports.ConsentButtonReact = (0, react_1.createComponent)({
|
|
66
|
-
tagName:
|
|
84
|
+
tagName: "consent-button",
|
|
67
85
|
elementClass: consent_button_js_1.ConsentButton,
|
|
68
86
|
react: React,
|
|
69
87
|
events: {
|
|
70
|
-
onClick:
|
|
88
|
+
onClick: "click",
|
|
71
89
|
},
|
|
72
90
|
});
|
|
73
91
|
/**
|
|
74
92
|
* React wrapper for consent-checkbox
|
|
75
93
|
*/
|
|
76
94
|
exports.ConsentCheckboxReact = (0, react_1.createComponent)({
|
|
77
|
-
tagName:
|
|
95
|
+
tagName: "consent-checkbox",
|
|
78
96
|
elementClass: consent_checkbox_js_1.ConsentCheckbox,
|
|
79
97
|
react: React,
|
|
80
98
|
events: {
|
|
81
|
-
onChange:
|
|
99
|
+
onChange: "change",
|
|
82
100
|
},
|
|
83
101
|
});
|
|
84
102
|
/**
|
|
85
103
|
* React wrapper for consent-input
|
|
86
104
|
*/
|
|
87
105
|
exports.ConsentInputReact = (0, react_1.createComponent)({
|
|
88
|
-
tagName:
|
|
106
|
+
tagName: "consent-input",
|
|
89
107
|
elementClass: consent_input_js_1.ConsentInput,
|
|
90
108
|
react: React,
|
|
91
109
|
events: {
|
|
92
|
-
onInput:
|
|
93
|
-
onChange:
|
|
110
|
+
onInput: "input",
|
|
111
|
+
onChange: "change",
|
|
94
112
|
},
|
|
95
113
|
});
|
|
96
114
|
/**
|
|
97
115
|
* React wrapper for consent-shell
|
|
98
116
|
*/
|
|
99
117
|
exports.ConsentShellReact = (0, react_1.createComponent)({
|
|
100
|
-
tagName:
|
|
118
|
+
tagName: "consent-shell",
|
|
101
119
|
elementClass: consent_shell_js_1.ConsentShell,
|
|
102
120
|
react: React,
|
|
103
121
|
});
|
|
@@ -108,49 +126,51 @@ exports.ConsentShellReact = (0, react_1.createComponent)({
|
|
|
108
126
|
* React wrapper for consent-permissions
|
|
109
127
|
*/
|
|
110
128
|
exports.ConsentPermissionsReact = (0, react_1.createComponent)({
|
|
111
|
-
tagName:
|
|
129
|
+
tagName: "consent-permissions",
|
|
112
130
|
elementClass: consent_permissions_js_1.ConsentPermissions,
|
|
113
131
|
react: React,
|
|
114
132
|
events: {
|
|
115
|
-
onChange:
|
|
133
|
+
onChange: "change",
|
|
116
134
|
},
|
|
117
135
|
});
|
|
118
136
|
/**
|
|
119
137
|
* React wrapper for consent-terms
|
|
120
138
|
*/
|
|
121
139
|
exports.ConsentTermsReact = (0, react_1.createComponent)({
|
|
122
|
-
tagName:
|
|
140
|
+
tagName: "consent-terms",
|
|
123
141
|
elementClass: consent_terms_js_1.ConsentTerms,
|
|
124
142
|
react: React,
|
|
125
143
|
events: {
|
|
126
|
-
onChange:
|
|
144
|
+
onChange: "change",
|
|
127
145
|
},
|
|
128
146
|
});
|
|
129
147
|
/**
|
|
130
148
|
* React wrapper for consent-oauth-button
|
|
131
149
|
*/
|
|
132
150
|
exports.ConsentOAuthButtonReact = (0, react_1.createComponent)({
|
|
133
|
-
tagName:
|
|
151
|
+
tagName: "consent-oauth-button",
|
|
134
152
|
elementClass: consent_oauth_button_js_1.ConsentOAuthButton,
|
|
135
153
|
react: React,
|
|
136
154
|
events: {
|
|
137
|
-
onOAuthClick:
|
|
155
|
+
onOAuthClick: "oauth-click",
|
|
138
156
|
},
|
|
139
157
|
});
|
|
140
158
|
/**
|
|
141
159
|
* React wrapper for consent-otp-input
|
|
142
160
|
*
|
|
143
161
|
* Events:
|
|
162
|
+
* - onInput: Fired when a digit is typed (detail: { value, index, digit })
|
|
144
163
|
* - onComplete: Fired when all digits are entered (detail: { value: string })
|
|
145
164
|
* - onChange: Fired when value changes (detail: { value: string })
|
|
146
165
|
*/
|
|
147
166
|
exports.ConsentOTPInputReact = (0, react_1.createComponent)({
|
|
148
|
-
tagName:
|
|
167
|
+
tagName: "consent-otp-input",
|
|
149
168
|
elementClass: consent_otp_input_js_1.ConsentOTPInput,
|
|
150
169
|
react: React,
|
|
151
170
|
events: {
|
|
152
|
-
|
|
153
|
-
|
|
171
|
+
onInput: "input",
|
|
172
|
+
onComplete: "complete",
|
|
173
|
+
onChange: "change",
|
|
154
174
|
},
|
|
155
175
|
});
|
|
156
176
|
// ============================================================================
|
|
@@ -174,17 +194,113 @@ exports.ConsentOTPInputReact = (0, react_1.createComponent)({
|
|
|
174
194
|
* onApprove={(e) => console.log('Approved', e.detail)}
|
|
175
195
|
* onDeny={() => console.log('Denied')}
|
|
176
196
|
* onError={(e) => console.log('Error', e.detail)}
|
|
197
|
+
* onResendOtp={() => sendCodeAgain()}
|
|
177
198
|
* />
|
|
178
199
|
* ```
|
|
179
200
|
*/
|
|
180
201
|
exports.McpConsentReact = (0, react_1.createComponent)({
|
|
181
|
-
tagName:
|
|
202
|
+
tagName: "mcp-consent",
|
|
182
203
|
elementClass: mcp_consent_js_1.McpConsent,
|
|
183
204
|
react: React,
|
|
184
205
|
events: {
|
|
185
|
-
onApprove:
|
|
186
|
-
onDeny:
|
|
187
|
-
onError:
|
|
206
|
+
onApprove: "mcp-consent:approve",
|
|
207
|
+
onDeny: "mcp-consent:deny",
|
|
208
|
+
onError: "mcp-consent:error",
|
|
209
|
+
onResendOtp: "mcp-consent:resend-otp",
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
// ============================================================================
|
|
213
|
+
// Capability Screen Wrappers
|
|
214
|
+
// ============================================================================
|
|
215
|
+
/**
|
|
216
|
+
* React wrapper for consent-capabilities-screen, the whole consent screen
|
|
217
|
+
* for a capability grant.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```tsx
|
|
221
|
+
* import { ConsentCapabilitiesScreenReact } from '@kya-os/consent/react';
|
|
222
|
+
*
|
|
223
|
+
* <ConsentCapabilitiesScreenReact
|
|
224
|
+
* agentMetadata={{ name: 'Claude', did: 'did:key:z6Mk...', verification: 'verified' }}
|
|
225
|
+
* capabilities={capabilities}
|
|
226
|
+
* orgName="Acme"
|
|
227
|
+
* onAllow={(e) => grant(e.detail.selectedScopes)}
|
|
228
|
+
* onDeny={() => close()}
|
|
229
|
+
* />
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
exports.ConsentCapabilitiesScreenReact = (0, react_1.createComponent)({
|
|
233
|
+
tagName: "consent-capabilities-screen",
|
|
234
|
+
elementClass: consent_capabilities_screen_js_1.ConsentCapabilitiesScreen,
|
|
235
|
+
react: React,
|
|
236
|
+
events: {
|
|
237
|
+
onAllow: "capabilities-allow",
|
|
238
|
+
onDeny: "capabilities-deny",
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* React wrapper for consent-capability-card, one capability with its toggle.
|
|
243
|
+
*/
|
|
244
|
+
exports.ConsentCapabilityCardReact = (0, react_1.createComponent)({
|
|
245
|
+
tagName: "consent-capability-card",
|
|
246
|
+
elementClass: consent_capability_card_js_1.ConsentCapabilityCard,
|
|
247
|
+
react: React,
|
|
248
|
+
events: {
|
|
249
|
+
onToggle: "capability-toggle",
|
|
250
|
+
},
|
|
251
|
+
});
|
|
252
|
+
/**
|
|
253
|
+
* React wrapper for consent-agent-header, the agent's name, pill and meta line.
|
|
254
|
+
*/
|
|
255
|
+
exports.ConsentAgentHeaderReact = (0, react_1.createComponent)({
|
|
256
|
+
tagName: "consent-agent-header",
|
|
257
|
+
elementClass: consent_agent_header_js_1.ConsentAgentHeader,
|
|
258
|
+
react: React,
|
|
259
|
+
});
|
|
260
|
+
/**
|
|
261
|
+
* React wrapper for consent-headline, the eyebrow, the headline that says who
|
|
262
|
+
* is asking and where, and the subhead.
|
|
263
|
+
*/
|
|
264
|
+
exports.ConsentHeadlineReact = (0, react_1.createComponent)({
|
|
265
|
+
tagName: "consent-headline",
|
|
266
|
+
elementClass: consent_headline_js_1.ConsentHeadline,
|
|
267
|
+
react: React,
|
|
268
|
+
});
|
|
269
|
+
/**
|
|
270
|
+
* React wrapper for consent-connector-header, the client and the server it
|
|
271
|
+
* connects to.
|
|
272
|
+
*/
|
|
273
|
+
exports.ConsentConnectorHeaderReact = (0, react_1.createComponent)({
|
|
274
|
+
tagName: "consent-connector-header",
|
|
275
|
+
elementClass: consent_connector_header_js_1.ConsentConnectorHeader,
|
|
276
|
+
react: React,
|
|
277
|
+
});
|
|
278
|
+
/**
|
|
279
|
+
* React wrapper for consent-action-bar, the Allow and Deny buttons.
|
|
280
|
+
*/
|
|
281
|
+
exports.ConsentActionBarReact = (0, react_1.createComponent)({
|
|
282
|
+
tagName: "consent-action-bar",
|
|
283
|
+
elementClass: consent_action_bar_js_1.ConsentActionBar,
|
|
284
|
+
react: React,
|
|
285
|
+
events: {
|
|
286
|
+
onAllow: "consent-allow",
|
|
287
|
+
onDeny: "consent-deny",
|
|
188
288
|
},
|
|
189
289
|
});
|
|
290
|
+
/**
|
|
291
|
+
* React wrapper for consent-revocation-notice, how and when access ends.
|
|
292
|
+
*/
|
|
293
|
+
exports.ConsentRevocationNoticeReact = (0, react_1.createComponent)({
|
|
294
|
+
tagName: "consent-revocation-notice",
|
|
295
|
+
elementClass: consent_revocation_notice_js_1.ConsentRevocationNotice,
|
|
296
|
+
react: React,
|
|
297
|
+
});
|
|
298
|
+
/**
|
|
299
|
+
* React wrapper for consent-footer.
|
|
300
|
+
*/
|
|
301
|
+
exports.ConsentFooterReact = (0, react_1.createComponent)({
|
|
302
|
+
tagName: "consent-footer",
|
|
303
|
+
elementClass: consent_footer_js_1.ConsentFooter,
|
|
304
|
+
react: React,
|
|
305
|
+
});
|
|
190
306
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,sCAA6D;AAC7D,6CAA+B;AAE/B,kBAAkB;AAClB,uEAAgE;AAChE,2EAAoE;AACpE,qEAA8D;AAC9D,qEAA8D;AAE9D,sBAAsB;AACtB,iFAA0E;AAC1E,qEAA8D;AAC9D,mFAA2E;AAC3E,6EAAqE;AAErE,sBAAsB;AACtB,iEAIsC;AAEtC,kCAAkC;AAClC,iGAGsD;AACtD,yFAGkD;AAClD,mFAA2E;AAC3E,2EAAoE;AACpE,2FAAmF;AACnF,+EAAuE;AACvE,6FAAqF;AACrF,uEAAgE;AAEhE,+EAA+E;AAC/E,0BAA0B;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AK;IACZ,MAAM,EAAE;QACN,QAAQ,EAAE,mBAET;KACF;CACF,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,uBAAuB,GAAG,IAAA,uBAAe,EAAC;IACrD,OAAO,EAAE,sBAAsB;IAC/B,YAAY,EAAE,4CAAkB;IAChC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,oBAAoB,GAAG,IAAA,uBAAe,EAAC;IAClD,OAAO,EAAE,kBAAkB;IAC3B,YAAY,EAAE,qCAAe;IAC7B,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,2BAA2B,GAAG,IAAA,uBAAe,EAAC;IACzD,OAAO,EAAE,0BAA0B;IACnC,YAAY,EAAE,oDAAsB;IACpC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,qBAAqB,GAAG,IAAA,uBAAe,EAAC;IACnD,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,wCAAgB;IAC9B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACN,OAAO,EAAE,eAAyC;QAClD,MAAM,EAAE,cAAwC;KACjD;CACF,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,uBAAe,EAAC;IAC1D,OAAO,EAAE,2BAA2B;IACpC,YAAY,EAAE,sDAAuB;IACrC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,kBAAkB,GAAG,IAAA,uBAAe,EAAC;IAChD,OAAO,EAAE,gBAAgB;IACzB,YAAY,EAAE,iCAAa;IAC3B,KAAK,EAAE,KAAK;CACb,CAAC,CAAC"}
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Consent Type Definitions
|
|
4
4
|
*
|
|
5
5
|
* Canonical types for consent configuration, branding, copy, and auth modes.
|
|
6
|
-
* These types are the single source of truth shared between
|
|
6
|
+
* These types are the single source of truth shared between the server runtime and the dashboard preview.
|
|
7
7
|
*
|
|
8
8
|
* @module @kya-os/consent/types
|
|
9
9
|
*/
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Renders the agent identity tile shared between the new consent screen and
|
|
5
5
|
* the OAuth Gateway consent modal. Shows logo + name + pill + meta line
|
|
6
|
-
* (`Made by {Vendor} · Asking from your {Surface} · Connected just now
|
|
6
|
+
* (`Made by {Vendor} · Asking from your {Surface} · Connected just now`,
|
|
7
|
+
* leaving out a vendor or surface that isn't known).
|
|
7
8
|
*
|
|
8
9
|
* The pill follows how the agent's identity is established
|
|
9
10
|
* (`verification`): Verified, the domain a CIMD client is bound to (e.g.
|
|
@@ -32,6 +33,7 @@ export declare class ConsentAgentHeader extends LitElement {
|
|
|
32
33
|
connectedAt: string;
|
|
33
34
|
static styles: import("lit").CSSResult;
|
|
34
35
|
private renderConnectedFragment;
|
|
36
|
+
/** Only the parts that are known: an unknown vendor or surface is left out. */
|
|
35
37
|
private renderMeta;
|
|
36
38
|
private renderPill;
|
|
37
39
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-agent-header.d.ts","sourceRoot":"","sources":["../../src/components/consent-agent-header.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"consent-agent-header.d.ts","sourceRoot":"","sources":["../../src/components/consent-agent-header.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAIrD,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,gCAAgC,CAAC;AAExC,qBACa,kBAAmB,SAAQ,UAAU;IACpB,SAAS,SAAM;IACf,MAAM,SAAM;IACZ,YAAY,SAAM;IAC9C;;;OAGG;IACyB,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxE,kEAAkE;IACtC,MAAM,SAAM;IACxC,kEAAkE;IACrC,QAAQ,UAAS;IAClB,OAAO,SAAM;IACb,WAAW,SAAM;IAE7C,OAAgB,MAAM,0BAmIpB;IAEF,OAAO,CAAC,uBAAuB;IAiB/B,+EAA+E;IAC/E,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,UAAU;IAkBT,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Renders the agent identity tile shared between the new consent screen and
|
|
5
5
|
* the OAuth Gateway consent modal. Shows logo + name + pill + meta line
|
|
6
|
-
* (`Made by {Vendor} · Asking from your {Surface} · Connected just now
|
|
6
|
+
* (`Made by {Vendor} · Asking from your {Surface} · Connected just now`,
|
|
7
|
+
* leaving out a vendor or surface that isn't known).
|
|
7
8
|
*
|
|
8
9
|
* The pill follows how the agent's identity is established
|
|
9
10
|
* (`verification`): Verified, the domain a CIMD client is bound to (e.g.
|
|
@@ -52,15 +53,20 @@ let ConsentAgentHeader = class ConsentAgentHeader extends LitElement {
|
|
|
52
53
|
Minutes: minutes,
|
|
53
54
|
});
|
|
54
55
|
}
|
|
56
|
+
/** Only the parts that are known: an unknown vendor or surface is left out. */
|
|
55
57
|
renderMeta() {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
const tokens = CONSENT_COPY_TOKENS.agentTile;
|
|
59
|
+
// Properties can be set to anything at runtime, e.g. `el.vendor = agent.vendor`.
|
|
60
|
+
const known = (value) => typeof value === "string" ? value.trim() : "";
|
|
61
|
+
const vendor = known(this.vendor);
|
|
62
|
+
const surface = known(this.surfaceLabel);
|
|
63
|
+
return [
|
|
64
|
+
vendor && formatToken(tokens.madeBy, { Vendor: vendor }),
|
|
65
|
+
surface && formatToken(tokens.askingFrom, { Surface: surface }),
|
|
66
|
+
this.renderConnectedFragment(),
|
|
67
|
+
]
|
|
68
|
+
.filter(Boolean)
|
|
69
|
+
.join(tokens.metaSeparator);
|
|
64
70
|
}
|
|
65
71
|
renderPill() {
|
|
66
72
|
const tokens = CONSENT_COPY_TOKENS.agentTile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-agent-header.js","sourceRoot":"","sources":["../../src/components/consent-agent-header.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"consent-agent-header.js","sourceRoot":"","sources":["../../src/components/consent-agent-header.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,iBAAiB,GAElB,MAAM,gCAAgC,CAAC;AAGjC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QACuB,cAAS,GAAG,EAAE,CAAC;QACf,WAAM,GAAG,EAAE,CAAC;QACZ,iBAAY,GAAG,EAAE,CAAC;QAM9C,kEAAkE;QACtC,WAAM,GAAG,EAAE,CAAC;QACxC,kEAAkE;QACrC,aAAQ,GAAG,KAAK,CAAC;QAClB,YAAO,GAAG,EAAE,CAAC;QACb,gBAAW,GAAG,EAAE,CAAC;IA+M/C,CAAC;IAxES,uBAAuB;QAC7B,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,OAAO,mBAAmB,CAAC,SAAS,CAAC,gBAAgB,CAAC;QACxD,CAAC;QACD,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,C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,EAAE,MAAM,EAAE,CAAC;qDAAgB;AACf;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAa;AACZ;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAmB;AAKlB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAA6C;AAE5C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAa;AAEX;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDAAkB;AAClB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAc;AACb;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDAAkB;AAdlC,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CA6N9B"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Consent Capabilities Screen
|
|
3
3
|
*
|
|
4
4
|
* The composite layout from Peter's mockup: eyebrow + serif headline +
|
|
5
|
-
* subhead
|
|
6
|
-
* action bar + footer. Used when the resolved consent config includes
|
|
5
|
+
* subhead (consent-headline, its parts exported) + agent identity tile +
|
|
6
|
+
* capability rows + revocation notice + action bar + footer. Used when the resolved consent config includes
|
|
7
7
|
* `capabilities` (the new humanized layout). Falls back to the legacy
|
|
8
8
|
* permissions list otherwise.
|
|
9
9
|
*
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { LitElement } from "lit";
|
|
19
19
|
import { type ConsentScopeCapability, type AgentMetadata, type ConsentTheme, type CedarTemplateContext } from "../types/capabilities.types.js";
|
|
20
|
+
import { type AgentIdentity } from "../identity/agent-identity.js";
|
|
20
21
|
import "./consent-agent-header.js";
|
|
22
|
+
import "./consent-headline.js";
|
|
21
23
|
import "./consent-capability-card.js";
|
|
22
24
|
import "./consent-action-bar.js";
|
|
23
25
|
import "./consent-footer.js";
|
|
@@ -39,6 +41,13 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
39
41
|
}>;
|
|
40
42
|
capabilities: ConsentScopeCapability[];
|
|
41
43
|
agentMetadata: AgentMetadata | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The agent as an Entity Card plus the host verifier's result. Wins over
|
|
46
|
+
* `agentMetadata`. The pill follows the verification, bound to the card:
|
|
47
|
+
* Verified only for a result naming the card's DID, the domain only for
|
|
48
|
+
* the card's own domain. An identity that doesn't validate shows no tile.
|
|
49
|
+
*/
|
|
50
|
+
agentIdentity: AgentIdentity | undefined;
|
|
42
51
|
cedarContext: CedarTemplateContext | undefined;
|
|
43
52
|
orgName: string;
|
|
44
53
|
headlineVerb: string;
|
|
@@ -112,7 +121,8 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
112
121
|
private onAllow;
|
|
113
122
|
private onDeny;
|
|
114
123
|
private compileCapabilityCedar;
|
|
115
|
-
|
|
124
|
+
/** The agent tile: from `agentIdentity` when it is set, else `agentMetadata`. */
|
|
125
|
+
private resolveAgent;
|
|
116
126
|
render(): import("lit").TemplateResult<1>;
|
|
117
127
|
}
|
|
118
128
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-capabilities-screen.d.ts","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAKrD,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EAC1B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"consent-capabilities-screen.d.ts","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;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