@modelnex/sdk 0.5.26 → 0.5.28

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.mts CHANGED
@@ -133,7 +133,7 @@ interface TourStep {
133
133
  /** Optional onboarding-specific step metadata */
134
134
  onboarding?: OnboardingStepMetadata;
135
135
  }
136
- type TourTrigger = 'first_visit' | 'feature_launch' | 'feature_unlocked' | 'feature_unlock' | 'new_feature' | 'manual';
136
+ type TourTrigger = 'first_visit' | 'return_visit' | 'feature_launch' | 'feature_unlocked' | 'feature_unlock' | 'new_feature' | 'manual';
137
137
  type TourStartPolicy = 'immediate_start' | 'prompt_only' | 'manual_only';
138
138
  type TourNotificationType = 'bubble_card' | 'modal';
139
139
  interface TourVoiceConfig {
@@ -200,6 +200,12 @@ interface UserProfile {
200
200
  type: string;
201
201
  /** Whether this is a new user — triggers first_visit tours */
202
202
  isNewUser?: boolean;
203
+ /** Optional feature facts used for feature-triggered tours */
204
+ features?: string[];
205
+ /** Backward-compatible facts bag for feature-triggered tours */
206
+ tourFacts?: {
207
+ features?: string[];
208
+ };
203
209
  /** User ID for per-user completion state */
204
210
  userId?: string;
205
211
  }
package/dist/index.d.ts CHANGED
@@ -133,7 +133,7 @@ interface TourStep {
133
133
  /** Optional onboarding-specific step metadata */
134
134
  onboarding?: OnboardingStepMetadata;
135
135
  }
136
- type TourTrigger = 'first_visit' | 'feature_launch' | 'feature_unlocked' | 'feature_unlock' | 'new_feature' | 'manual';
136
+ type TourTrigger = 'first_visit' | 'return_visit' | 'feature_launch' | 'feature_unlocked' | 'feature_unlock' | 'new_feature' | 'manual';
137
137
  type TourStartPolicy = 'immediate_start' | 'prompt_only' | 'manual_only';
138
138
  type TourNotificationType = 'bubble_card' | 'modal';
139
139
  interface TourVoiceConfig {
@@ -200,6 +200,12 @@ interface UserProfile {
200
200
  type: string;
201
201
  /** Whether this is a new user — triggers first_visit tours */
202
202
  isNewUser?: boolean;
203
+ /** Optional feature facts used for feature-triggered tours */
204
+ features?: string[];
205
+ /** Backward-compatible facts bag for feature-triggered tours */
206
+ tourFacts?: {
207
+ features?: string[];
208
+ };
203
209
  /** User ID for per-user completion state */
204
210
  userId?: string;
205
211
  }