@@ -339,6 +339,24 @@ export class IterableConfig {
339339 */
340340 enableEmbeddedMessaging = false ;
341341
342+ /**
343+ * A callback function that is called when embedded messages are updated.
344+ *
345+ * This callback is triggered when the local cache of embedded messages changes,
346+ * such as when new messages arrive or existing messages are removed.
347+ *
348+ * @example
349+ * ```typescript
350+ * const config = new IterableConfig();
351+ * config.onEmbeddedMessageUpdate = () => {
352+ * console.log('Embedded messages updated!');
353+ * // Refresh your UI to display the latest messages
354+ * };
355+ * Iterable.initialize('<YOUR_API_KEY>', config);
356+ * ```
357+ */
358+ onEmbeddedMessageUpdate ?: ( ) => void ;
359+
342360 /**
343361 * Converts the IterableConfig instance to a dictionary object.
344362 *
@@ -377,6 +395,13 @@ export class IterableConfig {
377395 */
378396 // eslint-disable-next-line eqeqeq
379397 authHandlerPresent : this . authHandler != undefined ,
398+ /**
399+ * A boolean indicating if an embedded message update callback is present.
400+ *
401+ * TODO: Figure out if this is purposeful
402+ */
403+ // eslint-disable-next-line eqeqeq
404+ onEmbeddedMessageUpdatePresent : this . onEmbeddedMessageUpdate != undefined ,
380405 /** The log level for the SDK. */
381406 logLevel : this . logLevel ,
382407 expiringAuthTokenRefreshPeriod : this . expiringAuthTokenRefreshPeriod ,
0 commit comments