@guidelytech/shared 0.1.0 → 0.2.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.
package/dist/index.d.cts CHANGED
@@ -1523,6 +1523,8 @@ type GuideConfig = z.infer<typeof GuideConfigSchema>;
1523
1523
  type GuideConfigInput = z.input<typeof GuideConfigSchema>;
1524
1524
  declare function defaultGuideConfig(kind: GuideKind): GuideConfig;
1525
1525
  declare function defaultStep(type: StepType, overrides?: Partial<GuideStepInput>): GuideStep;
1526
+ /** Buttons to show for a step; "back" buttons are hidden when there is no previous step to return to. */
1527
+ declare function visibleButtons(step: GuideStep, canGoBack: boolean): GuideStep["buttons"];
1526
1528
  /** Validation beyond Zod shape: returns human-readable problems that block publishing. */
1527
1529
  interface ValidationIssue {
1528
1530
  level: "error" | "warning";
@@ -1565,13 +1567,13 @@ declare const ProjectThemeSchema: z.ZodObject<{
1565
1567
  brandName?: string | undefined;
1566
1568
  }>;
1567
1569
 
1568
- declare const EVENT_NAMES: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "custom", "page_view", "identify"];
1570
+ declare const EVENT_NAMES: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "messenger_opened", "conversation_started", "conversation_handed_off", "scout_answered", "custom", "page_view", "identify"];
1569
1571
  type EventName = (typeof EVENT_NAMES)[number];
1570
1572
  declare const GUIDE_LIFECYCLE_EVENTS: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned"];
1571
1573
  /** Event as produced by the SDK and accepted by POST /api/v1/sdk/events */
1572
1574
  declare const SdkEventSchema: z.ZodObject<{
1573
1575
  eventId: z.ZodString;
1574
- name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "custom", "page_view", "identify"]>;
1576
+ name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "messenger_opened", "conversation_started", "conversation_handed_off", "scout_answered", "custom", "page_view", "identify"]>;
1575
1577
  /** For `custom` events: the application-defined name. */
1576
1578
  customName: z.ZodOptional<z.ZodString>;
1577
1579
  occurredAt: z.ZodString;
@@ -1587,7 +1589,7 @@ declare const SdkEventSchema: z.ZodObject<{
1587
1589
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1588
1590
  }, "strip", z.ZodTypeAny, {
1589
1591
  eventId: string;
1590
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1592
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1591
1593
  occurredAt: string;
1592
1594
  anonymousId: string;
1593
1595
  url?: string | undefined;
@@ -1602,7 +1604,7 @@ declare const SdkEventSchema: z.ZodObject<{
1602
1604
  properties?: Record<string, unknown> | undefined;
1603
1605
  }, {
1604
1606
  eventId: string;
1605
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1607
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1606
1608
  occurredAt: string;
1607
1609
  anonymousId: string;
1608
1610
  url?: string | undefined;
@@ -1620,7 +1622,7 @@ type SdkEvent = z.infer<typeof SdkEventSchema>;
1620
1622
  declare const EventBatchSchema: z.ZodObject<{
1621
1623
  events: z.ZodArray<z.ZodObject<{
1622
1624
  eventId: z.ZodString;
1623
- name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "custom", "page_view", "identify"]>;
1625
+ name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "messenger_opened", "conversation_started", "conversation_handed_off", "scout_answered", "custom", "page_view", "identify"]>;
1624
1626
  /** For `custom` events: the application-defined name. */
1625
1627
  customName: z.ZodOptional<z.ZodString>;
1626
1628
  occurredAt: z.ZodString;
@@ -1636,7 +1638,7 @@ declare const EventBatchSchema: z.ZodObject<{
1636
1638
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1637
1639
  }, "strip", z.ZodTypeAny, {
1638
1640
  eventId: string;
1639
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1641
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1640
1642
  occurredAt: string;
1641
1643
  anonymousId: string;
1642
1644
  url?: string | undefined;
@@ -1651,7 +1653,7 @@ declare const EventBatchSchema: z.ZodObject<{
1651
1653
  properties?: Record<string, unknown> | undefined;
1652
1654
  }, {
1653
1655
  eventId: string;
1654
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1656
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1655
1657
  occurredAt: string;
1656
1658
  anonymousId: string;
1657
1659
  url?: string | undefined;
@@ -1679,7 +1681,7 @@ declare const EventBatchSchema: z.ZodObject<{
1679
1681
  }, "strip", z.ZodTypeAny, {
1680
1682
  events: {
1681
1683
  eventId: string;
1682
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1684
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1683
1685
  occurredAt: string;
1684
1686
  anonymousId: string;
1685
1687
  url?: string | undefined;
@@ -1701,7 +1703,7 @@ declare const EventBatchSchema: z.ZodObject<{
1701
1703
  }, {
1702
1704
  events: {
1703
1705
  eventId: string;
1704
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1706
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1705
1707
  occurredAt: string;
1706
1708
  anonymousId: string;
1707
1709
  url?: string | undefined;
@@ -1723,6 +1725,156 @@ declare const EventBatchSchema: z.ZodObject<{
1723
1725
  }>;
1724
1726
  type EventBatch = z.infer<typeof EventBatchSchema>;
1725
1727
 
1728
+ /** Messenger settings delivered to the SDK in `SdkConfigResponse.messenger`. */
1729
+ interface MessengerConfig {
1730
+ enabled: boolean;
1731
+ /** Display name of the AI agent ("Scout"). */
1732
+ name: string;
1733
+ greeting: string;
1734
+ /** Scout answers with AI; when false every conversation goes to the team inbox. */
1735
+ aiAvailable: boolean;
1736
+ handoffEnabled: boolean;
1737
+ launcher: {
1738
+ position: "bottom-right" | "bottom-left";
1739
+ };
1740
+ }
1741
+ declare const MESSAGE_AUTHORS: readonly ["user", "scout", "agent", "system"];
1742
+ type MessageAuthor = (typeof MESSAGE_AUTHORS)[number];
1743
+ type ConversationStatus = "bot" | "open" | "closed";
1744
+ interface MessengerCitation {
1745
+ articleId: string;
1746
+ title: string;
1747
+ }
1748
+ interface MessengerSuggestedGuide {
1749
+ key: string;
1750
+ name: string;
1751
+ }
1752
+ interface MessengerMessage {
1753
+ id: string;
1754
+ author: MessageAuthor;
1755
+ /** Team member name for `agent` messages. */
1756
+ authorName?: string | null;
1757
+ body: string;
1758
+ citations: MessengerCitation[];
1759
+ suggestedGuides: MessengerSuggestedGuide[];
1760
+ status: "pending" | "complete" | "failed";
1761
+ createdAt: string;
1762
+ }
1763
+ interface MessengerConversation {
1764
+ id: string;
1765
+ status: ConversationStatus;
1766
+ subject: string;
1767
+ lastMessageAt: string;
1768
+ lastMessagePreview: string;
1769
+ unread: number;
1770
+ rating: number | null;
1771
+ }
1772
+ declare const MAX_MESSAGE_LENGTH = 4000;
1773
+ declare const StartConversationSchema: z.ZodObject<{
1774
+ anonymousId: z.ZodString;
1775
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1776
+ message: z.ZodString;
1777
+ pageUrl: z.ZodOptional<z.ZodString>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ message: string;
1780
+ anonymousId: string;
1781
+ userId?: string | null | undefined;
1782
+ pageUrl?: string | undefined;
1783
+ }, {
1784
+ message: string;
1785
+ anonymousId: string;
1786
+ userId?: string | null | undefined;
1787
+ pageUrl?: string | undefined;
1788
+ }>;
1789
+ type StartConversationRequest = z.infer<typeof StartConversationSchema>;
1790
+ interface StartConversationResponse {
1791
+ conversation: MessengerConversation;
1792
+ /** Secret that authorises this browser to read and post in the conversation. Store it; it is not shown again. */
1793
+ token: string;
1794
+ messages: MessengerMessage[];
1795
+ }
1796
+ declare const ConversationLookupSchema: z.ZodObject<{
1797
+ tokens: z.ZodArray<z.ZodString, "many">;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ tokens: string[];
1800
+ }, {
1801
+ tokens: string[];
1802
+ }>;
1803
+ interface ConversationLookupResponse {
1804
+ conversations: Array<MessengerConversation & {
1805
+ token: string;
1806
+ }>;
1807
+ }
1808
+ declare const PostMessageSchema: z.ZodObject<{
1809
+ message: z.ZodString;
1810
+ }, "strip", z.ZodTypeAny, {
1811
+ message: string;
1812
+ }, {
1813
+ message: string;
1814
+ }>;
1815
+ declare const ConversationRatingSchema: z.ZodObject<{
1816
+ rating: z.ZodNumber;
1817
+ comment: z.ZodOptional<z.ZodString>;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ rating: number;
1820
+ comment?: string | undefined;
1821
+ }, {
1822
+ rating: number;
1823
+ comment?: string | undefined;
1824
+ }>;
1825
+ interface ConversationMessagesResponse {
1826
+ conversation: MessengerConversation;
1827
+ messages: MessengerMessage[];
1828
+ }
1829
+ /**
1830
+ * Server-sent events streamed by `POST /sdk/conversations` and `POST /sdk/conversations/:id/messages`
1831
+ * while Scout replies. `conversation` (start only) carries the new conversation and its token, `message`
1832
+ * each stored message, `delta` reply text as it is generated, and `done` the final stored message.
1833
+ */
1834
+ type ScoutStreamEvent = {
1835
+ event: "conversation";
1836
+ data: StartConversationResponse;
1837
+ } | {
1838
+ event: "message";
1839
+ data: MessengerMessage;
1840
+ } | {
1841
+ event: "delta";
1842
+ data: {
1843
+ messageId: string;
1844
+ text: string;
1845
+ };
1846
+ } | {
1847
+ event: "done";
1848
+ data: {
1849
+ message: MessengerMessage;
1850
+ conversation: MessengerConversation;
1851
+ };
1852
+ } | {
1853
+ event: "error";
1854
+ data: {
1855
+ message: string;
1856
+ };
1857
+ };
1858
+ /** Article list entry for the messenger Help tab (bodies are fetched on demand). */
1859
+ interface SdkArticleSummary {
1860
+ id: string;
1861
+ slug: string;
1862
+ title: string;
1863
+ summary: string;
1864
+ collectionId: string | null;
1865
+ externalUrl: string | null;
1866
+ updatedAt: string;
1867
+ }
1868
+ interface SdkArticlesResponse {
1869
+ collections: Array<{
1870
+ id: string;
1871
+ name: string;
1872
+ description: string;
1873
+ order: number;
1874
+ }>;
1875
+ articles: SdkArticleSummary[];
1876
+ }
1877
+
1726
1878
  /** A published guide as delivered to the SDK. Draft-only data (author, notes) is never included. */
1727
1879
  interface PublishedGuide {
1728
1880
  id: string;
@@ -1739,6 +1891,8 @@ interface ResourceCenterArticle {
1739
1891
  title: string;
1740
1892
  summary: string;
1741
1893
  body: string;
1894
+ /** True when `body` was left out of the config to keep it small; fetch it from `GET /sdk/articles/:id`. */
1895
+ bodyOmitted?: boolean;
1742
1896
  collectionId?: string | null;
1743
1897
  externalUrl?: string | null;
1744
1898
  updatedAt: string;
@@ -1778,6 +1932,8 @@ interface SdkConfigResponse {
1778
1932
  theme: z.infer<typeof ProjectThemeSchema>;
1779
1933
  guides: PublishedGuide[];
1780
1934
  resourceCenter: ResourceCenterConfig | null;
1935
+ /** Scout messenger; absent from servers that predate it. */
1936
+ messenger?: MessengerConfig | null;
1781
1937
  settings: {
1782
1938
  analyticsEnabled: boolean;
1783
1939
  collectUrls: boolean;
@@ -1991,6 +2147,20 @@ declare const AuthoringPickSchema: z.ZodObject<{
1991
2147
  } | undefined;
1992
2148
  }>;
1993
2149
  type AuthoringPick = z.infer<typeof AuthoringPickSchema>;
2150
+ /**
2151
+ * Static, script-free copy of the page an authoring session is connected to. The SDK posts it to
2152
+ * the dashboard (never to the API) so the editor canvas can show the customer's real app.
2153
+ */
2154
+ interface AppSnapshot {
2155
+ /** Full HTML document (doctype included) with scripts and Guidely UI removed and a `<base>` pointing at `url`. */
2156
+ html: string;
2157
+ url: string;
2158
+ title: string;
2159
+ /** Viewport the snapshot was taken at, in CSS pixels. */
2160
+ width: number;
2161
+ height: number;
2162
+ capturedAt: string;
2163
+ }
1994
2164
  interface AuthoringSessionInfo {
1995
2165
  id: string;
1996
2166
  projectId: string;
@@ -3181,6 +3351,6 @@ declare function templateConfig(id: string): {
3181
3351
  } | null;
3182
3352
 
3183
3353
  declare const SDK_API_VERSION = "v1";
3184
- declare const SHARED_VERSION = "0.1.0";
3354
+ declare const SHARED_VERSION = "0.2.1";
3185
3355
 
3186
- export { ADVANCE_ON, type ApiError, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, BUTTON_ACTIONS, ButtonSchema, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, EVENT_NAMES, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, PLACEMENTS, type Placement, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, type ResourceCenterArticle, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, templateConfig, validateGuideConfig };
3356
+ export { ADVANCE_ON, type ApiError, type AppSnapshot, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, BUTTON_ACTIONS, ButtonSchema, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, type ConversationLookupResponse, ConversationLookupSchema, type ConversationMessagesResponse, ConversationRatingSchema, type ConversationStatus, EVENT_NAMES, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, MAX_MESSAGE_LENGTH, MESSAGE_AUTHORS, type MessageAuthor, type MessengerCitation, type MessengerConfig, type MessengerConversation, type MessengerMessage, type MessengerSuggestedGuide, PLACEMENTS, type Placement, PostMessageSchema, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, type ResourceCenterArticle, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type ScoutStreamEvent, type SdkArticleSummary, type SdkArticlesResponse, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, type StartConversationRequest, type StartConversationResponse, StartConversationSchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, templateConfig, validateGuideConfig, visibleButtons };
package/dist/index.d.ts CHANGED
@@ -1523,6 +1523,8 @@ type GuideConfig = z.infer<typeof GuideConfigSchema>;
1523
1523
  type GuideConfigInput = z.input<typeof GuideConfigSchema>;
1524
1524
  declare function defaultGuideConfig(kind: GuideKind): GuideConfig;
1525
1525
  declare function defaultStep(type: StepType, overrides?: Partial<GuideStepInput>): GuideStep;
1526
+ /** Buttons to show for a step; "back" buttons are hidden when there is no previous step to return to. */
1527
+ declare function visibleButtons(step: GuideStep, canGoBack: boolean): GuideStep["buttons"];
1526
1528
  /** Validation beyond Zod shape: returns human-readable problems that block publishing. */
1527
1529
  interface ValidationIssue {
1528
1530
  level: "error" | "warning";
@@ -1565,13 +1567,13 @@ declare const ProjectThemeSchema: z.ZodObject<{
1565
1567
  brandName?: string | undefined;
1566
1568
  }>;
1567
1569
 
1568
- declare const EVENT_NAMES: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "custom", "page_view", "identify"];
1570
+ declare const EVENT_NAMES: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "messenger_opened", "conversation_started", "conversation_handed_off", "scout_answered", "custom", "page_view", "identify"];
1569
1571
  type EventName = (typeof EVENT_NAMES)[number];
1570
1572
  declare const GUIDE_LIFECYCLE_EVENTS: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned"];
1571
1573
  /** Event as produced by the SDK and accepted by POST /api/v1/sdk/events */
1572
1574
  declare const SdkEventSchema: z.ZodObject<{
1573
1575
  eventId: z.ZodString;
1574
- name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "custom", "page_view", "identify"]>;
1576
+ name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "messenger_opened", "conversation_started", "conversation_handed_off", "scout_answered", "custom", "page_view", "identify"]>;
1575
1577
  /** For `custom` events: the application-defined name. */
1576
1578
  customName: z.ZodOptional<z.ZodString>;
1577
1579
  occurredAt: z.ZodString;
@@ -1587,7 +1589,7 @@ declare const SdkEventSchema: z.ZodObject<{
1587
1589
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1588
1590
  }, "strip", z.ZodTypeAny, {
1589
1591
  eventId: string;
1590
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1592
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1591
1593
  occurredAt: string;
1592
1594
  anonymousId: string;
1593
1595
  url?: string | undefined;
@@ -1602,7 +1604,7 @@ declare const SdkEventSchema: z.ZodObject<{
1602
1604
  properties?: Record<string, unknown> | undefined;
1603
1605
  }, {
1604
1606
  eventId: string;
1605
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1607
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1606
1608
  occurredAt: string;
1607
1609
  anonymousId: string;
1608
1610
  url?: string | undefined;
@@ -1620,7 +1622,7 @@ type SdkEvent = z.infer<typeof SdkEventSchema>;
1620
1622
  declare const EventBatchSchema: z.ZodObject<{
1621
1623
  events: z.ZodArray<z.ZodObject<{
1622
1624
  eventId: z.ZodString;
1623
- name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "custom", "page_view", "identify"]>;
1625
+ name: z.ZodEnum<["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "checklist_task_completed", "checklist_completed", "checklist_dismissed", "survey_displayed", "survey_submitted", "survey_dismissed", "resource_center_opened", "article_viewed", "messenger_opened", "conversation_started", "conversation_handed_off", "scout_answered", "custom", "page_view", "identify"]>;
1624
1626
  /** For `custom` events: the application-defined name. */
1625
1627
  customName: z.ZodOptional<z.ZodString>;
1626
1628
  occurredAt: z.ZodString;
@@ -1636,7 +1638,7 @@ declare const EventBatchSchema: z.ZodObject<{
1636
1638
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1637
1639
  }, "strip", z.ZodTypeAny, {
1638
1640
  eventId: string;
1639
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1641
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1640
1642
  occurredAt: string;
1641
1643
  anonymousId: string;
1642
1644
  url?: string | undefined;
@@ -1651,7 +1653,7 @@ declare const EventBatchSchema: z.ZodObject<{
1651
1653
  properties?: Record<string, unknown> | undefined;
1652
1654
  }, {
1653
1655
  eventId: string;
1654
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1656
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1655
1657
  occurredAt: string;
1656
1658
  anonymousId: string;
1657
1659
  url?: string | undefined;
@@ -1679,7 +1681,7 @@ declare const EventBatchSchema: z.ZodObject<{
1679
1681
  }, "strip", z.ZodTypeAny, {
1680
1682
  events: {
1681
1683
  eventId: string;
1682
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1684
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1683
1685
  occurredAt: string;
1684
1686
  anonymousId: string;
1685
1687
  url?: string | undefined;
@@ -1701,7 +1703,7 @@ declare const EventBatchSchema: z.ZodObject<{
1701
1703
  }, {
1702
1704
  events: {
1703
1705
  eventId: string;
1704
- name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "page_view" | "identify";
1706
+ name: "custom" | "guide_completed" | "guide_viewed" | "guide_started" | "step_viewed" | "step_completed" | "guide_skipped" | "guide_dismissed" | "guide_abandoned" | "checklist_task_completed" | "checklist_completed" | "checklist_dismissed" | "survey_displayed" | "survey_submitted" | "survey_dismissed" | "resource_center_opened" | "article_viewed" | "messenger_opened" | "conversation_started" | "conversation_handed_off" | "scout_answered" | "page_view" | "identify";
1705
1707
  occurredAt: string;
1706
1708
  anonymousId: string;
1707
1709
  url?: string | undefined;
@@ -1723,6 +1725,156 @@ declare const EventBatchSchema: z.ZodObject<{
1723
1725
  }>;
1724
1726
  type EventBatch = z.infer<typeof EventBatchSchema>;
1725
1727
 
1728
+ /** Messenger settings delivered to the SDK in `SdkConfigResponse.messenger`. */
1729
+ interface MessengerConfig {
1730
+ enabled: boolean;
1731
+ /** Display name of the AI agent ("Scout"). */
1732
+ name: string;
1733
+ greeting: string;
1734
+ /** Scout answers with AI; when false every conversation goes to the team inbox. */
1735
+ aiAvailable: boolean;
1736
+ handoffEnabled: boolean;
1737
+ launcher: {
1738
+ position: "bottom-right" | "bottom-left";
1739
+ };
1740
+ }
1741
+ declare const MESSAGE_AUTHORS: readonly ["user", "scout", "agent", "system"];
1742
+ type MessageAuthor = (typeof MESSAGE_AUTHORS)[number];
1743
+ type ConversationStatus = "bot" | "open" | "closed";
1744
+ interface MessengerCitation {
1745
+ articleId: string;
1746
+ title: string;
1747
+ }
1748
+ interface MessengerSuggestedGuide {
1749
+ key: string;
1750
+ name: string;
1751
+ }
1752
+ interface MessengerMessage {
1753
+ id: string;
1754
+ author: MessageAuthor;
1755
+ /** Team member name for `agent` messages. */
1756
+ authorName?: string | null;
1757
+ body: string;
1758
+ citations: MessengerCitation[];
1759
+ suggestedGuides: MessengerSuggestedGuide[];
1760
+ status: "pending" | "complete" | "failed";
1761
+ createdAt: string;
1762
+ }
1763
+ interface MessengerConversation {
1764
+ id: string;
1765
+ status: ConversationStatus;
1766
+ subject: string;
1767
+ lastMessageAt: string;
1768
+ lastMessagePreview: string;
1769
+ unread: number;
1770
+ rating: number | null;
1771
+ }
1772
+ declare const MAX_MESSAGE_LENGTH = 4000;
1773
+ declare const StartConversationSchema: z.ZodObject<{
1774
+ anonymousId: z.ZodString;
1775
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1776
+ message: z.ZodString;
1777
+ pageUrl: z.ZodOptional<z.ZodString>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ message: string;
1780
+ anonymousId: string;
1781
+ userId?: string | null | undefined;
1782
+ pageUrl?: string | undefined;
1783
+ }, {
1784
+ message: string;
1785
+ anonymousId: string;
1786
+ userId?: string | null | undefined;
1787
+ pageUrl?: string | undefined;
1788
+ }>;
1789
+ type StartConversationRequest = z.infer<typeof StartConversationSchema>;
1790
+ interface StartConversationResponse {
1791
+ conversation: MessengerConversation;
1792
+ /** Secret that authorises this browser to read and post in the conversation. Store it; it is not shown again. */
1793
+ token: string;
1794
+ messages: MessengerMessage[];
1795
+ }
1796
+ declare const ConversationLookupSchema: z.ZodObject<{
1797
+ tokens: z.ZodArray<z.ZodString, "many">;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ tokens: string[];
1800
+ }, {
1801
+ tokens: string[];
1802
+ }>;
1803
+ interface ConversationLookupResponse {
1804
+ conversations: Array<MessengerConversation & {
1805
+ token: string;
1806
+ }>;
1807
+ }
1808
+ declare const PostMessageSchema: z.ZodObject<{
1809
+ message: z.ZodString;
1810
+ }, "strip", z.ZodTypeAny, {
1811
+ message: string;
1812
+ }, {
1813
+ message: string;
1814
+ }>;
1815
+ declare const ConversationRatingSchema: z.ZodObject<{
1816
+ rating: z.ZodNumber;
1817
+ comment: z.ZodOptional<z.ZodString>;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ rating: number;
1820
+ comment?: string | undefined;
1821
+ }, {
1822
+ rating: number;
1823
+ comment?: string | undefined;
1824
+ }>;
1825
+ interface ConversationMessagesResponse {
1826
+ conversation: MessengerConversation;
1827
+ messages: MessengerMessage[];
1828
+ }
1829
+ /**
1830
+ * Server-sent events streamed by `POST /sdk/conversations` and `POST /sdk/conversations/:id/messages`
1831
+ * while Scout replies. `conversation` (start only) carries the new conversation and its token, `message`
1832
+ * each stored message, `delta` reply text as it is generated, and `done` the final stored message.
1833
+ */
1834
+ type ScoutStreamEvent = {
1835
+ event: "conversation";
1836
+ data: StartConversationResponse;
1837
+ } | {
1838
+ event: "message";
1839
+ data: MessengerMessage;
1840
+ } | {
1841
+ event: "delta";
1842
+ data: {
1843
+ messageId: string;
1844
+ text: string;
1845
+ };
1846
+ } | {
1847
+ event: "done";
1848
+ data: {
1849
+ message: MessengerMessage;
1850
+ conversation: MessengerConversation;
1851
+ };
1852
+ } | {
1853
+ event: "error";
1854
+ data: {
1855
+ message: string;
1856
+ };
1857
+ };
1858
+ /** Article list entry for the messenger Help tab (bodies are fetched on demand). */
1859
+ interface SdkArticleSummary {
1860
+ id: string;
1861
+ slug: string;
1862
+ title: string;
1863
+ summary: string;
1864
+ collectionId: string | null;
1865
+ externalUrl: string | null;
1866
+ updatedAt: string;
1867
+ }
1868
+ interface SdkArticlesResponse {
1869
+ collections: Array<{
1870
+ id: string;
1871
+ name: string;
1872
+ description: string;
1873
+ order: number;
1874
+ }>;
1875
+ articles: SdkArticleSummary[];
1876
+ }
1877
+
1726
1878
  /** A published guide as delivered to the SDK. Draft-only data (author, notes) is never included. */
1727
1879
  interface PublishedGuide {
1728
1880
  id: string;
@@ -1739,6 +1891,8 @@ interface ResourceCenterArticle {
1739
1891
  title: string;
1740
1892
  summary: string;
1741
1893
  body: string;
1894
+ /** True when `body` was left out of the config to keep it small; fetch it from `GET /sdk/articles/:id`. */
1895
+ bodyOmitted?: boolean;
1742
1896
  collectionId?: string | null;
1743
1897
  externalUrl?: string | null;
1744
1898
  updatedAt: string;
@@ -1778,6 +1932,8 @@ interface SdkConfigResponse {
1778
1932
  theme: z.infer<typeof ProjectThemeSchema>;
1779
1933
  guides: PublishedGuide[];
1780
1934
  resourceCenter: ResourceCenterConfig | null;
1935
+ /** Scout messenger; absent from servers that predate it. */
1936
+ messenger?: MessengerConfig | null;
1781
1937
  settings: {
1782
1938
  analyticsEnabled: boolean;
1783
1939
  collectUrls: boolean;
@@ -1991,6 +2147,20 @@ declare const AuthoringPickSchema: z.ZodObject<{
1991
2147
  } | undefined;
1992
2148
  }>;
1993
2149
  type AuthoringPick = z.infer<typeof AuthoringPickSchema>;
2150
+ /**
2151
+ * Static, script-free copy of the page an authoring session is connected to. The SDK posts it to
2152
+ * the dashboard (never to the API) so the editor canvas can show the customer's real app.
2153
+ */
2154
+ interface AppSnapshot {
2155
+ /** Full HTML document (doctype included) with scripts and Guidely UI removed and a `<base>` pointing at `url`. */
2156
+ html: string;
2157
+ url: string;
2158
+ title: string;
2159
+ /** Viewport the snapshot was taken at, in CSS pixels. */
2160
+ width: number;
2161
+ height: number;
2162
+ capturedAt: string;
2163
+ }
1994
2164
  interface AuthoringSessionInfo {
1995
2165
  id: string;
1996
2166
  projectId: string;
@@ -3181,6 +3351,6 @@ declare function templateConfig(id: string): {
3181
3351
  } | null;
3182
3352
 
3183
3353
  declare const SDK_API_VERSION = "v1";
3184
- declare const SHARED_VERSION = "0.1.0";
3354
+ declare const SHARED_VERSION = "0.2.1";
3185
3355
 
3186
- export { ADVANCE_ON, type ApiError, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, BUTTON_ACTIONS, ButtonSchema, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, EVENT_NAMES, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, PLACEMENTS, type Placement, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, type ResourceCenterArticle, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, templateConfig, validateGuideConfig };
3356
+ export { ADVANCE_ON, type ApiError, type AppSnapshot, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, BUTTON_ACTIONS, ButtonSchema, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, type ConversationLookupResponse, ConversationLookupSchema, type ConversationMessagesResponse, ConversationRatingSchema, type ConversationStatus, EVENT_NAMES, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, MAX_MESSAGE_LENGTH, MESSAGE_AUTHORS, type MessageAuthor, type MessengerCitation, type MessengerConfig, type MessengerConversation, type MessengerMessage, type MessengerSuggestedGuide, PLACEMENTS, type Placement, PostMessageSchema, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, type ResourceCenterArticle, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type ScoutStreamEvent, type SdkArticleSummary, type SdkArticlesResponse, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, type StartConversationRequest, type StartConversationResponse, StartConversationSchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, templateConfig, validateGuideConfig, visibleButtons };