@skippr/live-agent-sdk 0.129.0 → 0.130.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.
@@ -97,7 +97,6 @@ export declare enum AdoptionMatchType {
97
97
  }
98
98
  export interface AdoptionGoalMatch {
99
99
  goalId: string;
100
- agentId: string;
101
100
  displayMessage: string;
102
101
  objective: string;
103
102
  matchType: AdoptionMatchType;
@@ -206,7 +205,6 @@ export interface LiveAgentContextValue extends LiveAgentPublicValue {
206
205
  adoptionGoals: AdoptionGoalMatch[];
207
206
  hasResolvedAdoptionGoals: boolean;
208
207
  startAdoptionSession: (goal: AdoptionGoalMatch) => void;
209
- attendGoal: (goalId: string) => void;
210
208
  setTextModeState: (enabled: boolean) => void;
211
209
  launcherBottomPx: number;
212
210
  setLauncherBottomPx: (px: number) => void;
@@ -1,16 +1,16 @@
1
- import { type AdoptionGoalMatch } from '../context/LiveAgentContext';
1
+ import type { AdoptionGoalMatch } from '../context/LiveAgentContext';
2
2
  import type { AuthedFetch } from './useSession';
3
3
  interface UseAdoptionGoalsParams {
4
4
  enabled: boolean;
5
5
  bearerToken: string | null;
6
6
  authedFetch: AuthedFetch;
7
+ agentId?: string | undefined;
7
8
  }
8
9
  interface UseAdoptionGoalsResult {
9
10
  goals: AdoptionGoalMatch[];
10
11
  deepLinkedGoal: AdoptionGoalMatch | null;
11
12
  hasTipSlug: boolean;
12
13
  hasResolved: boolean;
13
- attendGoal: (goalId: string) => void;
14
14
  }
15
- export declare function useAdoptionGoals({ enabled, bearerToken, authedFetch, }: UseAdoptionGoalsParams): UseAdoptionGoalsResult;
15
+ export declare function useAdoptionGoals({ enabled, bearerToken, authedFetch, agentId, }: UseAdoptionGoalsParams): UseAdoptionGoalsResult;
16
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.129.0",
3
+ "version": "0.130.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",