diff --git a/README.md b/README.md index 5b9165f..16c7ac3 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ For example, `npx giget@latest gh:hookdeck/hookdeck-demos/deepgram/stt-tts my-de |---------|-------------| | [ds](_shared/ds/) | Hookdeck design system: tokens, styles and brand assets (copied into demos, see Shared code) | | [flow-drawer](_shared/flow-drawer/) | Bottom drawer that shows each message moving through Event Gateway to the app, live (client JS and CSS, plus a server module that reads the Hookdeck API) | -| [hookdeck](_shared/hookdeck/) | Hookdeck CLI helper and `hookdeck listen` wrapper (TypeScript) | +| [hookdeck](_shared/hookdeck/) | Hookdeck API helper for setup, and the Hookdeck CLI helper and `hookdeck listen` wrapper (TypeScript) | | [scenes](_shared/scenes/) | Scene kit: animated topology diagrams for a demo's live view, hookdeck.com guides and MP4 captures (TypeScript, SVG, GSAP) | | [theme](_shared/theme/) | Light/dark/system theme switch for the design system, with an optional demo theme and wording (`theme.js`) | | [tmux-presenter](_shared/tmux-presenter/) | Tmux-based live demo presenter for running scripted terminal demos | @@ -110,7 +110,7 @@ For example, `npx giget@latest gh:hookdeck/hookdeck-demos/deepgram/stt-tts my-de ## Shared code -Some code is the same in several demos: the Hookdeck design system (`ds/`), the Hookdeck CLI helpers (`scripts/hookdeck-cli.ts`, `scripts/hookdeck-listen.ts`), the data-flow drawer (`flow-drawer/`), the scene kit (`scenes/`), the topology pane (`topology-pane/`) and the theme switch (`theme.js`). So a demo still works when downloaded alone, each demo holds a real copy of what it uses. The source of truth is `_shared/`. +Some code is the same in several demos: the Hookdeck design system (`ds/`), the Hookdeck API and CLI helpers (`scripts/hookdeck-api.ts`, `scripts/hookdeck-cli.ts`, `scripts/hookdeck-listen.ts`), the data-flow drawer (`flow-drawer/`), the scene kit (`scenes/`), the topology pane (`topology-pane/`) and the theme switch (`theme.js`). So a demo still works when downloaded alone, each demo holds a real copy of what it uses. The source of truth is `_shared/`. - **Edit in `_shared/` only.** Copies carry a "Generated from" header (directories also have a `GENERATED.md`), so an edit in the wrong place is easy to spot in review. - **`_shared/manifest.json`** lists which demo takes which piece and where it goes inside the demo. A demo not listed for a piece may own its own copy. diff --git a/_shared/hookdeck/hookdeck-api.ts b/_shared/hookdeck/hookdeck-api.ts new file mode 100644 index 0000000..77a3154 --- /dev/null +++ b/_shared/hookdeck/hookdeck-api.ts @@ -0,0 +1,44 @@ +/** + * Hookdeck REST API helper for demo setup and probe scripts. + * + * Calls the API with the project API key in HOOKDECK_API_KEY (loaded from .env), so it + * works on the project that key belongs to. Setup creates the Event Gateway source, + * destination and connection with it; the Hookdeck CLI is only used by `npm run listen`. + * + * Needs Node 22+ (global fetch) and `dotenv` in the demo. + * + * const connection = await hookdeck('PUT', '/connections', { + * name: 'my-connection', + * source: { name: 'my-source', type: 'WEBHOOK' }, + * destination: { name: 'local-my-app', type: 'CLI', config: { path: '/webhooks' } }, + * }); + * console.log(connection.source.url); + * + * API reference: https://hookdeck.com/docs/api + */ +import 'dotenv/config'; + +export const HOOKDECK_API_BASE = 'https://api.hookdeck.com/2026-09-01'; + +/** The project API key from HOOKDECK_API_KEY. Exits with a hint when it isn't set. */ +export function requireHookdeckApiKey(): string { + const key = process.env.HOOKDECK_API_KEY; + if (!key || key.startsWith('your_')) { + console.error('❌ HOOKDECK_API_KEY is not set. Add a project API key to .env'); + console.error(' (Hookdeck dashboard: Project settings -> Secrets, https://dashboard.hookdeck.com/settings/project/secrets).'); + process.exit(1); + } + return key; +} + +/** Calls the Hookdeck API and returns the parsed JSON response. Throws on a non-2xx status. */ +export async function hookdeck(method: string, route: string, body?: unknown): Promise { + const response = await fetch(`${HOOKDECK_API_BASE}${route}`, { + method, + headers: { authorization: `Bearer ${requireHookdeckApiKey()}`, 'content-type': 'application/json' }, + body: body === undefined ? undefined : JSON.stringify(body), + }); + const text = await response.text(); + if (!response.ok) throw new Error(`Hookdeck API ${method} ${route} -> ${response.status}: ${text.slice(0, 300)}`); + return text ? JSON.parse(text) : (undefined as T); +} diff --git a/_shared/hookdeck/hookdeck-cli.ts b/_shared/hookdeck/hookdeck-cli.ts index 888b209..1d19171 100644 --- a/_shared/hookdeck/hookdeck-cli.ts +++ b/_shared/hookdeck/hookdeck-cli.ts @@ -83,7 +83,7 @@ export function createHookdeckCli(options: HookdeckCliOptions = {}) { const key = process.env.HOOKDECK_API_KEY; if (!key || key.startsWith('your_')) { console.error('❌ HOOKDECK_API_KEY is not set. Add a project API key to .env'); - console.error(' (Hookdeck dashboard: Project settings -> API keys).'); + console.error(' (Hookdeck dashboard: Project settings -> Secrets, https://dashboard.hookdeck.com/settings/project/secrets).'); process.exit(1); } return key; @@ -200,7 +200,7 @@ export function createHookdeckCli(options: HookdeckCliOptions = {}) { return withPrivateJson(`rules-${spec.name}.json`, spec.rules, (file) => json([...args, '--rules-file', file])); } - /** Reads from the Hookdeck API with the project API key. The demos' probe scripts use it to find a source and list its requests; setup goes through the CLI only. */ + /** Calls the Hookdeck API with the project API key. Demos that set up through the API use hookdeck-api.ts instead. */ async function api(method: string, route: string, body?: unknown): Promise { const response = await fetch(`${api_base}${route}`, { method, diff --git a/_shared/hookdeck/hookdeck-signature.ts b/_shared/hookdeck/hookdeck-signature.ts new file mode 100644 index 0000000..c87331d --- /dev/null +++ b/_shared/hookdeck/hookdeck-signature.ts @@ -0,0 +1,54 @@ +/** + * Verifies the `x-hookdeck-signature` header Event Gateway adds to every delivery. + * + * The signature is the base64 HMAC-SHA256 of the raw request body, keyed with the project + * signing secret (HOOKDECK_SIGNING_SECRET, copied from the dashboard into .env). It has no + * timestamp on purpose: Event Gateway verified the sender's own signature when it accepted + * the request, so a retry or replay hours later is legitimate and must still pass. + * + * While a rolled secret is still active, Hookdeck also sends `x-hookdeck-signature-2`. + * + * Reference: https://hookdeck.com/docs/authentication#hookdeck-webhook-signature-verification + */ +import 'dotenv/config'; +import { createHmac, timingSafeEqual } from 'crypto'; + +export const HOOKDECK_SECRETS_URL = 'https://dashboard.hookdeck.com/settings/project/secrets'; + +/** The project signing secret from HOOKDECK_SIGNING_SECRET. Exits with a hint when it isn't set. */ +export function requireHookdeckSigningSecret(): string { + const secret = process.env.HOOKDECK_SIGNING_SECRET; + if (!secret || secret.startsWith('your_')) { + console.error('❌ HOOKDECK_SIGNING_SECRET is not set. Add the project signing secret to .env'); + console.error(` (Hookdeck dashboard: Project settings -> Secrets, ${HOOKDECK_SECRETS_URL}).`); + process.exit(1); + } + return secret; +} + +/** The signature Hookdeck sends for a body: base64 HMAC-SHA256 of the raw bytes. */ +export function signHookdeckBody(raw_body: Buffer | string, secret: string): string { + return createHmac('sha256', secret).update(raw_body).digest('base64'); +} + +function sameSignature(expected: string, received: string): boolean { + const expected_bytes = Buffer.from(expected, 'utf8'); + const received_bytes = Buffer.from(received, 'utf8'); + // timingSafeEqual throws on different lengths, so check the length first + return expected_bytes.length === received_bytes.length && timingSafeEqual(expected_bytes, received_bytes); +} + +/** + * True when `signature_header` (x-hookdeck-signature) matches the raw body signed with `secret`. + * Pass `signature_header_2` (x-hookdeck-signature-2) to also accept the previous secret's signature. + */ +export function verifyHookdeckSignature( + raw_body: Buffer | string, + signature_header: string | undefined, + secret: string | undefined, + signature_header_2?: string, +): boolean { + if (!secret) return false; + const expected = signHookdeckBody(raw_body, secret); + return [signature_header, signature_header_2].some((header) => Boolean(header) && sameSignature(expected, header as string)); +} diff --git a/_shared/manifest.json b/_shared/manifest.json index 13b369b..4443f0b 100644 --- a/_shared/manifest.json +++ b/_shared/manifest.json @@ -2,12 +2,14 @@ "pieces": { "ds": "_shared/ds", "hookdeck-cli": "_shared/hookdeck/hookdeck-cli.ts", + "hookdeck-api": "_shared/hookdeck/hookdeck-api.ts", "hookdeck-listen": "_shared/hookdeck/hookdeck-listen.ts", "flow-drawer": "_shared/flow-drawer/client", "flow-drawer-server": "_shared/flow-drawer/server.ts", "scenes": "_shared/scenes", "topology-pane": "_shared/topology-pane", - "theme": "_shared/theme/theme.js" + "theme": "_shared/theme/theme.js", + "hookdeck-signature": "_shared/hookdeck/hookdeck-signature.ts" }, "demos": { "deepgram/stt-tts": { @@ -26,8 +28,10 @@ }, "vapi/agency-routing": { "ds": "public/ds", + "hookdeck-api": "scripts/hookdeck-api.ts", "hookdeck-cli": "scripts/hookdeck-cli.ts", "hookdeck-listen": "scripts/hookdeck-listen.ts", + "hookdeck-signature": "src/hookdeck-signature.ts", "flow-drawer-server": "src/flow-drawer-server.ts", "scenes": "scenes/kit", "topology-pane": "public/topology-pane", @@ -35,8 +39,10 @@ }, "elevenlabs/post-call-transcripts": { "ds": "public/ds", + "hookdeck-api": "scripts/hookdeck-api.ts", "hookdeck-cli": "scripts/hookdeck-cli.ts", "hookdeck-listen": "scripts/hookdeck-listen.ts", + "hookdeck-signature": "src/hookdeck-signature.ts", "flow-drawer-server": "src/flow-drawer-server.ts", "scenes": "scenes/kit", "topology-pane": "public/topology-pane", @@ -44,8 +50,10 @@ }, "retell/outbound-lead-calling": { "ds": "public/ds", + "hookdeck-api": "scripts/hookdeck-api.ts", "hookdeck-cli": "scripts/hookdeck-cli.ts", "hookdeck-listen": "scripts/hookdeck-listen.ts", + "hookdeck-signature": "src/hookdeck-signature.ts", "flow-drawer-server": "src/flow-drawer-server.ts", "scenes": "scenes/kit", "topology-pane": "public/topology-pane", @@ -53,8 +61,10 @@ }, "livekit/voice-adventure": { "ds": "public/ds", + "hookdeck-api": "scripts/hookdeck-api.ts", "hookdeck-cli": "scripts/hookdeck-cli.ts", "hookdeck-listen": "scripts/hookdeck-listen.ts", + "hookdeck-signature": "src/hookdeck-signature.ts", "flow-drawer-server": "src/flow-drawer-server.ts", "scenes": "scenes/kit", "topology-pane": "public/topology-pane", diff --git a/deepgram/stt-tts/.env.example b/deepgram/stt-tts/.env.example index 0692f37..8ec570e 100644 --- a/deepgram/stt-tts/.env.example +++ b/deepgram/stt-tts/.env.example @@ -3,7 +3,7 @@ DEEPGRAM_API_KEY=your_deepgram_api_key_here # Hookdeck project API key (REQUIRED) -# Hookdeck dashboard: Project settings -> API keys. `npm run setup` creates the +# Hookdeck dashboard: Project settings -> Secrets (https://dashboard.hookdeck.com/settings/project/secrets). `npm run setup` creates the # connections in this project and `npm run listen` forwards its two sources, using # a CLI config file of their own, so your interactive `hookdeck login` is untouched. HOOKDECK_API_KEY=your_hookdeck_api_key_here diff --git a/deepgram/stt-tts/README.md b/deepgram/stt-tts/README.md index cc0fc6b..e9603b3 100644 --- a/deepgram/stt-tts/README.md +++ b/deepgram/stt-tts/README.md @@ -21,7 +21,7 @@ cp .env.example .env Add two keys to `.env`: - `DEEPGRAM_API_KEY`: from the [Deepgram Console](https://console.deepgram.com/) -- `HOOKDECK_API_KEY`: a Hookdeck project API key (Project settings -> API keys) +- `HOOKDECK_API_KEY`: a Hookdeck project API key (Project settings -> [Secrets](https://dashboard.hookdeck.com/settings/project/secrets)) ```env DEEPGRAM_API_KEY=your_deepgram_api_key_here diff --git a/deepgram/stt-tts/scripts/hookdeck-cli.ts b/deepgram/stt-tts/scripts/hookdeck-cli.ts index 548dd35..736e3a2 100644 --- a/deepgram/stt-tts/scripts/hookdeck-cli.ts +++ b/deepgram/stt-tts/scripts/hookdeck-cli.ts @@ -84,7 +84,7 @@ export function createHookdeckCli(options: HookdeckCliOptions = {}) { const key = process.env.HOOKDECK_API_KEY; if (!key || key.startsWith('your_')) { console.error('❌ HOOKDECK_API_KEY is not set. Add a project API key to .env'); - console.error(' (Hookdeck dashboard: Project settings -> API keys).'); + console.error(' (Hookdeck dashboard: Project settings -> Secrets, https://dashboard.hookdeck.com/settings/project/secrets).'); process.exit(1); } return key; @@ -201,7 +201,7 @@ export function createHookdeckCli(options: HookdeckCliOptions = {}) { return withPrivateJson(`rules-${spec.name}.json`, spec.rules, (file) => json([...args, '--rules-file', file])); } - /** Reads from the Hookdeck API with the project API key. The demos' probe scripts use it to find a source and list its requests; setup goes through the CLI only. */ + /** Calls the Hookdeck API with the project API key. Demos that set up through the API use hookdeck-api.ts instead. */ async function api(method: string, route: string, body?: unknown): Promise { const response = await fetch(`${api_base}${route}`, { method, diff --git a/elevenlabs/post-call-transcripts/.env.example b/elevenlabs/post-call-transcripts/.env.example index d183fd9..8cfb364 100644 --- a/elevenlabs/post-call-transcripts/.env.example +++ b/elevenlabs/post-call-transcripts/.env.example @@ -8,11 +8,18 @@ ELEVENLABS_API_KEY=your_elevenlabs_api_key_here ELEVENLABS_AGENT_ID= # Hookdeck project API key (REQUIRED) -# Hookdeck dashboard: Project settings -> API keys. `npm run setup` creates the -# connection in this project and `npm run listen` forwards its source, using a CLI -# config file of its own, so your interactive `hookdeck login` is untouched. +# Hookdeck dashboard: Project settings -> Secrets (https://dashboard.hookdeck.com/settings/project/secrets). `npm run setup` creates the +# connection in this project with the Hookdeck API. `npm run listen` forwards its +# source with the Hookdeck CLI, using a config file of its own, so your interactive +# `hookdeck login` is untouched. HOOKDECK_API_KEY=your_hookdeck_api_key_here +# Hookdeck project signing secret (REQUIRED) +# Hookdeck dashboard: Project settings -> Secrets, https://dashboard.hookdeck.com/settings/project/secrets. +# The app verifies the x-hookdeck-signature header on every delivery with it, and answers 401 when it +# is missing or wrong. The API key cannot read it, so copy it here by hand. +HOOKDECK_SIGNING_SECRET=your_hookdeck_signing_secret_here + # Server port (optional) PORT=4000 @@ -29,8 +36,8 @@ PORT=4000 # Hookdeck source URL that ElevenLabs sends post-call webhooks to ELEVENLABS_WEBHOOK_URL= # Signing secret of the ElevenLabs workspace webhook (also set on the Hookdeck source). -# Hookdeck verifies the ElevenLabs-Signature with it; the app only uses it to show the -# result of the SDK's constructEvent next to each delivery. +# Hookdeck verifies the ElevenLabs-Signature with it. The app does not check that header; this +# secret is also used by `npm run send` and `npm run probe` to sign sample requests. ELEVENLABS_WEBHOOK_SECRET= # ID of the ElevenLabs workspace webhook ELEVENLABS_WEBHOOK_ID= diff --git a/elevenlabs/post-call-transcripts/README.md b/elevenlabs/post-call-transcripts/README.md index fceae86..bdeddba 100644 --- a/elevenlabs/post-call-transcripts/README.md +++ b/elevenlabs/post-call-transcripts/README.md @@ -22,7 +22,7 @@ The demo has three parts: this app, an ElevenLabs agent, and Hookdeck. It shows: - Node.js 22 or later - An [ElevenLabs](https://elevenlabs.io) account and an [ElevenLabs API key](https://elevenlabs.io/app/settings/api-keys) that can read and write agents and workspace webhooks -- A [Hookdeck](https://dashboard.hookdeck.com/signup) project and a project API key (Project settings -> API keys) +- A [Hookdeck](https://dashboard.hookdeck.com/signup) project, its project API key and its project signing secret (both on Project settings -> [Secrets](https://dashboard.hookdeck.com/settings/project/secrets)) ## Quick start @@ -32,12 +32,14 @@ The demo has three parts: this app, an ElevenLabs agent, and Hookdeck. It shows: npm install ``` -2. Create `.env` and fill in `ELEVENLABS_API_KEY` and `HOOKDECK_API_KEY`: +2. Create `.env` and fill in `ELEVENLABS_API_KEY`, `HOOKDECK_API_KEY` and `HOOKDECK_SIGNING_SECRET`: ```bash cp .env.example .env ``` + `HOOKDECK_SIGNING_SECRET` is the project signing secret from the dashboard (Project settings → [Secrets](https://dashboard.hookdeck.com/settings/project/secrets)). The API key can't read it, so copy it by hand. The app uses it to verify `x-hookdeck-signature` on every delivery. + You don't need an agent of your own: setup creates a dedicated one and writes its ID to `.env`. 3. Set up Hookdeck and ElevenLabs: @@ -91,7 +93,7 @@ The app listens on `127.0.0.1` only, which is enough because `hookdeck listen` r - **Who is who**: you are the customer ringing the Hookdeck Hair booking line; the booking assistant is the agent that `npm run setup` creates (its prompt is `AGENT_CONFIG` in `scripts/setup.ts`). - **Diary**: a week view above the conversations. A conversation whose `booking_made` evaluation is `success` fills a slot from `caller_name`, `requested_service` and `requested_time`. The page works this out from the stored conversations (`public/diary.js`); the webhook handler is unchanged. A `requested_time` it cannot read as a day and a time of day goes in an Unscheduled row as received. - **Themes**: Salon (the default, the Hookdeck Hair booking line), Light, Dark and System, from the switch at the top right. Salon is `public/theme-salon.css` and `public/theme-salon.copy.js`; the Data flow pane keeps the standard look. Explanations sit behind the ⓘ buttons and hover tips. -- **Deliveries received** (collapsed): the latest requests the app received, with body size and result, and the result of the ElevenLabs SDK's `constructEvent` on the forwarded requests. +- **Deliveries received** (collapsed): the latest requests the app received, with body size and result, and whether the Hookdeck signature check passed. Data collection results and evaluation criteria are configured per agent (agent -> **Analysis**). Setup gives the demo agent `caller_name`, `requested_service` and `requested_time` as data collection items and `booking_made` as an evaluation criterion; they show up in the conversation detail. @@ -130,9 +132,12 @@ A `post_call_transcription` payload grows with the transcript, the analysis and ## Verifying the signature -Hookdeck verifies `ElevenLabs-Signature` at the source URL, so the app does not have to. Hookdeck forwards the original headers and the original body, so the signature header still reaches the app. When `ELEVENLABS_WEBHOOK_SECRET` is set, the app runs `elevenlabs.webhooks.constructEvent` from [`@elevenlabs/elevenlabs-js`](https://www.npmjs.com/package/@elevenlabs/elevenlabs-js) on each forwarded request and shows the result in the **SDK check** column. It does not block anything. +Two signatures are in play, and each is checked once: + +- **`ElevenLabs-Signature`** is verified by Event Gateway at the source URL, so the app does not check it. Hookdeck forwards the original headers and body, so the header still reaches the app. +- **`x-hookdeck-signature`** is verified by the app on every delivery, before it does anything else. It is the base64 HMAC-SHA256 of the raw request body, keyed with `HOOKDECK_SIGNING_SECRET` (`src/hookdeck-signature.ts`, synced from `_shared`). A delivery with a missing or wrong signature gets a `401` and shows in **Deliveries received** as `signature_rejected`, with a red **Hookdeck signature rejected** badge. -The SDK rejects a timestamp older than 30 minutes, so a replay of an old event shows a tolerance error in that column while the event is still stored. +Hookdeck's signature has no timestamp. Event Gateway verified ElevenLabs' signature when it accepted the request, so a retry or a replay hours later is legitimate and still passes. ## Topology scenes, and MP4s of them @@ -167,7 +172,8 @@ elevenlabs/post-call-transcripts/ │ ├── call.ts # text-only conversation with the agent │ ├── send-sample.ts # signed sample payloads, duplicates, large bodies │ ├── probe.ts # checks that a good signature is accepted and a bad one rejected -│ └── hookdeck-cli.ts # runs the Hookdeck CLI against HOOKDECK_API_KEY's project (synced from _shared) +│ ├── hookdeck-api.ts # calls the Hookdeck API with HOOKDECK_API_KEY (synced from _shared) +│ └── hookdeck-cli.ts # runs the Hookdeck CLI for npm run listen (synced from _shared) ├── scenes/ │ ├── post-call.ts # the topology scene: live, and four scripted scenarios (desktop + phone) │ ├── entry.ts # what the page's bundle exposes @@ -176,6 +182,7 @@ elevenlabs/post-call-transcripts/ ├── src/ │ ├── server.ts # Express app and API │ ├── webhook.ts # POST /webhooks/elevenlabs +│ ├── hookdeck-signature.ts # verifies x-hookdeck-signature (synced from _shared) │ ├── store.ts # JSON-file storage, idempotency, audio files │ ├── events.ts # event and record types │ └── samples.ts # sample payloads and signer diff --git a/elevenlabs/post-call-transcripts/public/app.js b/elevenlabs/post-call-transcripts/public/app.js index 9ab5630..c78803e 100644 --- a/elevenlabs/post-call-transcripts/public/app.js +++ b/elevenlabs/post-call-transcripts/public/app.js @@ -90,7 +90,7 @@ function renderConversation(c, open) { } function resultBadge(result) { - const cls = result === 'stored' ? 'badge--success' : result === 'simulated_failure' ? 'badge--danger' : ''; + const cls = result === 'stored' ? 'badge--success' : result === 'simulated_failure' || result === 'signature_rejected' ? 'badge--danger' : ''; return `${esc(result)}`; } @@ -135,15 +135,14 @@ async function refresh() { : `${wording('empty', EMPTY_PLAIN)}`, ); - const checked = deliveries.filter((d) => d.sdk_check); - const sdk_ok = checked.filter((d) => d.sdk_check === 'ok').length; const failed = deliveries.filter((d) => d.status_code >= 400).length; $('deliverySummary').textContent = deliveries.length ? `${deliveries.length} received${failed ? `, ${failed} failed on purpose or by error` : ''}` : 'none yet'; - $('sdkBadge').innerHTML = checked.length - ? `SDK check ${sdk_ok === checked.length ? 'ok' : `${sdk_ok}/${checked.length}`}` - : state.sdk_check ? 'SDK check: no deliveries yet' : ''; + const rejected = deliveries.filter((d) => d.result === 'signature_rejected').length; + $('signatureBadge').innerHTML = rejected + ? `${rejected} Hookdeck signature rejected` + : deliveries.length ? 'Hookdeck signature ok' : ''; show('deliveries', deliveries.length ? deliveries .slice(0, 6) diff --git a/elevenlabs/post-call-transcripts/public/demo.css b/elevenlabs/post-call-transcripts/public/demo.css index 59734e5..370513b 100644 --- a/elevenlabs/post-call-transcripts/public/demo.css +++ b/elevenlabs/post-call-transcripts/public/demo.css @@ -98,7 +98,7 @@ footer { color: var(--neutral-fg-3); } .deliveries__toggle::before { content: '\25B8'; color: var(--neutral-fg-3); } .deliveries__toggle[aria-expanded="true"]::before { content: '\25BE'; } .deliveries__toggle:focus-visible { outline: 2px solid var(--focused-outline); outline-offset: 2px; border-radius: var(--radius-s); } -.deliveries__head #sdkBadge { margin-left: auto; } +.deliveries__head #signatureBadge { margin-left: auto; } .delivery-list { margin-top: var(--s3); } .delivery-list { display: grid; gap: var(--s1-5); } .delivery { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); padding: var(--s1-5) 0; border-top: 1px solid var(--neutral-outline-3); color: var(--neutral-fg-2); } diff --git a/elevenlabs/post-call-transcripts/public/index.html b/elevenlabs/post-call-transcripts/public/index.html index 9e246bd..531e086 100644 --- a/elevenlabs/post-call-transcripts/public/index.html +++ b/elevenlabs/post-call-transcripts/public/index.html @@ -115,7 +115,7 @@