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.
@@ -43,7 +43,7 @@ module OursprivacyIngest
43
43
  optional :distinct_id, String, api_name: :distinctId, nil?: true
44
44
 
45
45
  # @!attribute email
46
- # The email address of a user. When userId is absent and externalId does not
46
+ # The email address of a user. When visitorId is absent and externalId does not
47
47
  # resolve a visitor, we search your account for a visitor with this email. If no
48
48
  # match is found, we try userProperties.phone_number before creating a new
49
49
  # visitor. Leading and trailing whitespace is removed before validation.
@@ -69,11 +69,11 @@ module OursprivacyIngest
69
69
  nil?: true
70
70
 
71
71
  # @!attribute external_id
72
- # Your system's unique identifier for this user. When userId is absent, we search
73
- # your account for an existing visitor with this externalId. If no match is found,
74
- # we try email and then userProperties.phone_number before creating a new visitor.
75
- # If you also have the userId from cookies or local storage, send both — it
76
- # removes the lookup round-trip. Non-string input is converted to text before
72
+ # Your system's unique identifier for this user. When visitorId is absent, we
73
+ # search your account for an existing visitor with this externalId. If no match is
74
+ # found, we try email and then userProperties.phone_number before creating a new
75
+ # visitor. If you also have the visitorId from cookies or local storage, send both
76
+ # — it removes the lookup round-trip. Non-string input is converted to text before
77
77
  # validation; clients should send a string. Leading and trailing whitespace is
78
78
  # removed before validation.
79
79
  #
@@ -92,18 +92,22 @@ module OursprivacyIngest
92
92
  nil?: true
93
93
 
94
94
  # @!attribute time
95
- # The time at which the event occurred in milliseconds since UTC epoch. The time
96
- # must be in the past and within the last 7 days.
95
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
96
+ # older than one year are recorded as exactly one year ago, and future times as
97
+ # now.
97
98
  #
98
99
  # @return [Float, nil]
99
100
  optional :time, Float, nil?: true
100
101
 
101
102
  # @!attribute user_id
103
+ # @deprecated
104
+ #
102
105
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
103
106
  # When present, this is used directly — no lookup by externalId, email, or phone
104
- # is performed. If you have both a userId and an externalId, send both so the
105
- # event is attached to the right visitor without any lookup overhead. Leading and
106
- # trailing whitespace is removed before validation.
107
+ # is performed. If you have both a visitorId and an externalId, send both so the
108
+ # event is attached to the right visitor without any lookup overhead. visitorId
109
+ # takes precedence over the deprecated userId alias. Leading and trailing
110
+ # whitespace is removed before validation.
107
111
  #
108
112
  # @return [String, nil]
109
113
  optional :user_id, String, api_name: :userId, nil?: true
@@ -118,7 +122,18 @@ module OursprivacyIngest
118
122
  api_name: :userProperties,
119
123
  nil?: true
120
124
 
121
- # @!method initialize(token:, event:, default_properties: nil, distinct_id: nil, email: nil, event_properties: nil, external_id: nil, identity_context: nil, time: nil, user_id: nil, user_properties: nil, request_options: {})
125
+ # @!attribute visitor_id
126
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
127
+ # When present, this is used directly — no lookup by externalId, email, or phone
128
+ # is performed. If you have both a visitorId and an externalId, send both so the
129
+ # event is attached to the right visitor without any lookup overhead. visitorId
130
+ # takes precedence over the deprecated userId alias. Leading and trailing
131
+ # whitespace is removed before validation.
132
+ #
133
+ # @return [String, nil]
134
+ optional :visitor_id, String, api_name: :visitorId, nil?: true
135
+
136
+ # @!method initialize(token:, event:, default_properties: nil, distinct_id: nil, email: nil, event_properties: nil, external_id: nil, identity_context: nil, time: nil, user_id: nil, user_properties: nil, visitor_id: nil, request_options: {})
122
137
  # Some parameter documentations has been truncated, see
123
138
  # {OursprivacyIngest::Models::TrackEventParams} for more details.
124
139
  #
@@ -130,20 +145,22 @@ module OursprivacyIngest
130
145
  #
131
146
  # @param distinct_id [String, nil] A unique identifier for this event used for deduplication. Highly recommended —
132
147
  #
133
- # @param email [String, nil] The email address of a user. When userId is absent and externalId does not resol
148
+ # @param email [String, nil] The email address of a user. When visitorId is absent and externalId does not re
134
149
  #
135
150
  # @param event_properties [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, nil}, nil}, nil}, nil}, nil}, nil] Any additional event properties you want to pass along. Use at most 200 nonempty
136
151
  #
137
- # @param external_id [String, nil] Your system's unique identifier for this user. When userId is absent, we search
152
+ # @param external_id [String, nil] Your system's unique identifier for this user. When visitorId is absent, we sear
138
153
  #
139
154
  # @param identity_context [OursprivacyIngest::Models::TrackEventParams::IdentityContext, nil] End-user network context for server-side calls. Required for probabilistic ident
140
155
  #
141
- # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. The time m
156
+ # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. Times olde
142
157
  #
143
158
  # @param user_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
144
159
  #
145
160
  # @param user_properties [OursprivacyIngest::Models::TrackEventParams::UserProperties, nil] Properties to set on the visitor. (optional) You can also update these propertie
146
161
  #
162
+ # @param visitor_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
163
+ #
147
164
  # @param request_options [OursprivacyIngest::RequestOptions, Hash{Symbol=>Object}]
148
165
 
149
166
  class DefaultProperties < OursprivacyIngest::Internal::Type::BaseModel
@@ -182,6 +199,15 @@ module OursprivacyIngest
182
199
  # @return [String, nil]
183
200
  optional :adset_id, String, nil?: true
184
201
 
202
+ # @!attribute affiliatly_v3
203
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
204
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
205
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
206
+ # before validation.
207
+ #
208
+ # @return [String, nil]
209
+ optional :affiliatly_v3, String, nil?: true
210
+
185
211
  # @!attribute alart
186
212
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
187
213
  # is removed before validation.
@@ -730,7 +756,7 @@ module OursprivacyIngest
730
756
  # @return [String, nil]
731
757
  optional :ylpcid, String, nil?: true
732
758
 
733
- # @!method initialize(_ef_transaction_id: nil, active_duration: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, browser_language: nil, browser_name: nil, browser_version: nil, campaign_id: nil, clickid: nil, clid: nil, cpu_architecture: nil, current_url: nil, dclid: nil, device_model: nil, device_type: nil, device_vendor: nil, duration: nil, encoding: nil, engine_name: nil, engine_version: nil, epik: nil, fbc: nil, fbclid: nil, fbp: nil, fv: nil, gad_source: nil, gbraid: nil, gclid: nil, graid: nil, grclid: nil, host: nil, iframe: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, new_s: nil, ob_click_id: nil, oppref: nil, os_name: nil, os_version: nil, page_hash: nil, pathname: nil, qclid: nil, rdt_cid: nil, received_at: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, screen_height: nil, screen_width: nil, session_count: nil, sid: nil, sr: nil, title: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, uafvl: nil, user_agent: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, version: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, webview: nil, ylpcid: nil)
759
+ # @!method initialize(_ef_transaction_id: nil, active_duration: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, affiliatly_v3: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, browser_language: nil, browser_name: nil, browser_version: nil, campaign_id: nil, clickid: nil, clid: nil, cpu_architecture: nil, current_url: nil, dclid: nil, device_model: nil, device_type: nil, device_vendor: nil, duration: nil, encoding: nil, engine_name: nil, engine_version: nil, epik: nil, fbc: nil, fbclid: nil, fbp: nil, fv: nil, gad_source: nil, gbraid: nil, gclid: nil, graid: nil, grclid: nil, host: nil, iframe: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, new_s: nil, ob_click_id: nil, oppref: nil, os_name: nil, os_version: nil, page_hash: nil, pathname: nil, qclid: nil, rdt_cid: nil, received_at: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, screen_height: nil, screen_width: nil, session_count: nil, sid: nil, sr: nil, title: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, uafvl: nil, user_agent: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, version: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, webview: nil, ylpcid: nil)
734
760
  # Some parameter documentations has been truncated, see
735
761
  # {OursprivacyIngest::Models::TrackEventParams::DefaultProperties} for more
736
762
  # details.
@@ -749,6 +775,8 @@ module OursprivacyIngest
749
775
  #
750
776
  # @param adset_id [String, nil] The adset id detected in the session. This is set by the web sdk automatically.
751
777
  #
778
+ # @param affiliatly_v3 [String, nil] The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
779
+ #
752
780
  # @param alart [String, nil] The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
753
781
  #
754
782
  # @param aleid [String, nil] The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace
@@ -1260,6 +1288,11 @@ module OursprivacyIngest
1260
1288
  # @return [String, nil]
1261
1289
  optional :adset_id, String, nil?: true
1262
1290
 
1291
+ # @!attribute affiliatly_v3
1292
+ #
1293
+ # @return [String, nil]
1294
+ optional :affiliatly_v3, String, nil?: true
1295
+
1263
1296
  # @!attribute alart
1264
1297
  #
1265
1298
  # @return [String, nil]
@@ -1651,7 +1684,7 @@ module OursprivacyIngest
1651
1684
  # @return [String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil]
1652
1685
  optional :zip, union: -> { OursprivacyIngest::TrackEventParams::UserProperties::Zip }, nil?: true
1653
1686
 
1654
- # @!method initialize(_ef_transaction_id: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, campaign_id: nil, city: nil, clickid: nil, clid: nil, company_name: nil, consent: nil, country: nil, custom_properties: nil, date_of_birth: nil, dclid: nil, email: nil, epik: nil, external_id: nil, fbc: nil, fbclid: nil, fbp: nil, first_name: nil, gad_source: nil, gbraid: nil, gclid: nil, gender: nil, graid: nil, grclid: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, job_title: nil, last_name: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, ob_click_id: nil, oppref: nil, phone_number: nil, qclid: nil, rdt_cid: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, sid: nil, state: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, user_agent: nil, user_agent_full_list: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, ylpcid: nil, zip: nil)
1687
+ # @!method initialize(_ef_transaction_id: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, affiliatly_v3: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, campaign_id: nil, city: nil, clickid: nil, clid: nil, company_name: nil, consent: nil, country: nil, custom_properties: nil, date_of_birth: nil, dclid: nil, email: nil, epik: nil, external_id: nil, fbc: nil, fbclid: nil, fbp: nil, first_name: nil, gad_source: nil, gbraid: nil, gclid: nil, gender: nil, graid: nil, grclid: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, job_title: nil, last_name: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, ob_click_id: nil, oppref: nil, phone_number: nil, qclid: nil, rdt_cid: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, sid: nil, state: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, user_agent: nil, user_agent_full_list: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, ylpcid: nil, zip: nil)
1655
1688
  # Some parameter documentations has been truncated, see
1656
1689
  # {OursprivacyIngest::Models::TrackEventParams::UserProperties} for more details.
1657
1690
  #
@@ -1666,6 +1699,8 @@ module OursprivacyIngest
1666
1699
  #
1667
1700
  # @param adset_id [String, nil]
1668
1701
  #
1702
+ # @param affiliatly_v3 [String, nil]
1703
+ #
1669
1704
  # @param alart [String, nil]
1670
1705
  #
1671
1706
  # @param aleid [String, nil]
@@ -35,7 +35,7 @@ module OursprivacyIngest
35
35
  nil?: true
36
36
 
37
37
  # @!attribute email
38
- # The email address of a user. When userId is absent and externalId does not
38
+ # The email address of a user. When visitorId is absent and externalId does not
39
39
  # resolve a visitor, we search your account for a visitor with this email. If no
40
40
  # match is found, we try userProperties.phone_number before creating a new
41
41
  # visitor. Leading and trailing whitespace is removed before validation.
@@ -44,11 +44,11 @@ module OursprivacyIngest
44
44
  optional :email, String, nil?: true
45
45
 
46
46
  # @!attribute external_id
47
- # Your system's unique identifier for this user. When userId is absent, we search
48
- # your account for an existing visitor with this externalId. If no match is found,
49
- # we try email and then userProperties.phone_number before creating a new visitor.
50
- # If you also have the userId from cookies or local storage, send both — it
51
- # removes the lookup round-trip. Non-string input is converted to text before
47
+ # Your system's unique identifier for this user. When visitorId is absent, we
48
+ # search your account for an existing visitor with this externalId. If no match is
49
+ # found, we try email and then userProperties.phone_number before creating a new
50
+ # visitor. If you also have the visitorId from cookies or local storage, send both
51
+ # — it removes the lookup round-trip. Non-string input is converted to text before
52
52
  # validation; clients should send a string. Leading and trailing whitespace is
53
53
  # removed before validation.
54
54
  #
@@ -67,16 +67,30 @@ module OursprivacyIngest
67
67
  nil?: true
68
68
 
69
69
  # @!attribute user_id
70
+ # @deprecated
71
+ #
70
72
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
71
73
  # When present, this is used directly — no lookup by externalId, email, or phone
72
- # is performed. If you have both a userId and an externalId, send both so the
73
- # event is attached to the right visitor without any lookup overhead. Leading and
74
- # trailing whitespace is removed before validation.
74
+ # is performed. If you have both a visitorId and an externalId, send both so the
75
+ # event is attached to the right visitor without any lookup overhead. visitorId
76
+ # takes precedence over the deprecated userId alias. Leading and trailing
77
+ # whitespace is removed before validation.
75
78
  #
76
79
  # @return [String, nil]
77
80
  optional :user_id, String, api_name: :userId, nil?: true
78
81
 
79
- # @!method initialize(token:, user_properties:, default_properties: nil, email: nil, external_id: nil, identity_context: nil, user_id: nil, request_options: {})
82
+ # @!attribute visitor_id
83
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
84
+ # When present, this is used directly — no lookup by externalId, email, or phone
85
+ # is performed. If you have both a visitorId and an externalId, send both so the
86
+ # event is attached to the right visitor without any lookup overhead. visitorId
87
+ # takes precedence over the deprecated userId alias. Leading and trailing
88
+ # whitespace is removed before validation.
89
+ #
90
+ # @return [String, nil]
91
+ optional :visitor_id, String, api_name: :visitorId, nil?: true
92
+
93
+ # @!method initialize(token:, user_properties:, default_properties: nil, email: nil, external_id: nil, identity_context: nil, user_id: nil, visitor_id: nil, request_options: {})
80
94
  # Some parameter documentations has been truncated, see
81
95
  # {OursprivacyIngest::Models::VisitorUpsertParams} for more details.
82
96
  #
@@ -86,14 +100,16 @@ module OursprivacyIngest
86
100
  #
87
101
  # @param default_properties [OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties, nil] These properties are used throughout the Ours app to pass known values onto dest
88
102
  #
89
- # @param email [String, nil] The email address of a user. When userId is absent and externalId does not resol
103
+ # @param email [String, nil] The email address of a user. When visitorId is absent and externalId does not re
90
104
  #
91
- # @param external_id [String, nil] Your system's unique identifier for this user. When userId is absent, we search
105
+ # @param external_id [String, nil] Your system's unique identifier for this user. When visitorId is absent, we sear
92
106
  #
93
107
  # @param identity_context [OursprivacyIngest::Models::VisitorUpsertParams::IdentityContext, nil] End-user network context for server-side calls. Required for probabilistic ident
94
108
  #
95
109
  # @param user_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
96
110
  #
111
+ # @param visitor_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
112
+ #
97
113
  # @param request_options [OursprivacyIngest::RequestOptions, Hash{Symbol=>Object}]
98
114
 
99
115
  class UserProperties < OursprivacyIngest::Internal::Type::BaseModel
@@ -119,6 +135,11 @@ module OursprivacyIngest
119
135
  # @return [String, nil]
120
136
  optional :adset_id, String, nil?: true
121
137
 
138
+ # @!attribute affiliatly_v3
139
+ #
140
+ # @return [String, nil]
141
+ optional :affiliatly_v3, String, nil?: true
142
+
122
143
  # @!attribute alart
123
144
  #
124
145
  # @return [String, nil]
@@ -514,7 +535,7 @@ module OursprivacyIngest
514
535
  # @return [String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil]
515
536
  optional :zip, union: -> { OursprivacyIngest::VisitorUpsertParams::UserProperties::Zip }, nil?: true
516
537
 
517
- # @!method initialize(_ef_transaction_id: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, campaign_id: nil, city: nil, clickid: nil, clid: nil, company_name: nil, consent: nil, country: nil, custom_properties: nil, date_of_birth: nil, dclid: nil, email: nil, epik: nil, external_id: nil, fbc: nil, fbclid: nil, fbp: nil, first_name: nil, gad_source: nil, gbraid: nil, gclid: nil, gender: nil, graid: nil, grclid: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, job_title: nil, last_name: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, ob_click_id: nil, oppref: nil, phone_number: nil, qclid: nil, rdt_cid: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, sid: nil, state: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, user_agent: nil, user_agent_full_list: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, ylpcid: nil, zip: nil)
538
+ # @!method initialize(_ef_transaction_id: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, affiliatly_v3: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, campaign_id: nil, city: nil, clickid: nil, clid: nil, company_name: nil, consent: nil, country: nil, custom_properties: nil, date_of_birth: nil, dclid: nil, email: nil, epik: nil, external_id: nil, fbc: nil, fbclid: nil, fbp: nil, first_name: nil, gad_source: nil, gbraid: nil, gclid: nil, gender: nil, graid: nil, grclid: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, job_title: nil, last_name: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, ob_click_id: nil, oppref: nil, phone_number: nil, qclid: nil, rdt_cid: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, sid: nil, state: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, user_agent: nil, user_agent_full_list: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, ylpcid: nil, zip: nil)
518
539
  # Some parameter documentations has been truncated, see
519
540
  # {OursprivacyIngest::Models::VisitorUpsertParams::UserProperties} for more
520
541
  # details.
@@ -531,6 +552,8 @@ module OursprivacyIngest
531
552
  #
532
553
  # @param adset_id [String, nil]
533
554
  #
555
+ # @param affiliatly_v3 [String, nil]
556
+ #
534
557
  # @param alart [String, nil]
535
558
  #
536
559
  # @param aleid [String, nil]
@@ -1351,6 +1374,15 @@ module OursprivacyIngest
1351
1374
  # @return [String, nil]
1352
1375
  optional :adset_id, String, nil?: true
1353
1376
 
1377
+ # @!attribute affiliatly_v3
1378
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
1379
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
1380
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
1381
+ # before validation.
1382
+ #
1383
+ # @return [String, nil]
1384
+ optional :affiliatly_v3, String, nil?: true
1385
+
1354
1386
  # @!attribute alart
1355
1387
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
1356
1388
  # is removed before validation.
@@ -1897,7 +1929,7 @@ module OursprivacyIngest
1897
1929
  # @return [String, nil]
1898
1930
  optional :ylpcid, String, nil?: true
1899
1931
 
1900
- # @!method initialize(_ef_transaction_id: nil, active_duration: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, browser_language: nil, browser_name: nil, browser_version: nil, campaign_id: nil, clickid: nil, clid: nil, cpu_architecture: nil, current_url: nil, dclid: nil, device_model: nil, device_type: nil, device_vendor: nil, duration: nil, encoding: nil, engine_name: nil, engine_version: nil, epik: nil, fbc: nil, fbclid: nil, fbp: nil, fv: nil, gad_source: nil, gbraid: nil, gclid: nil, graid: nil, grclid: nil, host: nil, iframe: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, new_s: nil, ob_click_id: nil, oppref: nil, os_name: nil, os_version: nil, page_hash: nil, pathname: nil, qclid: nil, rdt_cid: nil, received_at: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, screen_height: nil, screen_width: nil, session_count: nil, sid: nil, sr: nil, title: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, uafvl: nil, user_agent: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, version: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, webview: nil, ylpcid: nil)
1932
+ # @!method initialize(_ef_transaction_id: nil, active_duration: nil, ad_id: nil, admitad_uid: nil, adset_id: nil, affiliatly_v3: nil, alart: nil, aleid: nil, axwrt: nil, basis_cid: nil, beeswax_auction_id: nil, browser_language: nil, browser_name: nil, browser_version: nil, campaign_id: nil, clickid: nil, clid: nil, cpu_architecture: nil, current_url: nil, dclid: nil, device_model: nil, device_type: nil, device_vendor: nil, duration: nil, encoding: nil, engine_name: nil, engine_version: nil, epik: nil, fbc: nil, fbclid: nil, fbp: nil, fv: nil, gad_source: nil, gbraid: nil, gclid: nil, graid: nil, grclid: nil, host: nil, iframe: nil, im_ref: nil, ip: nil, irclickid: nil, is_bot: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, new_s: nil, ob_click_id: nil, oppref: nil, os_name: nil, os_version: nil, page_hash: nil, pathname: nil, qclid: nil, rdt_cid: nil, received_at: nil, referrer: nil, referring_domain: nil, sacid: nil, sccid: nil, screen_height: nil, screen_width: nil, session_count: nil, sid: nil, sr: nil, title: nil, ttclid: nil, ttd_impression_id: nil, twclid: nil, uafvl: nil, user_agent: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_name: nil, utm_source: nil, utm_term: nil, version: nil, viant_click_id: nil, viant_impression_id: nil, wbraid: nil, webview: nil, ylpcid: nil)
1901
1933
  # Some parameter documentations has been truncated, see
1902
1934
  # {OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties} for more
1903
1935
  # details.
@@ -1916,6 +1948,8 @@ module OursprivacyIngest
1916
1948
  #
1917
1949
  # @param adset_id [String, nil] The adset id detected in the session. This is set by the web sdk automatically.
1918
1950
  #
1951
+ # @param affiliatly_v3 [String, nil] The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
1952
+ #
1919
1953
  # @param alart [String, nil] The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
1920
1954
  #
1921
1955
  # @param aleid [String, nil] The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace
@@ -6,20 +6,20 @@ module OursprivacyIngest
6
6
  # Some parameter documentations has been truncated, see
7
7
  # {OursprivacyIngest::Models::TrackEventParams} for more details.
8
8
  #
9
- # Track events from your server. Include userId, externalId, email, or
9
+ # Track events from your server. Include visitorId, externalId, email, or
10
10
  # userProperties.phone_number to associate the event with an existing visitor.
11
- # Identity resolution runs in priority order: userId (direct, no lookup) →
11
+ # Identity resolution runs in priority order: visitorId (direct, no lookup) →
12
12
  # externalId → email → userProperties.phone_number. Each lookup runs only if
13
13
  # earlier identifiers did not resolve a visitor. Phone matching ignores common
14
14
  # formatting and an international + or 00 prefix, but does not infer a country
15
- # code. If you know both userId and externalId, send both. For top-level visitor
16
- # properties: null clears the existing value, while undefined, omitted fields, and
17
- # empty strings are ignored. For entries inside custom_properties: null,
18
- # undefined, and empty strings are all ignored (custom_properties use merge
15
+ # code. If you know both visitorId and externalId, send both. For top-level
16
+ # visitor properties: null clears the existing value, while undefined, omitted
17
+ # fields, and empty strings are ignored. For entries inside custom_properties:
18
+ # null, undefined, and empty strings are all ignored (custom_properties use merge
19
19
  # semantics). See https://docs.oursprivacy.com/docs/data-types for details and
20
20
  # common pitfalls.
21
21
  #
22
- # @overload event(token:, event:, default_properties: nil, distinct_id: nil, email: nil, event_properties: nil, external_id: nil, identity_context: nil, time: nil, user_id: nil, user_properties: nil, request_options: {})
22
+ # @overload event(token:, event:, default_properties: nil, distinct_id: nil, email: nil, event_properties: nil, external_id: nil, identity_context: nil, time: nil, user_id: nil, user_properties: nil, visitor_id: nil, request_options: {})
23
23
  #
24
24
  # @param token [String] The token for your Source. You can find this in the dashboard. Leading and trail
25
25
  #
@@ -29,20 +29,22 @@ module OursprivacyIngest
29
29
  #
30
30
  # @param distinct_id [String, nil] A unique identifier for this event used for deduplication. Highly recommended —
31
31
  #
32
- # @param email [String, nil] The email address of a user. When userId is absent and externalId does not resol
32
+ # @param email [String, nil] The email address of a user. When visitorId is absent and externalId does not re
33
33
  #
34
34
  # @param event_properties [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil>, nil}, nil}, nil}, nil}, nil}, nil] Any additional event properties you want to pass along. Use at most 200 nonempty
35
35
  #
36
- # @param external_id [String, nil] Your system's unique identifier for this user. When userId is absent, we search
36
+ # @param external_id [String, nil] Your system's unique identifier for this user. When visitorId is absent, we sear
37
37
  #
38
38
  # @param identity_context [OursprivacyIngest::Models::TrackEventParams::IdentityContext, nil] End-user network context for server-side calls. Required for probabilistic ident
39
39
  #
40
- # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. The time m
40
+ # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. Times olde
41
41
  #
42
42
  # @param user_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
43
43
  #
44
44
  # @param user_properties [OursprivacyIngest::Models::TrackEventParams::UserProperties, nil] Properties to set on the visitor. (optional) You can also update these propertie
45
45
  #
46
+ # @param visitor_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
47
+ #
46
48
  # @param request_options [OursprivacyIngest::RequestOptions, Hash{Symbol=>Object}, nil]
47
49
  #
48
50
  # @return [OursprivacyIngest::Models::TrackEventResponse]
@@ -8,7 +8,7 @@ module OursprivacyIngest
8
8
  #
9
9
  # Set or update properties on an existing visitor, or create a new visitor if no
10
10
  # match is found. This fires a $identify event, making the call visible in the
11
- # event stream. Identity resolution runs in priority order: userId (direct, no
11
+ # event stream. Identity resolution runs in priority order: visitorId (direct, no
12
12
  # lookup) → externalId → email → userProperties.phone_number. Each lookup runs
13
13
  # only if earlier identifiers did not resolve a visitor. Phone matching ignores
14
14
  # common formatting and an international + or 00 prefix, but does not infer a
@@ -20,7 +20,7 @@ module OursprivacyIngest
20
20
  # semantics). See https://docs.oursprivacy.com/docs/data-types for details and
21
21
  # common pitfalls.
22
22
  #
23
- # @overload upsert(token:, user_properties:, default_properties: nil, email: nil, external_id: nil, identity_context: nil, user_id: nil, request_options: {})
23
+ # @overload upsert(token:, user_properties:, default_properties: nil, email: nil, external_id: nil, identity_context: nil, user_id: nil, visitor_id: nil, request_options: {})
24
24
  #
25
25
  # @param token [String] The token for your Source. You can find this in the dashboard. Leading and trail
26
26
  #
@@ -28,14 +28,16 @@ module OursprivacyIngest
28
28
  #
29
29
  # @param default_properties [OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties, nil] These properties are used throughout the Ours app to pass known values onto dest
30
30
  #
31
- # @param email [String, nil] The email address of a user. When userId is absent and externalId does not resol
31
+ # @param email [String, nil] The email address of a user. When visitorId is absent and externalId does not re
32
32
  #
33
- # @param external_id [String, nil] Your system's unique identifier for this user. When userId is absent, we search
33
+ # @param external_id [String, nil] Your system's unique identifier for this user. When visitorId is absent, we sear
34
34
  #
35
35
  # @param identity_context [OursprivacyIngest::Models::VisitorUpsertParams::IdentityContext, nil] End-user network context for server-side calls. Required for probabilistic ident
36
36
  #
37
37
  # @param user_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
38
38
  #
39
+ # @param visitor_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
40
+ #
39
41
  # @param request_options [OursprivacyIngest::RequestOptions, Hash{Symbol=>Object}, nil]
40
42
  #
41
43
  # @return [OursprivacyIngest::Models::VisitorUpsertResponse]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OursprivacyIngest
4
- VERSION = "2.0.1"
4
+ VERSION = "2.2.0"
5
5
  end
@@ -148,6 +148,32 @@ module OursprivacyIngest
148
148
  end
149
149
  end
150
150
 
151
+ # Names whose values never reach string representations, ignoring case,
152
+ # underscores and hyphens.
153
+ SENSITIVE_NAMES =
154
+ T.let(
155
+ %w[
156
+ accesstoken
157
+ apikey
158
+ authorization
159
+ clientsecret
160
+ cookie
161
+ password
162
+ refreshtoken
163
+ setcookie
164
+ token
165
+ xapikey
166
+ ].freeze,
167
+ T::Array[String]
168
+ )
169
+
170
+ class << self
171
+ # @api private
172
+ sig { params(input: T.anything).returns(T.anything) }
173
+ def redact_sensitive(input)
174
+ end
175
+ end
176
+
151
177
  # https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
152
178
  RFC_3986_NOT_PCHARS = T.let(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/, Regexp)
153
179