@guidelytech/shared 0.15.0 → 0.17.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.
- package/dist/{chunk-XJXXVV3C.js → chunk-YL65O3FS.js} +152 -13
- package/dist/chunk-YL65O3FS.js.map +1 -0
- package/dist/index.cjs +381 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +260 -647
- package/dist/index.d.ts +260 -647
- package/dist/index.js +244 -110
- package/dist/index.js.map +1 -1
- package/dist/runtime-x-0GT7HM.d.cts +3260 -0
- package/dist/runtime-x-0GT7HM.d.ts +3260 -0
- package/dist/runtime.cjs +174 -12
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +47 -1
- package/package.json +3 -3
- package/dist/chunk-OLWGMDRX.js +0 -729
- package/dist/chunk-OLWGMDRX.js.map +0 -1
- package/dist/chunk-TGIUEYXM.js +0 -1937
- package/dist/chunk-TGIUEYXM.js.map +0 -1
- package/dist/chunk-UW6NRYRY.js +0 -809
- package/dist/chunk-UW6NRYRY.js.map +0 -1
- package/dist/chunk-XJXXVV3C.js.map +0 -1
- package/dist/runtime-BM5cztmJ.d.cts +0 -5234
- package/dist/runtime-BM5cztmJ.d.ts +0 -5234
- package/dist/runtime-BeSHQtNX.d.cts +0 -5263
- package/dist/runtime-BeSHQtNX.d.ts +0 -5263
- package/dist/runtime-DjEAlb_Q.d.cts +0 -5268
- package/dist/runtime-DjEAlb_Q.d.ts +0 -5268
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as RuleGroup, a as Rule, G as GuideKind, b as GuideConfigInput } from './runtime-
|
|
2
|
-
export { A as ADVANCE_ON, c as AGENT_METADATA_MAX_BYTES, d as AGENT_METADATA_MAX_KEYS, e as AGENT_OUTCOMES, f as AGENT_TOOL_CALLS_PER_TURN, g as AGENT_TOOL_STATUSES, h as AGENT_TURNS_PER_BATCH, i as AGENT_TURN_MAX_TEXT, j as AGENT_TURN_ROLES, k as ANNOTATION_COLORS, l as ARTICLE_VISIBILITIES, m as AgentEventsResponse, n as AgentOutcome, o as AgentToolCallInput, p as AgentToolStatus, q as AgentTurnInput, r as AgentTurnRole, s as AnnotationColor, t as ApiError, u as AppSnapshot, v as Appearance, w as AppearanceSchema, x as ArticleVisibility, y as AttrOp, z as AttrTest, B as AuthoringPick, C as AuthoringPickSchema, D as AuthoringSessionInfo, E as AutocaptureSettings, F as AutocaptureSettingsSchema, H as BUTTON_ACTIONS, I as ButtonSchema, J as CAPTURE_PARAM, K as CAPTURE_SCREENSHOT_MAX_BYTES, L as COMMON_LOCALES, M as COMPLAINT_EVENTS, N as COMPLAINT_FIELD_TYPES, O as COMPLAINT_STATUSES, P as CONTROL_VARIANT_ID, Q as CaptureSessionInfo, S as CaptureSettings, T as CaptureStep, U as CaptureStepInput, V as CaptureStepSchema, W as CapturedElement, X as CapturedElementSchema, Y as ChecklistConfig, Z as ChecklistConfigSchema, _ as ChecklistProgressRequest, $ as ChecklistProgressRequestSchema, a0 as ChecklistTask, a1 as ChecklistTaskSchema, a2 as ClickFacts, a3 as ComplaintEvent, a4 as ComplaintField, a5 as ComplaintFieldType, a6 as ComplaintStatus, a7 as ComplexSelector, a8 as Compound, a9 as ContrastIssue, aa as ConversationLookupResponse, ab as ConversationLookupSchema, ac as ConversationMessagesResponse, ad as ConversationRatingSchema, ae as ConversationStatus, af as DEFAULT_CAPTURE_SETTINGS, ag as DEFAULT_FEATURE_ATTRIBUTE, ah as DEFAULT_LOCALE, ai as DEFAULT_PLATFORMS, aj as EMBED_IFRAME_ATTRS, ak as ElementNode, al as ElementSnapshot, am as EmbedProvider, an as ErrorTrackingSettings, ao as ErrorTrackingSettingsSchema, ap as ExceptionProperties, aq as FEATURE_ATTRIBUTE_PATTERN, ar as FEATURE_RULE_LIMITS, as as FEEDBACK_EVENTS, at as FEEDBACK_PRIORITIES, au as FEEDBACK_PRIORITY_LABEL, av as FEEDBACK_PRIORITY_WEIGHT, aw as FEEDBACK_STATUSES, ax as FEEDBACK_STATUS_LABEL, ay as FILE_LINK_CLASS, az as FeatureRule, aA as FeedbackEvent, aB as FeedbackPriority, aC as FeedbackStatus, aD as FeedbackUpdate, aE as FeedbackUpdatesResponse, aF as FileComplaintResponse, aG as FrequencyConfig, aH as FrequencySchema, aI as GUIDELY_ID_ATTRIBUTE, aJ as GUIDE_EXPERIMENT_GOALS, aK as GUIDE_EXPERIMENT_GOAL_LABELS, aL as GUIDE_EXPERIMENT_STATUSES, aM as GUIDE_KINDS, aN as GUIDE_STATUSES, aO as GUIDE_VISIBILITIES, aP as GuideConfig, aQ as GuideConfigSchema, aR as GuideExperimentGoal, aS as GuideExperimentGoalKind, aT as GuideExperimentStatus, aU as GuideExperimentVariant, aV as GuideHoldout, aW as GuideLocalization, aX as GuideLocalizationSchema, aY as GuideSchedule, aZ as GuideScheduleSchema, a_ as GuideStateUpdateSchema, a$ as GuideStatus, b0 as GuideStep, b1 as GuideStepInput, b2 as GuideThrottlingSchema, b3 as GuideThrottlingSettings, b4 as GuideVisibility, b5 as HEATMAP_VIEWPORTS, b6 as HOWTO_ACTIONS, b7 as HOWTO_STEP_KINDS, b8 as HeatmapPoint, b9 as HeatmapProperties, ba as HeatmapViewport, bb as HowToAction, bc as HowToAnnotation, bd as HowToAnnotationSchema, be as HowToStepKind, bf as IdentifyRequest, bg as IdentifyRequestSchema, bh as IdentifyResponse, bi as LOCALE_PATTERN, bj as LOGGED_IN_AUDIENCE, bk as LocaleSchema, bl as LocalizationSettings, bm as LocalizationSettingsSchema, bn as MAX_ANNOTATIONS, bo as MAX_COLLECTION_DEPTH, bp as MAX_COMPLAINT_ANSWER_LENGTH, bq as MAX_COMPLAINT_ATTACHMENT_BYTES, br as MAX_COMPLAINT_CHOICES, bs as MAX_COMPLAINT_FIELDS, bt as MAX_COMPLAINT_LENGTH, bu as MAX_CUSTOM_CSS, bv as MAX_FEEDBACK_COMMENT, bw as MAX_FEEDBACK_DESCRIPTION, bx as MAX_FEEDBACK_NOTE, by as MAX_FEEDBACK_TITLE, bz as MAX_MESSAGE_LENGTH, bA as MAX_PROPERTY_BYTES, bB as MAX_STACK_FRAMES, bC as MEDIA_FILE_MAX_BYTES, bD as MEDIA_FILE_TYPES, bE as MEDIA_IMAGE_MAX_BYTES, bF as MEDIA_IMAGE_TYPES, bG as MEDIA_MAX_BYTES, bH as MEDIA_VIDEO_MAX_BYTES, bI as MEDIA_VIDEO_TYPES, bJ as MESSAGE_AUTHORS, bK as MediaContentType, bL as MediaKind, bM as MessageAuthor, bN as MessengerCitation, bO as MessengerComplaint, bP as MessengerComplaintCategory, bQ as MessengerComplaintOffer, bR as MessengerComplaintsConfig, bS as MessengerConfig, bT as MessengerConversation, bU as MessengerHomeCards, bV as MessengerHowToCitation, bW as MessengerIdeaOffer, bX as MessengerIdeasConfig, bY as MessengerMessage, bZ as MessengerPageContent, b_ as MessengerPageRequest, b$ as MessengerPageRequestSchema, c0 as MessengerPageSuggestion, c1 as MessengerStatus, c2 as MessengerSuggestedGuide, c3 as MessengerTeammate, c4 as NETWORK_PLUGIN, c5 as NOISY_DATA_ATTR, c6 as NetworkPluginPayload, c7 as NetworkRequest, c8 as NetworkRequestType, c9 as NormalizedPointSchema, ca as NormalizedRect, cb as NormalizedRectSchema, cc as PAGE_RULE_LIMITS, cd as PATH_ID_PATTERN, ce as PDF_BLOCK_CLASS, cf as PDF_MAX_PAGES, cg as PDF_PAGES_CLASS, ch as PLACEMENTS, ci as PLATFORMS, cj as PageContext, ck as PagePattern, cl as PageRule, cm as Placement, cn as Platform, co as PostMessageSchema, cp as ProjectTheme, cq as ProjectThemeSchema, cr as PublicFeedbackComment, cs as PublicFeedbackList, ct as PublicFeedbackRequest, cu as PublicFeedbackRequestDetail, cv as PublishedGuide, cw as PublishedGuideSchema, cx as QueryParamCondition, cy as QueryParamOp, cz as RC_MODULE_IDS, cA as RC_MODULE_LABELS, cB as REPLAY_MAX_COMPRESSED_BYTES, cC as REPLAY_MAX_RAW_BYTES, cD as REPLY_TIMES, cE as RULE_FIELDS, cF as RULE_OPERATORS, cG as RcArticleLike, cH as RcCollectionLike, cI as RcSection, cJ as ReplayChunk, cK as ReplayChunkSchema, cL as ReplaySettings, cM as ReplaySettingsSchema, cN as ReplyTime, cO as ResourceCenterAnnouncement, cP as ResourceCenterArticle, cQ as ResourceCenterCollection, cR as ResourceCenterConfig, cS as ResourceCenterModule, cT as ResourceCenterModuleId, cU as ResourceCenterTranslations, cV as RuleField, cW as RuleOperator, cX as SCOUT_AGENT_ID, cY as SELECTOR_KINDS, cZ as SENSITIVE_HEADER_PATTERN, c_ as SENSITIVE_PARAM_PATTERN, c$ as SENSITIVE_PROPERTY_PATTERN, d0 as SERVER_ASSISTED_FIELDS, d1 as SHOW_ME_CLASS, d2 as SHOW_ME_HREF_PREFIX, d3 as SNAPSHOT_ATTRS, d4 as SNAPSHOT_LIMITS, d5 as SOURCEMAP_MAX_FILES_PER_UPLOAD, d6 as SOURCEMAP_MAX_FILE_BYTES, d7 as STATUS_LEVELS, d8 as STEP_TYPES, d9 as SURVEY_QUESTION_TYPES, da as ScoutStreamEvent, db as SdkArticleSummary, dc as SdkArticlesResponse, dd as SdkConfigResponse, de as SdkHowTo, df as SdkHowToStep, dg as SdkHowToSummary, dh as SdkHowTosResponse, di as SelectorOp, dj as SelectorStrategy, dk as SelectorStrategySchema, dl as SelectorSyntaxError, dm as ShowWhen, dn as StackFrame, dp as StartConversationRequest, dq as StartConversationResponse, dr as StartConversationSchema, ds as StatusLevel, dt as StepBranchSchema, du as StepButton, dv as StepSchema, dw as StepTarget, dx as StepType, dy as SurveyAnswer, dz as SurveyAnswers, dA as SurveyConfig, dB as SurveyConfigSchema, dC as SurveyQuestion, dD as SurveyQuestionSchema, dE as SurveyResponseRequest, dF as SurveyResponseRequestSchema, dG as TAG_PROPERTY_LIMITS, dH as TRIGGER_TYPES, dI as TagPropertyConfig, dJ as TagPropertyDefinition, dK as TaggingSdkConfig, dL as TargetSchema, dM as TargetingContext, dN as TextEntry, dO as TextKind, dP as TranslationCoverage, dQ as TranslationReviewMap, dR as TranslationReviewState, dS as TriggerConfig, dT as TriggerSchema, dU as VIDEO_ATTRS, dV as ValidationIssue, dW as VideoEmbed, dX as WCAG_AA_LARGE, dY as WCAG_AA_TEXT, dZ as WS_MAX_MESSAGES_PER_SOCKET, d_ as WS_MAX_MESSAGE_BYTES, d$ as WebSocketMessage, e0 as applyGuideTranslations, e1 as articleTextEntries, e2 as assignGuideVariant, e3 as baseLanguage, e4 as clamp, e5 as cleanLabel, e6 as compare, e7 as compareVersions, e8 as complaintReference, e9 as compoundMatches, ea as contrastIssues, eb as contrastRatio, ec as cssSelectorError, ed as defaultGuideConfig, ee as defaultStep, ef as describeCaptureStep, eg as describeRule, eh as emptyRuleGroup, ei as evaluateRule, ej as evaluateRules, ek as evenWeights, el as experimentBucketRules, em as experimentSalt, en as featureCssSelectors, eo as featureRuleError, ep as featureRuleMatchesClick, eq as feedbackReference, er as fingerprintError, es as firstNameFromTraits, et as fnv1a, eu as foldPathIds, ev as getPath, ew as guideLocales, ex as guidePlatforms, ey as guideTextEntries, ez as guidelyIdFromSelector, eA as hasVideoMedia, eB as isAllowedEmbedSrc, eC as isArticleListed, eD as isChecklistComplete, eE as isFileLink, eF as isMediaContentType, eG as isPlainObject, eH as isQuestionVisible, eI as isRuleGroup, eJ as isSafeMediaUrl, eK as isVideoContentType, eL as localeName, eM as localizeAnnouncement, eN as localizeArticle, eO as localizeGuide, eP as localizeResourceCenter, eQ as matchCssSelector, eR as matchUrlPattern, eS as matchesAudiences, eT as matchesHelpQuery, eU as mediaKind, eV as mediaMaxBytes, eW as needsReview, eX as normalizeErrorMessage, eY as normalizeFrameFile, eZ as normalizeLocale, e_ as normalizeSnapshot, e$ as orderedModules, f0 as pageLabel, f1 as pageName, f2 as pagePattern, f3 as pageRuleError, f4 as pageRuleMatches, f5 as pageRulesMatch, f6 as pageTerms, f7 as parseCssSelector, f8 as parseHexColor, f9 as parseStack, fa as propertyAttributeAllowed, fb as queryConditionRegex, fc as randomId, fd as readableTextOn, fe as relativeLuminance, ff as resolveCaptureSettings, fg as resolveLocale, fh as resourceCenterLocales, fi as resourceCenterSections, fj as resourceCenterTextEntries, fk as rolloutBucket, fl as safeRegExp, fm as sanitizeCustomCss, fn as sanitizeProperties, fo as scopeCustomCss, fp as screenPath, fq as servedArticleAudiences, fr as showMeHref, fs as showMeKeyFromHref, ft as showMeKeys, fu as slugify, fv as snapshotFromSelector, fw as stableStringify, fx as stripOrigin, fy as supportsPlatform, fz as toEmbedUrl, fA as translationCoverage, fB as unreadAnnouncements, fC as validateGuideConfig, fD as variantProblems, fE as variantRanges, fF as visibleAnnouncements, fG as visibleArticleIds, fH as visibleButtons, fI as visitorAudiences, fJ as visitorLocales, fK as withExperimentBucket, fL as withVisibility } from './runtime-DjEAlb_Q.cjs';
|
|
1
|
+
import { R as RuleGroup, a as Rule, G as GuideKind, b as GuideConfigInput } from './runtime-x-0GT7HM.cjs';
|
|
2
|
+
export { A as ADVANCE_ON, c as AGENT_METADATA_MAX_BYTES, d as AGENT_METADATA_MAX_KEYS, e as AGENT_OUTCOMES, f as AGENT_TOOL_CALLS_PER_TURN, g as AGENT_TOOL_STATUSES, h as AGENT_TURNS_PER_BATCH, i as AGENT_TURN_MAX_TEXT, j as AGENT_TURN_ROLES, k as ANNOTATION_COLORS, l as ARTICLE_HREF_PREFIX, m as ARTICLE_VISIBILITIES, n as AgentEventsResponse, o as AgentOutcome, p as AgentToolCallInput, q as AgentToolStatus, r as AgentTurnInput, s as AgentTurnRole, t as AnnotationColor, u as ApiError, v as AppSnapshot, w as Appearance, x as AppearanceSchema, y as ArticleVisibility, z as AttrOp, B as AttrTest, C as AuthoringPick, D as AuthoringPickSchema, E as AuthoringSessionInfo, F as AutocaptureSettings, H as AutocaptureSettingsSchema, I as BUTTON_ACTIONS, J as Breadcrumb, K as BugReportInput, L as BugReportResponse, M as ButtonSchema, N as CAPTURE_PARAM, O as CAPTURE_SCREENSHOT_MAX_BYTES, P as COMMON_LOCALES, Q as COMPLAINT_EVENTS, S as COMPLAINT_FIELD_TYPES, T as COMPLAINT_STATUSES, U as CONTROL_VARIANT_ID, V as CaptureSessionInfo, W as CaptureSettings, X as CaptureStep, Y as CaptureStepInput, Z as CaptureStepSchema, _ as CapturedElement, $ as CapturedElementSchema, a0 as ChecklistConfig, a1 as ChecklistConfigSchema, a2 as ChecklistProgressRequest, a3 as ChecklistProgressRequestSchema, a4 as ChecklistTask, a5 as ChecklistTaskSchema, a6 as ClickFacts, a7 as ComplaintEvent, a8 as ComplaintField, a9 as ComplaintFieldType, aa as ComplaintStatus, ab as ComplexSelector, ac as Compound, ad as ContrastIssue, ae as ConversationLookupResponse, af as ConversationLookupSchema, ag as ConversationMessagesResponse, ah as ConversationRatingSchema, ai as ConversationStatus, aj as DEFAULT_CAPTURE_SETTINGS, ak as DEFAULT_FEATURE_ATTRIBUTE, al as DEFAULT_LOCALE, am as DEFAULT_PLATFORMS, an as DetailException, ao as DetailFrame, ap as DetailMechanism, aq as EMBED_IFRAME_ATTRS, ar as ElementNode, as as ElementSnapshot, at as EmbedProvider, au as ErrorFilterPattern, av as ErrorLevelName, aw as ErrorTrackingSettings, ax as ErrorTrackingSettingsSchema, ay as ExceptionDetail, az as ExceptionProperties, aA as FEATURE_ATTRIBUTE_PATTERN, aB as FEATURE_RULE_LIMITS, aC as FEEDBACK_EVENTS, aD as FEEDBACK_PRIORITIES, aE as FEEDBACK_PRIORITY_LABEL, aF as FEEDBACK_PRIORITY_WEIGHT, aG as FEEDBACK_STATUSES, aH as FEEDBACK_STATUS_LABEL, aI as FILE_LINK_CLASS, aJ as FeatureRule, aK as FeedbackEvent, aL as FeedbackPriority, aM as FeedbackStatus, aN as FeedbackUpdate, aO as FeedbackUpdatesResponse, aP as FileComplaintResponse, aQ as FrequencyConfig, aR as FrequencySchema, aS as GUIDELY_ID_ATTRIBUTE, aT as GUIDE_EXPERIMENT_GOALS, aU as GUIDE_EXPERIMENT_GOAL_LABELS, aV as GUIDE_EXPERIMENT_STATUSES, aW as GUIDE_KINDS, aX as GUIDE_STATUSES, aY as GUIDE_VISIBILITIES, aZ as GuideConfig, a_ as GuideConfigSchema, a$ as GuideExperimentGoal, b0 as GuideExperimentGoalKind, b1 as GuideExperimentStatus, b2 as GuideExperimentVariant, b3 as GuideHoldout, b4 as GuideLocalization, b5 as GuideLocalizationSchema, b6 as GuideSchedule, b7 as GuideScheduleSchema, b8 as GuideStateUpdateSchema, b9 as GuideStatus, ba as GuideStep, bb as GuideStepInput, bc as GuideThrottlingSchema, bd as GuideThrottlingSettings, be as GuideVisibility, bf as HEATMAP_VIEWPORTS, bg as HOWTO_ACTIONS, bh as HOWTO_STEP_KINDS, bi as HeatmapPoint, bj as HeatmapProperties, bk as HeatmapViewport, bl as HowToAction, bm as HowToAnnotation, bn as HowToAnnotationSchema, bo as HowToStepKind, bp as IdentifyRequest, bq as IdentifyRequestSchema, br as IdentifyResponse, bs as LOCALE_PATTERN, bt as LOGGED_IN_AUDIENCE, bu as LocaleSchema, bv as LocalizationSettings, bw as LocalizationSettingsSchema, bx as MAX_ANNOTATIONS, by as MAX_APP_VERSION_LENGTH, bz as MAX_BREADCRUMBS, bA as MAX_BUG_REPORT_LENGTH, bB as MAX_BUG_REPORT_SCREENSHOT_BYTES, bC as MAX_COLLECTION_DEPTH, bD as MAX_COMPLAINT_ANSWER_LENGTH, bE as MAX_COMPLAINT_ATTACHMENT_BYTES, bF as MAX_COMPLAINT_CHOICES, bG as MAX_COMPLAINT_FIELDS, bH as MAX_COMPLAINT_LENGTH, bI as MAX_CUSTOM_CSS, bJ as MAX_DEBUG_IMAGES, bK as MAX_DETAIL_FRAMES, bL as MAX_DETAIL_THREADS, bM as MAX_ERROR_TAGS, bN as MAX_EXCEPTION_CHAIN, bO as MAX_EXCEPTION_DETAIL_BYTES, bP as MAX_EXCEPTION_DETAIL_RAW_BYTES, bQ as MAX_FEEDBACK_COMMENT, bR as MAX_FEEDBACK_DESCRIPTION, bS as MAX_FEEDBACK_NOTE, bT as MAX_FEEDBACK_TITLE, bU as MAX_MESSAGE_LENGTH, bV as MAX_PROPERTY_BYTES, bW as MAX_STACK_FRAMES, bX as MEDIA_FILE_MAX_BYTES, bY as MEDIA_FILE_TYPES, bZ as MEDIA_IMAGE_MAX_BYTES, b_ as MEDIA_IMAGE_TYPES, b$ as MEDIA_MAX_BYTES, c0 as MEDIA_VIDEO_MAX_BYTES, c1 as MEDIA_VIDEO_TYPES, c2 as MESSAGE_AUTHORS, c3 as MediaContentType, c4 as MediaKind, c5 as MessageAuthor, c6 as MessengerCitation, c7 as MessengerComplaint, c8 as MessengerComplaintCategory, c9 as MessengerComplaintOffer, ca as MessengerComplaintsConfig, cb as MessengerConfig, cc as MessengerConversation, cd as MessengerHomeCards, ce as MessengerHowToCitation, cf as MessengerIdeaOffer, cg as MessengerIdeasConfig, ch as MessengerMessage, ci as MessengerPageContent, cj as MessengerPageRequest, ck as MessengerPageRequestSchema, cl as MessengerPageSuggestion, cm as MessengerStatus, cn as MessengerSuggestedGuide, co as MessengerTeammate, cp as NETWORK_PLUGIN, cq as NOISY_DATA_ATTR, cr as NetworkPluginPayload, cs as NetworkRequest, ct as NetworkRequestType, cu as NormalizedPointSchema, cv as NormalizedRect, cw as NormalizedRectSchema, cx as PAGE_RULE_LIMITS, cy as PATH_ID_PATTERN, cz as PDF_BLOCK_CLASS, cA as PDF_MAX_PAGES, cB as PDF_PAGES_CLASS, cC as PLACEMENTS, cD as PLATFORMS, cE as PageContext, cF as PagePattern, cG as PageRule, cH as PerformanceSettings, cI as PerformanceSettingsSchema, cJ as Placement, cK as Platform, cL as PostMessageSchema, cM as ProjectTheme, cN as ProjectThemeSchema, cO as PublicFeedbackComment, cP as PublicFeedbackList, cQ as PublicFeedbackRequest, cR as PublicFeedbackRequestDetail, cS as PublishedGuide, cT as PublishedGuideSchema, cU as QueryParamCondition, cV as QueryParamOp, cW as RC_MODULE_IDS, cX as RC_MODULE_LABELS, cY as RECORDING_LEVELS, cZ as REPLAY_MAX_COMPRESSED_BYTES, c_ as REPLAY_MAX_RAW_BYTES, c$ as REPLY_TIMES, d0 as RULE_FIELDS, d1 as RULE_OPERATORS, d2 as RcArticleLike, d3 as RcCollectionLike, d4 as RcSection, d5 as RecordingLevel, d6 as ReplayChunk, d7 as ReplayChunkSchema, d8 as ReplaySettings, d9 as ReplaySettingsSchema, da as ReplyTime, db as ResourceCenterAnnouncement, dc as ResourceCenterArticle, dd as ResourceCenterCollection, de as ResourceCenterConfig, df as ResourceCenterModule, dg as ResourceCenterModuleId, dh as ResourceCenterTranslations, di as RuleField, dj as RuleOperator, dk as SCOUT_AGENT_ID, dl as SELECTOR_KINDS, dm as SENSITIVE_HEADER_PATTERN, dn as SENSITIVE_PARAM_PATTERN, dp as SENSITIVE_PROPERTY_PATTERN, dq as SERVER_ASSISTED_FIELDS, dr as SHOW_ME_CLASS, ds as SHOW_ME_HREF_PREFIX, dt as SNAPSHOT_ATTRS, du as SNAPSHOT_LIMITS, dv as SOURCEMAP_MAX_FILES_PER_UPLOAD, dw as SOURCEMAP_MAX_FILE_BYTES, dx as STATUS_LEVELS, dy as STEP_TYPES, dz as SURVEY_QUESTION_TYPES, dA as ScoutStreamEvent, dB as SdkArticleSummary, dC as SdkArticlesResponse, dD as SdkConfigResponse, dE as SdkHowTo, dF as SdkHowToStep, dG as SdkHowToSummary, dH as SdkHowTosResponse, dI as SelectorOp, dJ as SelectorStrategy, dK as SelectorStrategySchema, dL as SelectorSyntaxError, dM as ShowWhen, dN as StackFrame, dO as StartConversationRequest, dP as StartConversationResponse, dQ as StartConversationSchema, dR as StatusLevel, dS as StepBranchSchema, dT as StepButton, dU as StepSchema, dV as StepTarget, dW as StepType, dX as SurveyAnswer, dY as SurveyAnswers, dZ as SurveyConfig, d_ as SurveyConfigSchema, d$ as SurveyQuestion, e0 as SurveyQuestionSchema, e1 as SurveyResponseRequest, e2 as SurveyResponseRequestSchema, e3 as TAG_PROPERTY_LIMITS, e4 as TRIGGER_TYPES, e5 as TagPropertyConfig, e6 as TagPropertyDefinition, e7 as TaggingSdkConfig, e8 as TargetSchema, e9 as TargetingContext, ea as TextEntry, eb as TextKind, ec as TranslationCoverage, ed as TranslationReviewMap, ee as TranslationReviewState, ef as TriggerConfig, eg as TriggerSchema, eh as VIDEO_ATTRS, ei as ValidationIssue, ej as VideoEmbed, ek as WCAG_AA_LARGE, el as WCAG_AA_TEXT, em as WS_MAX_MESSAGES_PER_SOCKET, en as WS_MAX_MESSAGE_BYTES, eo as WebSocketMessage, ep as applyGuideTranslations, eq as articleHref, er as articleIdFromHref, es as articleTextEntries, et as assignGuideVariant, eu as baseLanguage, ev as clamp, ew as cleanLabel, ex as compare, ey as compareVersions, ez as complaintReference, eA as compoundMatches, eB as contrastIssues, eC as contrastRatio, eD as cssSelectorError, eE as customFingerprint, eF as defaultGuideConfig, eG as defaultStep, eH as describeCaptureStep, eI as describeRule, eJ as emptyRuleGroup, eK as errorFilterDrops, eL as evaluateRule, eM as evaluateRules, eN as evenWeights, eO as experimentBucketRules, eP as experimentSalt, eQ as featureCssSelectors, eR as featureRuleError, eS as featureRuleMatchesClick, eT as feedbackReference, eU as fingerprintError, eV as firstNameFromTraits, eW as fnv1a, eX as foldPathIds, eY as getPath, eZ as guideLocales, e_ as guidePlatforms, e$ as guideTextEntries, f0 as guidelyIdFromSelector, f1 as hasVideoMedia, f2 as isAllowedEmbedSrc, f3 as isArticleListed, f4 as isChecklistComplete, f5 as isFileLink, f6 as isMediaContentType, f7 as isPlainObject, f8 as isQuestionVisible, f9 as isRuleGroup, fa as isSafeMediaUrl, fb as isVideoContentType, fc as isVideoFileUrl, fd as localeName, fe as localizeAnnouncement, ff as localizeArticle, fg as localizeGuide, fh as localizeResourceCenter, fi as matchCssSelector, fj as matchUrlPattern, fk as matchesAudiences, fl as matchesHelpQuery, fm as mediaKind, fn as mediaMaxBytes, fo as needsReview, fp as normalizeAppVersion, fq as normalizeErrorMessage, fr as normalizeFrameFile, fs as normalizeLocale, ft as normalizeSnapshot, fu as normalizeTags, fv as orderedModules, fw as pageLabel, fx as pageName, fy as pagePattern, fz as pageRuleError, fA as pageRuleMatches, fB as pageRulesMatch, fC as pageTerms, fD as parseCssSelector, fE as parseHexColor, fF as parseStack, fG as propertyAttributeAllowed, fH as queryConditionRegex, fI as randomId, fJ as reactNativeBundleUrl, fK as readableTextOn, fL as recordingLevel, fM as relativeLuminance, fN as resolveCaptureSettings, fO as resolveLocale, fP as resourceCenterLocales, fQ as resourceCenterSections, fR as resourceCenterTextEntries, fS as rolloutBucket, fT as safeRegExp, fU as sanitizeCustomCss, fV as sanitizeProperties, fW as scopeCustomCss, fX as screenPath, fY as servedArticleAudiences, fZ as showMeHref, f_ as showMeKeyFromHref, f$ as showMeKeys, g0 as slugify, g1 as snapshotFromSelector, g2 as stableStringify, g3 as stepVideo, g4 as stripOrigin, g5 as supportsPlatform, g6 as toEmbedUrl, g7 as translationCoverage, g8 as trimExceptionDetail, g9 as unreadAnnouncements, ga as validateGuideConfig, gb as variantProblems, gc as variantRanges, gd as videoThumbnailUrl, ge as visibleAnnouncements, gf as visibleArticleIds, gg as visibleButtons, gh as visitorAudiences, gi as visitorLocales, gj as withExperimentBucket, gk as withRecordingLevel, gl as withVisibility } from './runtime-x-0GT7HM.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const RuleSchema: z.ZodType<Rule>;
|
|
6
6
|
declare const RuleGroupSchema: z.ZodType<RuleGroup>;
|
|
7
7
|
|
|
8
|
-
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", "page_leave", "click", "rage_click", "exception", "heatmap", "experiment_viewed", "app_install", "app_update", "app_open", "app_background"];
|
|
8
|
+
declare const EVENT_NAMES: readonly ["guide_viewed", "guide_started", "step_viewed", "step_completed", "guide_completed", "guide_skipped", "guide_dismissed", "guide_abandoned", "guide_video_clicked", "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", "page_leave", "click", "rage_click", "exception", "heatmap", "experiment_viewed", "app_install", "app_update", "app_open", "app_background"];
|
|
9
9
|
type EventName = (typeof EVENT_NAMES)[number];
|
|
10
10
|
/** Events the SDK records on its own (page analytics, click autocapture, error tracking). */
|
|
11
11
|
declare const AUTOCAPTURE_EVENTS: readonly ["page_view", "page_leave", "click", "rage_click", "exception", "heatmap", "app_install", "app_update", "app_open", "app_background"];
|
|
@@ -15,8 +15,42 @@ declare const GUIDE_LIFECYCLE_EVENTS: readonly ["guide_viewed", "guide_started",
|
|
|
15
15
|
/** Event as produced by the SDK and accepted by POST /api/v1/sdk/events */
|
|
16
16
|
declare const SdkEventSchema: z.ZodObject<{
|
|
17
17
|
eventId: z.ZodString;
|
|
18
|
-
name: z.ZodEnum<
|
|
19
|
-
|
|
18
|
+
name: z.ZodEnum<{
|
|
19
|
+
custom: "custom";
|
|
20
|
+
click: "click";
|
|
21
|
+
guide_completed: "guide_completed";
|
|
22
|
+
exception: "exception";
|
|
23
|
+
guide_viewed: "guide_viewed";
|
|
24
|
+
guide_started: "guide_started";
|
|
25
|
+
step_viewed: "step_viewed";
|
|
26
|
+
step_completed: "step_completed";
|
|
27
|
+
guide_skipped: "guide_skipped";
|
|
28
|
+
guide_dismissed: "guide_dismissed";
|
|
29
|
+
guide_abandoned: "guide_abandoned";
|
|
30
|
+
guide_video_clicked: "guide_video_clicked";
|
|
31
|
+
checklist_task_completed: "checklist_task_completed";
|
|
32
|
+
checklist_completed: "checklist_completed";
|
|
33
|
+
checklist_dismissed: "checklist_dismissed";
|
|
34
|
+
survey_displayed: "survey_displayed";
|
|
35
|
+
survey_submitted: "survey_submitted";
|
|
36
|
+
survey_dismissed: "survey_dismissed";
|
|
37
|
+
resource_center_opened: "resource_center_opened";
|
|
38
|
+
article_viewed: "article_viewed";
|
|
39
|
+
messenger_opened: "messenger_opened";
|
|
40
|
+
conversation_started: "conversation_started";
|
|
41
|
+
conversation_handed_off: "conversation_handed_off";
|
|
42
|
+
scout_answered: "scout_answered";
|
|
43
|
+
page_view: "page_view";
|
|
44
|
+
identify: "identify";
|
|
45
|
+
page_leave: "page_leave";
|
|
46
|
+
rage_click: "rage_click";
|
|
47
|
+
heatmap: "heatmap";
|
|
48
|
+
experiment_viewed: "experiment_viewed";
|
|
49
|
+
app_install: "app_install";
|
|
50
|
+
app_update: "app_update";
|
|
51
|
+
app_open: "app_open";
|
|
52
|
+
app_background: "app_background";
|
|
53
|
+
}>;
|
|
20
54
|
customName: z.ZodOptional<z.ZodString>;
|
|
21
55
|
occurredAt: z.ZodString;
|
|
22
56
|
anonymousId: z.ZodString;
|
|
@@ -28,44 +62,50 @@ declare const SdkEventSchema: z.ZodObject<{
|
|
|
28
62
|
stepId: z.ZodOptional<z.ZodString>;
|
|
29
63
|
stepIndex: z.ZodOptional<z.ZodNumber>;
|
|
30
64
|
url: z.ZodOptional<z.ZodString>;
|
|
65
|
+
appVersion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
66
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
name: "custom" | "click" | "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" | "page_leave" | "rage_click" | "exception" | "heatmap" | "experiment_viewed" | "app_install" | "app_update" | "app_open" | "app_background";
|
|
35
|
-
occurredAt: string;
|
|
36
|
-
anonymousId: string;
|
|
37
|
-
url?: string | undefined;
|
|
38
|
-
customName?: string | undefined;
|
|
39
|
-
userId?: string | null | undefined;
|
|
40
|
-
accountId?: string | null | undefined;
|
|
41
|
-
sessionId?: string | undefined;
|
|
42
|
-
guideId?: string | undefined;
|
|
43
|
-
guideVersion?: number | undefined;
|
|
44
|
-
stepId?: string | undefined;
|
|
45
|
-
stepIndex?: number | undefined;
|
|
46
|
-
properties?: Record<string, unknown> | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
eventId: string;
|
|
49
|
-
name: "custom" | "click" | "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" | "page_leave" | "rage_click" | "exception" | "heatmap" | "experiment_viewed" | "app_install" | "app_update" | "app_open" | "app_background";
|
|
50
|
-
occurredAt: string;
|
|
51
|
-
anonymousId: string;
|
|
52
|
-
url?: string | undefined;
|
|
53
|
-
customName?: string | undefined;
|
|
54
|
-
userId?: string | null | undefined;
|
|
55
|
-
accountId?: string | null | undefined;
|
|
56
|
-
sessionId?: string | undefined;
|
|
57
|
-
guideId?: string | undefined;
|
|
58
|
-
guideVersion?: number | undefined;
|
|
59
|
-
stepId?: string | undefined;
|
|
60
|
-
stepIndex?: number | undefined;
|
|
61
|
-
properties?: Record<string, unknown> | undefined;
|
|
62
|
-
}>;
|
|
67
|
+
detail: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>;
|
|
68
|
+
}, z.core.$strip>;
|
|
63
69
|
type SdkEvent = z.infer<typeof SdkEventSchema>;
|
|
64
70
|
declare const EventBatchSchema: z.ZodObject<{
|
|
65
71
|
events: z.ZodArray<z.ZodObject<{
|
|
66
72
|
eventId: z.ZodString;
|
|
67
|
-
name: z.ZodEnum<
|
|
68
|
-
|
|
73
|
+
name: z.ZodEnum<{
|
|
74
|
+
custom: "custom";
|
|
75
|
+
click: "click";
|
|
76
|
+
guide_completed: "guide_completed";
|
|
77
|
+
exception: "exception";
|
|
78
|
+
guide_viewed: "guide_viewed";
|
|
79
|
+
guide_started: "guide_started";
|
|
80
|
+
step_viewed: "step_viewed";
|
|
81
|
+
step_completed: "step_completed";
|
|
82
|
+
guide_skipped: "guide_skipped";
|
|
83
|
+
guide_dismissed: "guide_dismissed";
|
|
84
|
+
guide_abandoned: "guide_abandoned";
|
|
85
|
+
guide_video_clicked: "guide_video_clicked";
|
|
86
|
+
checklist_task_completed: "checklist_task_completed";
|
|
87
|
+
checklist_completed: "checklist_completed";
|
|
88
|
+
checklist_dismissed: "checklist_dismissed";
|
|
89
|
+
survey_displayed: "survey_displayed";
|
|
90
|
+
survey_submitted: "survey_submitted";
|
|
91
|
+
survey_dismissed: "survey_dismissed";
|
|
92
|
+
resource_center_opened: "resource_center_opened";
|
|
93
|
+
article_viewed: "article_viewed";
|
|
94
|
+
messenger_opened: "messenger_opened";
|
|
95
|
+
conversation_started: "conversation_started";
|
|
96
|
+
conversation_handed_off: "conversation_handed_off";
|
|
97
|
+
scout_answered: "scout_answered";
|
|
98
|
+
page_view: "page_view";
|
|
99
|
+
identify: "identify";
|
|
100
|
+
page_leave: "page_leave";
|
|
101
|
+
rage_click: "rage_click";
|
|
102
|
+
heatmap: "heatmap";
|
|
103
|
+
experiment_viewed: "experiment_viewed";
|
|
104
|
+
app_install: "app_install";
|
|
105
|
+
app_update: "app_update";
|
|
106
|
+
app_open: "app_open";
|
|
107
|
+
app_background: "app_background";
|
|
108
|
+
}>;
|
|
69
109
|
customName: z.ZodOptional<z.ZodString>;
|
|
70
110
|
occurredAt: z.ZodString;
|
|
71
111
|
anonymousId: z.ZodString;
|
|
@@ -77,94 +117,16 @@ declare const EventBatchSchema: z.ZodObject<{
|
|
|
77
117
|
stepId: z.ZodOptional<z.ZodString>;
|
|
78
118
|
stepIndex: z.ZodOptional<z.ZodNumber>;
|
|
79
119
|
url: z.ZodOptional<z.ZodString>;
|
|
120
|
+
appVersion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
80
121
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
name: "custom" | "click" | "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" | "page_leave" | "rage_click" | "exception" | "heatmap" | "experiment_viewed" | "app_install" | "app_update" | "app_open" | "app_background";
|
|
84
|
-
occurredAt: string;
|
|
85
|
-
anonymousId: string;
|
|
86
|
-
url?: string | undefined;
|
|
87
|
-
customName?: string | undefined;
|
|
88
|
-
userId?: string | null | undefined;
|
|
89
|
-
accountId?: string | null | undefined;
|
|
90
|
-
sessionId?: string | undefined;
|
|
91
|
-
guideId?: string | undefined;
|
|
92
|
-
guideVersion?: number | undefined;
|
|
93
|
-
stepId?: string | undefined;
|
|
94
|
-
stepIndex?: number | undefined;
|
|
95
|
-
properties?: Record<string, unknown> | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
eventId: string;
|
|
98
|
-
name: "custom" | "click" | "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" | "page_leave" | "rage_click" | "exception" | "heatmap" | "experiment_viewed" | "app_install" | "app_update" | "app_open" | "app_background";
|
|
99
|
-
occurredAt: string;
|
|
100
|
-
anonymousId: string;
|
|
101
|
-
url?: string | undefined;
|
|
102
|
-
customName?: string | undefined;
|
|
103
|
-
userId?: string | null | undefined;
|
|
104
|
-
accountId?: string | null | undefined;
|
|
105
|
-
sessionId?: string | undefined;
|
|
106
|
-
guideId?: string | undefined;
|
|
107
|
-
guideVersion?: number | undefined;
|
|
108
|
-
stepId?: string | undefined;
|
|
109
|
-
stepIndex?: number | undefined;
|
|
110
|
-
properties?: Record<string, unknown> | undefined;
|
|
111
|
-
}>, "many">;
|
|
122
|
+
detail: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
112
124
|
sentAt: z.ZodOptional<z.ZodString>;
|
|
113
125
|
sdk: z.ZodOptional<z.ZodObject<{
|
|
114
126
|
name: z.ZodString;
|
|
115
127
|
version: z.ZodString;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
version: string;
|
|
119
|
-
}, {
|
|
120
|
-
name: string;
|
|
121
|
-
version: string;
|
|
122
|
-
}>>;
|
|
123
|
-
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
events: {
|
|
125
|
-
eventId: string;
|
|
126
|
-
name: "custom" | "click" | "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" | "page_leave" | "rage_click" | "exception" | "heatmap" | "experiment_viewed" | "app_install" | "app_update" | "app_open" | "app_background";
|
|
127
|
-
occurredAt: string;
|
|
128
|
-
anonymousId: string;
|
|
129
|
-
url?: string | undefined;
|
|
130
|
-
customName?: string | undefined;
|
|
131
|
-
userId?: string | null | undefined;
|
|
132
|
-
accountId?: string | null | undefined;
|
|
133
|
-
sessionId?: string | undefined;
|
|
134
|
-
guideId?: string | undefined;
|
|
135
|
-
guideVersion?: number | undefined;
|
|
136
|
-
stepId?: string | undefined;
|
|
137
|
-
stepIndex?: number | undefined;
|
|
138
|
-
properties?: Record<string, unknown> | undefined;
|
|
139
|
-
}[];
|
|
140
|
-
sentAt?: string | undefined;
|
|
141
|
-
sdk?: {
|
|
142
|
-
name: string;
|
|
143
|
-
version: string;
|
|
144
|
-
} | undefined;
|
|
145
|
-
}, {
|
|
146
|
-
events: {
|
|
147
|
-
eventId: string;
|
|
148
|
-
name: "custom" | "click" | "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" | "page_leave" | "rage_click" | "exception" | "heatmap" | "experiment_viewed" | "app_install" | "app_update" | "app_open" | "app_background";
|
|
149
|
-
occurredAt: string;
|
|
150
|
-
anonymousId: string;
|
|
151
|
-
url?: string | undefined;
|
|
152
|
-
customName?: string | undefined;
|
|
153
|
-
userId?: string | null | undefined;
|
|
154
|
-
accountId?: string | null | undefined;
|
|
155
|
-
sessionId?: string | undefined;
|
|
156
|
-
guideId?: string | undefined;
|
|
157
|
-
guideVersion?: number | undefined;
|
|
158
|
-
stepId?: string | undefined;
|
|
159
|
-
stepIndex?: number | undefined;
|
|
160
|
-
properties?: Record<string, unknown> | undefined;
|
|
161
|
-
}[];
|
|
162
|
-
sentAt?: string | undefined;
|
|
163
|
-
sdk?: {
|
|
164
|
-
name: string;
|
|
165
|
-
version: string;
|
|
166
|
-
} | undefined;
|
|
167
|
-
}>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
168
130
|
type EventBatch = z.infer<typeof EventBatchSchema>;
|
|
169
131
|
|
|
170
132
|
declare const FileComplaintSchema: z.ZodObject<{
|
|
@@ -172,618 +134,268 @@ declare const FileComplaintSchema: z.ZodObject<{
|
|
|
172
134
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
173
135
|
categoryId: z.ZodString;
|
|
174
136
|
description: z.ZodString;
|
|
175
|
-
/** Answers to the category's extra questions, by field id. */
|
|
176
137
|
answers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
177
|
-
/** Required from visitors the app hasn't identified. */
|
|
178
138
|
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
179
139
|
pageUrl: z.ZodOptional<z.ZodString>;
|
|
180
|
-
/** File it in this conversation (send its token in `X-Guidely-Conversation`); otherwise a new one is started. */
|
|
181
140
|
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
|
-
/** One screenshot, base64-encoded (png, jpeg, webp or gif). */
|
|
183
141
|
attachment: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
184
142
|
fileName: z.ZodString;
|
|
185
143
|
data: z.ZodString;
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
data: string;
|
|
189
|
-
}, {
|
|
190
|
-
fileName: string;
|
|
191
|
-
data: string;
|
|
192
|
-
}>>>;
|
|
193
|
-
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
description: string;
|
|
195
|
-
anonymousId: string;
|
|
196
|
-
answers: Record<string, string>;
|
|
197
|
-
categoryId: string;
|
|
198
|
-
email?: string | null | undefined;
|
|
199
|
-
userId?: string | null | undefined;
|
|
200
|
-
pageUrl?: string | undefined;
|
|
201
|
-
conversationId?: string | null | undefined;
|
|
202
|
-
attachment?: {
|
|
203
|
-
fileName: string;
|
|
204
|
-
data: string;
|
|
205
|
-
} | null | undefined;
|
|
206
|
-
}, {
|
|
207
|
-
description: string;
|
|
208
|
-
anonymousId: string;
|
|
209
|
-
categoryId: string;
|
|
210
|
-
email?: string | null | undefined;
|
|
211
|
-
userId?: string | null | undefined;
|
|
212
|
-
pageUrl?: string | undefined;
|
|
213
|
-
answers?: Record<string, string> | undefined;
|
|
214
|
-
conversationId?: string | null | undefined;
|
|
215
|
-
attachment?: {
|
|
216
|
-
fileName: string;
|
|
217
|
-
data: string;
|
|
218
|
-
} | null | undefined;
|
|
219
|
-
}>;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
220
146
|
type FileComplaintRequest = z.infer<typeof FileComplaintSchema>;
|
|
221
147
|
|
|
148
|
+
/** Body of `POST /v1/sdk/bug-reports` (Guidely's own SDKs; Sentry SDKs use the envelope endpoint). */
|
|
149
|
+
declare const BugReportSchema: z.ZodObject<{
|
|
150
|
+
anonymousId: z.ZodString;
|
|
151
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
152
|
+
sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
|
+
message: z.ZodString;
|
|
154
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
associatedEventId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
157
|
+
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
158
|
+
appVersion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
159
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
160
|
+
widget: "widget";
|
|
161
|
+
api: "api";
|
|
162
|
+
}>>;
|
|
163
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
164
|
+
sdk: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
version: z.ZodString;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
screenshot: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
169
|
+
fileName: z.ZodString;
|
|
170
|
+
data: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
type BugReportRequest = z.infer<typeof BugReportSchema>;
|
|
174
|
+
|
|
222
175
|
/** A tool call: name, status and latency only. Anything else (arguments, results) is dropped, never stored. */
|
|
223
176
|
declare const AgentToolCallSchema: z.ZodObject<{
|
|
224
177
|
name: z.ZodString;
|
|
225
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
178
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
error: "error";
|
|
180
|
+
ok: "ok";
|
|
181
|
+
}>>;
|
|
226
182
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
227
|
-
},
|
|
228
|
-
name: string;
|
|
229
|
-
status?: "error" | "ok" | undefined;
|
|
230
|
-
latencyMs?: number | undefined;
|
|
231
|
-
}, {
|
|
232
|
-
name: string;
|
|
233
|
-
status?: "error" | "ok" | undefined;
|
|
234
|
-
latencyMs?: number | undefined;
|
|
235
|
-
}>;
|
|
183
|
+
}, z.core.$strip>;
|
|
236
184
|
/**
|
|
237
185
|
* Flat metadata: string, number, boolean or null values (others, such as nested objects, are dropped).
|
|
238
186
|
* Keys starting with `$` (reserved) and keys that look sensitive (password, token, card…) are dropped;
|
|
239
187
|
* strings are cut to 500 characters, and keys past the count or size limit are left out.
|
|
240
188
|
*/
|
|
241
|
-
declare const AgentMetadataSchema: z.
|
|
189
|
+
declare const AgentMetadataSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodTransform<Record<string, string | number | boolean | null>, Record<string, unknown>>>;
|
|
242
190
|
declare const AgentTurnInputSchema: z.ZodObject<{
|
|
243
191
|
type: z.ZodOptional<z.ZodLiteral<"agent.conversation">>;
|
|
244
192
|
conversationId: z.ZodString;
|
|
245
|
-
agentId: z.
|
|
193
|
+
agentId: z.ZodString;
|
|
246
194
|
agentName: z.ZodOptional<z.ZodString>;
|
|
247
195
|
turnId: z.ZodOptional<z.ZodString>;
|
|
248
|
-
role: z.ZodEnum<
|
|
196
|
+
role: z.ZodEnum<{
|
|
197
|
+
user: "user";
|
|
198
|
+
system: "system";
|
|
199
|
+
assistant: "assistant";
|
|
200
|
+
tool: "tool";
|
|
201
|
+
}>;
|
|
249
202
|
text: z.ZodDefault<z.ZodString>;
|
|
250
203
|
toolCalls: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
251
204
|
name: z.ZodString;
|
|
252
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
205
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
206
|
+
error: "error";
|
|
207
|
+
ok: "ok";
|
|
208
|
+
}>>;
|
|
253
209
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
254
|
-
},
|
|
255
|
-
name: string;
|
|
256
|
-
status?: "error" | "ok" | undefined;
|
|
257
|
-
latencyMs?: number | undefined;
|
|
258
|
-
}, {
|
|
259
|
-
name: string;
|
|
260
|
-
status?: "error" | "ok" | undefined;
|
|
261
|
-
latencyMs?: number | undefined;
|
|
262
|
-
}>, "many">>;
|
|
210
|
+
}, z.core.$strip>>>;
|
|
263
211
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
264
|
-
outcome: z.ZodOptional<z.ZodEnum<
|
|
212
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
success: "success";
|
|
214
|
+
failure: "failure";
|
|
215
|
+
escalated: "escalated";
|
|
216
|
+
abandoned: "abandoned";
|
|
217
|
+
}>>;
|
|
265
218
|
taskSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
266
219
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
267
|
-
userId: z.
|
|
268
|
-
anonymousId: z.
|
|
269
|
-
accountId: z.
|
|
270
|
-
sessionId: z.
|
|
271
|
-
metadata: z.ZodDefault<z.
|
|
272
|
-
},
|
|
273
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
274
|
-
text: string;
|
|
275
|
-
anonymousId: string | null;
|
|
276
|
-
userId: string | null;
|
|
277
|
-
accountId: string | null;
|
|
278
|
-
sessionId: string | null;
|
|
279
|
-
conversationId: string;
|
|
280
|
-
agentId: string;
|
|
281
|
-
toolCalls: {
|
|
282
|
-
name: string;
|
|
283
|
-
status?: "error" | "ok" | undefined;
|
|
284
|
-
latencyMs?: number | undefined;
|
|
285
|
-
}[];
|
|
286
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
287
|
-
type?: "agent.conversation" | undefined;
|
|
288
|
-
occurredAt?: string | undefined;
|
|
289
|
-
latencyMs?: number | undefined;
|
|
290
|
-
agentName?: string | undefined;
|
|
291
|
-
turnId?: string | undefined;
|
|
292
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
293
|
-
taskSuccess?: boolean | undefined;
|
|
294
|
-
}, {
|
|
295
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
296
|
-
conversationId: string;
|
|
297
|
-
agentId: string;
|
|
298
|
-
type?: "agent.conversation" | undefined;
|
|
299
|
-
text?: string | undefined;
|
|
300
|
-
occurredAt?: string | undefined;
|
|
301
|
-
anonymousId?: string | null | undefined;
|
|
302
|
-
userId?: string | null | undefined;
|
|
303
|
-
accountId?: string | null | undefined;
|
|
304
|
-
sessionId?: string | null | undefined;
|
|
305
|
-
latencyMs?: number | undefined;
|
|
306
|
-
agentName?: string | undefined;
|
|
307
|
-
turnId?: string | undefined;
|
|
308
|
-
toolCalls?: {
|
|
309
|
-
name: string;
|
|
310
|
-
status?: "error" | "ok" | undefined;
|
|
311
|
-
latencyMs?: number | undefined;
|
|
312
|
-
}[] | undefined;
|
|
313
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
314
|
-
taskSuccess?: boolean | undefined;
|
|
315
|
-
metadata?: Record<string, unknown> | undefined;
|
|
316
|
-
}>;
|
|
220
|
+
userId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
221
|
+
anonymousId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
222
|
+
accountId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
223
|
+
sessionId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
224
|
+
metadata: z.ZodDefault<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodTransform<Record<string, string | number | boolean | null>, Record<string, unknown>>>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
317
226
|
type AgentTurn = z.output<typeof AgentTurnInputSchema>;
|
|
318
227
|
/** Body of `POST /api/v1/sdk/agent-events` (browser SDK, public key). */
|
|
319
228
|
declare const SdkAgentEventsSchema: z.ZodObject<{
|
|
320
229
|
turns: z.ZodArray<z.ZodObject<{
|
|
321
230
|
type: z.ZodOptional<z.ZodLiteral<"agent.conversation">>;
|
|
322
231
|
conversationId: z.ZodString;
|
|
323
|
-
agentId: z.
|
|
232
|
+
agentId: z.ZodString;
|
|
324
233
|
agentName: z.ZodOptional<z.ZodString>;
|
|
325
234
|
turnId: z.ZodOptional<z.ZodString>;
|
|
326
|
-
role: z.ZodEnum<
|
|
235
|
+
role: z.ZodEnum<{
|
|
236
|
+
user: "user";
|
|
237
|
+
system: "system";
|
|
238
|
+
assistant: "assistant";
|
|
239
|
+
tool: "tool";
|
|
240
|
+
}>;
|
|
327
241
|
text: z.ZodDefault<z.ZodString>;
|
|
328
242
|
toolCalls: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
329
243
|
name: z.ZodString;
|
|
330
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
244
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
error: "error";
|
|
246
|
+
ok: "ok";
|
|
247
|
+
}>>;
|
|
331
248
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
332
|
-
},
|
|
333
|
-
name: string;
|
|
334
|
-
status?: "error" | "ok" | undefined;
|
|
335
|
-
latencyMs?: number | undefined;
|
|
336
|
-
}, {
|
|
337
|
-
name: string;
|
|
338
|
-
status?: "error" | "ok" | undefined;
|
|
339
|
-
latencyMs?: number | undefined;
|
|
340
|
-
}>, "many">>;
|
|
249
|
+
}, z.core.$strip>>>;
|
|
341
250
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
342
|
-
outcome: z.ZodOptional<z.ZodEnum<
|
|
251
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
success: "success";
|
|
253
|
+
failure: "failure";
|
|
254
|
+
escalated: "escalated";
|
|
255
|
+
abandoned: "abandoned";
|
|
256
|
+
}>>;
|
|
343
257
|
taskSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
344
258
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
345
|
-
userId: z.
|
|
346
|
-
anonymousId: z.
|
|
347
|
-
accountId: z.
|
|
348
|
-
sessionId: z.
|
|
349
|
-
metadata: z.ZodDefault<z.
|
|
350
|
-
},
|
|
351
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
352
|
-
text: string;
|
|
353
|
-
anonymousId: string | null;
|
|
354
|
-
userId: string | null;
|
|
355
|
-
accountId: string | null;
|
|
356
|
-
sessionId: string | null;
|
|
357
|
-
conversationId: string;
|
|
358
|
-
agentId: string;
|
|
359
|
-
toolCalls: {
|
|
360
|
-
name: string;
|
|
361
|
-
status?: "error" | "ok" | undefined;
|
|
362
|
-
latencyMs?: number | undefined;
|
|
363
|
-
}[];
|
|
364
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
365
|
-
type?: "agent.conversation" | undefined;
|
|
366
|
-
occurredAt?: string | undefined;
|
|
367
|
-
latencyMs?: number | undefined;
|
|
368
|
-
agentName?: string | undefined;
|
|
369
|
-
turnId?: string | undefined;
|
|
370
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
371
|
-
taskSuccess?: boolean | undefined;
|
|
372
|
-
}, {
|
|
373
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
374
|
-
conversationId: string;
|
|
375
|
-
agentId: string;
|
|
376
|
-
type?: "agent.conversation" | undefined;
|
|
377
|
-
text?: string | undefined;
|
|
378
|
-
occurredAt?: string | undefined;
|
|
379
|
-
anonymousId?: string | null | undefined;
|
|
380
|
-
userId?: string | null | undefined;
|
|
381
|
-
accountId?: string | null | undefined;
|
|
382
|
-
sessionId?: string | null | undefined;
|
|
383
|
-
latencyMs?: number | undefined;
|
|
384
|
-
agentName?: string | undefined;
|
|
385
|
-
turnId?: string | undefined;
|
|
386
|
-
toolCalls?: {
|
|
387
|
-
name: string;
|
|
388
|
-
status?: "error" | "ok" | undefined;
|
|
389
|
-
latencyMs?: number | undefined;
|
|
390
|
-
}[] | undefined;
|
|
391
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
392
|
-
taskSuccess?: boolean | undefined;
|
|
393
|
-
metadata?: Record<string, unknown> | undefined;
|
|
394
|
-
}>, "many">;
|
|
259
|
+
userId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
260
|
+
anonymousId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
261
|
+
accountId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
262
|
+
sessionId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
263
|
+
metadata: z.ZodDefault<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodTransform<Record<string, string | number | boolean | null>, Record<string, unknown>>>>;
|
|
264
|
+
}, z.core.$strip>>;
|
|
395
265
|
sdk: z.ZodOptional<z.ZodObject<{
|
|
396
266
|
name: z.ZodString;
|
|
397
267
|
version: z.ZodString;
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
version: string;
|
|
401
|
-
}, {
|
|
402
|
-
name: string;
|
|
403
|
-
version: string;
|
|
404
|
-
}>>;
|
|
405
|
-
}, "strip", z.ZodTypeAny, {
|
|
406
|
-
turns: {
|
|
407
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
408
|
-
text: string;
|
|
409
|
-
anonymousId: string | null;
|
|
410
|
-
userId: string | null;
|
|
411
|
-
accountId: string | null;
|
|
412
|
-
sessionId: string | null;
|
|
413
|
-
conversationId: string;
|
|
414
|
-
agentId: string;
|
|
415
|
-
toolCalls: {
|
|
416
|
-
name: string;
|
|
417
|
-
status?: "error" | "ok" | undefined;
|
|
418
|
-
latencyMs?: number | undefined;
|
|
419
|
-
}[];
|
|
420
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
421
|
-
type?: "agent.conversation" | undefined;
|
|
422
|
-
occurredAt?: string | undefined;
|
|
423
|
-
latencyMs?: number | undefined;
|
|
424
|
-
agentName?: string | undefined;
|
|
425
|
-
turnId?: string | undefined;
|
|
426
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
427
|
-
taskSuccess?: boolean | undefined;
|
|
428
|
-
}[];
|
|
429
|
-
sdk?: {
|
|
430
|
-
name: string;
|
|
431
|
-
version: string;
|
|
432
|
-
} | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
turns: {
|
|
435
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
436
|
-
conversationId: string;
|
|
437
|
-
agentId: string;
|
|
438
|
-
type?: "agent.conversation" | undefined;
|
|
439
|
-
text?: string | undefined;
|
|
440
|
-
occurredAt?: string | undefined;
|
|
441
|
-
anonymousId?: string | null | undefined;
|
|
442
|
-
userId?: string | null | undefined;
|
|
443
|
-
accountId?: string | null | undefined;
|
|
444
|
-
sessionId?: string | null | undefined;
|
|
445
|
-
latencyMs?: number | undefined;
|
|
446
|
-
agentName?: string | undefined;
|
|
447
|
-
turnId?: string | undefined;
|
|
448
|
-
toolCalls?: {
|
|
449
|
-
name: string;
|
|
450
|
-
status?: "error" | "ok" | undefined;
|
|
451
|
-
latencyMs?: number | undefined;
|
|
452
|
-
}[] | undefined;
|
|
453
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
454
|
-
taskSuccess?: boolean | undefined;
|
|
455
|
-
metadata?: Record<string, unknown> | undefined;
|
|
456
|
-
}[];
|
|
457
|
-
sdk?: {
|
|
458
|
-
name: string;
|
|
459
|
-
version: string;
|
|
460
|
-
} | undefined;
|
|
461
|
-
}>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
}, z.core.$strip>;
|
|
462
270
|
type SdkAgentEvents = z.output<typeof SdkAgentEventsSchema>;
|
|
463
271
|
/**
|
|
464
272
|
* Body of `POST /api/v1/agent-events` (server to server, secret key): `{ turns: [...], environment? }`,
|
|
465
273
|
* a bare array of turns, or a single turn (with `environment` beside its fields).
|
|
466
274
|
*/
|
|
467
|
-
declare const AgentEventsRequestSchema: z.
|
|
275
|
+
declare const AgentEventsRequestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
468
276
|
turns: z.ZodArray<z.ZodObject<{
|
|
469
277
|
type: z.ZodOptional<z.ZodLiteral<"agent.conversation">>;
|
|
470
278
|
conversationId: z.ZodString;
|
|
471
|
-
agentId: z.
|
|
279
|
+
agentId: z.ZodString;
|
|
472
280
|
agentName: z.ZodOptional<z.ZodString>;
|
|
473
281
|
turnId: z.ZodOptional<z.ZodString>;
|
|
474
|
-
role: z.ZodEnum<
|
|
282
|
+
role: z.ZodEnum<{
|
|
283
|
+
user: "user";
|
|
284
|
+
system: "system";
|
|
285
|
+
assistant: "assistant";
|
|
286
|
+
tool: "tool";
|
|
287
|
+
}>;
|
|
475
288
|
text: z.ZodDefault<z.ZodString>;
|
|
476
289
|
toolCalls: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
477
290
|
name: z.ZodString;
|
|
478
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
291
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
error: "error";
|
|
293
|
+
ok: "ok";
|
|
294
|
+
}>>;
|
|
479
295
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
480
|
-
},
|
|
481
|
-
name: string;
|
|
482
|
-
status?: "error" | "ok" | undefined;
|
|
483
|
-
latencyMs?: number | undefined;
|
|
484
|
-
}, {
|
|
485
|
-
name: string;
|
|
486
|
-
status?: "error" | "ok" | undefined;
|
|
487
|
-
latencyMs?: number | undefined;
|
|
488
|
-
}>, "many">>;
|
|
296
|
+
}, z.core.$strip>>>;
|
|
489
297
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
490
|
-
outcome: z.ZodOptional<z.ZodEnum<
|
|
298
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
299
|
+
success: "success";
|
|
300
|
+
failure: "failure";
|
|
301
|
+
escalated: "escalated";
|
|
302
|
+
abandoned: "abandoned";
|
|
303
|
+
}>>;
|
|
491
304
|
taskSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
492
305
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
493
|
-
userId: z.
|
|
494
|
-
anonymousId: z.
|
|
495
|
-
accountId: z.
|
|
496
|
-
sessionId: z.
|
|
497
|
-
metadata: z.ZodDefault<z.
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
text: string;
|
|
501
|
-
anonymousId: string | null;
|
|
502
|
-
userId: string | null;
|
|
503
|
-
accountId: string | null;
|
|
504
|
-
sessionId: string | null;
|
|
505
|
-
conversationId: string;
|
|
506
|
-
agentId: string;
|
|
507
|
-
toolCalls: {
|
|
508
|
-
name: string;
|
|
509
|
-
status?: "error" | "ok" | undefined;
|
|
510
|
-
latencyMs?: number | undefined;
|
|
511
|
-
}[];
|
|
512
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
513
|
-
type?: "agent.conversation" | undefined;
|
|
514
|
-
occurredAt?: string | undefined;
|
|
515
|
-
latencyMs?: number | undefined;
|
|
516
|
-
agentName?: string | undefined;
|
|
517
|
-
turnId?: string | undefined;
|
|
518
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
519
|
-
taskSuccess?: boolean | undefined;
|
|
520
|
-
}, {
|
|
521
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
522
|
-
conversationId: string;
|
|
523
|
-
agentId: string;
|
|
524
|
-
type?: "agent.conversation" | undefined;
|
|
525
|
-
text?: string | undefined;
|
|
526
|
-
occurredAt?: string | undefined;
|
|
527
|
-
anonymousId?: string | null | undefined;
|
|
528
|
-
userId?: string | null | undefined;
|
|
529
|
-
accountId?: string | null | undefined;
|
|
530
|
-
sessionId?: string | null | undefined;
|
|
531
|
-
latencyMs?: number | undefined;
|
|
532
|
-
agentName?: string | undefined;
|
|
533
|
-
turnId?: string | undefined;
|
|
534
|
-
toolCalls?: {
|
|
535
|
-
name: string;
|
|
536
|
-
status?: "error" | "ok" | undefined;
|
|
537
|
-
latencyMs?: number | undefined;
|
|
538
|
-
}[] | undefined;
|
|
539
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
540
|
-
taskSuccess?: boolean | undefined;
|
|
541
|
-
metadata?: Record<string, unknown> | undefined;
|
|
542
|
-
}>, "many">;
|
|
543
|
-
environment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
306
|
+
userId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
307
|
+
anonymousId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
308
|
+
accountId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
309
|
+
sessionId: z.ZodPipe<z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
310
|
+
metadata: z.ZodDefault<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodTransform<Record<string, string | number | boolean | null>, Record<string, unknown>>>>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
environment: z.ZodDefault<z.ZodString>;
|
|
544
313
|
sdk: z.ZodOptional<z.ZodObject<{
|
|
545
314
|
name: z.ZodString;
|
|
546
315
|
version: z.ZodString;
|
|
547
|
-
},
|
|
548
|
-
|
|
549
|
-
version: string;
|
|
550
|
-
}, {
|
|
551
|
-
name: string;
|
|
552
|
-
version: string;
|
|
553
|
-
}>>;
|
|
554
|
-
}, "strip", z.ZodTypeAny, {
|
|
555
|
-
environment: "development" | "staging" | "production";
|
|
556
|
-
turns: {
|
|
557
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
558
|
-
text: string;
|
|
559
|
-
anonymousId: string | null;
|
|
560
|
-
userId: string | null;
|
|
561
|
-
accountId: string | null;
|
|
562
|
-
sessionId: string | null;
|
|
563
|
-
conversationId: string;
|
|
564
|
-
agentId: string;
|
|
565
|
-
toolCalls: {
|
|
566
|
-
name: string;
|
|
567
|
-
status?: "error" | "ok" | undefined;
|
|
568
|
-
latencyMs?: number | undefined;
|
|
569
|
-
}[];
|
|
570
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
571
|
-
type?: "agent.conversation" | undefined;
|
|
572
|
-
occurredAt?: string | undefined;
|
|
573
|
-
latencyMs?: number | undefined;
|
|
574
|
-
agentName?: string | undefined;
|
|
575
|
-
turnId?: string | undefined;
|
|
576
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
577
|
-
taskSuccess?: boolean | undefined;
|
|
578
|
-
}[];
|
|
579
|
-
sdk?: {
|
|
580
|
-
name: string;
|
|
581
|
-
version: string;
|
|
582
|
-
} | undefined;
|
|
583
|
-
}, {
|
|
584
|
-
turns: {
|
|
585
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
586
|
-
conversationId: string;
|
|
587
|
-
agentId: string;
|
|
588
|
-
type?: "agent.conversation" | undefined;
|
|
589
|
-
text?: string | undefined;
|
|
590
|
-
occurredAt?: string | undefined;
|
|
591
|
-
anonymousId?: string | null | undefined;
|
|
592
|
-
userId?: string | null | undefined;
|
|
593
|
-
accountId?: string | null | undefined;
|
|
594
|
-
sessionId?: string | null | undefined;
|
|
595
|
-
latencyMs?: number | undefined;
|
|
596
|
-
agentName?: string | undefined;
|
|
597
|
-
turnId?: string | undefined;
|
|
598
|
-
toolCalls?: {
|
|
599
|
-
name: string;
|
|
600
|
-
status?: "error" | "ok" | undefined;
|
|
601
|
-
latencyMs?: number | undefined;
|
|
602
|
-
}[] | undefined;
|
|
603
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
604
|
-
taskSuccess?: boolean | undefined;
|
|
605
|
-
metadata?: Record<string, unknown> | undefined;
|
|
606
|
-
}[];
|
|
607
|
-
environment?: "development" | "staging" | "production" | undefined;
|
|
608
|
-
sdk?: {
|
|
609
|
-
name: string;
|
|
610
|
-
version: string;
|
|
611
|
-
} | undefined;
|
|
612
|
-
}>, {
|
|
613
|
-
environment: "development" | "staging" | "production";
|
|
614
|
-
turns: {
|
|
615
|
-
role: "user" | "system" | "assistant" | "tool";
|
|
616
|
-
text: string;
|
|
617
|
-
anonymousId: string | null;
|
|
618
|
-
userId: string | null;
|
|
619
|
-
accountId: string | null;
|
|
620
|
-
sessionId: string | null;
|
|
621
|
-
conversationId: string;
|
|
622
|
-
agentId: string;
|
|
623
|
-
toolCalls: {
|
|
624
|
-
name: string;
|
|
625
|
-
status?: "error" | "ok" | undefined;
|
|
626
|
-
latencyMs?: number | undefined;
|
|
627
|
-
}[];
|
|
628
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
629
|
-
type?: "agent.conversation" | undefined;
|
|
630
|
-
occurredAt?: string | undefined;
|
|
631
|
-
latencyMs?: number | undefined;
|
|
632
|
-
agentName?: string | undefined;
|
|
633
|
-
turnId?: string | undefined;
|
|
634
|
-
outcome?: "success" | "failure" | "escalated" | "abandoned" | undefined;
|
|
635
|
-
taskSuccess?: boolean | undefined;
|
|
636
|
-
}[];
|
|
637
|
-
sdk?: {
|
|
638
|
-
name: string;
|
|
639
|
-
version: string;
|
|
640
|
-
} | undefined;
|
|
641
|
-
}, unknown>;
|
|
316
|
+
}, z.core.$strip>>;
|
|
317
|
+
}, z.core.$strip>, unknown>;
|
|
642
318
|
type AgentEventsRequest = z.output<typeof AgentEventsRequestSchema>;
|
|
643
319
|
|
|
644
320
|
declare const FeedbackListRequestSchema: z.ZodObject<{
|
|
645
321
|
q: z.ZodOptional<z.ZodString>;
|
|
646
|
-
sort: z.ZodDefault<z.ZodEnum<
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
322
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
323
|
+
top: "top";
|
|
324
|
+
new: "new";
|
|
325
|
+
trending: "trending";
|
|
326
|
+
}>>;
|
|
327
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
new: "new";
|
|
329
|
+
under_review: "under_review";
|
|
330
|
+
planned: "planned";
|
|
331
|
+
in_progress: "in_progress";
|
|
332
|
+
released: "released";
|
|
333
|
+
declined: "declined";
|
|
334
|
+
}>>;
|
|
335
|
+
filter: z.ZodDefault<z.ZodEnum<{
|
|
336
|
+
open: "open";
|
|
337
|
+
all: "all";
|
|
338
|
+
mine: "mine";
|
|
339
|
+
following: "following";
|
|
340
|
+
}>>;
|
|
650
341
|
productArea: z.ZodOptional<z.ZodString>;
|
|
651
342
|
page: z.ZodDefault<z.ZodNumber>;
|
|
652
343
|
anonymousId: z.ZodString;
|
|
653
344
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
654
|
-
},
|
|
655
|
-
sort: "top" | "new" | "trending";
|
|
656
|
-
filter: "open" | "all" | "mine" | "following";
|
|
657
|
-
anonymousId: string;
|
|
658
|
-
page: number;
|
|
659
|
-
status?: "new" | "under_review" | "planned" | "in_progress" | "released" | "declined" | undefined;
|
|
660
|
-
userId?: string | null | undefined;
|
|
661
|
-
q?: string | undefined;
|
|
662
|
-
productArea?: string | undefined;
|
|
663
|
-
}, {
|
|
664
|
-
anonymousId: string;
|
|
665
|
-
sort?: "top" | "new" | "trending" | undefined;
|
|
666
|
-
filter?: "open" | "all" | "mine" | "following" | undefined;
|
|
667
|
-
status?: "new" | "under_review" | "planned" | "in_progress" | "released" | "declined" | undefined;
|
|
668
|
-
userId?: string | null | undefined;
|
|
669
|
-
page?: number | undefined;
|
|
670
|
-
q?: string | undefined;
|
|
671
|
-
productArea?: string | undefined;
|
|
672
|
-
}>;
|
|
345
|
+
}, z.core.$strip>;
|
|
673
346
|
type FeedbackListRequest = z.infer<typeof FeedbackListRequestSchema>;
|
|
674
347
|
declare const FeedbackVisitorSchema: z.ZodObject<{
|
|
675
348
|
anonymousId: z.ZodString;
|
|
676
349
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
677
|
-
},
|
|
678
|
-
anonymousId: string;
|
|
679
|
-
userId?: string | null | undefined;
|
|
680
|
-
}, {
|
|
681
|
-
anonymousId: string;
|
|
682
|
-
userId?: string | null | undefined;
|
|
683
|
-
}>;
|
|
350
|
+
}, z.core.$strip>;
|
|
684
351
|
type FeedbackVisitorRequest = z.infer<typeof FeedbackVisitorSchema>;
|
|
685
352
|
declare const SubmitFeedbackSchema: z.ZodObject<{
|
|
686
353
|
title: z.ZodString;
|
|
687
354
|
description: z.ZodDefault<z.ZodString>;
|
|
688
355
|
productArea: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
689
|
-
priority: z.ZodDefault<z.ZodEnum<
|
|
690
|
-
|
|
356
|
+
priority: z.ZodDefault<z.ZodEnum<{
|
|
357
|
+
nice_to_have: "nice_to_have";
|
|
358
|
+
important: "important";
|
|
359
|
+
critical: "critical";
|
|
360
|
+
}>>;
|
|
691
361
|
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
692
362
|
pageUrl: z.ZodOptional<z.ZodString>;
|
|
693
363
|
anonymousId: z.ZodString;
|
|
694
364
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
695
|
-
},
|
|
696
|
-
title: string;
|
|
697
|
-
priority: "nice_to_have" | "important" | "critical";
|
|
698
|
-
description: string;
|
|
699
|
-
anonymousId: string;
|
|
700
|
-
userId?: string | null | undefined;
|
|
701
|
-
pageUrl?: string | undefined;
|
|
702
|
-
conversationId?: string | null | undefined;
|
|
703
|
-
productArea?: string | null | undefined;
|
|
704
|
-
}, {
|
|
705
|
-
title: string;
|
|
706
|
-
anonymousId: string;
|
|
707
|
-
priority?: "nice_to_have" | "important" | "critical" | undefined;
|
|
708
|
-
description?: string | undefined;
|
|
709
|
-
userId?: string | null | undefined;
|
|
710
|
-
pageUrl?: string | undefined;
|
|
711
|
-
conversationId?: string | null | undefined;
|
|
712
|
-
productArea?: string | null | undefined;
|
|
713
|
-
}>;
|
|
365
|
+
}, z.core.$strip>;
|
|
714
366
|
type SubmitFeedbackRequest = z.infer<typeof SubmitFeedbackSchema>;
|
|
715
367
|
declare const FeedbackVoteSchema: z.ZodObject<{
|
|
716
|
-
priority: z.ZodDefault<z.ZodEnum<
|
|
368
|
+
priority: z.ZodDefault<z.ZodEnum<{
|
|
369
|
+
nice_to_have: "nice_to_have";
|
|
370
|
+
important: "important";
|
|
371
|
+
critical: "critical";
|
|
372
|
+
}>>;
|
|
717
373
|
note: z.ZodOptional<z.ZodString>;
|
|
718
374
|
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
719
375
|
anonymousId: z.ZodString;
|
|
720
376
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
721
|
-
},
|
|
722
|
-
priority: "nice_to_have" | "important" | "critical";
|
|
723
|
-
anonymousId: string;
|
|
724
|
-
userId?: string | null | undefined;
|
|
725
|
-
conversationId?: string | null | undefined;
|
|
726
|
-
note?: string | undefined;
|
|
727
|
-
}, {
|
|
728
|
-
anonymousId: string;
|
|
729
|
-
priority?: "nice_to_have" | "important" | "critical" | undefined;
|
|
730
|
-
userId?: string | null | undefined;
|
|
731
|
-
conversationId?: string | null | undefined;
|
|
732
|
-
note?: string | undefined;
|
|
733
|
-
}>;
|
|
377
|
+
}, z.core.$strip>;
|
|
734
378
|
type FeedbackVoteRequest = z.infer<typeof FeedbackVoteSchema>;
|
|
735
379
|
declare const FeedbackFollowSchema: z.ZodObject<{
|
|
736
380
|
follow: z.ZodBoolean;
|
|
737
381
|
anonymousId: z.ZodString;
|
|
738
382
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
739
|
-
},
|
|
740
|
-
anonymousId: string;
|
|
741
|
-
follow: boolean;
|
|
742
|
-
userId?: string | null | undefined;
|
|
743
|
-
}, {
|
|
744
|
-
anonymousId: string;
|
|
745
|
-
follow: boolean;
|
|
746
|
-
userId?: string | null | undefined;
|
|
747
|
-
}>;
|
|
383
|
+
}, z.core.$strip>;
|
|
748
384
|
declare const FeedbackCommentSchema: z.ZodObject<{
|
|
749
385
|
body: z.ZodString;
|
|
750
386
|
anonymousId: z.ZodString;
|
|
751
387
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
752
|
-
},
|
|
753
|
-
body: string;
|
|
754
|
-
anonymousId: string;
|
|
755
|
-
userId?: string | null | undefined;
|
|
756
|
-
}, {
|
|
757
|
-
body: string;
|
|
758
|
-
anonymousId: string;
|
|
759
|
-
userId?: string | null | undefined;
|
|
760
|
-
}>;
|
|
388
|
+
}, z.core.$strip>;
|
|
761
389
|
declare const FeedbackSimilarSchema: z.ZodObject<{
|
|
762
390
|
title: z.ZodString;
|
|
763
391
|
anonymousId: z.ZodString;
|
|
764
392
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
765
|
-
},
|
|
766
|
-
title: string;
|
|
767
|
-
anonymousId: string;
|
|
768
|
-
userId?: string | null | undefined;
|
|
769
|
-
}, {
|
|
770
|
-
title: string;
|
|
771
|
-
anonymousId: string;
|
|
772
|
-
userId?: string | null | undefined;
|
|
773
|
-
}>;
|
|
393
|
+
}, z.core.$strip>;
|
|
774
394
|
declare const FeedbackUpdatesReadSchema: z.ZodObject<{
|
|
775
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString
|
|
395
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
776
396
|
anonymousId: z.ZodString;
|
|
777
397
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
778
|
-
},
|
|
779
|
-
anonymousId: string;
|
|
780
|
-
userId?: string | null | undefined;
|
|
781
|
-
ids?: string[] | undefined;
|
|
782
|
-
}, {
|
|
783
|
-
anonymousId: string;
|
|
784
|
-
userId?: string | null | undefined;
|
|
785
|
-
ids?: string[] | undefined;
|
|
786
|
-
}>;
|
|
398
|
+
}, z.core.$strip>;
|
|
787
399
|
|
|
788
400
|
interface GuideTemplate {
|
|
789
401
|
id: string;
|
|
@@ -797,11 +409,9 @@ declare const GUIDE_TEMPLATES: GuideTemplate[];
|
|
|
797
409
|
declare function templateConfig(id: string): {
|
|
798
410
|
template: GuideTemplate;
|
|
799
411
|
config: {
|
|
800
|
-
visibility: "everyone" | "identified" | "anonymous";
|
|
801
|
-
targeting: RuleGroup;
|
|
802
412
|
steps: {
|
|
803
|
-
type: "custom" | "modal" | "tooltip" | "banner" | "checklist" | "survey" | "popover" | "spotlight" | "hotspot" | "slideout";
|
|
804
413
|
id: string;
|
|
414
|
+
type: "custom" | "modal" | "tooltip" | "banner" | "checklist" | "survey" | "popover" | "spotlight" | "hotspot" | "slideout";
|
|
805
415
|
title: string;
|
|
806
416
|
body: string;
|
|
807
417
|
buttons: {
|
|
@@ -820,25 +430,19 @@ declare function templateConfig(id: string): {
|
|
|
820
430
|
dismissOnOutsideClick: boolean;
|
|
821
431
|
spotlightPadding: number;
|
|
822
432
|
position: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center";
|
|
823
|
-
advanceOn: "button" | "event" | "element_click" | "element_visible" | "delay"
|
|
433
|
+
advanceOn: "any" | "button" | "event" | "element_click" | "element_visible" | "delay";
|
|
824
434
|
branches: {
|
|
825
435
|
id: string;
|
|
826
436
|
when: RuleGroup;
|
|
827
437
|
goTo: string;
|
|
828
438
|
}[];
|
|
829
|
-
code?: string | undefined;
|
|
830
|
-
hotspot?: {
|
|
831
|
-
size: number;
|
|
832
|
-
pulse: boolean;
|
|
833
|
-
openOn: "click" | "hover";
|
|
834
|
-
} | undefined;
|
|
835
|
-
url?: string | undefined;
|
|
836
439
|
imageUrl?: string | undefined;
|
|
837
440
|
imageAlt?: string | undefined;
|
|
441
|
+
videoUrl?: string | undefined;
|
|
838
442
|
target?: {
|
|
839
443
|
selectors: {
|
|
840
|
-
value: string;
|
|
841
444
|
kind: "id" | "text" | "css" | "data-attr" | "aria" | "xpath" | "guidely-id";
|
|
445
|
+
value: string;
|
|
842
446
|
label?: string | undefined;
|
|
843
447
|
}[];
|
|
844
448
|
waitMs: number;
|
|
@@ -846,12 +450,21 @@ declare function templateConfig(id: string): {
|
|
|
846
450
|
scrollIntoView: boolean;
|
|
847
451
|
textSnapshot?: string | undefined;
|
|
848
452
|
} | undefined;
|
|
453
|
+
url?: string | undefined;
|
|
849
454
|
advanceValue?: string | undefined;
|
|
850
455
|
advanceDelayMs?: number | undefined;
|
|
851
456
|
width?: number | undefined;
|
|
852
457
|
targeting?: RuleGroup | undefined;
|
|
458
|
+
hotspot?: {
|
|
459
|
+
size: number;
|
|
460
|
+
pulse: boolean;
|
|
461
|
+
openOn: "click" | "hover";
|
|
462
|
+
} | undefined;
|
|
853
463
|
customHtml?: string | undefined;
|
|
464
|
+
code?: string | undefined;
|
|
854
465
|
}[];
|
|
466
|
+
visibility: "everyone" | "identified" | "anonymous";
|
|
467
|
+
targeting: RuleGroup;
|
|
855
468
|
trigger: {
|
|
856
469
|
type: "event" | "element_click" | "element_visible" | "delay" | "page_load" | "url_match" | "manual" | "after_guide" | "segment_enter";
|
|
857
470
|
delayMs: number;
|
|
@@ -884,48 +497,48 @@ declare function templateConfig(id: string): {
|
|
|
884
497
|
urlPatterns: string[];
|
|
885
498
|
platforms: ("web" | "ios" | "android")[];
|
|
886
499
|
checklist?: {
|
|
887
|
-
position: "bottom-left" | "bottom-right";
|
|
888
500
|
tasks: {
|
|
889
501
|
id: string;
|
|
890
|
-
action: "url" | "start_guide" | "event" | "none";
|
|
891
502
|
title: string;
|
|
892
503
|
description: string;
|
|
893
504
|
completion: "event" | "click" | "manual" | "guide_completed" | "url_visited";
|
|
505
|
+
action: "url" | "start_guide" | "event" | "none";
|
|
894
506
|
required: boolean;
|
|
895
507
|
completionValue?: string | undefined;
|
|
896
508
|
actionValue?: string | undefined;
|
|
897
509
|
}[];
|
|
898
510
|
ordered: boolean;
|
|
899
511
|
launcherLabel: string;
|
|
512
|
+
position: "bottom-left" | "bottom-right";
|
|
900
513
|
completionTitle: string;
|
|
901
514
|
completionBody: string;
|
|
902
515
|
autoOpen: boolean;
|
|
903
516
|
dismissible: boolean;
|
|
904
517
|
} | undefined;
|
|
905
518
|
survey?: {
|
|
906
|
-
position: "bottom-left" | "bottom-right" | "center";
|
|
907
519
|
questions: {
|
|
908
|
-
options: {
|
|
909
|
-
id: string;
|
|
910
|
-
label: string;
|
|
911
|
-
}[];
|
|
912
|
-
type: "text" | "nps" | "csat" | "thumbs" | "single_choice" | "multiple_choice" | "rating";
|
|
913
520
|
id: string;
|
|
521
|
+
type: "text" | "nps" | "csat" | "thumbs" | "single_choice" | "multiple_choice" | "rating";
|
|
914
522
|
title: string;
|
|
915
523
|
description: string;
|
|
916
524
|
required: boolean;
|
|
525
|
+
options: {
|
|
526
|
+
id: string;
|
|
527
|
+
label: string;
|
|
528
|
+
}[];
|
|
917
529
|
scaleMax?: number | undefined;
|
|
918
530
|
lowLabel?: string | undefined;
|
|
919
531
|
highLabel?: string | undefined;
|
|
920
532
|
placeholder?: string | undefined;
|
|
921
533
|
showWhen?: {
|
|
922
|
-
value: string | number | string[];
|
|
923
|
-
op: "equals" | "lte" | "gte" | "in";
|
|
924
534
|
questionId: string;
|
|
535
|
+
op: "equals" | "lte" | "gte" | "in";
|
|
536
|
+
value: string | number | string[];
|
|
925
537
|
} | undefined;
|
|
926
538
|
}[];
|
|
927
539
|
thankYouTitle: string;
|
|
928
540
|
thankYouBody: string;
|
|
541
|
+
position: "bottom-left" | "bottom-right" | "center";
|
|
929
542
|
startAt?: string | undefined;
|
|
930
543
|
endAt?: string | undefined;
|
|
931
544
|
} | undefined;
|
|
@@ -950,7 +563,7 @@ declare function templateConfig(id: string): {
|
|
|
950
563
|
* which the SDK upgrades in place to forward to the real client. Flag reads return their fallback
|
|
951
564
|
* until then. ES5 only: it runs on the customer's page before anything else.
|
|
952
565
|
*/
|
|
953
|
-
declare const SCRIPT_STUB_METHODS: readonly ["identify", "track", "page", "reset", "setAccount", "updateTraits", "setConsent", "setLocale", "startGuide", "stopGuide", "dismissGuide", "openMessenger", "closeMessenger", "showNewMessage", "openResourceCenter", "closeResourceCenter", "openChecklist", "closeChecklist", "completeChecklistTask", "openComplaint", "openIdeas", "captureException", "agentConversation", "trackAgentTurn", "on"];
|
|
566
|
+
declare const SCRIPT_STUB_METHODS: readonly ["identify", "track", "page", "reset", "setAccount", "updateTraits", "setConsent", "setLocale", "startGuide", "stopGuide", "dismissGuide", "openMessenger", "closeMessenger", "showNewMessage", "openResourceCenter", "closeResourceCenter", "openChecklist", "closeChecklist", "completeChecklistTask", "openComplaint", "openIdeas", "captureException", "captureFeedback", "showBugReport", "captureMessage", "addBreadcrumb", "setTag", "setTags", "setExtra", "setExtras", "setContext", "setUser", "agentConversation", "trackAgentTurn", "on"];
|
|
954
567
|
declare const SCRIPT_STUB: string;
|
|
955
568
|
/** The full script-tag install: stub, init (queued until the SDK loads), then the async SDK script. */
|
|
956
569
|
declare function scriptSnippet(scriptUrl: string, initOptions: string): string;
|
|
@@ -987,6 +600,6 @@ declare function parseCsvRows(text: string): string[][];
|
|
|
987
600
|
declare function parseTranslationCsv(text: string): ParsedTranslations;
|
|
988
601
|
|
|
989
602
|
declare const SDK_API_VERSION = "v1";
|
|
990
|
-
declare const SHARED_VERSION = "0.
|
|
603
|
+
declare const SHARED_VERSION = "0.17.0";
|
|
991
604
|
|
|
992
|
-
export { APP_LIFECYCLE_EVENTS, AUTOCAPTURE_EVENTS, type AgentEventsRequest, AgentEventsRequestSchema, AgentMetadataSchema, AgentToolCallSchema, type AgentTurn, AgentTurnInputSchema, EVENT_NAMES, type EventBatch, EventBatchSchema, type EventName, FeedbackCommentSchema, FeedbackFollowSchema, type FeedbackListRequest, FeedbackListRequestSchema, FeedbackSimilarSchema, FeedbackUpdatesReadSchema, type FeedbackVisitorRequest, FeedbackVisitorSchema, type FeedbackVoteRequest, FeedbackVoteSchema, type FileComplaintRequest, FileComplaintSchema, GUIDE_LIFECYCLE_EVENTS, GUIDE_TEMPLATES, GuideConfigInput, GuideKind, type GuideTemplate, type ParsedTranslations, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SCRIPT_STUB, SCRIPT_STUB_METHODS, SDK_API_VERSION, SHARED_VERSION, type SdkAgentEvents, SdkAgentEventsSchema, type SdkEvent, SdkEventSchema, type SubmitFeedbackRequest, SubmitFeedbackSchema, type TranslationUnit, parseCsvRows, parseTranslationCsv, parseXliff, scriptSnippet, templateConfig, toTranslationCsv, toXliff };
|
|
605
|
+
export { APP_LIFECYCLE_EVENTS, AUTOCAPTURE_EVENTS, type AgentEventsRequest, AgentEventsRequestSchema, AgentMetadataSchema, AgentToolCallSchema, type AgentTurn, AgentTurnInputSchema, type BugReportRequest, BugReportSchema, EVENT_NAMES, type EventBatch, EventBatchSchema, type EventName, FeedbackCommentSchema, FeedbackFollowSchema, type FeedbackListRequest, FeedbackListRequestSchema, FeedbackSimilarSchema, FeedbackUpdatesReadSchema, type FeedbackVisitorRequest, FeedbackVisitorSchema, type FeedbackVoteRequest, FeedbackVoteSchema, type FileComplaintRequest, FileComplaintSchema, GUIDE_LIFECYCLE_EVENTS, GUIDE_TEMPLATES, GuideConfigInput, GuideKind, type GuideTemplate, type ParsedTranslations, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SCRIPT_STUB, SCRIPT_STUB_METHODS, SDK_API_VERSION, SHARED_VERSION, type SdkAgentEvents, SdkAgentEventsSchema, type SdkEvent, SdkEventSchema, type SubmitFeedbackRequest, SubmitFeedbackSchema, type TranslationUnit, parseCsvRows, parseTranslationCsv, parseXliff, scriptSnippet, templateConfig, toTranslationCsv, toXliff };
|