@proveanything/smartlinks 1.3.24 → 1.3.25

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.
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.3.24 | Generated: 2026-02-13T14:31:22.778Z
3
+ Version: 1.3.25 | Generated: 2026-02-13T14:34:37.476Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -2877,6 +2877,17 @@ interface AblyTokenRequest {
2877
2877
 
2878
2878
  ### segments
2879
2879
 
2880
+ **InteractionFilterValue** (interface)
2881
+ ```typescript
2882
+ interface InteractionFilterValue {
2883
+ interactionId: string
2884
+ scope?: string // ← NEW: Scope filtering
2885
+ outcome?: string
2886
+ from?: string // ISO date string
2887
+ to?: string // ISO date string
2888
+ }
2889
+ ```
2890
+
2880
2891
  **SegmentRecord** (interface)
2881
2892
  ```typescript
2882
2893
  interface SegmentRecord {
@@ -2889,7 +2900,7 @@ interface SegmentRecord {
2889
2900
  lastCalculatedAt?: string
2890
2901
  createdAt: string
2891
2902
  data?: {
2892
- filterRules: any[]
2903
+ filterRules: SegmentFilterRule[]
2893
2904
  description?: string
2894
2905
  staticContactIds?: string[]
2895
2906
  [key: string]: unknown
@@ -2937,6 +2948,8 @@ interface SegmentRecipientsResponse {
2937
2948
  }
2938
2949
  ```
2939
2950
 
2951
+ **SegmentFilterRule** = ``
2952
+
2940
2953
  ### tags
2941
2954
 
2942
2955
  **Tag** (interface)
@@ -1,3 +1,41 @@
1
+ export interface InteractionFilterValue {
2
+ interactionId: string;
3
+ scope?: string;
4
+ outcome?: string;
5
+ from?: string;
6
+ to?: string;
7
+ }
8
+ export type SegmentFilterRule = {
9
+ field: 'interaction';
10
+ op: 'had' | 'exists';
11
+ value: InteractionFilterValue;
12
+ } | {
13
+ field: 'tags';
14
+ op: 'hasSome';
15
+ value: string[];
16
+ } | {
17
+ field: 'locale';
18
+ op: 'equals';
19
+ value: string;
20
+ } | {
21
+ field: 'source';
22
+ op: 'equals';
23
+ value: string;
24
+ } | {
25
+ field: 'createdAt';
26
+ op: 'between';
27
+ value: {
28
+ from?: string;
29
+ to?: string;
30
+ };
31
+ } | {
32
+ type: 'interaction';
33
+ interactionId: string;
34
+ scope?: string;
35
+ outcome?: string;
36
+ from?: string;
37
+ to?: string;
38
+ };
1
39
  export interface SegmentRecord {
2
40
  id: string;
3
41
  collectionId: string;
@@ -8,7 +46,7 @@ export interface SegmentRecord {
8
46
  lastCalculatedAt?: string;
9
47
  createdAt: string;
10
48
  data?: {
11
- filterRules: any[];
49
+ filterRules: SegmentFilterRule[];
12
50
  description?: string;
13
51
  staticContactIds?: string[];
14
52
  [key: string]: unknown;
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.3.24 | Generated: 2026-02-13T14:31:22.778Z
3
+ Version: 1.3.25 | Generated: 2026-02-13T14:34:37.476Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -2877,6 +2877,17 @@ interface AblyTokenRequest {
2877
2877
 
2878
2878
  ### segments
2879
2879
 
2880
+ **InteractionFilterValue** (interface)
2881
+ ```typescript
2882
+ interface InteractionFilterValue {
2883
+ interactionId: string
2884
+ scope?: string // ← NEW: Scope filtering
2885
+ outcome?: string
2886
+ from?: string // ISO date string
2887
+ to?: string // ISO date string
2888
+ }
2889
+ ```
2890
+
2880
2891
  **SegmentRecord** (interface)
2881
2892
  ```typescript
2882
2893
  interface SegmentRecord {
@@ -2889,7 +2900,7 @@ interface SegmentRecord {
2889
2900
  lastCalculatedAt?: string
2890
2901
  createdAt: string
2891
2902
  data?: {
2892
- filterRules: any[]
2903
+ filterRules: SegmentFilterRule[]
2893
2904
  description?: string
2894
2905
  staticContactIds?: string[]
2895
2906
  [key: string]: unknown
@@ -2937,6 +2948,8 @@ interface SegmentRecipientsResponse {
2937
2948
  }
2938
2949
  ```
2939
2950
 
2951
+ **SegmentFilterRule** = ``
2952
+
2940
2953
  ### tags
2941
2954
 
2942
2955
  **Tag** (interface)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",