@kya-os/consent 0.2.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +223 -4
- package/dist/bundle/index.d.ts +10 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +10 -0
- 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/cjs/bundle/index.js +10 -0
- 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/components/consent-action-bar.js +66 -15
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +5 -1
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +56 -4
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +75 -24
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +2 -2
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +187 -0
- package/dist/cjs/components/consent-duration.js.map +1 -0
- package/dist/cjs/components/consent-folder-scope.js +169 -0
- package/dist/cjs/components/consent-folder-scope.js.map +1 -0
- package/dist/cjs/components/consent-footer.js +13 -2
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-grant-terms.js +321 -0
- package/dist/cjs/components/consent-grant-terms.js.map +1 -0
- package/dist/cjs/components/consent-headline.js +50 -1
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-input.js +47 -27
- package/dist/cjs/components/consent-input.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +49 -42
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +219 -0
- package/dist/cjs/components/consent-phone-handoff.js.map +1 -0
- package/dist/cjs/components/consent-request-expiry.js +159 -0
- package/dist/cjs/components/consent-request-expiry.js.map +1 -0
- package/dist/cjs/components/consent-revoke.js +308 -0
- package/dist/cjs/components/consent-revoke.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +3 -0
- package/dist/cjs/components/consent-shell.js.map +1 -1
- package/dist/cjs/components/consent-terms.js +2 -2
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +107 -0
- package/dist/cjs/components/consent-wallet-check.js.map +1 -0
- package/dist/cjs/components/consent-wallet-notice.js +189 -0
- package/dist/cjs/components/consent-wallet-notice.js.map +1 -0
- package/dist/cjs/components/consent-wallet-orb.js +273 -0
- package/dist/cjs/components/consent-wallet-orb.js.map +1 -0
- package/dist/cjs/components/consent-wallet-signature.js +104 -0
- package/dist/cjs/components/consent-wallet-signature.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +85 -0
- package/dist/cjs/components/grant-field-styles.js.map +1 -0
- package/dist/cjs/components/index.js +33 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +18 -1
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/template-link.js +32 -0
- package/dist/cjs/components/template-link.js.map +1 -0
- package/dist/cjs/components/wallet-globe.js +184 -0
- package/dist/cjs/components/wallet-globe.js.map +1 -0
- package/dist/cjs/components/wallet-icons.js +19 -0
- package/dist/cjs/components/wallet-icons.js.map +1 -0
- package/dist/cjs/components/wallet-status.js +34 -0
- package/dist/cjs/components/wallet-status.js.map +1 -0
- package/dist/cjs/constants/capabilities.js +11 -2
- package/dist/cjs/constants/capabilities.js.map +1 -1
- package/dist/cjs/copy/tokens.js +91 -0
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/grant/index.js +24 -0
- package/dist/cjs/grant/index.js.map +1 -0
- package/dist/cjs/grant/terms.js +148 -0
- package/dist/cjs/grant/terms.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- 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/react/index.js +120 -1
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +17 -0
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +67 -16
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +5 -1
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +24 -3
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +54 -3
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +19 -2
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +74 -23
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +1 -1
- package/dist/components/consent-checkbox.js +2 -2
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-duration.d.ts +64 -0
- package/dist/components/consent-duration.d.ts.map +1 -0
- package/dist/components/consent-duration.js +184 -0
- package/dist/components/consent-duration.js.map +1 -0
- package/dist/components/consent-folder-scope.d.ts +70 -0
- package/dist/components/consent-folder-scope.d.ts.map +1 -0
- package/dist/components/consent-folder-scope.js +166 -0
- package/dist/components/consent-folder-scope.js.map +1 -0
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +13 -2
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-grant-terms.d.ts +88 -0
- package/dist/components/consent-grant-terms.d.ts.map +1 -0
- package/dist/components/consent-grant-terms.js +318 -0
- package/dist/components/consent-grant-terms.js.map +1 -0
- package/dist/components/consent-headline.d.ts +25 -0
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +52 -3
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-input.d.ts +4 -4
- package/dist/components/consent-input.d.ts.map +1 -1
- package/dist/components/consent-input.js +49 -29
- package/dist/components/consent-input.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts +4 -4
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +51 -44
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-phone-handoff.d.ts +50 -0
- package/dist/components/consent-phone-handoff.d.ts.map +1 -0
- package/dist/components/consent-phone-handoff.js +215 -0
- package/dist/components/consent-phone-handoff.js.map +1 -0
- package/dist/components/consent-request-expiry.d.ts +52 -0
- package/dist/components/consent-request-expiry.d.ts.map +1 -0
- package/dist/components/consent-request-expiry.js +154 -0
- package/dist/components/consent-request-expiry.js.map +1 -0
- package/dist/components/consent-revoke.d.ts +53 -0
- package/dist/components/consent-revoke.d.ts.map +1 -0
- package/dist/components/consent-revoke.js +305 -0
- package/dist/components/consent-revoke.js.map +1 -0
- package/dist/components/consent-shell.d.ts.map +1 -1
- package/dist/components/consent-shell.js +3 -0
- package/dist/components/consent-shell.js.map +1 -1
- package/dist/components/consent-terms.d.ts +1 -1
- package/dist/components/consent-terms.js +2 -2
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.d.ts +45 -0
- package/dist/components/consent-wallet-check.d.ts.map +1 -0
- package/dist/components/consent-wallet-check.js +102 -0
- package/dist/components/consent-wallet-check.js.map +1 -0
- package/dist/components/consent-wallet-notice.d.ts +54 -0
- package/dist/components/consent-wallet-notice.d.ts.map +1 -0
- package/dist/components/consent-wallet-notice.js +186 -0
- package/dist/components/consent-wallet-notice.js.map +1 -0
- package/dist/components/consent-wallet-orb.d.ts +48 -0
- package/dist/components/consent-wallet-orb.d.ts.map +1 -0
- package/dist/components/consent-wallet-orb.js +269 -0
- package/dist/components/consent-wallet-orb.js.map +1 -0
- package/dist/components/consent-wallet-signature.d.ts +26 -0
- package/dist/components/consent-wallet-signature.d.ts.map +1 -0
- package/dist/components/consent-wallet-signature.js +101 -0
- package/dist/components/consent-wallet-signature.js.map +1 -0
- package/dist/components/grant-field-styles.d.ts +9 -0
- package/dist/components/grant-field-styles.d.ts.map +1 -0
- package/dist/components/grant-field-styles.js +82 -0
- package/dist/components/grant-field-styles.js.map +1 -0
- package/dist/components/index.d.ts +11 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +14 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +18 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/template-link.d.ts +24 -0
- package/dist/components/template-link.d.ts.map +1 -0
- package/dist/components/template-link.js +29 -0
- package/dist/components/template-link.js.map +1 -0
- package/dist/components/wallet-globe.d.ts +29 -0
- package/dist/components/wallet-globe.d.ts.map +1 -0
- package/dist/components/wallet-globe.js +181 -0
- package/dist/components/wallet-globe.js.map +1 -0
- package/dist/components/wallet-icons.d.ts +16 -0
- package/dist/components/wallet-icons.d.ts.map +1 -0
- package/dist/components/wallet-icons.js +16 -0
- package/dist/components/wallet-icons.js.map +1 -0
- package/dist/components/wallet-status.d.ts +19 -0
- package/dist/components/wallet-status.d.ts.map +1 -0
- package/dist/components/wallet-status.js +29 -0
- package/dist/components/wallet-status.js.map +1 -0
- package/dist/consent.js +3246 -807
- package/dist/consent.min.js +1360 -281
- package/dist/constants/capabilities.d.ts +5 -2
- package/dist/constants/capabilities.d.ts.map +1 -1
- package/dist/constants/capabilities.js +11 -2
- package/dist/constants/capabilities.js.map +1 -1
- package/dist/copy/tokens.d.ts +91 -0
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +91 -0
- package/dist/copy/tokens.js.map +1 -1
- package/dist/grant/index.d.ts +8 -0
- package/dist/grant/index.d.ts.map +1 -0
- package/dist/grant/index.js +8 -0
- package/dist/grant/index.js.map +1 -0
- package/dist/grant/terms.d.ts +97 -0
- package/dist/grant/terms.d.ts.map +1 -0
- package/dist/grant/terms.js +139 -0
- package/dist/grant/terms.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- 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/react/index.d.ts +74 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +119 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ npm install @kya-os/id # only if you import @kya-os/consent/passkey
|
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Without `@kya-os/id`, importing a passkey entry point fails with a module-not-found error for `@kya-os/id/wallet/passkey`.
|
|
38
|
-
Install `@kya-os/id
|
|
38
|
+
Install `@kya-os/id` 0.6, 0.7 or 0.8 to fix it.
|
|
39
39
|
Every other entry point works without it, and so does the self-contained `consent.js` bundle, which inlines the passkey code.
|
|
40
40
|
|
|
41
41
|
## A standalone scope grant
|
|
@@ -61,7 +61,7 @@ screen.description = "Review the grant before using your passkey.";
|
|
|
61
61
|
screen.submitLabel = "Approve grant";
|
|
62
62
|
screen.cancelLabel = "Deny";
|
|
63
63
|
screen.addEventListener("capabilities-allow", async (event) => {
|
|
64
|
-
// event.detail: { selectedCapabilityIds: string[], selectedScopes: string[] }
|
|
64
|
+
// event.detail: { selectedCapabilityIds: string[], selectedScopes: string[], grantTerms? }
|
|
65
65
|
screen.loading = true;
|
|
66
66
|
try {
|
|
67
67
|
await hostApprove(event.detail);
|
|
@@ -83,6 +83,142 @@ Empty selections cannot emit approval.
|
|
|
83
83
|
`allSelected` (`all-selected`) seeds every capability as checked; rerendering the same capability IDs preserves the human's subsequent selection.
|
|
84
84
|
HTML attributes for custom labels are `submit-label` and `cancel-label`; JavaScript properties are `submitLabel` and `cancelLabel`.
|
|
85
85
|
|
|
86
|
+
## Grant terms
|
|
87
|
+
|
|
88
|
+
`<consent-grant-terms>` lets the person choose how long a grant lasts and which folder it covers.
|
|
89
|
+
It stays closed under one line that says what is in effect, such as "8 hours · Every folder", next to a Customize button.
|
|
90
|
+
Put it in the screen's `details` slot, and `capabilities-allow` carries the person's choice as `event.detail.grantTerms`.
|
|
91
|
+
Allow stays off while the terms can't be used, such as a folder path with `..` in it.
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<consent-capabilities-screen>
|
|
95
|
+
<consent-grant-terms slot="details" chained></consent-grant-terms>
|
|
96
|
+
</consent-capabilities-screen>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`grantTerms` is `{ notAfter, crispScopes }`, with `notAfter` in seconds.
|
|
100
|
+
Those are the field names of `@kya-os/id`'s `DelegationRequest`, so the terms spread into `wallet.issueDelegation()` unchanged.
|
|
101
|
+
The package root declares the type itself and never imports `@kya-os/id`.
|
|
102
|
+
|
|
103
|
+
With no child elements, the group shows a `<consent-duration>` and a `<consent-folder-scope>` with their defaults.
|
|
104
|
+
Put your own in it to configure them:
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<consent-grant-terms slot="details">
|
|
108
|
+
<consent-duration max="86400" value="3600"></consent-duration>
|
|
109
|
+
<consent-folder-scope
|
|
110
|
+
everything-label="Entire vault"
|
|
111
|
+
only-template="Limited to {Folder}"
|
|
112
|
+
></consent-folder-scope>
|
|
113
|
+
</consent-grant-terms>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
- `<consent-duration>` offers `options` (15 minutes to 30 days by default) up to `max`.
|
|
117
|
+
A `value` it doesn't offer shows as the longest shorter choice, so a grant never lasts longer than you asked for.
|
|
118
|
+
- `<consent-folder-scope>` reads a path the way the verifier's `path-prefix` matcher does.
|
|
119
|
+
`/notes/*` is `notes/`, and `notes/` never covers `notesx/`.
|
|
120
|
+
A path with a `.` or `..` segment is refused with a message, instead of becoming a grant that covers nothing.
|
|
121
|
+
- Both are form-associated.
|
|
122
|
+
Inside a `<form>` they submit under their `name`, and the folder field blocks submission while it is invalid.
|
|
123
|
+
- Any child element with a `grantTerms` property is a field, so you can add your own.
|
|
124
|
+
It may also have `summary` (its part of the closed line) and `valid`, and it should dispatch `consent-grant-field-change` when they change.
|
|
125
|
+
When more than one field sets a duration, the shortest wins.
|
|
126
|
+
- `chained` adds a line saying the agent can pass on only a narrower grant, which is true of every `@kya-os/id` delegation chain.
|
|
127
|
+
|
|
128
|
+
`@kya-os/consent/grant` exports the pure helpers behind them: `readFolder`, `folderTerms`, `mergeGrantTerms`, `pickDuration`, `formatDuration` and `DURATION_OPTIONS`.
|
|
129
|
+
It imports no other package, so a host that draws its own fields, or checks terms on its server, can use it on its own.
|
|
130
|
+
|
|
131
|
+
## Taking a grant back
|
|
132
|
+
|
|
133
|
+
`<consent-revoke>` asks before a grant ends, lists what ends, and confirms once it has.
|
|
134
|
+
It revokes nothing itself.
|
|
135
|
+
It fires `consent-revoke`, then your code revokes the grant and sets `loading`, then `revoked` or `error`.
|
|
136
|
+
With `chained`, the list adds every narrower grant the agent passed on, because revoking a `@kya-os/id` credential revokes the ones minted under it.
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
const revoke = document.querySelector("consent-revoke");
|
|
140
|
+
revoke.agentName = grant.agentName;
|
|
141
|
+
revoke.items = ["Read your notes", "Write to journal/"];
|
|
142
|
+
revoke.chained = true;
|
|
143
|
+
revoke.addEventListener("consent-revoke", async () => {
|
|
144
|
+
revoke.loading = true;
|
|
145
|
+
revoke.error = "";
|
|
146
|
+
try {
|
|
147
|
+
await wallet.revoke(grant.id); // the hub flips the grant's status bit
|
|
148
|
+
revoke.revoked = true;
|
|
149
|
+
} catch {
|
|
150
|
+
revoke.error = "Your account couldn't be reached. Try again.";
|
|
151
|
+
} finally {
|
|
152
|
+
revoke.loading = false;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
revoke.addEventListener("consent-keep", closeDialog);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Signing with a wallet
|
|
159
|
+
|
|
160
|
+
When the person approves by signing with their own wallet, as they do with `@kya-os/id`, these elements cover the moments around the signature.
|
|
161
|
+
Each shows state your page already has, and none of them calls a server.
|
|
162
|
+
|
|
163
|
+
- `<consent-wallet-check>` shows whether this browser's wallet can sign, as an orb and one line.
|
|
164
|
+
Set `status` to `checking`, `syncing`, `ready`, `conflict` or `error`.
|
|
165
|
+
The orb is a globe inside a dial of 48 ticks.
|
|
166
|
+
While the check runs, the globe turns and a light runs round the dial.
|
|
167
|
+
Once the wallet is ready, the dial closes and a check is drawn; when this browser can't sign, the dial stays open at the top.
|
|
168
|
+
- `<consent-wallet-orb>` is that orb on its own, for a screen whose own words already say what is happening.
|
|
169
|
+
It takes the same `status`, and one more: `idle`, for before anything has started, when the globe turns and the dial rests.
|
|
170
|
+
`--cs-wallet-orb-size`, `--cs-wallet-accent`, `--cs-wallet-success` and `--cs-wallet-muted` theme it.
|
|
171
|
+
- `<consent-wallet-notice>` says what to do when this browser can't sign.
|
|
172
|
+
It shows only for a `conflict` or an `error`.
|
|
173
|
+
`reason` picks the advice: `passkey-unreachable`, `key-drift` or `superseded`.
|
|
174
|
+
`credentials-url` links the page where the person manages their wallet, and the `more` slot replaces the advice under an unreachable passkey.
|
|
175
|
+
- `<consent-request-expiry>` counts down the time left to approve, from `expires-at` in epoch milliseconds or an ISO date.
|
|
176
|
+
At zero it says the request expired and fires `consent-request-expired` once, with `{ expiresAt }`.
|
|
177
|
+
- `<consent-phone-handoff>` is a QR code of the request's link, for a person whose passkey is on their phone.
|
|
178
|
+
It draws the code itself, so the link never goes to an image service.
|
|
179
|
+
Hide it on phones yourself: the element can't tell which device it is on.
|
|
180
|
+
- `<consent-wallet-signature>` is the small print under the buttons: the wallet signs the grant, and `revoke-url` is where to take it back.
|
|
181
|
+
|
|
182
|
+
The action bar takes `submit-icon="passkey"` for a fingerprint on Approve, and `loading-label` for what it says while it signs.
|
|
183
|
+
|
|
184
|
+
```html
|
|
185
|
+
<consent-wallet-check status="checking"></consent-wallet-check>
|
|
186
|
+
<consent-wallet-notice
|
|
187
|
+
app-name="Northwind"
|
|
188
|
+
credentials-url="/settings/credentials"
|
|
189
|
+
></consent-wallet-notice>
|
|
190
|
+
<consent-request-expiry
|
|
191
|
+
expires-at="2026-11-12T09:05:00Z"
|
|
192
|
+
></consent-request-expiry>
|
|
193
|
+
<consent-action-bar
|
|
194
|
+
submit-label="Approve"
|
|
195
|
+
cancel-label="Deny"
|
|
196
|
+
submit-icon="passkey"
|
|
197
|
+
loading-label="Signing…"
|
|
198
|
+
disabled
|
|
199
|
+
></consent-action-bar>
|
|
200
|
+
<consent-wallet-signature
|
|
201
|
+
revoke-url="/settings/credentials"
|
|
202
|
+
></consent-wallet-signature>
|
|
203
|
+
<consent-phone-handoff
|
|
204
|
+
url="https://app.example/c/chal_123"
|
|
205
|
+
updates-on-its-own
|
|
206
|
+
></consent-phone-handoff>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
```ts
|
|
210
|
+
// Your wallet check's outcome drives the check, the notice and Approve.
|
|
211
|
+
check.status = notice.status = outcome.status; // "ready", "conflict", …
|
|
212
|
+
notice.reason = outcome.reason; // "passkey-unreachable", …
|
|
213
|
+
bar.disabled = outcome.status !== "ready";
|
|
214
|
+
expiry.addEventListener("consent-request-expired", () => {
|
|
215
|
+
bar.disabled = true;
|
|
216
|
+
});
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
The notice names the app from `app-name`, or says "this app" without one.
|
|
220
|
+
Where your own words fit better, the check takes a `caption`, the notice a `message` and its `more` slot, and the phone handoff a `heading` and a `description`.
|
|
221
|
+
|
|
86
222
|
## React
|
|
87
223
|
|
|
88
224
|
`@kya-os/consent/react` has a React component for every element, such as `ConsentCapabilitiesScreenReact` for the screen above.
|
|
@@ -112,6 +248,7 @@ The components keep the handlers typed in both versions.
|
|
|
112
248
|
`react` and `@lit/react` are peers, so the components use your app's copy of React.
|
|
113
249
|
No other entry point imports either one.
|
|
114
250
|
`<consent-passkey>` has its own component, `ConsentPasskeyReact`, in `@kya-os/consent/passkey/react` (see [Passkey mode](#passkey-mode)).
|
|
251
|
+
Slotted parts are children, as in `<ConsentGrantTermsReact slot="details" chained />` inside the screen.
|
|
115
252
|
|
|
116
253
|
## Host content and styling
|
|
117
254
|
|
|
@@ -122,10 +259,14 @@ Named slots place host content in the existing screen layout:
|
|
|
122
259
|
- `details`: after the authentication slot.
|
|
123
260
|
- `notice`: replaces the default revocation and inactivity notice.
|
|
124
261
|
- `footer`: replaces the default Checkpoint footer.
|
|
262
|
+
- `headline`: the headline's words in place of the standard line, such as the agent's name as a button that opens its details. Your content is your own markup, so render an agent-chosen name as text.
|
|
263
|
+
- `capability-<capability id>`: content shown inside that capability's row, under its scopes, such as a check the row needs. A click anywhere in it does not toggle the row, nor does a `capability-toggle` event sent from it, and it is not part of the row's accessible name. `capabilitySlotName(id)` from `@kya-os/consent/components` returns the slot's name.
|
|
125
264
|
|
|
126
265
|
Use the `notice` slot whenever the host has different expiry or revocation behavior.
|
|
127
266
|
An omitted slot preserves the existing Cedar screen's default content.
|
|
128
|
-
The public parts are `connector`, `card`, `eyebrow`, `headline`, `subhead`, `agent`, `permissions`, `actions`, `submit`, and `cancel`.
|
|
267
|
+
The public parts are `connector`, `card`, `eyebrow`, `headline`, `subhead`, `agent`, `permissions`, `section-header` (the line above the rows), `actions`, `submit`, and `cancel`.
|
|
268
|
+
Each row's parts are forwarded with a `capability-` prefix: `capability-row`, `capability-checkbox`, `capability-check` (the mark in a ticked box), `capability-icon`, `capability-body`, `capability-label-row` (the label, description and risk chip), `capability-label-text` (the label and description), `capability-label`, `capability-description`, `capability-risk`, `capability-scopes`, `capability-scope`, and `capability-policy`.
|
|
269
|
+
Without host CSS the rows look as before.
|
|
129
270
|
Public CSS variables include `--cs-screen-max-width`, `--cs-card-padding`, `--cs-card-padding-mobile`, `--cs-card-gap`, `--cs-headline-font-size`, `--cs-subhead-font-size`, `--cs-scope-font-size`, `--cs-action-font-size`, and `--cs-action-min-height`.
|
|
130
271
|
Set the mobile padding variable separately when overriding padding below 480px.
|
|
131
272
|
`--cs-agent-tile-bg` sets the agent logo tile background (default `#FFFFFF` in both themes).
|
|
@@ -221,6 +362,7 @@ A host that sets `--consent-primary` itself should set them too; `generateCSSVar
|
|
|
221
362
|
`CONSENT_CAPABILITIES_FEATURES` is exported from the package root, constants entry point, and browser bundle.
|
|
222
363
|
`ConsentCapabilitiesScreen.features` exposes the same versioned object for hosts loading a script dynamically.
|
|
223
364
|
Version 1 supports scope-only rows and the `identity`, `details`, `notice`, and `footer` slots.
|
|
365
|
+
Version 2 adds the `headline` slot, a slot per row (`capabilitySlotPrefix` plus the capability's id), and the row parts.
|
|
224
366
|
|
|
225
367
|
## Main consent component selection
|
|
226
368
|
|
|
@@ -271,13 +413,90 @@ It loads the element from `{serverUrl}/consent.js`, and like the element it make
|
|
|
271
413
|
It re-dispatches the element's three events to a same-origin opener or parent window as `postMessage({ source: "consent-passkey", type, detail }, "/")`.
|
|
272
414
|
Required terms keep the element disabled until accepted, and without a usable `passkeyStep` the page fails closed.
|
|
273
415
|
|
|
416
|
+
## A consent page for `@kya-os/id`
|
|
417
|
+
|
|
418
|
+
[`@kya-os/id`](https://www.npmjs.com/package/@kya-os/id) mints the grant, and these components ask the person for it.
|
|
419
|
+
Together they make the page an `@kya-os/id` MCP server sends people to when an agent needs access.
|
|
420
|
+
|
|
421
|
+
On the server, `createMcpRouter` calls your `createConsentChallenge` when a tool call has no grant that covers it.
|
|
422
|
+
Store the request and return the page's URL.
|
|
423
|
+
The agent relays the URL to the person, and its next call carries the challenge back as a resume token.
|
|
424
|
+
|
|
425
|
+
```ts
|
|
426
|
+
import { createMcpRouter } from "@kya-os/id/mcp";
|
|
427
|
+
|
|
428
|
+
const router = createMcpRouter({
|
|
429
|
+
...options, // serverInfo, didResolver, findUserByDid, tools
|
|
430
|
+
createConsentChallenge: async ({ capability, agentLabel }) => {
|
|
431
|
+
const challenge = await consentRequests.create({ capability, agentLabel });
|
|
432
|
+
return { challenge, consentUrl: `${BASE_URL}/c/${challenge}` };
|
|
433
|
+
},
|
|
434
|
+
resolveResumeDelegation: ({ resumeToken }) =>
|
|
435
|
+
consentRequests.jwtFor(resumeToken),
|
|
436
|
+
});
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
The page at `/c/:challenge` is the capabilities screen with the grant terms in its `details` slot.
|
|
440
|
+
On Allow, the person's passkey wallet signs one credential with the terms they chose, and the page hands its JWT to your server for `jwtFor` to return.
|
|
441
|
+
|
|
442
|
+
```html
|
|
443
|
+
<consent-capabilities-screen>
|
|
444
|
+
<consent-grant-terms slot="details" chained></consent-grant-terms>
|
|
445
|
+
</consent-capabilities-screen>
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
```ts
|
|
449
|
+
import "@kya-os/consent/bundle";
|
|
450
|
+
import { createWallet } from "@kya-os/id/wallet";
|
|
451
|
+
|
|
452
|
+
const wallet = createWallet();
|
|
453
|
+
const screen = document.querySelector("consent-capabilities-screen");
|
|
454
|
+
screen.capabilities = [
|
|
455
|
+
{
|
|
456
|
+
id: request.capability,
|
|
457
|
+
label: request.label, // e.g. "Read your notes"
|
|
458
|
+
description: request.description,
|
|
459
|
+
icon: "eye",
|
|
460
|
+
riskLevel: "low",
|
|
461
|
+
defaultOn: true,
|
|
462
|
+
scopes: [request.capability],
|
|
463
|
+
},
|
|
464
|
+
];
|
|
465
|
+
screen.addEventListener("capabilities-allow", async (event) => {
|
|
466
|
+
const { selectedScopes, grantTerms } = event.detail;
|
|
467
|
+
screen.loading = true;
|
|
468
|
+
try {
|
|
469
|
+
const stored = await wallet.issueDelegation({
|
|
470
|
+
...grantTerms, // { notAfter, crispScopes }
|
|
471
|
+
capabilities: selectedScopes,
|
|
472
|
+
subjectDid: request.subjectDid,
|
|
473
|
+
audience: request.audience,
|
|
474
|
+
});
|
|
475
|
+
await fetch(`/api/consent/${challenge}`, {
|
|
476
|
+
method: "POST",
|
|
477
|
+
headers: { "content-type": "application/json" },
|
|
478
|
+
body: JSON.stringify({ jwt: stored.jwt }),
|
|
479
|
+
});
|
|
480
|
+
} finally {
|
|
481
|
+
screen.loading = false;
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
A grant the person's wallet signs needs no passkey assertion on top: the signature is the approval.
|
|
487
|
+
When your server approves the request instead, use the assertion mode.
|
|
488
|
+
Open the ceremony with `createCommittedChallenge` from `@kya-os/id/server/passkey`, which commits the challenge to the request's id and scopes, put `<consent-passkey>` in the screen's `auth` slot, and keep Allow off with `allow-disabled` until the server has verified the assertion (see [Passkey mode](#passkey-mode)).
|
|
489
|
+
|
|
490
|
+
Where the person manages their grants, `<consent-revoke>` and `wallet.revoke(id)` take one back (see [Taking a grant back](#taking-a-grant-back)).
|
|
491
|
+
The code above type-checks against `@kya-os/id` 0.8.
|
|
492
|
+
|
|
274
493
|
## Validation and preview
|
|
275
494
|
|
|
276
495
|
Run `pnpm test` and `pnpm build` for the package suite and all bundle formats.
|
|
277
496
|
The build also verifies that the browser, ESM, CJS, and MCP App inline bundles contain the same UI.
|
|
278
497
|
Run `pnpm test:browser` in a Python environment with Playwright installed for real Chromium tests of the public component contract.
|
|
279
498
|
Set `CHROMIUM` to use an existing Chromium executable; otherwise Playwright's installed Chromium is used.
|
|
280
|
-
The browser suite covers scope-only and Cedar rendering, custom content, mobile layout, empty and disabled approval, frozen scope selection while loading, actual main-component form submission, scope mismatch refusal,
|
|
499
|
+
The browser suite covers scope-only and Cedar rendering, custom content, mobile layout, empty and disabled approval, frozen scope selection while loading, actual main-component form submission, scope mismatch refusal, fixed-grant authentication gates, and the grant terms and revoke panel: form association, keyboard order, Allow carrying the terms, and the fit at 320px.
|
|
281
500
|
It also runs `<consent-passkey>` against a CDP virtual authenticator: passkey registration and a user-verified assertion, a failed user verification, and a browser without WebAuthn.
|
|
282
501
|
|
|
283
502
|
After building, serve this directory and open `preview/all-templates.html#scope-passkey-preview` for the fictional Google account and passkey host example.
|
package/dist/bundle/index.d.ts
CHANGED
|
@@ -37,6 +37,16 @@ import "../components/consent-footer.js";
|
|
|
37
37
|
import "../components/consent-revocation-notice.js";
|
|
38
38
|
import "../components/consent-connector-header.js";
|
|
39
39
|
import "../components/consent-capabilities-screen.js";
|
|
40
|
+
import "../components/consent-duration.js";
|
|
41
|
+
import "../components/consent-folder-scope.js";
|
|
42
|
+
import "../components/consent-grant-terms.js";
|
|
43
|
+
import "../components/consent-revoke.js";
|
|
44
|
+
import "../components/consent-wallet-orb.js";
|
|
45
|
+
import "../components/consent-wallet-check.js";
|
|
46
|
+
import "../components/consent-wallet-notice.js";
|
|
47
|
+
import "../components/consent-wallet-signature.js";
|
|
48
|
+
import "../components/consent-request-expiry.js";
|
|
49
|
+
import "../components/consent-phone-handoff.js";
|
|
40
50
|
import "../components/mcp-consent.js";
|
|
41
51
|
export { McpConsent } from "../components/mcp-consent.js";
|
|
42
52
|
export { ConsentButton } from "../components/consent-button.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,0CAA0C,CAAC;AAClD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,i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B,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAG7E,YAAY,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/bundle/index.js
CHANGED
|
@@ -38,6 +38,16 @@ import "../components/consent-footer.js";
|
|
|
38
38
|
import "../components/consent-revocation-notice.js";
|
|
39
39
|
import "../components/consent-connector-header.js";
|
|
40
40
|
import "../components/consent-capabilities-screen.js";
|
|
41
|
+
import "../components/consent-duration.js";
|
|
42
|
+
import "../components/consent-folder-scope.js";
|
|
43
|
+
import "../components/consent-grant-terms.js";
|
|
44
|
+
import "../components/consent-revoke.js";
|
|
45
|
+
import "../components/consent-wallet-orb.js";
|
|
46
|
+
import "../components/consent-wallet-check.js";
|
|
47
|
+
import "../components/consent-wallet-notice.js";
|
|
48
|
+
import "../components/consent-wallet-signature.js";
|
|
49
|
+
import "../components/consent-request-expiry.js";
|
|
50
|
+
import "../components/consent-phone-handoff.js";
|
|
41
51
|
import "../components/mcp-consent.js";
|
|
42
52
|
// Re-export the main composite component for programmatic use
|
|
43
53
|
export { McpConsent } from "../components/mcp-consent.js";
|
package/dist/bundle/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,iEAAiE;AACjE,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,0CAA0C,CAAC;AAClD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC;AACzC,OAAO,4CAA4C,CAAC;AACpD,OAAO,2CAA2C,CAAC;AACnD,OAAO,8CAA8C,CAAC;AACtD,OAAO,8BAA8B,CAAC;AAEtC,8DAA8D;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qDAAqD;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE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
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAsgqW,CAAC;AAEpiqW;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}
|