@pagelines/sdk 1.0.837 → 1.0.839

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagelines/sdk",
3
- "version": "1.0.837",
3
+ "version": "1.0.839",
4
4
  "description": "PageLines SDK for agent management, auth, and billing",
5
5
  "type": "module",
6
6
  "main": "./dist/sdk.js",
@@ -15,10 +15,6 @@
15
15
  "types": "./dist/agent/index.d.ts",
16
16
  "import": "./dist/agent.js"
17
17
  },
18
- "./demo": {
19
- "types": "./dist/demo/index.d.ts",
20
- "import": "./dist/demo.js"
21
- },
22
18
  "./widget": {
23
19
  "types": "./dist/widget/index.d.ts",
24
20
  "import": "./dist/widget.js"
@@ -27,10 +23,6 @@
27
23
  "types": "./dist/constants/socialPlatforms.d.ts",
28
24
  "import": "./dist/constants.js"
29
25
  },
30
- "./contract": {
31
- "types": "./dist/contract/index.d.ts",
32
- "import": "./dist/contract.js"
33
- },
34
26
  "./sdk.css": {
35
27
  "import": "./dist/sdk.css",
36
28
  "types": "./sdk.css.d.ts"
@@ -59,7 +51,6 @@
59
51
  "vue": "^3.5.0"
60
52
  },
61
53
  "dependencies": {
62
- "@elevenlabs/client": "^1.17.0",
63
54
  "dompurify": "3.4.12",
64
55
  "livekit-client": "^2.21.0",
65
56
  "marked": "^18.0.7",
@@ -80,7 +71,7 @@
80
71
  "typescript": "^6.0.3",
81
72
  "vite": "^8.1.5",
82
73
  "vite-plugin-dts": "^5.0.3",
83
- "vitest": "^4.1.10",
74
+ "vitest": "^4.1.11",
84
75
  "vue": "^3.5.40",
85
76
  "vue-tsc": "^3.3.8"
86
77
  },
@@ -1,48 +0,0 @@
1
- import { VoiceSessionMint } from '@pagelines/core';
2
- import { VoiceProviderClient } from '../../provider';
3
- type ElevenLabsMint = Extract<VoiceSessionMint, {
4
- provider: 'elevenlabs';
5
- }>;
6
- interface ElevenLabsConversation {
7
- endSession: () => Promise<void>;
8
- sendUserMessage: (text: string) => void;
9
- getInputVolume: () => number;
10
- getOutputVolume: () => number;
11
- getInputByteFrequencyData: () => Uint8Array;
12
- getOutputByteFrequencyData: () => Uint8Array;
13
- setMicMuted: (muted: boolean) => void;
14
- }
15
- type StartSession = (options: {
16
- conversationToken: string;
17
- connectionType: 'webrtc';
18
- /**
19
- * Per-conversation voice. NOT sent: Speech Engine only allows
20
- * `overrides.first_message`. Sending `overrides.tts.voiceId` **rejects** the
21
- * session (production outage 2026-08-03). Catalog voice is selected server-
22
- * side by minting against a per-`voiceKey` Speech Engine whose base TTS
23
- * voice is already correct — see server `ElevenLabsVoiceProvider`.
24
- */
25
- overrides?: {
26
- tts?: {
27
- voiceId?: string;
28
- };
29
- };
30
- onDisconnect: (details: {
31
- reason: 'agent' | 'error' | 'user';
32
- }) => void;
33
- onError: (message: string) => void;
34
- }) => Promise<ElevenLabsConversation>;
35
- export declare class ElevenLabsVoiceProvider implements VoiceProviderClient {
36
- private readonly mint;
37
- private readonly startSession;
38
- private conversation?;
39
- private closing;
40
- private handlers?;
41
- constructor(mint: ElevenLabsMint, startSession?: StartSession);
42
- connect(handlers: Parameters<VoiceProviderClient['connect']>[0]): Promise<void>;
43
- sendUserMessage(text: string): void;
44
- disconnect(): Promise<void>;
45
- setMuted(muted: boolean): Promise<void>;
46
- sampleLevel(): ReturnType<VoiceProviderClient['sampleLevel']>;
47
- }
48
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Public entry point for the wire contract pipeline.
3
- *
4
- * Server uses `buildContract()` to serve `GET /api/_contract.json` and to
5
- * regenerate the snapshot at `packages/sdk/contract.json` for CI diffing.
6
- *
7
- * Consumers can also import the live document directly via the npm SDK
8
- * once it's published — `import { buildContract } from '@pagelines/sdk/contract'`.
9
- */
10
- export { buildContract, CONTRACT_VERSION, serializeContract } from './build';
11
- export type { WireContract } from './build';