oursprivacy-ingest 2.0.0 → 2.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de1c6995d5ae6d9d081814d97f70b9ac84a0c625db298086e88094bbf0f7d0e6
4
- data.tar.gz: 36c70606af29fec8849af4a20982c672e727bceaabe276877c18d10768478e37
3
+ metadata.gz: 3767105dbac8ee15778f0c235394576a7ef00b40a385acf516311e517e2ecb0c
4
+ data.tar.gz: 20a9b6e80125289e1d57a52c9b5ca65095603899abacce6af4a1656e7c87572e
5
5
  SHA512:
6
- metadata.gz: d7a9d09e0f2856d524e53d62414aac5ddafd77b433f3800ef177f022d94972ee04e1a5694681c716af92f397475c66c579486107077f8ab431eb4720928055e2
7
- data.tar.gz: efd731e5473b4f628571d7ab54773d02de80a05436295842702f16dfc6dd7bbbb60b86c20ea44afbf53eab68a9538c776b122a9a49bcc7b0b4fe729edd5600d8
6
+ metadata.gz: f35c01f70e5a44a414b6c0f6ff3952d567bdd13c16c1f913c2c8cde6348ed3f4c0659fc74cd3f113103d75e36b0fadb2bfcbca93fd31d2d453f122a8fb499087
7
+ data.tar.gz: 06dca080636d4f55e38c514fda48eb9baf95213a14c77930f981ccee1f161116e3bf1c55184f9ee1474993060731f6fc152e4e72311631c26063181e19b15d9f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0 (2026-11-05)
4
+
5
+ Full Changelog: [v2.0.1...v2.1.0](https://github.com/with-ours/ingest-sdk-ruby/compare/v2.0.1...v2.1.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** API update.
10
+ ## 2.0.1 (2026-11-03)
11
+
12
+ Full Changelog: [v2.0.0...v2.0.1](https://github.com/with-ours/ingest-sdk-ruby/compare/v2.0.0...v2.0.1)
13
+
14
+ ### Chores
15
+
16
+ * **ci:** publish with RubyGems trusted publishing
3
17
  ## 2.0.0 (2026-11-02)
4
18
 
5
19
  Full Changelog: [v1.26.0...v2.0.0](https://github.com/with-ours/ingest-sdk-ruby/compare/v1.26.0...v2.0.0)
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  The Ours Privacy Ruby library provides convenient access to the Ours Privacy REST API from any Ruby 3.3.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/with-ours/ingest-sdk-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
4
4
 
5
+ `token` is the Source token from your Ours Privacy dashboard. Events must be allow-listed: an event that isn't on your [Event Allowlist](https://docs.oursprivacy.com/docs/allow-listing-events) isn't forwarded to your destinations.
6
+
7
+ See the [SDK guide](https://docs.oursprivacy.com/docs/ruby) and the runnable code in [`examples`](examples).
8
+
5
9
  ## Documentation
6
10
 
7
11
  Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/oursprivacy-ingest).
@@ -15,7 +19,7 @@ To use this gem, install via Bundler by adding the following to your application
15
19
  <!-- x-release-please-start-version -->
16
20
 
17
21
  ```ruby
18
- gem "oursprivacy-ingest", "~> 2.0.0"
22
+ gem "oursprivacy-ingest", "~> 2.1.0"
19
23
  ```
20
24
 
21
25
  <!-- x-release-please-end -->
@@ -28,11 +32,89 @@ require "oursprivacy_ingest"
28
32
 
29
33
  ours_privacy = OursprivacyIngest::Client.new
30
34
 
31
- response = ours_privacy.track.event(token: "REPLACE_ME", event: "REPLACE_ME")
35
+ response = ours_privacy.track.event(
36
+ token: "YOUR_SOURCE_TOKEN",
37
+ event: "signup_completed",
38
+ distinct_id: "evt_01J9ZK3Q7X",
39
+ event_properties: {plan: "pro", value: 49, currency: "USD"},
40
+ external_id: "crm_contact_1042",
41
+ identity_context: {ip: "203.0.113.10", userAgent: "Mozilla/5.0"}
42
+ )
43
+
44
+ puts(response.success)
45
+ ```
46
+
47
+ ### Identify a visitor
48
+
49
+ Set properties on a visitor, creating the visitor if there's no match.
50
+
51
+ ```ruby
52
+ require "bundler/setup"
53
+ require "oursprivacy_ingest"
54
+
55
+ ours_privacy = OursprivacyIngest::Client.new
56
+
57
+ response = ours_privacy.visitor.upsert(
58
+ token: "YOUR_SOURCE_TOKEN",
59
+ user_properties: {first_name: "Sample", last_name: "User"},
60
+ email: "user@example.com"
61
+ )
32
62
 
33
63
  puts(response.success)
34
64
  ```
35
65
 
66
+ ### Send a batch of events
67
+
68
+ Send many events in one request, each with its own required `distinctId`.
69
+
70
+ ```ruby
71
+ require "bundler/setup"
72
+ require "oursprivacy_ingest"
73
+
74
+ ours_privacy = OursprivacyIngest::Client.new
75
+
76
+ batch = ours_privacy.batch.create(
77
+ token: "YOUR_SOURCE_TOKEN",
78
+ events: [
79
+ {event: "signup_completed", distinctId: "evt_01J9ZK3Q7X", externalId: "crm_contact_1042"},
80
+ {event: "plan_upgraded", distinctId: "evt_01J9ZK3Q8Y", externalId: "crm_contact_1042"}
81
+ ]
82
+ )
83
+
84
+ puts(batch.accepted)
85
+ ```
86
+
87
+ A partial success returns HTTP 207 with a result for each row. Retry only the rows whose `code` is `queue_failed`, with the same `distinctId`. You can backfill events up to one year old; older `time` values are clamped.
88
+
89
+ ### Get an experiment assignment
90
+
91
+ Look up a visitor's variant, using the experiment's `exp_*` token rather than the Source token.
92
+
93
+ ```ruby
94
+ require "bundler/setup"
95
+ require "oursprivacy_ingest"
96
+
97
+ ours_privacy = OursprivacyIngest::Client.new
98
+
99
+ response = ours_privacy.experiments.assignment(
100
+ "checkout_redesign",
101
+ token: "exp_YOUR_EXPERIMENT_TOKEN",
102
+ visitor_id: "visitor_1042"
103
+ )
104
+
105
+ puts(response)
106
+ ```
107
+
108
+ ### Further reading
109
+
110
+ The docs cover each endpoint in full.
111
+
112
+ - [Track](https://docs.oursprivacy.com/docs/reference/track)
113
+ - [Identify](https://docs.oursprivacy.com/docs/reference/identify)
114
+ - [Batch](https://docs.oursprivacy.com/docs/reference/batch)
115
+ - [Rate limits](https://docs.oursprivacy.com/docs/reference/rate-limits)
116
+ - [Server-side experimentation](https://docs.oursprivacy.com/docs/experimentation/server-side)
117
+
36
118
  ### Handling errors
37
119
 
38
120
  When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `OursprivacyIngest::Errors::APIError` will be thrown:
@@ -175,17 +257,38 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
175
257
  You can provide typesafe request parameters like so:
176
258
 
177
259
  ```ruby
178
- ours_privacy.track.event(token: "REPLACE_ME", event: "REPLACE_ME")
260
+ ours_privacy.track.event(
261
+ token: "YOUR_SOURCE_TOKEN",
262
+ event: "signup_completed",
263
+ distinct_id: "evt_01J9ZK3Q7X",
264
+ event_properties: {plan: "pro", value: 49, currency: "USD"},
265
+ external_id: "crm_contact_1042",
266
+ identity_context: OursprivacyIngest::TrackEventParams::IdentityContext.new(ip: "203.0.113.10", user_agent: "Mozilla/5.0")
267
+ )
179
268
  ```
180
269
 
181
270
  Or, equivalently:
182
271
 
183
272
  ```ruby
184
273
  # Hashes work, but are not typesafe:
185
- ours_privacy.track.event(token: "REPLACE_ME", event: "REPLACE_ME")
274
+ ours_privacy.track.event(
275
+ token: "YOUR_SOURCE_TOKEN",
276
+ event: "signup_completed",
277
+ distinct_id: "evt_01J9ZK3Q7X",
278
+ event_properties: {plan: "pro", value: 49, currency: "USD"},
279
+ external_id: "crm_contact_1042",
280
+ identity_context: {ip: "203.0.113.10", userAgent: "Mozilla/5.0"}
281
+ )
186
282
 
187
283
  # You can also splat a full Params class:
188
- params = OursprivacyIngest::TrackEventParams.new(token: "REPLACE_ME", event: "REPLACE_ME")
284
+ params = OursprivacyIngest::TrackEventParams.new(
285
+ token: "YOUR_SOURCE_TOKEN",
286
+ event: "signup_completed",
287
+ distinct_id: "evt_01J9ZK3Q7X",
288
+ event_properties: {plan: "pro", value: 49, currency: "USD"},
289
+ external_id: "crm_contact_1042",
290
+ identity_context: OursprivacyIngest::TrackEventParams::IdentityContext.new(ip: "203.0.113.10", user_agent: "Mozilla/5.0")
291
+ )
189
292
  ours_privacy.track.event(**params)
190
293
  ```
191
294
 
data/SECURITY.md CHANGED
@@ -1,27 +1,25 @@
1
1
  # Security Policy
2
2
 
3
- ## Reporting Security Issues
3
+ ## Reporting a Vulnerability
4
4
 
5
- This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5
+ Ours Privacy maintains this SDK. If you believe you have found a security vulnerability, please **do not open a public issue**. Report it to **ciso@oursprivacy.com** and include steps to reproduce, the impact, and any suggested fix.
6
6
 
7
- To report a security issue, please contact the Stainless team at security@stainless.com.
7
+ We will acknowledge your report within 1 business day and provide an initial assessment within 7 business days. We will notify you when the fix is released and credit you if you wish. Please give us a reasonable amount of time to respond before making any information public.
8
8
 
9
- ## Responsible Disclosure
9
+ Use the same address for vulnerabilities in Ours Privacy services. See our [Trust Center](https://security.oursprivacy.com/) for more about our security practices.
10
10
 
11
- We appreciate the efforts of security researchers and individuals who help us maintain the security of
12
- SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible
13
- disclosure practices by allowing us a reasonable amount of time to investigate and address the issue
14
- before making any information public.
11
+ ## Supported Versions
15
12
 
16
- ## Reporting Non-SDK Related Security Issues
13
+ We provide security updates only for actively supported versions. Older versions may not receive patches.
17
14
 
18
- If you encounter security issues that are not directly related to SDKs but pertain to the services
19
- or products provided by Ours Privacy, please follow the respective company's security reporting guidelines.
15
+ ## Safe Harbor
20
16
 
21
- ### Ours Privacy Terms and Policies
17
+ We will not pursue legal action against security researchers who:
22
18
 
23
- Please contact support@oursprivacy.com for any questions or concerns regarding the security of our services.
19
+ - Report vulnerabilities in good faith.
20
+ - Avoid privacy violations, data destruction, or service disruption.
21
+ - Provide us with a reasonable amount of time to remediate before public disclosure.
24
22
 
25
- ---
23
+ ## SDK Generation
26
24
 
27
- Thank you for helping us keep the SDKs and systems they interact with secure.
25
+ This SDK is generated with tooling from Stainless Software, Inc. Stainless does not maintain this SDK or handle its security reports, so please do not send reports there.
@@ -180,7 +180,13 @@ module OursprivacyIngest
180
180
  # @param response [nil]
181
181
  # @param message [String, nil]
182
182
  def initialize(url:, status:, headers:, body:, request:, response:, message: nil)
183
- message ||= {url: url.to_s, status: status, body: body}
183
+ message ||= OursprivacyIngest::Internal::Util.redact_sensitive(
184
+ {
185
+ url: url.to_s,
186
+ status: status,
187
+ body: body
188
+ }
189
+ )
184
190
  super(
185
191
  url: url,
186
192
  status: status,
@@ -514,13 +514,18 @@ module OursprivacyIngest
514
514
  # @api public
515
515
  #
516
516
  # @return [String]
517
- def to_s = deep_to_h.to_s
517
+ def to_s = OursprivacyIngest::Internal::Util.redact_sensitive(deep_to_h).to_s
518
518
 
519
519
  # @api private
520
520
  #
521
521
  # @return [String]
522
522
  def inspect
523
- converted = self.class.recursively_to_h(self, convert: true)
523
+ converted = OursprivacyIngest::Internal::Util.redact_sensitive(
524
+ self.class.recursively_to_h(
525
+ self,
526
+ convert: true
527
+ )
528
+ )
524
529
  "#<#{self.class}:0x#{object_id.to_s(16)} #{converted}>"
525
530
  end
526
531
 
@@ -237,6 +237,45 @@ module OursprivacyIngest
237
237
  end
238
238
  end
239
239
 
240
+ # @type [Array<String>]
241
+ #
242
+ # Names whose values never reach string representations, ignoring case,
243
+ # underscores and hyphens.
244
+ SENSITIVE_NAMES =
245
+ %w[
246
+ accesstoken
247
+ apikey
248
+ authorization
249
+ clientsecret
250
+ cookie
251
+ password
252
+ refreshtoken
253
+ setcookie
254
+ token
255
+ xapikey
256
+ ].freeze
257
+
258
+ class << self
259
+ # @api private
260
+ #
261
+ # @param input [Object]
262
+ #
263
+ # @return [Object]
264
+ def redact_sensitive(input)
265
+ case input
266
+ in Hash
267
+ input.to_h do |key, value|
268
+ name = key.to_s.downcase.delete("_-")
269
+ [key, SENSITIVE_NAMES.include?(name) ? "***" : redact_sensitive(value)]
270
+ end
271
+ in Array
272
+ input.map { redact_sensitive(_1) }
273
+ else
274
+ input
275
+ end
276
+ end
277
+ end
278
+
240
279
  # @type [Regexp]
241
280
  #
242
281
  # https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
@@ -274,7 +313,11 @@ module OursprivacyIngest
274
313
  ""
275
314
  in [String => p, *interpolations]
276
315
  encoded = interpolations.map { encode_path(_1) }
277
- format(p, *encoded)
316
+ formatted = format(p, *encoded)
317
+ dot_segment = formatted.split("?", 2).first.to_s.split("/").find { [".", ".."].include?(_1) }
318
+ raise ArgumentError, "Path parameter can't be the dot segment '#{dot_segment}'" if dot_segment
319
+
320
+ formatted
278
321
  end
279
322
  end
280
323
  end
@@ -109,8 +109,9 @@ module OursprivacyIngest
109
109
  nil?: true
110
110
 
111
111
  # @!attribute time
112
- # The time at which the event occurred in milliseconds since UTC epoch. The time
113
- # must be in the past and within the last 7 days.
112
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
113
+ # older than one year are recorded as exactly one year ago, and future times as
114
+ # now.
114
115
  #
115
116
  # @return [Float, nil]
116
117
  optional :time, Float, nil?: true
@@ -153,7 +154,7 @@ module OursprivacyIngest
153
154
  #
154
155
  # @param identity_context [OursprivacyIngest::Models::BatchCreateParams::Event::IdentityContext, nil] End-user network context for server-side calls. Required for probabilistic ident
155
156
  #
156
- # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. The time m
157
+ # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. Times olde
157
158
  #
158
159
  # @param user_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
159
160
  #
@@ -196,6 +197,15 @@ module OursprivacyIngest
196
197
  # @return [String, nil]
197
198
  optional :adset_id, String, nil?: true
198
199
 
200
+ # @!attribute affiliatly_v3
201
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
202
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
203
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
204
+ # before validation.
205
+ #
206
+ # @return [String, nil]
207
+ optional :affiliatly_v3, String, nil?: true
208
+
199
209
  # @!attribute alart
200
210
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
201
211
  # is removed before validation.
@@ -742,7 +752,7 @@ module OursprivacyIngest
742
752
  # @return [String, nil]
743
753
  optional :ylpcid, String, nil?: true
744
754
 
745
- # @!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)
755
+ # @!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)
746
756
  # Some parameter documentations has been truncated, see
747
757
  # {OursprivacyIngest::Models::BatchCreateParams::Event::DefaultProperties} for
748
758
  # more details.
@@ -761,6 +771,8 @@ module OursprivacyIngest
761
771
  #
762
772
  # @param adset_id [String, nil] The adset id detected in the session. This is set by the web sdk automatically.
763
773
  #
774
+ # @param affiliatly_v3 [String, nil] The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
775
+ #
764
776
  # @param alart [String, nil] The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
765
777
  #
766
778
  # @param aleid [String, nil] The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace
@@ -1278,6 +1290,11 @@ module OursprivacyIngest
1278
1290
  # @return [String, nil]
1279
1291
  optional :adset_id, String, nil?: true
1280
1292
 
1293
+ # @!attribute affiliatly_v3
1294
+ #
1295
+ # @return [String, nil]
1296
+ optional :affiliatly_v3, String, nil?: true
1297
+
1281
1298
  # @!attribute alart
1282
1299
  #
1283
1300
  # @return [String, nil]
@@ -1675,7 +1692,7 @@ module OursprivacyIngest
1675
1692
  },
1676
1693
  nil?: true
1677
1694
 
1678
- # @!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)
1695
+ # @!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)
1679
1696
  # Some parameter documentations has been truncated, see
1680
1697
  # {OursprivacyIngest::Models::BatchCreateParams::Event::UserProperties} for more
1681
1698
  # details.
@@ -1691,6 +1708,8 @@ module OursprivacyIngest
1691
1708
  #
1692
1709
  # @param adset_id [String, nil]
1693
1710
  #
1711
+ # @param affiliatly_v3 [String, nil]
1712
+ #
1694
1713
  # @param alart [String, nil]
1695
1714
  #
1696
1715
  # @param aleid [String, nil]
@@ -92,8 +92,9 @@ 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
@@ -138,7 +139,7 @@ module OursprivacyIngest
138
139
  #
139
140
  # @param identity_context [OursprivacyIngest::Models::TrackEventParams::IdentityContext, nil] End-user network context for server-side calls. Required for probabilistic ident
140
141
  #
141
- # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. The time m
142
+ # @param time [Float, nil] The time at which the event occurred in milliseconds since UTC epoch. Times olde
142
143
  #
143
144
  # @param user_id [String, nil] The Ours Visitor ID stored in local storage and cookies on your web properties.
144
145
  #
@@ -182,6 +183,15 @@ module OursprivacyIngest
182
183
  # @return [String, nil]
183
184
  optional :adset_id, String, nil?: true
184
185
 
186
+ # @!attribute affiliatly_v3
187
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
188
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
189
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
190
+ # before validation.
191
+ #
192
+ # @return [String, nil]
193
+ optional :affiliatly_v3, String, nil?: true
194
+
185
195
  # @!attribute alart
186
196
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
187
197
  # is removed before validation.
@@ -730,7 +740,7 @@ module OursprivacyIngest
730
740
  # @return [String, nil]
731
741
  optional :ylpcid, String, nil?: true
732
742
 
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)
743
+ # @!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
744
  # Some parameter documentations has been truncated, see
735
745
  # {OursprivacyIngest::Models::TrackEventParams::DefaultProperties} for more
736
746
  # details.
@@ -749,6 +759,8 @@ module OursprivacyIngest
749
759
  #
750
760
  # @param adset_id [String, nil] The adset id detected in the session. This is set by the web sdk automatically.
751
761
  #
762
+ # @param affiliatly_v3 [String, nil] The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
763
+ #
752
764
  # @param alart [String, nil] The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
753
765
  #
754
766
  # @param aleid [String, nil] The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace
@@ -1260,6 +1272,11 @@ module OursprivacyIngest
1260
1272
  # @return [String, nil]
1261
1273
  optional :adset_id, String, nil?: true
1262
1274
 
1275
+ # @!attribute affiliatly_v3
1276
+ #
1277
+ # @return [String, nil]
1278
+ optional :affiliatly_v3, String, nil?: true
1279
+
1263
1280
  # @!attribute alart
1264
1281
  #
1265
1282
  # @return [String, nil]
@@ -1651,7 +1668,7 @@ module OursprivacyIngest
1651
1668
  # @return [String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil]
1652
1669
  optional :zip, union: -> { OursprivacyIngest::TrackEventParams::UserProperties::Zip }, nil?: true
1653
1670
 
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)
1671
+ # @!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
1672
  # Some parameter documentations has been truncated, see
1656
1673
  # {OursprivacyIngest::Models::TrackEventParams::UserProperties} for more details.
1657
1674
  #
@@ -1666,6 +1683,8 @@ module OursprivacyIngest
1666
1683
  #
1667
1684
  # @param adset_id [String, nil]
1668
1685
  #
1686
+ # @param affiliatly_v3 [String, nil]
1687
+ #
1669
1688
  # @param alart [String, nil]
1670
1689
  #
1671
1690
  # @param aleid [String, nil]
@@ -119,6 +119,11 @@ module OursprivacyIngest
119
119
  # @return [String, nil]
120
120
  optional :adset_id, String, nil?: true
121
121
 
122
+ # @!attribute affiliatly_v3
123
+ #
124
+ # @return [String, nil]
125
+ optional :affiliatly_v3, String, nil?: true
126
+
122
127
  # @!attribute alart
123
128
  #
124
129
  # @return [String, nil]
@@ -514,7 +519,7 @@ module OursprivacyIngest
514
519
  # @return [String, Float, Boolean, Array<Object>, Hash{Symbol=>Object}, nil]
515
520
  optional :zip, union: -> { OursprivacyIngest::VisitorUpsertParams::UserProperties::Zip }, nil?: true
516
521
 
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)
522
+ # @!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
523
  # Some parameter documentations has been truncated, see
519
524
  # {OursprivacyIngest::Models::VisitorUpsertParams::UserProperties} for more
520
525
  # details.
@@ -531,6 +536,8 @@ module OursprivacyIngest
531
536
  #
532
537
  # @param adset_id [String, nil]
533
538
  #
539
+ # @param affiliatly_v3 [String, nil]
540
+ #
534
541
  # @param alart [String, nil]
535
542
  #
536
543
  # @param aleid [String, nil]
@@ -1351,6 +1358,15 @@ module OursprivacyIngest
1351
1358
  # @return [String, nil]
1352
1359
  optional :adset_id, String, nil?: true
1353
1360
 
1361
+ # @!attribute affiliatly_v3
1362
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
1363
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
1364
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
1365
+ # before validation.
1366
+ #
1367
+ # @return [String, nil]
1368
+ optional :affiliatly_v3, String, nil?: true
1369
+
1354
1370
  # @!attribute alart
1355
1371
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
1356
1372
  # is removed before validation.
@@ -1897,7 +1913,7 @@ module OursprivacyIngest
1897
1913
  # @return [String, nil]
1898
1914
  optional :ylpcid, String, nil?: true
1899
1915
 
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)
1916
+ # @!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
1917
  # Some parameter documentations has been truncated, see
1902
1918
  # {OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties} for more
1903
1919
  # details.
@@ -1916,6 +1932,8 @@ module OursprivacyIngest
1916
1932
  #
1917
1933
  # @param adset_id [String, nil] The adset id detected in the session. This is set by the web sdk automatically.
1918
1934
  #
1935
+ # @param affiliatly_v3 [String, nil] The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
1936
+ #
1919
1937
  # @param alart [String, nil] The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
1920
1938
  #
1921
1939
  # @param aleid [String, nil] The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace
@@ -37,7 +37,7 @@ module OursprivacyIngest
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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OursprivacyIngest
4
- VERSION = "2.0.0"
4
+ VERSION = "2.1.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
 
@@ -154,8 +154,9 @@ 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
 
@@ -256,8 +257,9 @@ module OursprivacyIngest
256
257
  # identity resolution when the caller is a backend server rather than an end-user
257
258
  # browser.
258
259
  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.
260
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
261
+ # older than one year are recorded as exactly one year ago, and future times as
262
+ # now.
261
263
  time: nil,
262
264
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
263
265
  # When present, this is used directly — no lookup by externalId, email, or phone
@@ -341,6 +343,13 @@ module OursprivacyIngest
341
343
  sig { returns(T.nilable(String)) }
342
344
  attr_accessor :adset_id
343
345
 
346
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
347
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
348
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
349
+ # before validation.
350
+ sig { returns(T.nilable(String)) }
351
+ attr_accessor :affiliatly_v3
352
+
344
353
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
345
354
  # is removed before validation.
346
355
  sig { returns(T.nilable(String)) }
@@ -746,6 +755,7 @@ module OursprivacyIngest
746
755
  ad_id: T.nilable(String),
747
756
  admitad_uid: T.nilable(String),
748
757
  adset_id: T.nilable(String),
758
+ affiliatly_v3: T.nilable(String),
749
759
  alart: T.nilable(String),
750
760
  aleid: T.nilable(String),
751
761
  axwrt: T.nilable(String),
@@ -844,6 +854,11 @@ module OursprivacyIngest
844
854
  # The adset id detected in the session. This is set by the web sdk automatically.
845
855
  # Leading and trailing whitespace is removed before validation.
846
856
  adset_id: nil,
857
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
858
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
859
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
860
+ # before validation.
861
+ affiliatly_v3: nil,
847
862
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
848
863
  # is removed before validation.
849
864
  alart: nil,
@@ -1091,6 +1106,7 @@ module OursprivacyIngest
1091
1106
  ad_id: T.nilable(String),
1092
1107
  admitad_uid: T.nilable(String),
1093
1108
  adset_id: T.nilable(String),
1109
+ affiliatly_v3: T.nilable(String),
1094
1110
  alart: T.nilable(String),
1095
1111
  aleid: T.nilable(String),
1096
1112
  axwrt: T.nilable(String),
@@ -1765,6 +1781,9 @@ module OursprivacyIngest
1765
1781
  sig { returns(T.nilable(String)) }
1766
1782
  attr_accessor :adset_id
1767
1783
 
1784
+ sig { returns(T.nilable(String)) }
1785
+ attr_accessor :affiliatly_v3
1786
+
1768
1787
  sig { returns(T.nilable(String)) }
1769
1788
  attr_accessor :alart
1770
1789
 
@@ -2064,6 +2083,7 @@ module OursprivacyIngest
2064
2083
  ad_id: T.nilable(String),
2065
2084
  admitad_uid: T.nilable(String),
2066
2085
  adset_id: T.nilable(String),
2086
+ affiliatly_v3: T.nilable(String),
2067
2087
  alart: T.nilable(String),
2068
2088
  aleid: T.nilable(String),
2069
2089
  axwrt: T.nilable(String),
@@ -2162,6 +2182,7 @@ module OursprivacyIngest
2162
2182
  # Leading and trailing whitespace is removed before validation.
2163
2183
  admitad_uid: nil,
2164
2184
  adset_id: nil,
2185
+ affiliatly_v3: nil,
2165
2186
  alart: nil,
2166
2187
  aleid: nil,
2167
2188
  axwrt: nil,
@@ -2295,6 +2316,7 @@ module OursprivacyIngest
2295
2316
  ad_id: T.nilable(String),
2296
2317
  admitad_uid: T.nilable(String),
2297
2318
  adset_id: T.nilable(String),
2319
+ affiliatly_v3: T.nilable(String),
2298
2320
  alart: T.nilable(String),
2299
2321
  aleid: T.nilable(String),
2300
2322
  axwrt: T.nilable(String),
@@ -107,8 +107,9 @@ 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
 
@@ -211,8 +212,9 @@ module OursprivacyIngest
211
212
  # identity resolution when the caller is a backend server rather than an end-user
212
213
  # browser.
213
214
  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.
215
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
216
+ # older than one year are recorded as exactly one year ago, and future times as
217
+ # now.
216
218
  time: nil,
217
219
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
218
220
  # When present, this is used directly — no lookup by externalId, email, or phone
@@ -293,6 +295,13 @@ module OursprivacyIngest
293
295
  sig { returns(T.nilable(String)) }
294
296
  attr_accessor :adset_id
295
297
 
298
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
299
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
300
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
301
+ # before validation.
302
+ sig { returns(T.nilable(String)) }
303
+ attr_accessor :affiliatly_v3
304
+
296
305
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
297
306
  # is removed before validation.
298
307
  sig { returns(T.nilable(String)) }
@@ -698,6 +707,7 @@ module OursprivacyIngest
698
707
  ad_id: T.nilable(String),
699
708
  admitad_uid: T.nilable(String),
700
709
  adset_id: T.nilable(String),
710
+ affiliatly_v3: T.nilable(String),
701
711
  alart: T.nilable(String),
702
712
  aleid: T.nilable(String),
703
713
  axwrt: T.nilable(String),
@@ -796,6 +806,11 @@ module OursprivacyIngest
796
806
  # The adset id detected in the session. This is set by the web sdk automatically.
797
807
  # Leading and trailing whitespace is removed before validation.
798
808
  adset_id: nil,
809
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
810
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
811
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
812
+ # before validation.
813
+ affiliatly_v3: nil,
799
814
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
800
815
  # is removed before validation.
801
816
  alart: nil,
@@ -1043,6 +1058,7 @@ module OursprivacyIngest
1043
1058
  ad_id: T.nilable(String),
1044
1059
  admitad_uid: T.nilable(String),
1045
1060
  adset_id: T.nilable(String),
1061
+ affiliatly_v3: T.nilable(String),
1046
1062
  alart: T.nilable(String),
1047
1063
  aleid: T.nilable(String),
1048
1064
  axwrt: T.nilable(String),
@@ -1715,6 +1731,9 @@ module OursprivacyIngest
1715
1731
  sig { returns(T.nilable(String)) }
1716
1732
  attr_accessor :adset_id
1717
1733
 
1734
+ sig { returns(T.nilable(String)) }
1735
+ attr_accessor :affiliatly_v3
1736
+
1718
1737
  sig { returns(T.nilable(String)) }
1719
1738
  attr_accessor :alart
1720
1739
 
@@ -2014,6 +2033,7 @@ module OursprivacyIngest
2014
2033
  ad_id: T.nilable(String),
2015
2034
  admitad_uid: T.nilable(String),
2016
2035
  adset_id: T.nilable(String),
2036
+ affiliatly_v3: T.nilable(String),
2017
2037
  alart: T.nilable(String),
2018
2038
  aleid: T.nilable(String),
2019
2039
  axwrt: T.nilable(String),
@@ -2112,6 +2132,7 @@ module OursprivacyIngest
2112
2132
  # Leading and trailing whitespace is removed before validation.
2113
2133
  admitad_uid: nil,
2114
2134
  adset_id: nil,
2135
+ affiliatly_v3: nil,
2115
2136
  alart: nil,
2116
2137
  aleid: nil,
2117
2138
  axwrt: nil,
@@ -2245,6 +2266,7 @@ module OursprivacyIngest
2245
2266
  ad_id: T.nilable(String),
2246
2267
  admitad_uid: T.nilable(String),
2247
2268
  adset_id: T.nilable(String),
2269
+ affiliatly_v3: T.nilable(String),
2248
2270
  alart: T.nilable(String),
2249
2271
  aleid: T.nilable(String),
2250
2272
  axwrt: T.nilable(String),
@@ -201,6 +201,9 @@ module OursprivacyIngest
201
201
  sig { returns(T.nilable(String)) }
202
202
  attr_accessor :adset_id
203
203
 
204
+ sig { returns(T.nilable(String)) }
205
+ attr_accessor :affiliatly_v3
206
+
204
207
  sig { returns(T.nilable(String)) }
205
208
  attr_accessor :alart
206
209
 
@@ -501,6 +504,7 @@ module OursprivacyIngest
501
504
  ad_id: T.nilable(String),
502
505
  admitad_uid: T.nilable(String),
503
506
  adset_id: T.nilable(String),
507
+ affiliatly_v3: T.nilable(String),
504
508
  alart: T.nilable(String),
505
509
  aleid: T.nilable(String),
506
510
  axwrt: T.nilable(String),
@@ -599,6 +603,7 @@ module OursprivacyIngest
599
603
  # Leading and trailing whitespace is removed before validation.
600
604
  admitad_uid: nil,
601
605
  adset_id: nil,
606
+ affiliatly_v3: nil,
602
607
  alart: nil,
603
608
  aleid: nil,
604
609
  axwrt: nil,
@@ -732,6 +737,7 @@ module OursprivacyIngest
732
737
  ad_id: T.nilable(String),
733
738
  admitad_uid: T.nilable(String),
734
739
  adset_id: T.nilable(String),
740
+ affiliatly_v3: T.nilable(String),
735
741
  alart: T.nilable(String),
736
742
  aleid: T.nilable(String),
737
743
  axwrt: T.nilable(String),
@@ -1962,6 +1968,13 @@ module OursprivacyIngest
1962
1968
  sig { returns(T.nilable(String)) }
1963
1969
  attr_accessor :adset_id
1964
1970
 
1971
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
1972
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
1973
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
1974
+ # before validation.
1975
+ sig { returns(T.nilable(String)) }
1976
+ attr_accessor :affiliatly_v3
1977
+
1965
1978
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
1966
1979
  # is removed before validation.
1967
1980
  sig { returns(T.nilable(String)) }
@@ -2367,6 +2380,7 @@ module OursprivacyIngest
2367
2380
  ad_id: T.nilable(String),
2368
2381
  admitad_uid: T.nilable(String),
2369
2382
  adset_id: T.nilable(String),
2383
+ affiliatly_v3: T.nilable(String),
2370
2384
  alart: T.nilable(String),
2371
2385
  aleid: T.nilable(String),
2372
2386
  axwrt: T.nilable(String),
@@ -2465,6 +2479,11 @@ module OursprivacyIngest
2465
2479
  # The adset id detected in the session. This is set by the web sdk automatically.
2466
2480
  # Leading and trailing whitespace is removed before validation.
2467
2481
  adset_id: nil,
2482
+ # The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly
2483
+ # script when a visitor lands from an affiliate link. Web-only. Ex:
2484
+ # id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed
2485
+ # before validation.
2486
+ affiliatly_v3: nil,
2468
2487
  # The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace
2469
2488
  # is removed before validation.
2470
2489
  alart: nil,
@@ -2712,6 +2731,7 @@ module OursprivacyIngest
2712
2731
  ad_id: T.nilable(String),
2713
2732
  admitad_uid: T.nilable(String),
2714
2733
  adset_id: T.nilable(String),
2734
+ affiliatly_v3: T.nilable(String),
2715
2735
  alart: T.nilable(String),
2716
2736
  aleid: T.nilable(String),
2717
2737
  axwrt: T.nilable(String),
@@ -89,8 +89,9 @@ module OursprivacyIngest
89
89
  # identity resolution when the caller is a backend server rather than an end-user
90
90
  # browser.
91
91
  identity_context: nil,
92
- # The time at which the event occurred in milliseconds since UTC epoch. The time
93
- # must be in the past and within the last 7 days.
92
+ # The time at which the event occurred in milliseconds since UTC epoch. Times
93
+ # older than one year are recorded as exactly one year ago, and future times as
94
+ # now.
94
95
  time: nil,
95
96
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
96
97
  # When present, this is used directly — no lookup by externalId, email, or phone
@@ -45,6 +45,10 @@ module OursprivacyIngest
45
45
  -> top?
46
46
  } -> top?
47
47
 
48
+ SENSITIVE_NAMES: ::Array[String]
49
+
50
+ def self?.redact_sensitive: (top input) -> top
51
+
48
52
  RFC_3986_NOT_PCHARS: Regexp
49
53
 
50
54
  def self?.uri_origin: (URI::Generic uri) -> String
@@ -95,6 +95,7 @@ module OursprivacyIngest
95
95
  ad_id: String?,
96
96
  admitad_uid: String?,
97
97
  adset_id: String?,
98
+ :affiliatly_v3 => String?,
98
99
  alart: String?,
99
100
  aleid: String?,
100
101
  axwrt: String?,
@@ -185,6 +186,8 @@ module OursprivacyIngest
185
186
 
186
187
  attr_accessor adset_id: String?
187
188
 
189
+ attr_accessor affiliatly_v3: String?
190
+
188
191
  attr_accessor alart: String?
189
192
 
190
193
  attr_accessor aleid: String?
@@ -345,6 +348,7 @@ module OursprivacyIngest
345
348
  ?ad_id: String?,
346
349
  ?admitad_uid: String?,
347
350
  ?adset_id: String?,
351
+ ?affiliatly_v3: String?,
348
352
  ?alart: String?,
349
353
  ?aleid: String?,
350
354
  ?axwrt: String?,
@@ -430,6 +434,7 @@ module OursprivacyIngest
430
434
  ad_id: String?,
431
435
  admitad_uid: String?,
432
436
  adset_id: String?,
437
+ :affiliatly_v3 => String?,
433
438
  alart: String?,
434
439
  aleid: String?,
435
440
  axwrt: String?,
@@ -692,6 +697,7 @@ module OursprivacyIngest
692
697
  ad_id: String?,
693
698
  admitad_uid: String?,
694
699
  adset_id: String?,
700
+ :affiliatly_v3 => String?,
695
701
  alart: String?,
696
702
  aleid: String?,
697
703
  axwrt: String?,
@@ -767,6 +773,8 @@ module OursprivacyIngest
767
773
 
768
774
  attr_accessor adset_id: String?
769
775
 
776
+ attr_accessor affiliatly_v3: String?
777
+
770
778
  attr_accessor alart: String?
771
779
 
772
780
  attr_accessor aleid: String?
@@ -900,6 +908,7 @@ module OursprivacyIngest
900
908
  ?ad_id: String?,
901
909
  ?admitad_uid: String?,
902
910
  ?adset_id: String?,
911
+ ?affiliatly_v3: String?,
903
912
  ?alart: String?,
904
913
  ?aleid: String?,
905
914
  ?axwrt: String?,
@@ -971,6 +980,7 @@ module OursprivacyIngest
971
980
  ad_id: String?,
972
981
  admitad_uid: String?,
973
982
  adset_id: String?,
983
+ :affiliatly_v3 => String?,
974
984
  alart: String?,
975
985
  aleid: String?,
976
986
  axwrt: String?,
@@ -79,6 +79,7 @@ module OursprivacyIngest
79
79
  ad_id: String?,
80
80
  admitad_uid: String?,
81
81
  adset_id: String?,
82
+ :affiliatly_v3 => String?,
82
83
  alart: String?,
83
84
  aleid: String?,
84
85
  axwrt: String?,
@@ -169,6 +170,8 @@ module OursprivacyIngest
169
170
 
170
171
  attr_accessor adset_id: String?
171
172
 
173
+ attr_accessor affiliatly_v3: String?
174
+
172
175
  attr_accessor alart: String?
173
176
 
174
177
  attr_accessor aleid: String?
@@ -329,6 +332,7 @@ module OursprivacyIngest
329
332
  ?ad_id: String?,
330
333
  ?admitad_uid: String?,
331
334
  ?adset_id: String?,
335
+ ?affiliatly_v3: String?,
332
336
  ?alart: String?,
333
337
  ?aleid: String?,
334
338
  ?axwrt: String?,
@@ -414,6 +418,7 @@ module OursprivacyIngest
414
418
  ad_id: String?,
415
419
  admitad_uid: String?,
416
420
  adset_id: String?,
421
+ :affiliatly_v3 => String?,
417
422
  alart: String?,
418
423
  aleid: String?,
419
424
  axwrt: String?,
@@ -672,6 +677,7 @@ module OursprivacyIngest
672
677
  ad_id: String?,
673
678
  admitad_uid: String?,
674
679
  adset_id: String?,
680
+ :affiliatly_v3 => String?,
675
681
  alart: String?,
676
682
  aleid: String?,
677
683
  axwrt: String?,
@@ -747,6 +753,8 @@ module OursprivacyIngest
747
753
 
748
754
  attr_accessor adset_id: String?
749
755
 
756
+ attr_accessor affiliatly_v3: String?
757
+
750
758
  attr_accessor alart: String?
751
759
 
752
760
  attr_accessor aleid: String?
@@ -880,6 +888,7 @@ module OursprivacyIngest
880
888
  ?ad_id: String?,
881
889
  ?admitad_uid: String?,
882
890
  ?adset_id: String?,
891
+ ?affiliatly_v3: String?,
883
892
  ?alart: String?,
884
893
  ?aleid: String?,
885
894
  ?axwrt: String?,
@@ -951,6 +960,7 @@ module OursprivacyIngest
951
960
  ad_id: String?,
952
961
  admitad_uid: String?,
953
962
  adset_id: String?,
963
+ :affiliatly_v3 => String?,
954
964
  alart: String?,
955
965
  aleid: String?,
956
966
  axwrt: String?,
@@ -58,6 +58,7 @@ module OursprivacyIngest
58
58
  ad_id: String?,
59
59
  admitad_uid: String?,
60
60
  adset_id: String?,
61
+ :affiliatly_v3 => String?,
61
62
  alart: String?,
62
63
  aleid: String?,
63
64
  axwrt: String?,
@@ -133,6 +134,8 @@ module OursprivacyIngest
133
134
 
134
135
  attr_accessor adset_id: String?
135
136
 
137
+ attr_accessor affiliatly_v3: String?
138
+
136
139
  attr_accessor alart: String?
137
140
 
138
141
  attr_accessor aleid: String?
@@ -266,6 +269,7 @@ module OursprivacyIngest
266
269
  ?ad_id: String?,
267
270
  ?admitad_uid: String?,
268
271
  ?adset_id: String?,
272
+ ?affiliatly_v3: String?,
269
273
  ?alart: String?,
270
274
  ?aleid: String?,
271
275
  ?axwrt: String?,
@@ -337,6 +341,7 @@ module OursprivacyIngest
337
341
  ad_id: String?,
338
342
  admitad_uid: String?,
339
343
  adset_id: String?,
344
+ :affiliatly_v3 => String?,
340
345
  alart: String?,
341
346
  aleid: String?,
342
347
  axwrt: String?,
@@ -751,6 +756,7 @@ module OursprivacyIngest
751
756
  ad_id: String?,
752
757
  admitad_uid: String?,
753
758
  adset_id: String?,
759
+ :affiliatly_v3 => String?,
754
760
  alart: String?,
755
761
  aleid: String?,
756
762
  axwrt: String?,
@@ -841,6 +847,8 @@ module OursprivacyIngest
841
847
 
842
848
  attr_accessor adset_id: String?
843
849
 
850
+ attr_accessor affiliatly_v3: String?
851
+
844
852
  attr_accessor alart: String?
845
853
 
846
854
  attr_accessor aleid: String?
@@ -1001,6 +1009,7 @@ module OursprivacyIngest
1001
1009
  ?ad_id: String?,
1002
1010
  ?admitad_uid: String?,
1003
1011
  ?adset_id: String?,
1012
+ ?affiliatly_v3: String?,
1004
1013
  ?alart: String?,
1005
1014
  ?aleid: String?,
1006
1015
  ?axwrt: String?,
@@ -1086,6 +1095,7 @@ module OursprivacyIngest
1086
1095
  ad_id: String?,
1087
1096
  admitad_uid: String?,
1088
1097
  adset_id: String?,
1098
+ :affiliatly_v3 => String?,
1089
1099
  alart: String?,
1090
1100
  aleid: String?,
1091
1101
  axwrt: String?,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oursprivacy-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ours Privacy