@bentolabs/sdk 1.0.3 → 1.1.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/index.d.ts CHANGED
@@ -60,6 +60,10 @@ export declare class BentoLabsSDK {
60
60
  * Schedule retry attempts for failed events
61
61
  */
62
62
  private scheduleRetry;
63
+ /**
64
+ * Internal method to stop recording without logging (used during re-init)
65
+ */
66
+ private stopRecordingInternal;
63
67
  /**
64
68
  * Stop recording and clean up resources
65
69
  */
@@ -86,6 +90,12 @@ export declare class BentoLabsSDK {
86
90
  * Manually trigger a batch send
87
91
  */
88
92
  flushEvents(): Promise<void>;
93
+ /**
94
+ * Track a custom event with custom data
95
+ * @param eventName - Name of the custom event
96
+ * @param data - Custom event data (will be JSON stringified)
97
+ */
98
+ trackCustomEvent(eventName: string, data?: Record<string, any>): void;
89
99
  }
90
100
  declare const _default: BentoLabsSDK;
91
101
  export default _default;