From 06a1e668d5246dd701df68ffbad08f09d0321aa8 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Wed, 29 Apr 2026 22:05:25 -0300 Subject: [PATCH 1/3] Add event-related settings --- types/splitio.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/splitio.d.ts b/types/splitio.d.ts index 7732ba96..23a7fac4 100644 --- a/types/splitio.d.ts +++ b/types/splitio.d.ts @@ -2321,6 +2321,19 @@ declare namespace SplitIO { * @defaultValue `60` */ configsRefreshRate?: number; + /** + * The SDK posts the queued events data in bulks. This parameter controls the posting rate in seconds. + * + * @defaultValue `60` + */ + eventsPushRate?: number; + /** + * The maximum number of event items we want to queue. If we queue more values, it will trigger a flush and reset the timer. + * If you use a 0 here, the queue will have no maximum size. + * + * @defaultValue `500` + */ + eventsQueueSize?: number; /** * Logging level. * From ca2e4f5faf83f4a48ee9962a4ac4c3e9f5772b77 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Sat, 2 May 2026 13:07:28 -0300 Subject: [PATCH 2/3] Rename settings to pollingRate, pushRate and queueSize --- types/splitio.d.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/types/splitio.d.ts b/types/splitio.d.ts index 23a7fac4..b2118dd0 100644 --- a/types/splitio.d.ts +++ b/types/splitio.d.ts @@ -2316,24 +2316,23 @@ declare namespace SplitIO { */ authorizationKey: string; /** - * Configs definitions refresh rate for polling, in seconds. + * Polling rate for configs and segments refresh, in seconds. Minimum value: 5. * * @defaultValue `60` */ - configsRefreshRate?: number; + pollingRate?: number; /** - * The SDK posts the queued events data in bulks. This parameter controls the posting rate in seconds. + * Push rate for events and impressions, in seconds. Minimum value: 60. * * @defaultValue `60` */ - eventsPushRate?: number; + pushRate?: number; /** - * The maximum number of event items we want to queue. If we queue more values, it will trigger a flush and reset the timer. - * If you use a 0 here, the queue will have no maximum size. + * Maximum queue size for events and impressions. When the queue reaches this size, a flush is triggered. Minimum value: 1000. * - * @defaultValue `500` + * @defaultValue `10000` */ - eventsQueueSize?: number; + queueSize?: number; /** * Logging level. * From 7742f9e4021a8e22f6b1bee5cf5e1d7248a32f87 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Wed, 6 May 2026 18:45:33 -0300 Subject: [PATCH 3/3] Update SdkUpdateMetadata documentation to clarify updated data types --- types/splitio.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/splitio.d.ts b/types/splitio.d.ts index b2118dd0..a515e317 100644 --- a/types/splitio.d.ts +++ b/types/splitio.d.ts @@ -495,7 +495,7 @@ declare namespace SplitIO { } /** - * Metadata for the update event emitted when the SDK cache is updated with new data for flags or segments. + * Metadata for the update event emitted when the SDK cache is updated with new data for flags, configs, or segments. */ type SdkUpdateMetadata = { /** @@ -503,7 +503,7 @@ declare namespace SplitIO { */ type: SdkUpdateMetadataType; /** - * The names of the flags or segments that were updated. + * The names of the flags or configs that were updated. Empty array if the update is of type 'SEGMENTS_UPDATE'. */ names: string[]; }