@sparkvault/sdk-js 15.7.0 → 15.7.1

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.
@@ -1,2 +1,2 @@
1
1
  /** The original desk uses its account ID; additional desks have their own ID. */
2
- export declare function validHelpDeskId(value: unknown): value is string;
2
+ export { isHelpDeskId as validHelpDeskId } from '@sparkvault/app-sdk/help-desk-contract';
@@ -1,4 +1,5 @@
1
1
  /** Privacy-preserving, optional assistance telemetry. No issue text or identity belongs in this contract. */
2
+ import type { ApiPath } from '../../request-path';
2
3
  export type SupportContactReason = 'no_results' | 'none_match' | 'article_not_answered';
3
4
  export type SupportAttemptStart = {
4
5
  availability: 'available';
@@ -23,7 +24,7 @@ export interface SupportAttempt {
23
24
  export interface SupportAnalyticsOptions {
24
25
  deskId: string;
25
26
  /** The caller supplies the same approved-origin/access-grant transport used by KB reads. */
26
- post<T>(path: string, body: Record<string, unknown>): Promise<T>;
27
+ post<T>(path: ApiPath, body: Record<string, unknown>): Promise<T>;
27
28
  }
28
29
  export interface SupportAnalytics {
29
30
  start(options: SupportAttemptStart): Promise<SupportAttempt | null>;
@@ -1,4 +1,3 @@
1
- /** Optional telemetry runs behind the journey; failed analytics never interrupts support. */
2
1
  import type { SupportAnalytics, SupportAnalyticsOptions, SupportAttempt, SupportAttemptStart, SupportContactReason, SupportTicketContext } from './support-analytics-types';
3
2
  export declare function createSupportAnalytics({ deskId, post }: SupportAnalyticsOptions): SupportAnalytics;
4
3
  export type { SupportAnalytics, SupportAnalyticsOptions, SupportAttempt, SupportAttemptStart, SupportContactReason, SupportTicketContext };
@@ -29,7 +29,6 @@ export interface SupportViewState {
29
29
  email?: string;
30
30
  message?: string;
31
31
  };
32
- returnToWebsiteAccount?: boolean;
33
32
  }
34
33
  export interface SupportViewActions {
35
34
  onIssueChange: (value: string) => void;
@@ -43,7 +42,6 @@ export interface SupportViewActions {
43
42
  onRetry?: () => void;
44
43
  onUnlock?: (password?: string) => void;
45
44
  onUnlockTicketAccess?: (password?: string) => void;
46
- onUseWebsiteAccount?: () => void;
47
45
  onRestart?: () => void;
48
46
  onCancelIdentity?: () => void;
49
47
  onBrowserBack?: () => void;
@@ -86,7 +84,6 @@ export declare class SupportView {
86
84
  private readonly articleError;
87
85
  private readonly articleRetry;
88
86
  private readonly articleFooter;
89
- private readonly accountReturn;
90
87
  private readonly contactTitle;
91
88
  private readonly contactStatus;
92
89
  private readonly contactError;