@kya-os/consent 0.4.0 → 0.4.2
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 +186 -22
- package/dist/bundle/index.d.ts +9 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +13 -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 +36 -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/components/consent-action-bar.js +97 -25
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +7 -105
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-button.js +6 -1
- package/dist/cjs/components/consent-button.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +456 -117
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +159 -32
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +7 -0
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +262 -45
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +1 -1
- package/dist/cjs/components/consent-flow-timeline.js +177 -0
- package/dist/cjs/components/consent-flow-timeline.js.map +1 -0
- package/dist/cjs/components/consent-flow.js +540 -0
- package/dist/cjs/components/consent-flow.js.map +1 -0
- package/dist/cjs/components/consent-footer.js +22 -14
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +353 -33
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-oauth-button.js +68 -138
- package/dist/cjs/components/consent-oauth-button.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +5 -0
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +3 -3
- package/dist/cjs/components/consent-request-expiry.js +1 -1
- package/dist/cjs/components/consent-revocation-notice.js +29 -18
- package/dist/cjs/components/consent-revocation-notice.js.map +1 -1
- package/dist/cjs/components/consent-revoke.js +9 -4
- package/dist/cjs/components/consent-revoke.js.map +1 -1
- package/dist/cjs/components/consent-secured-by.js +106 -0
- package/dist/cjs/components/consent-secured-by.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +1 -1
- package/dist/cjs/components/consent-terms.js +7 -0
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +26 -2
- package/dist/cjs/components/consent-wallet-check.js.map +1 -1
- package/dist/cjs/components/consent-wallet-notice.js +1 -1
- package/dist/cjs/components/consent-wallet-orb.js +1 -1
- package/dist/cjs/components/consent-wallet-signature.js +1 -1
- package/dist/cjs/components/decision-icons.js +37 -0
- package/dist/cjs/components/decision-icons.js.map +1 -0
- package/dist/cjs/components/edit-region.js +309 -0
- package/dist/cjs/components/edit-region.js.map +1 -0
- package/dist/cjs/components/flow-blocks.js +762 -0
- package/dist/cjs/components/flow-blocks.js.map +1 -0
- package/dist/cjs/components/flow-motion.js +177 -0
- package/dist/cjs/components/flow-motion.js.map +1 -0
- package/dist/cjs/components/grant-details.js +143 -0
- package/dist/cjs/components/grant-details.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +2 -2
- package/dist/cjs/components/index.js +13 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +93 -36
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/preview.js +67 -0
- package/dist/cjs/components/preview.js.map +1 -0
- package/dist/cjs/components/provider-icons.js +92 -0
- package/dist/cjs/components/provider-icons.js.map +1 -0
- package/dist/cjs/constants/capabilities.js +17 -2
- package/dist/cjs/constants/capabilities.js.map +1 -1
- package/dist/cjs/copy/tokens.js +67 -24
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/flow/copy.js +146 -0
- package/dist/cjs/flow/copy.js.map +1 -0
- package/dist/cjs/flow/index.js +31 -0
- package/dist/cjs/flow/index.js.map +1 -0
- package/dist/cjs/flow/model.js +107 -0
- package/dist/cjs/flow/model.js.map +1 -0
- package/dist/cjs/flow/presets.js +157 -0
- package/dist/cjs/flow/presets.js.map +1 -0
- package/dist/cjs/flow/schema.js +76 -0
- package/dist/cjs/flow/schema.js.map +1 -0
- package/dist/cjs/identity/agent-identity.js +3 -2
- package/dist/cjs/identity/agent-identity.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 +40 -2
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/styles/brand.js +385 -0
- package/dist/cjs/styles/brand.js.map +1 -0
- package/dist/cjs/styles/index.js +1 -0
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/cjs/styles/theme.js +102 -30
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/cjs/types/capabilities.types.js +1 -2
- package/dist/cjs/types/capabilities.types.js.map +1 -1
- package/dist/cjs/types/decision.types.js +13 -0
- package/dist/cjs/types/decision.types.js.map +1 -0
- package/dist/cjs/types/edit.types.js +80 -0
- package/dist/cjs/types/edit.types.js.map +1 -0
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +20 -1
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +97 -25
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts +4 -17
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +7 -105
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-button.d.ts +2 -0
- package/dist/components/consent-button.d.ts.map +1 -1
- package/dist/components/consent-button.js +6 -1
- package/dist/components/consent-button.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +101 -17
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +457 -118
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +32 -3
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +159 -32
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +2 -0
- package/dist/components/consent-checkbox.d.ts.map +1 -1
- package/dist/components/consent-checkbox.js +7 -0
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts +52 -7
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +262 -45
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-duration.js +1 -1
- package/dist/components/consent-flow-timeline.d.ts +49 -0
- package/dist/components/consent-flow-timeline.d.ts.map +1 -0
- package/dist/components/consent-flow-timeline.js +174 -0
- package/dist/components/consent-flow-timeline.js.map +1 -0
- package/dist/components/consent-flow.d.ts +101 -0
- package/dist/components/consent-flow.d.ts.map +1 -0
- package/dist/components/consent-flow.js +504 -0
- package/dist/components/consent-flow.js.map +1 -0
- package/dist/components/consent-footer.d.ts +6 -4
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +22 -14
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-headline.d.ts +62 -16
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +352 -34
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-oauth-button.d.ts +9 -6
- package/dist/components/consent-oauth-button.d.ts.map +1 -1
- package/dist/components/consent-oauth-button.js +71 -141
- package/dist/components/consent-oauth-button.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +5 -0
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-passkey.d.ts +6 -0
- package/dist/components/consent-passkey.d.ts.map +1 -1
- package/dist/components/consent-passkey.js +67 -9
- package/dist/components/consent-passkey.js.map +1 -1
- package/dist/components/consent-phone-handoff.js +3 -3
- package/dist/components/consent-request-expiry.js +1 -1
- package/dist/components/consent-revocation-notice.d.ts.map +1 -1
- package/dist/components/consent-revocation-notice.js +29 -18
- package/dist/components/consent-revocation-notice.js.map +1 -1
- package/dist/components/consent-revoke.d.ts +2 -0
- package/dist/components/consent-revoke.d.ts.map +1 -1
- package/dist/components/consent-revoke.js +9 -4
- package/dist/components/consent-revoke.js.map +1 -1
- package/dist/components/consent-secured-by.d.ts +25 -0
- package/dist/components/consent-secured-by.d.ts.map +1 -0
- package/dist/components/consent-secured-by.js +103 -0
- package/dist/components/consent-secured-by.js.map +1 -0
- package/dist/components/consent-shell.js +1 -1
- package/dist/components/consent-terms.d.ts +2 -0
- package/dist/components/consent-terms.d.ts.map +1 -1
- package/dist/components/consent-terms.js +7 -0
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.d.ts +8 -0
- package/dist/components/consent-wallet-check.d.ts.map +1 -1
- package/dist/components/consent-wallet-check.js +27 -3
- package/dist/components/consent-wallet-check.js.map +1 -1
- package/dist/components/consent-wallet-notice.js +1 -1
- package/dist/components/consent-wallet-orb.js +1 -1
- package/dist/components/consent-wallet-signature.js +1 -1
- package/dist/components/decision-icons.d.ts +26 -0
- package/dist/components/decision-icons.d.ts.map +1 -0
- package/dist/components/decision-icons.js +34 -0
- package/dist/components/decision-icons.js.map +1 -0
- package/dist/components/edit-region.d.ts +50 -0
- package/dist/components/edit-region.d.ts.map +1 -0
- package/dist/components/edit-region.js +305 -0
- package/dist/components/edit-region.js.map +1 -0
- package/dist/components/flow-blocks.d.ts +45 -0
- package/dist/components/flow-blocks.d.ts.map +1 -0
- package/dist/components/flow-blocks.js +755 -0
- package/dist/components/flow-blocks.js.map +1 -0
- package/dist/components/flow-motion.d.ts +41 -0
- package/dist/components/flow-motion.d.ts.map +1 -0
- package/dist/components/flow-motion.js +164 -0
- package/dist/components/flow-motion.js.map +1 -0
- package/dist/components/grant-details.d.ts +28 -0
- package/dist/components/grant-details.d.ts.map +1 -0
- package/dist/components/grant-details.js +138 -0
- package/dist/components/grant-details.js.map +1 -0
- package/dist/components/grant-field-styles.js +2 -2
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +19 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +93 -36
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/preview.d.ts +38 -0
- package/dist/components/preview.d.ts.map +1 -0
- package/dist/components/preview.js +61 -0
- package/dist/components/preview.js.map +1 -0
- package/dist/components/provider-icons.d.ts +16 -0
- package/dist/components/provider-icons.d.ts.map +1 -0
- package/dist/components/provider-icons.js +88 -0
- package/dist/components/provider-icons.js.map +1 -0
- package/dist/consent.js +4875 -1178
- package/dist/consent.min.js +2367 -814
- package/dist/constants/capabilities.d.ts +16 -3
- package/dist/constants/capabilities.d.ts.map +1 -1
- package/dist/constants/capabilities.js +17 -2
- package/dist/constants/capabilities.js.map +1 -1
- package/dist/copy/tokens.d.ts +67 -24
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +67 -24
- package/dist/copy/tokens.js.map +1 -1
- package/dist/flow/copy.d.ts +31 -0
- package/dist/flow/copy.d.ts.map +1 -0
- package/dist/flow/copy.js +137 -0
- package/dist/flow/copy.js.map +1 -0
- package/dist/flow/index.d.ts +15 -0
- package/dist/flow/index.d.ts.map +1 -0
- package/dist/flow/index.js +15 -0
- package/dist/flow/index.js.map +1 -0
- package/dist/flow/model.d.ts +209 -0
- package/dist/flow/model.d.ts.map +1 -0
- package/dist/flow/model.js +103 -0
- package/dist/flow/model.js.map +1 -0
- package/dist/flow/presets.d.ts +29 -0
- package/dist/flow/presets.d.ts.map +1 -0
- package/dist/flow/presets.js +153 -0
- package/dist/flow/presets.js.map +1 -0
- package/dist/flow/schema.d.ts +127 -0
- package/dist/flow/schema.d.ts.map +1 -0
- package/dist/flow/schema.js +72 -0
- package/dist/flow/schema.js.map +1 -0
- package/dist/identity/agent-identity.d.ts +3 -2
- package/dist/identity/agent-identity.d.ts.map +1 -1
- package/dist/identity/agent-identity.js +3 -2
- package/dist/identity/agent-identity.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 +27 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +39 -1
- package/dist/react/index.js.map +1 -1
- package/dist/styles/brand.d.ts +184 -0
- package/dist/styles/brand.d.ts.map +1 -0
- package/dist/styles/brand.js +372 -0
- package/dist/styles/brand.js.map +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +1 -0
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/theme.d.ts +76 -13
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +98 -29
- package/dist/styles/theme.js.map +1 -1
- package/dist/types/capabilities.types.d.ts +12 -14
- package/dist/types/capabilities.types.d.ts.map +1 -1
- package/dist/types/capabilities.types.js +1 -2
- package/dist/types/capabilities.types.js.map +1 -1
- package/dist/types/decision.types.d.ts +57 -0
- package/dist/types/decision.types.d.ts.map +1 -0
- package/dist/types/decision.types.js +12 -0
- package/dist/types/decision.types.js.map +1 -0
- package/dist/types/edit.types.d.ts +73 -0
- package/dist/types/edit.types.d.ts.map +1 -0
- package/dist/types/edit.types.js +76 -0
- package/dist/types/edit.types.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +10 -5
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/** Public feature contract for hosts that embed the standalone screen bundle. */
|
|
2
2
|
export declare const CONSENT_CAPABILITIES_FEATURES: Readonly<{
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* 2 adds the `headline` slot, a slot per row and the row parts.
|
|
5
|
+
* 3 lets the page theme the screen from any ancestor: a `--cs-*` property
|
|
6
|
+
* set above the screen wins over its theme, and adds the card, action and
|
|
7
|
+
* headline tokens and the tint, mark and action colors.
|
|
8
|
+
* 4 draws Checkpoint's page by default: the agent's name opens its
|
|
9
|
+
* details, an unverified agent is flagged, `approver` and `grantDetails`
|
|
10
|
+
* draw their boxes, rows have no icon unless `show-icons`, and the `footer`
|
|
11
|
+
* slot sits under the card beside the new `legal` slot.
|
|
12
|
+
* 5 adds the `connector-mark` slot, which takes the shield's place, and
|
|
13
|
+
* `hide-risk` and `hide-scopes`, which leave out the HIGHER RISK chips and
|
|
14
|
+
* the scope badges, and drops the host
|
|
15
|
+
* chip after a domain-bound agent's name.
|
|
16
|
+
*/
|
|
17
|
+
version: 5;
|
|
5
18
|
scopesOnly: true;
|
|
6
|
-
slots: readonly ["identity", "details", "notice", "footer", "headline"];
|
|
19
|
+
slots: readonly ["identity", "details", "notice", "footer", "legal", "headline", "connector-mark"];
|
|
7
20
|
/** A row's slot is this prefix and the capability's id. */
|
|
8
21
|
capabilitySlotPrefix: "capability-";
|
|
9
22
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/constants/capabilities.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,eAAO,MAAM,6BAA6B;IACxC
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/constants/capabilities.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,eAAO,MAAM,6BAA6B;IACxC;;;;;;;;;;;;;OAaG;;;;IAYH,2DAA2D;;EAE3D,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
/** Public feature contract for hosts that embed the standalone screen bundle. */
|
|
2
2
|
export const CONSENT_CAPABILITIES_FEATURES = Object.freeze({
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* 2 adds the `headline` slot, a slot per row and the row parts.
|
|
5
|
+
* 3 lets the page theme the screen from any ancestor: a `--cs-*` property
|
|
6
|
+
* set above the screen wins over its theme, and adds the card, action and
|
|
7
|
+
* headline tokens and the tint, mark and action colors.
|
|
8
|
+
* 4 draws Checkpoint's page by default: the agent's name opens its
|
|
9
|
+
* details, an unverified agent is flagged, `approver` and `grantDetails`
|
|
10
|
+
* draw their boxes, rows have no icon unless `show-icons`, and the `footer`
|
|
11
|
+
* slot sits under the card beside the new `legal` slot.
|
|
12
|
+
* 5 adds the `connector-mark` slot, which takes the shield's place, and
|
|
13
|
+
* `hide-risk` and `hide-scopes`, which leave out the HIGHER RISK chips and
|
|
14
|
+
* the scope badges, and drops the host
|
|
15
|
+
* chip after a domain-bound agent's name.
|
|
16
|
+
*/
|
|
17
|
+
version: 5,
|
|
5
18
|
scopesOnly: true,
|
|
6
19
|
slots: Object.freeze([
|
|
7
20
|
"identity",
|
|
8
21
|
"details",
|
|
9
22
|
"notice",
|
|
10
23
|
"footer",
|
|
24
|
+
"legal",
|
|
11
25
|
"headline",
|
|
26
|
+
"connector-mark",
|
|
12
27
|
]),
|
|
13
28
|
/** A row's slot is this prefix and the capability's id. */
|
|
14
29
|
capabilitySlotPrefix: "capability-",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/constants/capabilities.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC;IACzD
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/constants/capabilities.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC;IACzD;;;;;;;;;;;;;OAaG;IACH,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU;QACV,SAAS;QACT,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,UAAU;QACV,gBAAgB;KACR,CAAC;IACX,2DAA2D;IAC3D,oBAAoB,EAAE,aAAa;CACpC,CAAC,CAAC"}
|
package/dist/copy/tokens.d.ts
CHANGED
|
@@ -20,26 +20,51 @@ export declare const CONSENT_COPY_TOKENS: {
|
|
|
20
20
|
};
|
|
21
21
|
readonly headline: {
|
|
22
22
|
/**
|
|
23
|
-
* `{Agent}` → agent display name (
|
|
24
|
-
*
|
|
25
|
-
* `{
|
|
23
|
+
* `{Agent}` → agent display name (italic, a button that opens the
|
|
24
|
+
* agent's details when the agent is given).
|
|
25
|
+
* `{Verb}` → operator verb; empty or "use" takes `fallbackTemplate`.
|
|
26
26
|
*/
|
|
27
|
-
readonly template: "{Agent} would like to {Verb}
|
|
28
|
-
readonly fallbackTemplate: "{Agent} is requesting permission
|
|
27
|
+
readonly template: "{Agent} would like to {Verb} on your behalf";
|
|
28
|
+
readonly fallbackTemplate: "{Agent} is requesting permission on your behalf";
|
|
29
29
|
};
|
|
30
30
|
readonly subhead: {
|
|
31
31
|
/** `{Agent}` → agent display name. */
|
|
32
|
-
readonly template: "Pick what {Agent} is allowed to do on your behalf.
|
|
32
|
+
readonly template: "Pick what {Agent} is allowed to do on your behalf.";
|
|
33
|
+
};
|
|
34
|
+
/** What the agent's name opens in the headline. */
|
|
35
|
+
readonly agentDetails: {
|
|
36
|
+
/** The popover's accessible name. */
|
|
37
|
+
readonly about: "About {Agent}";
|
|
38
|
+
readonly kind: "AI agent";
|
|
39
|
+
readonly identity: "Identity";
|
|
40
|
+
readonly identifiedBy: "Identified by {Host}";
|
|
41
|
+
/** Read before the host in the headline's chip. */
|
|
42
|
+
readonly identifiedExplanation: "Its details are published at {Host}, and it can only send you back to an address listed there.";
|
|
43
|
+
readonly verified: "Verified";
|
|
44
|
+
readonly verifiedExplanation: "Its Entity Card was checked and verified.";
|
|
45
|
+
readonly unverified: "Unverified";
|
|
46
|
+
readonly unverifiedExplanation: "It registered itself, so the name it gives is not checked.";
|
|
47
|
+
readonly agentId: "Agent ID";
|
|
48
|
+
};
|
|
49
|
+
/** The warning under the headline for an agent that registered itself. */
|
|
50
|
+
readonly unverifiedAgent: {
|
|
51
|
+
readonly heading: "Unverified agent";
|
|
52
|
+
readonly advice: "Allow only if you asked it to.";
|
|
53
|
+
};
|
|
54
|
+
/** The box naming who is signing in. */
|
|
55
|
+
readonly approver: {
|
|
56
|
+
readonly signedIn: "Signed in as";
|
|
57
|
+
};
|
|
58
|
+
/** The box that says what the grant connects to and how it is bounded. */
|
|
59
|
+
readonly grantDetails: {
|
|
60
|
+
readonly heading: "Permission details";
|
|
61
|
+
readonly connectsTo: "Connects to";
|
|
62
|
+
readonly duration: "Duration";
|
|
63
|
+
readonly budget: "Budget";
|
|
64
|
+
readonly amountLimits: "Amount limits";
|
|
65
|
+
readonly alreadyGranted: "Already granted";
|
|
33
66
|
};
|
|
34
67
|
readonly agentTile: {
|
|
35
|
-
readonly verifiedPill: "Verified";
|
|
36
|
-
readonly unverifiedPill: "UNVERIFIED";
|
|
37
|
-
/**
|
|
38
|
-
* Read by screen readers before the domain in a domain-bound agent's
|
|
39
|
-
* pill, which shows only the domain. Never "Verified": a domain binding
|
|
40
|
-
* names the client, it does not verify it.
|
|
41
|
-
*/
|
|
42
|
-
readonly domainPillPrefix: "Identified by";
|
|
43
68
|
/**
|
|
44
69
|
* The meta line under the agent's name is built from the parts that are
|
|
45
70
|
* known, joined by `metaSeparator`: an unknown vendor or surface is left
|
|
@@ -50,20 +75,21 @@ export declare const CONSENT_COPY_TOKENS: {
|
|
|
50
75
|
readonly madeBy: "Made by {Vendor}";
|
|
51
76
|
/** `{Surface}` → surface label, e.g. "Mac". */
|
|
52
77
|
readonly askingFrom: "Asking from your {Surface}";
|
|
53
|
-
readonly metaSeparator: "
|
|
78
|
+
readonly metaSeparator: ". ";
|
|
54
79
|
/**
|
|
55
80
|
* @deprecated The header no longer uses this: it can't leave out an
|
|
56
81
|
* unknown vendor or surface. Use `madeBy`, `askingFrom` and
|
|
57
82
|
* `metaSeparator`.
|
|
58
83
|
*/
|
|
59
|
-
readonly metaTemplate: "Made by {Vendor}
|
|
84
|
+
readonly metaTemplate: "Made by {Vendor}. Asking from your {Surface}. {Connected}";
|
|
60
85
|
readonly connectedJustNow: "Connected just now";
|
|
61
86
|
/** `{Minutes}` → minutes since connection. */
|
|
62
87
|
readonly connectedMinutesAgo: "Connected {Minutes} min ago";
|
|
63
88
|
};
|
|
64
89
|
readonly section: {
|
|
65
|
-
/** `{Agent}` → agent
|
|
66
|
-
readonly capabilitiesHeader: "
|
|
90
|
+
/** Above the rows; `{Agent}` → the agent's name. Drawn uppercase by CSS. */
|
|
91
|
+
readonly capabilitiesHeader: "What {Agent} can do for you";
|
|
92
|
+
/** Beside it, while the rows can be ticked. */
|
|
67
93
|
readonly tapToToggle: "Tap to toggle";
|
|
68
94
|
/** Used in the dark gateway theme. */
|
|
69
95
|
readonly permissionsRequested: "PERMISSIONS REQUESTED";
|
|
@@ -111,8 +137,8 @@ export declare const CONSENT_COPY_TOKENS: {
|
|
|
111
137
|
readonly grant: {
|
|
112
138
|
/** The button that opens the terms. */
|
|
113
139
|
readonly customize: "Customize";
|
|
114
|
-
/** Between the parts of the closed summary: "8 hours
|
|
115
|
-
readonly summarySeparator: "
|
|
140
|
+
/** Between the parts of the closed summary: "8 hours, Every folder". */
|
|
141
|
+
readonly summarySeparator: ", ";
|
|
116
142
|
readonly durationLabel: "Valid for";
|
|
117
143
|
readonly durationHint: "The grant ends on its own after this. The agent has to ask again.";
|
|
118
144
|
readonly folderLabel: "Limit to a folder (optional)";
|
|
@@ -153,6 +179,7 @@ export declare const CONSENT_COPY_TOKENS: {
|
|
|
153
179
|
readonly wallet: {
|
|
154
180
|
/** The caption under the wallet check, one per status. */
|
|
155
181
|
readonly check: {
|
|
182
|
+
readonly idle: "Waiting for you";
|
|
156
183
|
readonly checking: "Checking wallet identity…";
|
|
157
184
|
readonly syncing: "Syncing this device's wallet to your account…";
|
|
158
185
|
readonly ready: "Wallet verified";
|
|
@@ -195,12 +222,28 @@ export declare const CONSENT_COPY_TOKENS: {
|
|
|
195
222
|
readonly expiresTemplate: "This request expires in {Time}. Approve before then, or the agent will need to ask again.";
|
|
196
223
|
readonly expired: "This request expired. Ask the agent to try again.";
|
|
197
224
|
};
|
|
225
|
+
/**
|
|
226
|
+
* What a screen reader calls each region a person can edit in edit mode
|
|
227
|
+
* (`preview` and `editable` together).
|
|
228
|
+
*/
|
|
229
|
+
readonly editRegions: {
|
|
230
|
+
readonly description: "Description";
|
|
231
|
+
readonly orgName: "Organization name";
|
|
232
|
+
readonly capabilityLabel: "Permission name";
|
|
233
|
+
readonly capabilityDescription: "Permission description";
|
|
234
|
+
readonly submitLabel: "Allow button label";
|
|
235
|
+
readonly cancelLabel: "Deny button label";
|
|
236
|
+
};
|
|
198
237
|
readonly attribution: {
|
|
199
|
-
/**
|
|
200
|
-
readonly
|
|
201
|
-
/** Dark theme. */
|
|
202
|
-
readonly securedBy: "Secured by Checkpoint";
|
|
238
|
+
/** consent-footer's line, in both themes. */
|
|
239
|
+
readonly byLine: "by Vouched KYA";
|
|
203
240
|
readonly howThisWorks: "How does this work?";
|
|
241
|
+
/** Before the Vouched lockup under the capabilities screen's card. */
|
|
242
|
+
readonly securedBy: "Secured by";
|
|
243
|
+
/** The lockup's accessible name. */
|
|
244
|
+
readonly lockup: "Vouched";
|
|
245
|
+
/** Under the lockup's letters. */
|
|
246
|
+
readonly tagline: "Know Your Agent";
|
|
204
247
|
};
|
|
205
248
|
/**
|
|
206
249
|
* `consent-passkey` defaults. `PasskeyConfig.instructions`, `buttonText`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/copy/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,mBAAmB;;QAE5B,oCAAoC;;QAEpC,iEAAiE;;;;QAIjE;;;;WAIG;;;;;QAKH,sCAAsC
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/copy/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,mBAAmB;;QAE5B,oCAAoC;;QAEpC,iEAAiE;;;;QAIjE;;;;WAIG;;;;;QAKH,sCAAsC;;;IAGxC,mDAAmD;;QAEjD,qCAAqC;;;;;QAKrC,mDAAmD;;;;;;;;IAUrD,0EAA0E;;;;;IAK1E,wCAAwC;;;;IAIxC,0EAA0E;;;;;;;;;;QAUxE;;;;;;WAMG;;QAEH,+CAA+C;;;QAG/C;;;;WAIG;;;QAGH,8CAA8C;;;;QAI9C,4EAA4E;;QAE5E,+CAA+C;;QAE/C,sCAAsC;;;;;;QAMtC,4CAA4C;;QAE5C,uDAAuD;;QAEvD,yDAAyD;;;;QAIzD;;;WAGG;;QAGH,8CAA8C;;QAG9C,sEAAsE;;QAGtE;;;WAGG;;;;QAKH,2DAA2D;;QAE3D,0BAA0B;;QAE1B,6BAA6B;;QAE7B,4BAA4B;;;IAG9B;;;OAGG;;QAED,uCAAuC;;QAEvC,wEAAwE;;;;;;;QASxE,yCAAyC;;QAEzC,8CAA8C;;QAE9C,uEAAuE;;QAEvE,kDAAkD;;QAElD,2EAA2E;;;IAG7E,iEAAiE;;;;QAK/D,8BAA8B;;QAE9B,mEAAmE;;;;;;QAMnE,wEAAwE;;;IAG1E;;;;;OAKG;;QAED,0DAA0D;;;;;;;;;;YAUxD,kDAAkD;;;YAGlD,0EAA0E;;;;;;;;;;;YAiB1E,4EAA4E;;;;;;;;;;;;;;;;IAgBhF,uEAAuE;;;;;IAMvE;;;OAGG;;;;;;;;;;QAUD,6CAA6C;;;QAG7C,sEAAsE;;QAEtE,oCAAoC;;QAEpC,kCAAkC;;;IAGpC;;;OAGG;;;;;;;;;;;;;;;;;;;QAuBD,6EAA6E;;;;;;;;;;CAavE,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,mBAAmB,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,GAClD,MAAM,CAKR"}
|
package/dist/copy/tokens.js
CHANGED
|
@@ -20,26 +20,51 @@ export const CONSENT_COPY_TOKENS = {
|
|
|
20
20
|
},
|
|
21
21
|
headline: {
|
|
22
22
|
/**
|
|
23
|
-
* `{Agent}` → agent display name (
|
|
24
|
-
*
|
|
25
|
-
* `{
|
|
23
|
+
* `{Agent}` → agent display name (italic, a button that opens the
|
|
24
|
+
* agent's details when the agent is given).
|
|
25
|
+
* `{Verb}` → operator verb; empty or "use" takes `fallbackTemplate`.
|
|
26
26
|
*/
|
|
27
|
-
template: "{Agent} would like to {Verb}
|
|
28
|
-
fallbackTemplate: "{Agent} is requesting permission
|
|
27
|
+
template: "{Agent} would like to {Verb} on your behalf",
|
|
28
|
+
fallbackTemplate: "{Agent} is requesting permission on your behalf",
|
|
29
29
|
},
|
|
30
30
|
subhead: {
|
|
31
31
|
/** `{Agent}` → agent display name. */
|
|
32
|
-
template: "Pick what {Agent} is allowed to do on your behalf.
|
|
32
|
+
template: "Pick what {Agent} is allowed to do on your behalf.",
|
|
33
|
+
},
|
|
34
|
+
/** What the agent's name opens in the headline. */
|
|
35
|
+
agentDetails: {
|
|
36
|
+
/** The popover's accessible name. */
|
|
37
|
+
about: "About {Agent}",
|
|
38
|
+
kind: "AI agent",
|
|
39
|
+
identity: "Identity",
|
|
40
|
+
identifiedBy: "Identified by {Host}",
|
|
41
|
+
/** Read before the host in the headline's chip. */
|
|
42
|
+
identifiedExplanation: "Its details are published at {Host}, and it can only send you back to an address listed there.",
|
|
43
|
+
verified: "Verified",
|
|
44
|
+
verifiedExplanation: "Its Entity Card was checked and verified.",
|
|
45
|
+
unverified: "Unverified",
|
|
46
|
+
unverifiedExplanation: "It registered itself, so the name it gives is not checked.",
|
|
47
|
+
agentId: "Agent ID",
|
|
48
|
+
},
|
|
49
|
+
/** The warning under the headline for an agent that registered itself. */
|
|
50
|
+
unverifiedAgent: {
|
|
51
|
+
heading: "Unverified agent",
|
|
52
|
+
advice: "Allow only if you asked it to.",
|
|
53
|
+
},
|
|
54
|
+
/** The box naming who is signing in. */
|
|
55
|
+
approver: {
|
|
56
|
+
signedIn: "Signed in as",
|
|
57
|
+
},
|
|
58
|
+
/** The box that says what the grant connects to and how it is bounded. */
|
|
59
|
+
grantDetails: {
|
|
60
|
+
heading: "Permission details",
|
|
61
|
+
connectsTo: "Connects to",
|
|
62
|
+
duration: "Duration",
|
|
63
|
+
budget: "Budget",
|
|
64
|
+
amountLimits: "Amount limits",
|
|
65
|
+
alreadyGranted: "Already granted",
|
|
33
66
|
},
|
|
34
67
|
agentTile: {
|
|
35
|
-
verifiedPill: "Verified",
|
|
36
|
-
unverifiedPill: "UNVERIFIED",
|
|
37
|
-
/**
|
|
38
|
-
* Read by screen readers before the domain in a domain-bound agent's
|
|
39
|
-
* pill, which shows only the domain. Never "Verified": a domain binding
|
|
40
|
-
* names the client, it does not verify it.
|
|
41
|
-
*/
|
|
42
|
-
domainPillPrefix: "Identified by",
|
|
43
68
|
/**
|
|
44
69
|
* The meta line under the agent's name is built from the parts that are
|
|
45
70
|
* known, joined by `metaSeparator`: an unknown vendor or surface is left
|
|
@@ -50,20 +75,21 @@ export const CONSENT_COPY_TOKENS = {
|
|
|
50
75
|
madeBy: "Made by {Vendor}",
|
|
51
76
|
/** `{Surface}` → surface label, e.g. "Mac". */
|
|
52
77
|
askingFrom: "Asking from your {Surface}",
|
|
53
|
-
metaSeparator: "
|
|
78
|
+
metaSeparator: ". ",
|
|
54
79
|
/**
|
|
55
80
|
* @deprecated The header no longer uses this: it can't leave out an
|
|
56
81
|
* unknown vendor or surface. Use `madeBy`, `askingFrom` and
|
|
57
82
|
* `metaSeparator`.
|
|
58
83
|
*/
|
|
59
|
-
metaTemplate: "Made by {Vendor}
|
|
84
|
+
metaTemplate: "Made by {Vendor}. Asking from your {Surface}. {Connected}",
|
|
60
85
|
connectedJustNow: "Connected just now",
|
|
61
86
|
/** `{Minutes}` → minutes since connection. */
|
|
62
87
|
connectedMinutesAgo: "Connected {Minutes} min ago",
|
|
63
88
|
},
|
|
64
89
|
section: {
|
|
65
|
-
/** `{Agent}` → agent
|
|
66
|
-
capabilitiesHeader: "
|
|
90
|
+
/** Above the rows; `{Agent}` → the agent's name. Drawn uppercase by CSS. */
|
|
91
|
+
capabilitiesHeader: "What {Agent} can do for you",
|
|
92
|
+
/** Beside it, while the rows can be ticked. */
|
|
67
93
|
tapToToggle: "Tap to toggle",
|
|
68
94
|
/** Used in the dark gateway theme. */
|
|
69
95
|
permissionsRequested: "PERMISSIONS REQUESTED",
|
|
@@ -111,8 +137,8 @@ export const CONSENT_COPY_TOKENS = {
|
|
|
111
137
|
grant: {
|
|
112
138
|
/** The button that opens the terms. */
|
|
113
139
|
customize: "Customize",
|
|
114
|
-
/** Between the parts of the closed summary: "8 hours
|
|
115
|
-
summarySeparator: "
|
|
140
|
+
/** Between the parts of the closed summary: "8 hours, Every folder". */
|
|
141
|
+
summarySeparator: ", ",
|
|
116
142
|
durationLabel: "Valid for",
|
|
117
143
|
durationHint: "The grant ends on its own after this. The agent has to ask again.",
|
|
118
144
|
folderLabel: "Limit to a folder (optional)",
|
|
@@ -153,6 +179,7 @@ export const CONSENT_COPY_TOKENS = {
|
|
|
153
179
|
wallet: {
|
|
154
180
|
/** The caption under the wallet check, one per status. */
|
|
155
181
|
check: {
|
|
182
|
+
idle: "Waiting for you",
|
|
156
183
|
checking: "Checking wallet identity…",
|
|
157
184
|
syncing: "Syncing this device's wallet to your account…",
|
|
158
185
|
ready: "Wallet verified",
|
|
@@ -195,12 +222,28 @@ export const CONSENT_COPY_TOKENS = {
|
|
|
195
222
|
expiresTemplate: "This request expires in {Time}. Approve before then, or the agent will need to ask again.",
|
|
196
223
|
expired: "This request expired. Ask the agent to try again.",
|
|
197
224
|
},
|
|
225
|
+
/**
|
|
226
|
+
* What a screen reader calls each region a person can edit in edit mode
|
|
227
|
+
* (`preview` and `editable` together).
|
|
228
|
+
*/
|
|
229
|
+
editRegions: {
|
|
230
|
+
description: "Description",
|
|
231
|
+
orgName: "Organization name",
|
|
232
|
+
capabilityLabel: "Permission name",
|
|
233
|
+
capabilityDescription: "Permission description",
|
|
234
|
+
submitLabel: "Allow button label",
|
|
235
|
+
cancelLabel: "Deny button label",
|
|
236
|
+
},
|
|
198
237
|
attribution: {
|
|
199
|
-
/**
|
|
200
|
-
|
|
201
|
-
/** Dark theme. */
|
|
202
|
-
securedBy: "Secured by Checkpoint",
|
|
238
|
+
/** consent-footer's line, in both themes. */
|
|
239
|
+
byLine: "by Vouched KYA",
|
|
203
240
|
howThisWorks: "How does this work?",
|
|
241
|
+
/** Before the Vouched lockup under the capabilities screen's card. */
|
|
242
|
+
securedBy: "Secured by",
|
|
243
|
+
/** The lockup's accessible name. */
|
|
244
|
+
lockup: "Vouched",
|
|
245
|
+
/** Under the lockup's letters. */
|
|
246
|
+
tagline: "Know Your Agent",
|
|
204
247
|
},
|
|
205
248
|
/**
|
|
206
249
|
* `consent-passkey` defaults. `PasskeyConfig.instructions`, `buttonText`
|
package/dist/copy/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/copy/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE;QACP,oCAAoC;QACpC,iBAAiB,EAAE,oBAAoB;QACvC,iEAAiE;QACjE,YAAY,EAAE,iBAAiB;KAChC;IACD,QAAQ,EAAE;QACR;;;;WAIG;QACH,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/copy/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE;QACP,oCAAoC;QACpC,iBAAiB,EAAE,oBAAoB;QACvC,iEAAiE;QACjE,YAAY,EAAE,iBAAiB;KAChC;IACD,QAAQ,EAAE;QACR;;;;WAIG;QACH,QAAQ,EAAE,6CAA6C;QACvD,gBAAgB,EAAE,iDAAiD;KACpE;IACD,OAAO,EAAE;QACP,sCAAsC;QACtC,QAAQ,EAAE,oDAAoD;KAC/D;IACD,mDAAmD;IACnD,YAAY,EAAE;QACZ,qCAAqC;QACrC,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,sBAAsB;QACpC,mDAAmD;QACnD,qBAAqB,EACnB,gGAAgG;QAClG,QAAQ,EAAE,UAAU;QACpB,mBAAmB,EAAE,2CAA2C;QAChE,UAAU,EAAE,YAAY;QACxB,qBAAqB,EACnB,4DAA4D;QAC9D,OAAO,EAAE,UAAU;KACpB;IACD,0EAA0E;IAC1E,eAAe,EAAE;QACf,OAAO,EAAE,kBAAkB;QAC3B,MAAM,EAAE,gCAAgC;KACzC;IACD,wCAAwC;IACxC,QAAQ,EAAE;QACR,QAAQ,EAAE,cAAc;KACzB;IACD,0EAA0E;IAC1E,YAAY,EAAE;QACZ,OAAO,EAAE,oBAAoB;QAC7B,UAAU,EAAE,aAAa;QACzB,QA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EAA6E;QAC7E,MAAM,EAAE;YACN,WAAW,EACT,mFAAmF;YACrF,aAAa,EACX,iFAAiF;YACnF,aAAa,EACX,sEAAsE;YACxE,QAAQ,EAAE,sCAAsC;YAChD,OAAO,EAAE,iDAAiD;YAC1D,OAAO,EAAE,sCAAsC;SAChD;KACF;CACO,CAAC;AAIX;;;;GAIG;AACH,MAAM,UAAU,WAAW,CACzB,QAAgB,EAChB,MAAmD;IAEnD,OAAO,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent flow copy
|
|
3
|
+
*
|
|
4
|
+
* Every word a consent flow says, as tokens. A token is a string, or one
|
|
5
|
+
* string per step (or variant) with a `default`. The flow's own copy, a
|
|
6
|
+
* first-time shopper's, and a project's overrides layer over these
|
|
7
|
+
* (`flowCopy`). Placeholders: {Agent}, {Merchant}, {Verb}, {Provider},
|
|
8
|
+
* {First}, {When}.
|
|
9
|
+
*
|
|
10
|
+
* Pure data and string helpers: no DOM, no validator.
|
|
11
|
+
*
|
|
12
|
+
* @module flow/copy
|
|
13
|
+
*/
|
|
14
|
+
import type { FlowCopy } from "./model.js";
|
|
15
|
+
export declare const FLOW_COPY: FlowCopy;
|
|
16
|
+
/** The defaults with each layer of overrides over them, merged a level deep. */
|
|
17
|
+
export declare function flowCopy(...layers: (FlowCopy | undefined)[]): FlowCopy;
|
|
18
|
+
/** A token's words: the token itself, or its entry for `step`, or its `default`. */
|
|
19
|
+
export declare function token(copy: FlowCopy, key: string, step?: string): string;
|
|
20
|
+
/** A token in a group: `group(copy, "actions").approve`, as strings. */
|
|
21
|
+
export declare function group(copy: FlowCopy, key: string): Record<string, string>;
|
|
22
|
+
/** A template split into its words and its placeholders, for a renderer to fill. */
|
|
23
|
+
export declare function splitTemplate(template: string): {
|
|
24
|
+
text?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
}[];
|
|
27
|
+
/** A template with its placeholders filled, as plain text. */
|
|
28
|
+
export declare function fillTemplate(template: string, values: Record<string, string | undefined>): string;
|
|
29
|
+
/** "Dylan Hobbs" is DH, "Alice" is A; with no name, the identifier's first letter; else "?". */
|
|
30
|
+
export declare function initialsOf(name?: string, identifier?: string): string;
|
|
31
|
+
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../src/flow/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,SAAS,EAAE,QAkFvB,CAAC;AAKF,gFAAgF;AAChF,wBAAgB,QAAQ,CAAC,GAAG,MAAM,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,EAAE,GAAG,QAAQ,CAUtE;AAED,oFAAoF;AACpF,wBAAgB,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAMxE;AAED,wEAAwE;AACxE,wBAAgB,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQzE;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,CAKpC;AAED,8DAA8D;AAC9D,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GACzC,MAAM,CAIR;AAED,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,IAAI,SAAK,EAAE,UAAU,SAAK,GAAG,MAAM,CAW7D"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export const FLOW_COPY = {
|
|
2
|
+
eyebrow: {
|
|
3
|
+
default: "Permission request",
|
|
4
|
+
granted: "Permission granted",
|
|
5
|
+
denied: "Permission declined",
|
|
6
|
+
},
|
|
7
|
+
headline: {
|
|
8
|
+
"sign-in": "Sign in to let {Agent} {Verb} at {Merchant}.",
|
|
9
|
+
default: "{Agent} would like to {Verb} at {Merchant} on your behalf",
|
|
10
|
+
granted: "Access granted",
|
|
11
|
+
denied: "No access given",
|
|
12
|
+
error: "Something went wrong",
|
|
13
|
+
},
|
|
14
|
+
sub: {
|
|
15
|
+
granted: "{Agent} can now {Verb} at {Merchant} for you.",
|
|
16
|
+
denied: "{Agent} can't {Verb} for you. Nothing was approved.",
|
|
17
|
+
error: "Nothing was approved. Try again, or ask {Agent} to start over.",
|
|
18
|
+
},
|
|
19
|
+
signIn: {
|
|
20
|
+
continueAs: "Continue as {First}",
|
|
21
|
+
other: "Not you? Use another {Provider} account.",
|
|
22
|
+
finePrint: "{Provider} confirms you control this account. {Merchant} does not get your mail, contacts or files.",
|
|
23
|
+
},
|
|
24
|
+
approver: {
|
|
25
|
+
label: "You are authorizing",
|
|
26
|
+
labelGranted: "You authorized",
|
|
27
|
+
labelDenied: "You declined",
|
|
28
|
+
party: "To act for you",
|
|
29
|
+
partyGranted: "Can now act for you",
|
|
30
|
+
partyDenied: "Asked to act for you",
|
|
31
|
+
confirmed: "Confirmed with passkey",
|
|
32
|
+
signedInWith: "Signed in with {Provider}",
|
|
33
|
+
declined: "Declined",
|
|
34
|
+
unverified: "Unverified",
|
|
35
|
+
unverifiedInfo: "It registered itself, so the name it gives is not checked. Allow only if you asked it to.",
|
|
36
|
+
identifiedBy: "Identified by {Domain}",
|
|
37
|
+
},
|
|
38
|
+
capabilitiesHeader: "What {Agent} can do for you",
|
|
39
|
+
tapToToggle: "Tap to toggle",
|
|
40
|
+
seal: {
|
|
41
|
+
"sign-in": "Sign in to continue",
|
|
42
|
+
consent: "Waiting for your passkey",
|
|
43
|
+
passkey: "Confirming with your passkey",
|
|
44
|
+
cancelled: "Passkey not confirmed",
|
|
45
|
+
granted: "Signed with your passkey",
|
|
46
|
+
denied: "Nothing was signed",
|
|
47
|
+
expired: "Request expired",
|
|
48
|
+
error: "Something went wrong",
|
|
49
|
+
},
|
|
50
|
+
details: {
|
|
51
|
+
title: "Permission details",
|
|
52
|
+
connectsTo: "Connects to",
|
|
53
|
+
duration: "Duration",
|
|
54
|
+
budget: "Budget",
|
|
55
|
+
amountLimits: "Amount limits",
|
|
56
|
+
folders: "Folders",
|
|
57
|
+
alreadyGranted: "Already granted",
|
|
58
|
+
},
|
|
59
|
+
actions: {
|
|
60
|
+
approve: "Approve with passkey",
|
|
61
|
+
deny: "Deny",
|
|
62
|
+
confirming: "Confirming…",
|
|
63
|
+
},
|
|
64
|
+
status: "Waiting for your passkey…",
|
|
65
|
+
notice: "Passkey not confirmed. Nothing was approved.",
|
|
66
|
+
expired: "This request expired. Ask {Agent} to try again.",
|
|
67
|
+
receipt: { until: "Until {When}" },
|
|
68
|
+
goBack: "Go back to {Agent} and tell it to continue. Revoke anytime under Connected agents at {Merchant}.",
|
|
69
|
+
retry: "Try again",
|
|
70
|
+
announce: {
|
|
71
|
+
"sign-in": "Sign in to continue.",
|
|
72
|
+
consent: "Review what {Agent} is asking for.",
|
|
73
|
+
passkey: "Waiting for your passkey.",
|
|
74
|
+
granted: "Access granted.",
|
|
75
|
+
denied: "No access given.",
|
|
76
|
+
cancelled: "Passkey not confirmed. Nothing was approved.",
|
|
77
|
+
expired: "This request expired.",
|
|
78
|
+
error: "Something went wrong. Nothing was approved.",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
const isGroup = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
82
|
+
/** The defaults with each layer of overrides over them, merged a level deep. */
|
|
83
|
+
export function flowCopy(...layers) {
|
|
84
|
+
const out = { ...FLOW_COPY };
|
|
85
|
+
for (const layer of layers) {
|
|
86
|
+
for (const [key, value] of Object.entries(layer ?? {})) {
|
|
87
|
+
const base = out[key];
|
|
88
|
+
out[key] =
|
|
89
|
+
isGroup(value) && isGroup(base) ? { ...base, ...value } : value;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return out;
|
|
93
|
+
}
|
|
94
|
+
/** A token's words: the token itself, or its entry for `step`, or its `default`. */
|
|
95
|
+
export function token(copy, key, step) {
|
|
96
|
+
const value = copy[key];
|
|
97
|
+
if (typeof value === "string")
|
|
98
|
+
return value;
|
|
99
|
+
if (!isGroup(value))
|
|
100
|
+
return "";
|
|
101
|
+
const entry = (step && value[step]) ?? value.default;
|
|
102
|
+
return typeof entry === "string" ? entry : "";
|
|
103
|
+
}
|
|
104
|
+
/** A token in a group: `group(copy, "actions").approve`, as strings. */
|
|
105
|
+
export function group(copy, key) {
|
|
106
|
+
const value = copy[key];
|
|
107
|
+
if (!isGroup(value))
|
|
108
|
+
return {};
|
|
109
|
+
return Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string"));
|
|
110
|
+
}
|
|
111
|
+
/** A template split into its words and its placeholders, for a renderer to fill. */
|
|
112
|
+
export function splitTemplate(template) {
|
|
113
|
+
return template
|
|
114
|
+
.split(/\{(\w+)\}/)
|
|
115
|
+
.map((part, i) => (i % 2 ? { name: part } : { text: part }))
|
|
116
|
+
.filter((part) => part.name || part.text);
|
|
117
|
+
}
|
|
118
|
+
/** A template with its placeholders filled, as plain text. */
|
|
119
|
+
export function fillTemplate(template, values) {
|
|
120
|
+
return splitTemplate(template)
|
|
121
|
+
.map((part) => (part.name ? (values[part.name] ?? "") : part.text))
|
|
122
|
+
.join("");
|
|
123
|
+
}
|
|
124
|
+
/** "Dylan Hobbs" is DH, "Alice" is A; with no name, the identifier's first letter; else "?". */
|
|
125
|
+
export function initialsOf(name = "", identifier = "") {
|
|
126
|
+
const first = (word) => Array.from(word.replace(/^[^\p{L}\p{N}]+/u, ""))[0] ?? "";
|
|
127
|
+
const words = name
|
|
128
|
+
.trim()
|
|
129
|
+
.split(/\s+/)
|
|
130
|
+
.filter((word) => /[\p{L}\p{N}]/u.test(word));
|
|
131
|
+
if (words.length >= 2)
|
|
132
|
+
return (first(words[0]) + first(words[words.length - 1])).toUpperCase();
|
|
133
|
+
if (words.length === 1)
|
|
134
|
+
return first(words[0]).toUpperCase();
|
|
135
|
+
return (first(identifier) || "?").toUpperCase();
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../src/flow/copy.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,SAAS,GAAa;IACjC,OAAO,EAAE;QACP,OAAO,EAAE,oBAAoB;QAC7B,OAAO,EAAE,oBAAoB;QAC7B,MAAM,EAAE,qBAAqB;KAC9B;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,8CAA8C;QACzD,OAAO,EAAE,2DAA2D;QACpE,OAAO,EAAE,gBAAgB;QACzB,MAAM,EAAE,iBAAiB;QACzB,KAAK,EAAE,sBAAsB;KAC9B;IACD,GAAG,EAAE;QACH,OAAO,EAAE,+CAA+C;QACxD,MAAM,EAAE,qDAAqD;QAC7D,KAAK,EAAE,gEAAgE;KACxE;IACD,MAAM,EAAE;QACN,UAAU,EAAE,qBAAqB;QACjC,KAAK,EAAE,0CAA0C;QACjD,SAAS,EACP,qGAAqG;KACxG;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,qBAAqB;QAC5B,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,cAAc;QAC3B,KAAK,EAA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IAAY,EAAE,EAAE,CAC7B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5D,MAAM,KAAK,GAAG,IAAI;SACf,IAAI,EAAE;SACN,KAAK,CAAC,KAAK,CAAC;SACZ,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAChD,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC;QACnB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5E,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9D,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent flows
|
|
3
|
+
*
|
|
4
|
+
* A consent flow as data: the model (names, types, the schema version), the
|
|
5
|
+
* schema Checkpoint validates a saved flow with, the presets it offers as
|
|
6
|
+
* templates, and the default copy with its helpers. The browser bundle carries the model and the presets, not the
|
|
7
|
+
* schema.
|
|
8
|
+
*
|
|
9
|
+
* @module @kya-os/consent/flow
|
|
10
|
+
*/
|
|
11
|
+
export * from "./model.js";
|
|
12
|
+
export * from "./presets.js";
|
|
13
|
+
export * from "./copy.js";
|
|
14
|
+
export * from "./schema.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/flow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent flows
|
|
3
|
+
*
|
|
4
|
+
* A consent flow as data: the model (names, types, the schema version), the
|
|
5
|
+
* schema Checkpoint validates a saved flow with, the presets it offers as
|
|
6
|
+
* templates, and the default copy with its helpers. The browser bundle carries the model and the presets, not the
|
|
7
|
+
* schema.
|
|
8
|
+
*
|
|
9
|
+
* @module @kya-os/consent/flow
|
|
10
|
+
*/
|
|
11
|
+
export * from "./model.js";
|
|
12
|
+
export * from "./presets.js";
|
|
13
|
+
export * from "./copy.js";
|
|
14
|
+
export * from "./schema.js";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/flow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|