oursprivacy-ingest 2.1.0 → 2.3.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.
@@ -5,7 +5,7 @@ module OursprivacyIngest
5
5
  class Visitor
6
6
  # Set or update properties on an existing visitor, or create a new visitor if no
7
7
  # match is found. This fires a $identify event, making the call visible in the
8
- # event stream. Identity resolution runs in priority order: userId (direct, no
8
+ # event stream. Identity resolution runs in priority order: visitorId (direct, no
9
9
  # lookup) → externalId → email → userProperties.phone_number. Each lookup runs
10
10
  # only if earlier identifiers did not resolve a visitor. Phone matching ignores
11
11
  # common formatting and an international + or 00 prefix, but does not infer a
@@ -32,6 +32,7 @@ module OursprivacyIngest
32
32
  OursprivacyIngest::VisitorUpsertParams::IdentityContext::OrHash
33
33
  ),
34
34
  user_id: T.nilable(String),
35
+ visitor_id: T.nilable(String),
35
36
  request_options: OursprivacyIngest::RequestOptions::OrHash
36
37
  ).returns(OursprivacyIngest::Models::VisitorUpsertResponse)
37
38
  end
@@ -46,16 +47,16 @@ module OursprivacyIngest
46
47
  # These properties are used throughout the Ours app to pass known values onto
47
48
  # destinations
48
49
  default_properties: nil,
49
- # The email address of a user. When userId is absent and externalId does not
50
+ # The email address of a user. When visitorId is absent and externalId does not
50
51
  # resolve a visitor, we search your account for a visitor with this email. If no
51
52
  # match is found, we try userProperties.phone_number before creating a new
52
53
  # visitor. Leading and trailing whitespace is removed before validation.
53
54
  email: nil,
54
- # Your system's unique identifier for this user. When userId is absent, we search
55
- # your account for an existing visitor with this externalId. If no match is found,
56
- # we try email and then userProperties.phone_number before creating a new visitor.
57
- # If you also have the userId from cookies or local storage, send both — it
58
- # removes the lookup round-trip. Non-string input is converted to text before
55
+ # Your system's unique identifier for this user. When visitorId is absent, we
56
+ # search your account for an existing visitor with this externalId. If no match is
57
+ # found, we try email and then userProperties.phone_number before creating a new
58
+ # visitor. If you also have the visitorId from cookies or local storage, send both
59
+ # — it removes the lookup round-trip. Non-string input is converted to text before
59
60
  # validation; clients should send a string. Leading and trailing whitespace is
60
61
  # removed before validation.
61
62
  external_id: nil,
@@ -65,10 +66,18 @@ module OursprivacyIngest
65
66
  identity_context: nil,
66
67
  # The Ours Visitor ID stored in local storage and cookies on your web properties.
67
68
  # When present, this is used directly — no lookup by externalId, email, or phone
68
- # is performed. If you have both a userId and an externalId, send both so the
69
- # event is attached to the right visitor without any lookup overhead. Leading and
70
- # trailing whitespace is removed before validation.
69
+ # is performed. If you have both a visitorId and an externalId, send both so the
70
+ # event is attached to the right visitor without any lookup overhead. visitorId
71
+ # takes precedence over the deprecated userId alias. Leading and trailing
72
+ # whitespace is removed before validation.
71
73
  user_id: nil,
74
+ # The Ours Visitor ID stored in local storage and cookies on your web properties.
75
+ # When present, this is used directly — no lookup by externalId, email, or phone
76
+ # is performed. If you have both a visitorId and an externalId, send both so the
77
+ # event is attached to the right visitor without any lookup overhead. visitorId
78
+ # takes precedence over the deprecated userId alias. Leading and trailing
79
+ # whitespace is removed before validation.
80
+ visitor_id: nil,
72
81
  request_options: {}
73
82
  )
74
83
  end
@@ -38,7 +38,8 @@ module OursprivacyIngest
38
38
  identity_context: OursprivacyIngest::BatchCreateParams::Event::IdentityContext?,
39
39
  time: Float?,
40
40
  user_id: String?,
41
- user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?
41
+ user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?,
42
+ visitor_id: String?
42
43
  }
43
44
 
44
45
  class Event < OursprivacyIngest::Internal::Type::BaseModel
@@ -62,6 +63,8 @@ module OursprivacyIngest
62
63
 
63
64
  attr_accessor user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?
64
65
 
66
+ attr_accessor visitor_id: String?
67
+
65
68
  def initialize: (
66
69
  distinct_id: String,
67
70
  event: String,
@@ -72,7 +75,8 @@ module OursprivacyIngest
72
75
  ?identity_context: OursprivacyIngest::BatchCreateParams::Event::IdentityContext?,
73
76
  ?time: Float?,
74
77
  ?user_id: String?,
75
- ?user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?
78
+ ?user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?,
79
+ ?visitor_id: String?
76
80
  ) -> void
77
81
 
78
82
  def to_hash: -> {
@@ -85,7 +89,8 @@ module OursprivacyIngest
85
89
  identity_context: OursprivacyIngest::BatchCreateParams::Event::IdentityContext?,
86
90
  time: Float?,
87
91
  user_id: String?,
88
- user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?
92
+ user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?,
93
+ visitor_id: String?
89
94
  }
90
95
 
91
96
  type default_properties =
@@ -93,6 +98,7 @@ module OursprivacyIngest
93
98
  _ef_transaction_id: String?,
94
99
  active_duration: Float?,
95
100
  ad_id: String?,
101
+ adct: String?,
96
102
  admitad_uid: String?,
97
103
  adset_id: String?,
98
104
  :affiliatly_v3 => String?,
@@ -182,6 +188,8 @@ module OursprivacyIngest
182
188
 
183
189
  attr_accessor ad_id: String?
184
190
 
191
+ attr_accessor adct: String?
192
+
185
193
  attr_accessor admitad_uid: String?
186
194
 
187
195
  attr_accessor adset_id: String?
@@ -346,6 +354,7 @@ module OursprivacyIngest
346
354
  ?_ef_transaction_id: String?,
347
355
  ?active_duration: Float?,
348
356
  ?ad_id: String?,
357
+ ?adct: String?,
349
358
  ?admitad_uid: String?,
350
359
  ?adset_id: String?,
351
360
  ?affiliatly_v3: String?,
@@ -432,6 +441,7 @@ module OursprivacyIngest
432
441
  _ef_transaction_id: String?,
433
442
  active_duration: Float?,
434
443
  ad_id: String?,
444
+ adct: String?,
435
445
  admitad_uid: String?,
436
446
  adset_id: String?,
437
447
  :affiliatly_v3 => String?,
@@ -695,6 +705,7 @@ module OursprivacyIngest
695
705
  {
696
706
  _ef_transaction_id: String?,
697
707
  ad_id: String?,
708
+ adct: String?,
698
709
  admitad_uid: String?,
699
710
  adset_id: String?,
700
711
  :affiliatly_v3 => String?,
@@ -769,6 +780,8 @@ module OursprivacyIngest
769
780
 
770
781
  attr_accessor ad_id: String?
771
782
 
783
+ attr_accessor adct: String?
784
+
772
785
  attr_accessor admitad_uid: String?
773
786
 
774
787
  attr_accessor adset_id: String?
@@ -906,6 +919,7 @@ module OursprivacyIngest
906
919
  def initialize: (
907
920
  ?_ef_transaction_id: String?,
908
921
  ?ad_id: String?,
922
+ ?adct: String?,
909
923
  ?admitad_uid: String?,
910
924
  ?adset_id: String?,
911
925
  ?affiliatly_v3: String?,
@@ -978,6 +992,7 @@ module OursprivacyIngest
978
992
  def to_hash: -> {
979
993
  _ef_transaction_id: String?,
980
994
  ad_id: String?,
995
+ adct: String?,
981
996
  admitad_uid: String?,
982
997
  adset_id: String?,
983
998
  :affiliatly_v3 => String?,
@@ -12,7 +12,8 @@ module OursprivacyIngest
12
12
  identity_context: OursprivacyIngest::TrackEventParams::IdentityContext?,
13
13
  time: Float?,
14
14
  user_id: String?,
15
- user_properties: OursprivacyIngest::TrackEventParams::UserProperties?
15
+ user_properties: OursprivacyIngest::TrackEventParams::UserProperties?,
16
+ visitor_id: String?
16
17
  }
17
18
  & OursprivacyIngest::Internal::Type::request_parameters
18
19
 
@@ -42,6 +43,8 @@ module OursprivacyIngest
42
43
 
43
44
  attr_accessor user_properties: OursprivacyIngest::TrackEventParams::UserProperties?
44
45
 
46
+ attr_accessor visitor_id: String?
47
+
45
48
  def initialize: (
46
49
  token: String,
47
50
  event: String,
@@ -54,6 +57,7 @@ module OursprivacyIngest
54
57
  ?time: Float?,
55
58
  ?user_id: String?,
56
59
  ?user_properties: OursprivacyIngest::TrackEventParams::UserProperties?,
60
+ ?visitor_id: String?,
57
61
  ?request_options: OursprivacyIngest::request_opts
58
62
  ) -> void
59
63
 
@@ -69,6 +73,7 @@ module OursprivacyIngest
69
73
  time: Float?,
70
74
  user_id: String?,
71
75
  user_properties: OursprivacyIngest::TrackEventParams::UserProperties?,
76
+ visitor_id: String?,
72
77
  request_options: OursprivacyIngest::RequestOptions
73
78
  }
74
79
 
@@ -77,6 +82,7 @@ module OursprivacyIngest
77
82
  _ef_transaction_id: String?,
78
83
  active_duration: Float?,
79
84
  ad_id: String?,
85
+ adct: String?,
80
86
  admitad_uid: String?,
81
87
  adset_id: String?,
82
88
  :affiliatly_v3 => String?,
@@ -166,6 +172,8 @@ module OursprivacyIngest
166
172
 
167
173
  attr_accessor ad_id: String?
168
174
 
175
+ attr_accessor adct: String?
176
+
169
177
  attr_accessor admitad_uid: String?
170
178
 
171
179
  attr_accessor adset_id: String?
@@ -330,6 +338,7 @@ module OursprivacyIngest
330
338
  ?_ef_transaction_id: String?,
331
339
  ?active_duration: Float?,
332
340
  ?ad_id: String?,
341
+ ?adct: String?,
333
342
  ?admitad_uid: String?,
334
343
  ?adset_id: String?,
335
344
  ?affiliatly_v3: String?,
@@ -416,6 +425,7 @@ module OursprivacyIngest
416
425
  _ef_transaction_id: String?,
417
426
  active_duration: Float?,
418
427
  ad_id: String?,
428
+ adct: String?,
419
429
  admitad_uid: String?,
420
430
  adset_id: String?,
421
431
  :affiliatly_v3 => String?,
@@ -675,6 +685,7 @@ module OursprivacyIngest
675
685
  {
676
686
  _ef_transaction_id: String?,
677
687
  ad_id: String?,
688
+ adct: String?,
678
689
  admitad_uid: String?,
679
690
  adset_id: String?,
680
691
  :affiliatly_v3 => String?,
@@ -749,6 +760,8 @@ module OursprivacyIngest
749
760
 
750
761
  attr_accessor ad_id: String?
751
762
 
763
+ attr_accessor adct: String?
764
+
752
765
  attr_accessor admitad_uid: String?
753
766
 
754
767
  attr_accessor adset_id: String?
@@ -886,6 +899,7 @@ module OursprivacyIngest
886
899
  def initialize: (
887
900
  ?_ef_transaction_id: String?,
888
901
  ?ad_id: String?,
902
+ ?adct: String?,
889
903
  ?admitad_uid: String?,
890
904
  ?adset_id: String?,
891
905
  ?affiliatly_v3: String?,
@@ -958,6 +972,7 @@ module OursprivacyIngest
958
972
  def to_hash: -> {
959
973
  _ef_transaction_id: String?,
960
974
  ad_id: String?,
975
+ adct: String?,
961
976
  admitad_uid: String?,
962
977
  adset_id: String?,
963
978
  :affiliatly_v3 => String?,
@@ -8,7 +8,8 @@ module OursprivacyIngest
8
8
  email: String?,
9
9
  external_id: String?,
10
10
  identity_context: OursprivacyIngest::VisitorUpsertParams::IdentityContext?,
11
- user_id: String?
11
+ user_id: String?,
12
+ visitor_id: String?
12
13
  }
13
14
  & OursprivacyIngest::Internal::Type::request_parameters
14
15
 
@@ -30,6 +31,8 @@ module OursprivacyIngest
30
31
 
31
32
  attr_accessor user_id: String?
32
33
 
34
+ attr_accessor visitor_id: String?
35
+
33
36
  def initialize: (
34
37
  token: String,
35
38
  user_properties: OursprivacyIngest::VisitorUpsertParams::UserProperties,
@@ -38,6 +41,7 @@ module OursprivacyIngest
38
41
  ?external_id: String?,
39
42
  ?identity_context: OursprivacyIngest::VisitorUpsertParams::IdentityContext?,
40
43
  ?user_id: String?,
44
+ ?visitor_id: String?,
41
45
  ?request_options: OursprivacyIngest::request_opts
42
46
  ) -> void
43
47
 
@@ -49,6 +53,7 @@ module OursprivacyIngest
49
53
  external_id: String?,
50
54
  identity_context: OursprivacyIngest::VisitorUpsertParams::IdentityContext?,
51
55
  user_id: String?,
56
+ visitor_id: String?,
52
57
  request_options: OursprivacyIngest::RequestOptions
53
58
  }
54
59
 
@@ -56,6 +61,7 @@ module OursprivacyIngest
56
61
  {
57
62
  _ef_transaction_id: String?,
58
63
  ad_id: String?,
64
+ adct: String?,
59
65
  admitad_uid: String?,
60
66
  adset_id: String?,
61
67
  :affiliatly_v3 => String?,
@@ -130,6 +136,8 @@ module OursprivacyIngest
130
136
 
131
137
  attr_accessor ad_id: String?
132
138
 
139
+ attr_accessor adct: String?
140
+
133
141
  attr_accessor admitad_uid: String?
134
142
 
135
143
  attr_accessor adset_id: String?
@@ -267,6 +275,7 @@ module OursprivacyIngest
267
275
  def initialize: (
268
276
  ?_ef_transaction_id: String?,
269
277
  ?ad_id: String?,
278
+ ?adct: String?,
270
279
  ?admitad_uid: String?,
271
280
  ?adset_id: String?,
272
281
  ?affiliatly_v3: String?,
@@ -339,6 +348,7 @@ module OursprivacyIngest
339
348
  def to_hash: -> {
340
349
  _ef_transaction_id: String?,
341
350
  ad_id: String?,
351
+ adct: String?,
342
352
  admitad_uid: String?,
343
353
  adset_id: String?,
344
354
  :affiliatly_v3 => String?,
@@ -754,6 +764,7 @@ module OursprivacyIngest
754
764
  _ef_transaction_id: String?,
755
765
  active_duration: Float?,
756
766
  ad_id: String?,
767
+ adct: String?,
757
768
  admitad_uid: String?,
758
769
  adset_id: String?,
759
770
  :affiliatly_v3 => String?,
@@ -843,6 +854,8 @@ module OursprivacyIngest
843
854
 
844
855
  attr_accessor ad_id: String?
845
856
 
857
+ attr_accessor adct: String?
858
+
846
859
  attr_accessor admitad_uid: String?
847
860
 
848
861
  attr_accessor adset_id: String?
@@ -1007,6 +1020,7 @@ module OursprivacyIngest
1007
1020
  ?_ef_transaction_id: String?,
1008
1021
  ?active_duration: Float?,
1009
1022
  ?ad_id: String?,
1023
+ ?adct: String?,
1010
1024
  ?admitad_uid: String?,
1011
1025
  ?adset_id: String?,
1012
1026
  ?affiliatly_v3: String?,
@@ -1093,6 +1107,7 @@ module OursprivacyIngest
1093
1107
  _ef_transaction_id: String?,
1094
1108
  active_duration: Float?,
1095
1109
  ad_id: String?,
1110
+ adct: String?,
1096
1111
  admitad_uid: String?,
1097
1112
  adset_id: String?,
1098
1113
  :affiliatly_v3 => String?,
@@ -13,6 +13,7 @@ module OursprivacyIngest
13
13
  ?time: Float?,
14
14
  ?user_id: String?,
15
15
  ?user_properties: OursprivacyIngest::TrackEventParams::UserProperties?,
16
+ ?visitor_id: String?,
16
17
  ?request_options: OursprivacyIngest::request_opts
17
18
  ) -> OursprivacyIngest::Models::TrackEventResponse
18
19
 
@@ -9,6 +9,7 @@ module OursprivacyIngest
9
9
  ?external_id: String?,
10
10
  ?identity_context: OursprivacyIngest::VisitorUpsertParams::IdentityContext?,
11
11
  ?user_id: String?,
12
+ ?visitor_id: String?,
12
13
  ?request_options: OursprivacyIngest::request_opts
13
14
  ) -> OursprivacyIngest::Models::VisitorUpsertResponse
14
15
 
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.1.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ours Privacy