oursprivacy-ingest 2.0.1 → 2.2.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.
@@ -95,7 +95,7 @@ module OursprivacyIngest
95
95
  end
96
96
  attr_writer :default_properties
97
97
 
98
- # The email address of a user. When userId is absent and externalId does not
98
+ # The email address of a user. When visitorId is absent and externalId does not
99
99
  # resolve a visitor, we search your account for a visitor with this email. If no
100
100
  # match is found, we try userProperties.phone_number before creating a new
101
101
  # visitor. Leading and trailing whitespace is removed before validation.
@@ -122,11 +122,11 @@ module OursprivacyIngest
122
122
  end
123
123
  attr_accessor :event_properties
124
124
 
125
- # Your system's unique identifier for this user. When userId is absent, we search
126
- # your account for an existing visitor with this externalId. If no match is found,
127
- # we try email and then userProperties.phone_number before creating a new visitor.
128
- # If you also have the userId from cookies or local storage, send both — it
129
- # removes the lookup round-trip. Non-string input is converted to text before
125
+ # Your system's unique identifier for this user. When visitorId is absent, we
126
+ # search your account for an existing visitor with this externalId. If no match is
127
+ # found, we try email and then userProperties.phone_number before creating a new
128
+ # visitor. If you also have the visitorId from cookies or local storage, send both
129
+ # — it removes the lookup round-trip. Non-string input is converted to text before
130
130
  # validation; clients should send a string. Leading and trailing whitespace is
131
131
  # removed before validation.
132
132
  sig { returns(T.nilable(String)) }
@@ -154,16 +154,18 @@ module OursprivacyIngest
154
154
  end
155
155
  attr_writer :identity_context
156
156
 
157
- # The time at which the event occurred in milliseconds since UTC epoch. The time
158
- # must be in the past and within the last 7 days.
157
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
158
+ # older than one year are recorded as exactly one year ago, and future times as
159
+ # now.
159
160
  sig { returns(T.nilable(Float)) }
160
161
  attr_accessor :time
161
162
 
162
163
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
163
164
  # When present, this is used directly — no lookup by externalId, email, or phone
164
- # is performed. If you have both a userId and an externalId, send both so the
165
- # event is attached to the right visitor without any lookup overhead. Leading and
166
- # trailing whitespace is removed before validation.
165
+ # is performed. If you have both a visitorId and an externalId, send both so the
166
+ # event is attached to the right visitor without any lookup overhead. visitorId
167
+ # takes precedence over the deprecated userId alias. Leading and trailing
168
+ # whitespace is removed before validation.
167
169
  sig { returns(T.nilable(String)) }
168
170
  attr_accessor :user_id
169
171
 
@@ -188,6 +190,15 @@ module OursprivacyIngest
188
190
  end
189
191
  attr_writer :user_properties
190
192
 
193
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
194
+ # When present, this is used directly — no lookup by externalId, email, or phone
195
+ # is performed. If you have both a visitorId and an externalId, send both so the
196
+ # event is attached to the right visitor without any lookup overhead. visitorId
197
+ # takes precedence over the deprecated userId alias. Leading and trailing
198
+ # whitespace is removed before validation.
199
+ sig { returns(T.nilable(String)) }
200
+ attr_accessor :visitor_id
201
+
191
202
  sig do
192
203
  params(
193
204
  distinct_id: String,
@@ -216,7 +227,8 @@ module OursprivacyIngest
216
227
  user_properties:
217
228
  T.nilable(
218
229
  OursprivacyIngest::BatchCreateParams::Event::UserProperties::OrHash
219
- )
230
+ ),
231
+ visitor_id: T.nilable(String)
220
232
  ).returns(T.attached_class)
221
233
  end
222
234
  def self.new(
@@ -232,7 +244,7 @@ module OursprivacyIngest
232
244
  # These properties are used throughout the Ours app to pass known values onto
233
245
  # destinations
234
246
  default_properties: nil,
235
- # The email address of a user. When userId is absent and externalId does not
247
+ # The email address of a user. When visitorId is absent and externalId does not
236
248
  # resolve a visitor, we search your account for a visitor with this email. If no
237
249
  # match is found, we try userProperties.phone_number before creating a new
238
250
  # visitor. Leading and trailing whitespace is removed before validation.
@@ -244,11 +256,11 @@ module OursprivacyIngest
244
256
  # strings. After normalization, the serialized JSON must be shorter than 1,048,576
245
257
  # UTF-16 code units.
246
258
  event_properties: nil,
247
- # Your system's unique identifier for this user. When userId is absent, we search
248
- # your account for an existing visitor with this externalId. If no match is found,
249
- # we try email and then userProperties.phone_number before creating a new visitor.
250
- # If you also have the userId from cookies or local storage, send both — it
251
- # removes the lookup round-trip. Non-string input is converted to text before
259
+ # Your system's unique identifier for this user. When visitorId is absent, we
260
+ # search your account for an existing visitor with this externalId. If no match is
261
+ # found, we try email and then userProperties.phone_number before creating a new
262
+ # visitor. If you also have the visitorId from cookies or local storage, send both
263
+ # — it removes the lookup round-trip. Non-string input is converted to text before
252
264
  # validation; clients should send a string. Leading and trailing whitespace is
253
265
  # removed before validation.
254
266
  external_id: nil,
@@ -256,18 +268,27 @@ module OursprivacyIngest
256
268
  # identity resolution when the caller is a backend server rather than an end-user
257
269
  # browser.
258
270
  identity_context: nil,
259
- # The time at which the event occurred in milliseconds since UTC epoch. The time
260
- # must be in the past and within the last 7 days.
271
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
272
+ # older than one year are recorded as exactly one year ago, and future times as
273
+ # now.
261
274
  time: nil,
262
275
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
263
276
  # When present, this is used directly — no lookup by externalId, email, or phone
264
- # is performed. If you have both a userId and an externalId, send both so the
265
- # event is attached to the right visitor without any lookup overhead. Leading and
266
- # trailing whitespace is removed before validation.
277
+ # is performed. If you have both a visitorId and an externalId, send both so the
278
+ # event is attached to the right visitor without any lookup overhead. visitorId
279
+ # takes precedence over the deprecated userId alias. Leading and trailing
280
+ # whitespace is removed before validation.
267
281
  user_id: nil,
268
282
  # Properties to set on the visitor. (optional) You can also update these
269
283
  # properties via the identify endpoint.
270
- user_properties: nil
284
+ user_properties: nil,
285
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
286
+ # When present, this is used directly — no lookup by externalId, email, or phone
287
+ # is performed. If you have both a visitorId and an externalId, send both so the
288
+ # event is attached to the right visitor without any lookup overhead. visitorId
289
+ # takes precedence over the deprecated userId alias. Leading and trailing
290
+ # whitespace is removed before validation.
291
+ visitor_id: nil
271
292
  )
272
293
  end
273
294
 
@@ -300,7 +321,8 @@ module OursprivacyIngest
300
321
  user_properties:
301
322
  T.nilable(
302
323
  OursprivacyIngest::BatchCreateParams::Event::UserProperties
303
- )
324
+ ),
325
+ visitor_id: T.nilable(String)
304
326
  }
305
327
  )
306
328
  end
@@ -341,6 +363,13 @@ module OursprivacyIngest
341
363
  sig { returns(T.nilable(String)) }
342
364
  attr_accessor :adset_id
343
365
 
366
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
367
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
368
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
369
+ # before validation.
370
+ sig { returns(T.nilable(String)) }
371
+ attr_accessor :affiliatly_v3
372
+
344
373
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
345
374
  # is removed before validation.
346
375
  sig { returns(T.nilable(String)) }
@@ -746,6 +775,7 @@ module OursprivacyIngest
746
775
  ad_id: T.nilable(String),
747
776
  admitad_uid: T.nilable(String),
748
777
  adset_id: T.nilable(String),
778
+ affiliatly_v3: T.nilable(String),
749
779
  alart: T.nilable(String),
750
780
  aleid: T.nilable(String),
751
781
  axwrt: T.nilable(String),
@@ -844,6 +874,11 @@ module OursprivacyIngest
844
874
  # The adset id detected in the session. This is set by the web sdk automatically.
845
875
  # Leading and trailing whitespace is removed before validation.
846
876
  adset_id: nil,
877
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
878
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
879
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
880
+ # before validation.
881
+ affiliatly_v3: nil,
847
882
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
848
883
  # is removed before validation.
849
884
  alart: nil,
@@ -1091,6 +1126,7 @@ module OursprivacyIngest
1091
1126
  ad_id: T.nilable(String),
1092
1127
  admitad_uid: T.nilable(String),
1093
1128
  adset_id: T.nilable(String),
1129
+ affiliatly_v3: T.nilable(String),
1094
1130
  alart: T.nilable(String),
1095
1131
  aleid: T.nilable(String),
1096
1132
  axwrt: T.nilable(String),
@@ -1765,6 +1801,9 @@ module OursprivacyIngest
1765
1801
  sig { returns(T.nilable(String)) }
1766
1802
  attr_accessor :adset_id
1767
1803
 
1804
+ sig { returns(T.nilable(String)) }
1805
+ attr_accessor :affiliatly_v3
1806
+
1768
1807
  sig { returns(T.nilable(String)) }
1769
1808
  attr_accessor :alart
1770
1809
 
@@ -2064,6 +2103,7 @@ module OursprivacyIngest
2064
2103
  ad_id: T.nilable(String),
2065
2104
  admitad_uid: T.nilable(String),
2066
2105
  adset_id: T.nilable(String),
2106
+ affiliatly_v3: T.nilable(String),
2067
2107
  alart: T.nilable(String),
2068
2108
  aleid: T.nilable(String),
2069
2109
  axwrt: T.nilable(String),
@@ -2162,6 +2202,7 @@ module OursprivacyIngest
2162
2202
  # Leading and trailing whitespace is removed before validation.
2163
2203
  admitad_uid: nil,
2164
2204
  adset_id: nil,
2205
+ affiliatly_v3: nil,
2165
2206
  alart: nil,
2166
2207
  aleid: nil,
2167
2208
  axwrt: nil,
@@ -2295,6 +2336,7 @@ module OursprivacyIngest
2295
2336
  ad_id: T.nilable(String),
2296
2337
  admitad_uid: T.nilable(String),
2297
2338
  adset_id: T.nilable(String),
2339
+ affiliatly_v3: T.nilable(String),
2298
2340
  alart: T.nilable(String),
2299
2341
  aleid: T.nilable(String),
2300
2342
  axwrt: T.nilable(String),
@@ -52,7 +52,7 @@ module OursprivacyIngest
52
52
  sig { returns(T.nilable(String)) }
53
53
  attr_accessor :distinct_id
54
54
 
55
- # The email address of a user. When userId is absent and externalId does not
55
+ # The email address of a user. When visitorId is absent and externalId does not
56
56
  # resolve a visitor, we search your account for a visitor with this email. If no
57
57
  # match is found, we try userProperties.phone_number before creating a new
58
58
  # visitor. Leading and trailing whitespace is removed before validation.
@@ -79,11 +79,11 @@ module OursprivacyIngest
79
79
  end
80
80
  attr_accessor :event_properties
81
81
 
82
- # Your system's unique identifier for this user. When userId is absent, we search
83
- # your account for an existing visitor with this externalId. If no match is found,
84
- # we try email and then userProperties.phone_number before creating a new visitor.
85
- # If you also have the userId from cookies or local storage, send both — it
86
- # removes the lookup round-trip. Non-string input is converted to text before
82
+ # Your system's unique identifier for this user. When visitorId is absent, we
83
+ # search your account for an existing visitor with this externalId. If no match is
84
+ # found, we try email and then userProperties.phone_number before creating a new
85
+ # visitor. If you also have the visitorId from cookies or local storage, send both
86
+ # — it removes the lookup round-trip. Non-string input is converted to text before
87
87
  # validation; clients should send a string. Leading and trailing whitespace is
88
88
  # removed before validation.
89
89
  sig { returns(T.nilable(String)) }
@@ -107,16 +107,18 @@ module OursprivacyIngest
107
107
  end
108
108
  attr_writer :identity_context
109
109
 
110
- # The time at which the event occurred in milliseconds since UTC epoch. The time
111
- # must be in the past and within the last 7 days.
110
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
111
+ # older than one year are recorded as exactly one year ago, and future times as
112
+ # now.
112
113
  sig { returns(T.nilable(Float)) }
113
114
  attr_accessor :time
114
115
 
115
116
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
116
117
  # When present, this is used directly — no lookup by externalId, email, or phone
117
- # is performed. If you have both a userId and an externalId, send both so the
118
- # event is attached to the right visitor without any lookup overhead. Leading and
119
- # trailing whitespace is removed before validation.
118
+ # is performed. If you have both a visitorId and an externalId, send both so the
119
+ # event is attached to the right visitor without any lookup overhead. visitorId
120
+ # takes precedence over the deprecated userId alias. Leading and trailing
121
+ # whitespace is removed before validation.
120
122
  sig { returns(T.nilable(String)) }
121
123
  attr_accessor :user_id
122
124
 
@@ -137,6 +139,15 @@ module OursprivacyIngest
137
139
  end
138
140
  attr_writer :user_properties
139
141
 
142
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
143
+ # When present, this is used directly — no lookup by externalId, email, or phone
144
+ # is performed. If you have both a visitorId and an externalId, send both so the
145
+ # event is attached to the right visitor without any lookup overhead. visitorId
146
+ # takes precedence over the deprecated userId alias. Leading and trailing
147
+ # whitespace is removed before validation.
148
+ sig { returns(T.nilable(String)) }
149
+ attr_accessor :visitor_id
150
+
140
151
  sig do
141
152
  params(
142
153
  token: String,
@@ -167,6 +178,7 @@ module OursprivacyIngest
167
178
  T.nilable(
168
179
  OursprivacyIngest::TrackEventParams::UserProperties::OrHash
169
180
  ),
181
+ visitor_id: T.nilable(String),
170
182
  request_options: OursprivacyIngest::RequestOptions::OrHash
171
183
  ).returns(T.attached_class)
172
184
  end
@@ -187,7 +199,7 @@ module OursprivacyIngest
187
199
  # clients should send a string. Leading and trailing whitespace is removed before
188
200
  # validation.
189
201
  distinct_id: nil,
190
- # The email address of a user. When userId is absent and externalId does not
202
+ # The email address of a user. When visitorId is absent and externalId does not
191
203
  # resolve a visitor, we search your account for a visitor with this email. If no
192
204
  # match is found, we try userProperties.phone_number before creating a new
193
205
  # visitor. Leading and trailing whitespace is removed before validation.
@@ -199,11 +211,11 @@ module OursprivacyIngest
199
211
  # strings. After normalization, the serialized JSON must be shorter than 1,048,576
200
212
  # UTF-16 code units.
201
213
  event_properties: nil,
202
- # Your system's unique identifier for this user. When userId is absent, we search
203
- # your account for an existing visitor with this externalId. If no match is found,
204
- # we try email and then userProperties.phone_number before creating a new visitor.
205
- # If you also have the userId from cookies or local storage, send both — it
206
- # removes the lookup round-trip. Non-string input is converted to text before
214
+ # Your system's unique identifier for this user. When visitorId is absent, we
215
+ # search your account for an existing visitor with this externalId. If no match is
216
+ # found, we try email and then userProperties.phone_number before creating a new
217
+ # visitor. If you also have the visitorId from cookies or local storage, send both
218
+ # — it removes the lookup round-trip. Non-string input is converted to text before
207
219
  # validation; clients should send a string. Leading and trailing whitespace is
208
220
  # removed before validation.
209
221
  external_id: nil,
@@ -211,18 +223,27 @@ module OursprivacyIngest
211
223
  # identity resolution when the caller is a backend server rather than an end-user
212
224
  # browser.
213
225
  identity_context: nil,
214
- # The time at which the event occurred in milliseconds since UTC epoch. The time
215
- # must be in the past and within the last 7 days.
226
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
227
+ # older than one year are recorded as exactly one year ago, and future times as
228
+ # now.
216
229
  time: nil,
217
230
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
218
231
  # When present, this is used directly — no lookup by externalId, email, or phone
219
- # is performed. If you have both a userId and an externalId, send both so the
220
- # event is attached to the right visitor without any lookup overhead. Leading and
221
- # trailing whitespace is removed before validation.
232
+ # is performed. If you have both a visitorId and an externalId, send both so the
233
+ # event is attached to the right visitor without any lookup overhead. visitorId
234
+ # takes precedence over the deprecated userId alias. Leading and trailing
235
+ # whitespace is removed before validation.
222
236
  user_id: nil,
223
237
  # Properties to set on the visitor. (optional) You can also update these
224
238
  # properties via the identify endpoint.
225
239
  user_properties: nil,
240
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
241
+ # When present, this is used directly — no lookup by externalId, email, or phone
242
+ # is performed. If you have both a visitorId and an externalId, send both so the
243
+ # event is attached to the right visitor without any lookup overhead. visitorId
244
+ # takes precedence over the deprecated userId alias. Leading and trailing
245
+ # whitespace is removed before validation.
246
+ visitor_id: nil,
226
247
  request_options: {}
227
248
  )
228
249
  end
@@ -252,6 +273,7 @@ module OursprivacyIngest
252
273
  user_id: T.nilable(String),
253
274
  user_properties:
254
275
  T.nilable(OursprivacyIngest::TrackEventParams::UserProperties),
276
+ visitor_id: T.nilable(String),
255
277
  request_options: OursprivacyIngest::RequestOptions
256
278
  }
257
279
  )
@@ -293,6 +315,13 @@ module OursprivacyIngest
293
315
  sig { returns(T.nilable(String)) }
294
316
  attr_accessor :adset_id
295
317
 
318
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
319
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
320
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
321
+ # before validation.
322
+ sig { returns(T.nilable(String)) }
323
+ attr_accessor :affiliatly_v3
324
+
296
325
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
297
326
  # is removed before validation.
298
327
  sig { returns(T.nilable(String)) }
@@ -698,6 +727,7 @@ module OursprivacyIngest
698
727
  ad_id: T.nilable(String),
699
728
  admitad_uid: T.nilable(String),
700
729
  adset_id: T.nilable(String),
730
+ affiliatly_v3: T.nilable(String),
701
731
  alart: T.nilable(String),
702
732
  aleid: T.nilable(String),
703
733
  axwrt: T.nilable(String),
@@ -796,6 +826,11 @@ module OursprivacyIngest
796
826
  # The adset id detected in the session. This is set by the web sdk automatically.
797
827
  # Leading and trailing whitespace is removed before validation.
798
828
  adset_id: nil,
829
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
830
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
831
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
832
+ # before validation.
833
+ affiliatly_v3: nil,
799
834
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
800
835
  # is removed before validation.
801
836
  alart: nil,
@@ -1043,6 +1078,7 @@ module OursprivacyIngest
1043
1078
  ad_id: T.nilable(String),
1044
1079
  admitad_uid: T.nilable(String),
1045
1080
  adset_id: T.nilable(String),
1081
+ affiliatly_v3: T.nilable(String),
1046
1082
  alart: T.nilable(String),
1047
1083
  aleid: T.nilable(String),
1048
1084
  axwrt: T.nilable(String),
@@ -1715,6 +1751,9 @@ module OursprivacyIngest
1715
1751
  sig { returns(T.nilable(String)) }
1716
1752
  attr_accessor :adset_id
1717
1753
 
1754
+ sig { returns(T.nilable(String)) }
1755
+ attr_accessor :affiliatly_v3
1756
+
1718
1757
  sig { returns(T.nilable(String)) }
1719
1758
  attr_accessor :alart
1720
1759
 
@@ -2014,6 +2053,7 @@ module OursprivacyIngest
2014
2053
  ad_id: T.nilable(String),
2015
2054
  admitad_uid: T.nilable(String),
2016
2055
  adset_id: T.nilable(String),
2056
+ affiliatly_v3: T.nilable(String),
2017
2057
  alart: T.nilable(String),
2018
2058
  aleid: T.nilable(String),
2019
2059
  axwrt: T.nilable(String),
@@ -2112,6 +2152,7 @@ module OursprivacyIngest
2112
2152
  # Leading and trailing whitespace is removed before validation.
2113
2153
  admitad_uid: nil,
2114
2154
  adset_id: nil,
2155
+ affiliatly_v3: nil,
2115
2156
  alart: nil,
2116
2157
  aleid: nil,
2117
2158
  axwrt: nil,
@@ -2245,6 +2286,7 @@ module OursprivacyIngest
2245
2286
  ad_id: T.nilable(String),
2246
2287
  admitad_uid: T.nilable(String),
2247
2288
  adset_id: T.nilable(String),
2289
+ affiliatly_v3: T.nilable(String),
2248
2290
  alart: T.nilable(String),
2249
2291
  aleid: T.nilable(String),
2250
2292
  axwrt: T.nilable(String),
@@ -52,18 +52,18 @@ module OursprivacyIngest
52
52
  end
53
53
  attr_writer :default_properties
54
54
 
55
- # The email address of a user. When userId is absent and externalId does not
55
+ # The email address of a user. When visitorId is absent and externalId does not
56
56
  # resolve a visitor, we search your account for a visitor with this email. If no
57
57
  # match is found, we try userProperties.phone_number before creating a new
58
58
  # visitor. Leading and trailing whitespace is removed before validation.
59
59
  sig { returns(T.nilable(String)) }
60
60
  attr_accessor :email
61
61
 
62
- # Your system's unique identifier for this user. When userId is absent, we search
63
- # your account for an existing visitor with this externalId. If no match is found,
64
- # we try email and then userProperties.phone_number before creating a new visitor.
65
- # If you also have the userId from cookies or local storage, send both — it
66
- # removes the lookup round-trip. Non-string input is converted to text before
62
+ # Your system's unique identifier for this user. When visitorId is absent, we
63
+ # search your account for an existing visitor with this externalId. If no match is
64
+ # found, we try email and then userProperties.phone_number before creating a new
65
+ # visitor. If you also have the visitorId from cookies or local storage, send both
66
+ # — it removes the lookup round-trip. Non-string input is converted to text before
67
67
  # validation; clients should send a string. Leading and trailing whitespace is
68
68
  # removed before validation.
69
69
  sig { returns(T.nilable(String)) }
@@ -91,12 +91,22 @@ module OursprivacyIngest
91
91
 
92
92
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
93
93
  # When present, this is used directly — no lookup by externalId, email, or phone
94
- # is performed. If you have both a userId and an externalId, send both so the
95
- # event is attached to the right visitor without any lookup overhead. Leading and
96
- # trailing whitespace is removed before validation.
94
+ # is performed. If you have both a visitorId and an externalId, send both so the
95
+ # event is attached to the right visitor without any lookup overhead. visitorId
96
+ # takes precedence over the deprecated userId alias. Leading and trailing
97
+ # whitespace is removed before validation.
97
98
  sig { returns(T.nilable(String)) }
98
99
  attr_accessor :user_id
99
100
 
101
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
102
+ # When present, this is used directly — no lookup by externalId, email, or phone
103
+ # is performed. If you have both a visitorId and an externalId, send both so the
104
+ # event is attached to the right visitor without any lookup overhead. visitorId
105
+ # takes precedence over the deprecated userId alias. Leading and trailing
106
+ # whitespace is removed before validation.
107
+ sig { returns(T.nilable(String)) }
108
+ attr_accessor :visitor_id
109
+
100
110
  sig do
101
111
  params(
102
112
  token: String,
@@ -113,6 +123,7 @@ module OursprivacyIngest
113
123
  OursprivacyIngest::VisitorUpsertParams::IdentityContext::OrHash
114
124
  ),
115
125
  user_id: T.nilable(String),
126
+ visitor_id: T.nilable(String),
116
127
  request_options: OursprivacyIngest::RequestOptions::OrHash
117
128
  ).returns(T.attached_class)
118
129
  end
@@ -127,16 +138,16 @@ module OursprivacyIngest
127
138
  # These properties are used throughout the Ours app to pass known values onto
128
139
  # destinations
129
140
  default_properties: nil,
130
- # The email address of a user. When userId is absent and externalId does not
141
+ # The email address of a user. When visitorId is absent and externalId does not
131
142
  # resolve a visitor, we search your account for a visitor with this email. If no
132
143
  # match is found, we try userProperties.phone_number before creating a new
133
144
  # visitor. Leading and trailing whitespace is removed before validation.
134
145
  email: nil,
135
- # Your system's unique identifier for this user. When userId is absent, we search
136
- # your account for an existing visitor with this externalId. If no match is found,
137
- # we try email and then userProperties.phone_number before creating a new visitor.
138
- # If you also have the userId from cookies or local storage, send both — it
139
- # removes the lookup round-trip. Non-string input is converted to text before
146
+ # Your system's unique identifier for this user. When visitorId is absent, we
147
+ # search your account for an existing visitor with this externalId. If no match is
148
+ # found, we try email and then userProperties.phone_number before creating a new
149
+ # visitor. If you also have the visitorId from cookies or local storage, send both
150
+ # — it removes the lookup round-trip. Non-string input is converted to text before
140
151
  # validation; clients should send a string. Leading and trailing whitespace is
141
152
  # removed before validation.
142
153
  external_id: nil,
@@ -146,10 +157,18 @@ module OursprivacyIngest
146
157
  identity_context: nil,
147
158
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
148
159
  # When present, this is used directly — no lookup by externalId, email, or phone
149
- # is performed. If you have both a userId and an externalId, send both so the
150
- # event is attached to the right visitor without any lookup overhead. Leading and
151
- # trailing whitespace is removed before validation.
160
+ # is performed. If you have both a visitorId and an externalId, send both so the
161
+ # event is attached to the right visitor without any lookup overhead. visitorId
162
+ # takes precedence over the deprecated userId alias. Leading and trailing
163
+ # whitespace is removed before validation.
152
164
  user_id: nil,
165
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
166
+ # When present, this is used directly — no lookup by externalId, email, or phone
167
+ # is performed. If you have both a visitorId and an externalId, send both so the
168
+ # event is attached to the right visitor without any lookup overhead. visitorId
169
+ # takes precedence over the deprecated userId alias. Leading and trailing
170
+ # whitespace is removed before validation.
171
+ visitor_id: nil,
153
172
  request_options: {}
154
173
  )
155
174
  end
@@ -171,6 +190,7 @@ module OursprivacyIngest
171
190
  OursprivacyIngest::VisitorUpsertParams::IdentityContext
172
191
  ),
173
192
  user_id: T.nilable(String),
193
+ visitor_id: T.nilable(String),
174
194
  request_options: OursprivacyIngest::RequestOptions
175
195
  }
176
196
  )
@@ -201,6 +221,9 @@ module OursprivacyIngest
201
221
  sig { returns(T.nilable(String)) }
202
222
  attr_accessor :adset_id
203
223
 
224
+ sig { returns(T.nilable(String)) }
225
+ attr_accessor :affiliatly_v3
226
+
204
227
  sig { returns(T.nilable(String)) }
205
228
  attr_accessor :alart
206
229
 
@@ -501,6 +524,7 @@ module OursprivacyIngest
501
524
  ad_id: T.nilable(String),
502
525
  admitad_uid: T.nilable(String),
503
526
  adset_id: T.nilable(String),
527
+ affiliatly_v3: T.nilable(String),
504
528
  alart: T.nilable(String),
505
529
  aleid: T.nilable(String),
506
530
  axwrt: T.nilable(String),
@@ -599,6 +623,7 @@ module OursprivacyIngest
599
623
  # Leading and trailing whitespace is removed before validation.
600
624
  admitad_uid: nil,
601
625
  adset_id: nil,
626
+ affiliatly_v3: nil,
602
627
  alart: nil,
603
628
  aleid: nil,
604
629
  axwrt: nil,
@@ -732,6 +757,7 @@ module OursprivacyIngest
732
757
  ad_id: T.nilable(String),
733
758
  admitad_uid: T.nilable(String),
734
759
  adset_id: T.nilable(String),
760
+ affiliatly_v3: T.nilable(String),
735
761
  alart: T.nilable(String),
736
762
  aleid: T.nilable(String),
737
763
  axwrt: T.nilable(String),
@@ -1962,6 +1988,13 @@ module OursprivacyIngest
1962
1988
  sig { returns(T.nilable(String)) }
1963
1989
  attr_accessor :adset_id
1964
1990
 
1991
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
1992
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
1993
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
1994
+ # before validation.
1995
+ sig { returns(T.nilable(String)) }
1996
+ attr_accessor :affiliatly_v3
1997
+
1965
1998
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
1966
1999
  # is removed before validation.
1967
2000
  sig { returns(T.nilable(String)) }
@@ -2367,6 +2400,7 @@ module OursprivacyIngest
2367
2400
  ad_id: T.nilable(String),
2368
2401
  admitad_uid: T.nilable(String),
2369
2402
  adset_id: T.nilable(String),
2403
+ affiliatly_v3: T.nilable(String),
2370
2404
  alart: T.nilable(String),
2371
2405
  aleid: T.nilable(String),
2372
2406
  axwrt: T.nilable(String),
@@ -2465,6 +2499,11 @@ module OursprivacyIngest
2465
2499
  # The adset id detected in the session. This is set by the web sdk automatically.
2466
2500
  # Leading and trailing whitespace is removed before validation.
2467
2501
  adset_id: nil,
2502
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
2503
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
2504
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
2505
+ # before validation.
2506
+ affiliatly_v3: nil,
2468
2507
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
2469
2508
  # is removed before validation.
2470
2509
  alart: nil,
@@ -2712,6 +2751,7 @@ module OursprivacyIngest
2712
2751
  ad_id: T.nilable(String),
2713
2752
  admitad_uid: T.nilable(String),
2714
2753
  adset_id: T.nilable(String),
2754
+ affiliatly_v3: T.nilable(String),
2715
2755
  alart: T.nilable(String),
2716
2756
  aleid: T.nilable(String),
2717
2757
  axwrt: T.nilable(String),