oursprivacy-ingest 0.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.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +16 -0
  4. data/README.md +206 -0
  5. data/SECURITY.md +27 -0
  6. data/lib/oursprivacy_ingest/client.rb +64 -0
  7. data/lib/oursprivacy_ingest/errors.rb +228 -0
  8. data/lib/oursprivacy_ingest/file_part.rb +58 -0
  9. data/lib/oursprivacy_ingest/internal/transport/base_client.rb +573 -0
  10. data/lib/oursprivacy_ingest/internal/transport/pooled_net_requester.rb +204 -0
  11. data/lib/oursprivacy_ingest/internal/type/array_of.rb +168 -0
  12. data/lib/oursprivacy_ingest/internal/type/base_model.rb +534 -0
  13. data/lib/oursprivacy_ingest/internal/type/base_page.rb +55 -0
  14. data/lib/oursprivacy_ingest/internal/type/boolean.rb +77 -0
  15. data/lib/oursprivacy_ingest/internal/type/converter.rb +327 -0
  16. data/lib/oursprivacy_ingest/internal/type/enum.rb +133 -0
  17. data/lib/oursprivacy_ingest/internal/type/file_input.rb +111 -0
  18. data/lib/oursprivacy_ingest/internal/type/hash_of.rb +188 -0
  19. data/lib/oursprivacy_ingest/internal/type/request_parameters.rb +42 -0
  20. data/lib/oursprivacy_ingest/internal/type/union.rb +245 -0
  21. data/lib/oursprivacy_ingest/internal/type/unknown.rb +81 -0
  22. data/lib/oursprivacy_ingest/internal/util.rb +915 -0
  23. data/lib/oursprivacy_ingest/internal.rb +20 -0
  24. data/lib/oursprivacy_ingest/models/track_event_params.rb +1009 -0
  25. data/lib/oursprivacy_ingest/models/track_event_response.rb +26 -0
  26. data/lib/oursprivacy_ingest/models/visitor_upsert_params.rb +972 -0
  27. data/lib/oursprivacy_ingest/models/visitor_upsert_response.rb +26 -0
  28. data/lib/oursprivacy_ingest/models.rb +48 -0
  29. data/lib/oursprivacy_ingest/request_options.rb +79 -0
  30. data/lib/oursprivacy_ingest/resources/track.rb +61 -0
  31. data/lib/oursprivacy_ingest/resources/visitor.rb +52 -0
  32. data/lib/oursprivacy_ingest/version.rb +5 -0
  33. data/lib/oursprivacy_ingest.rb +59 -0
  34. data/manifest.yaml +15 -0
  35. data/rbi/oursprivacy_ingest/client.rbi +46 -0
  36. data/rbi/oursprivacy_ingest/errors.rbi +205 -0
  37. data/rbi/oursprivacy_ingest/file_part.rbi +37 -0
  38. data/rbi/oursprivacy_ingest/internal/transport/base_client.rbi +305 -0
  39. data/rbi/oursprivacy_ingest/internal/transport/pooled_net_requester.rbi +80 -0
  40. data/rbi/oursprivacy_ingest/internal/type/array_of.rbi +108 -0
  41. data/rbi/oursprivacy_ingest/internal/type/base_model.rbi +316 -0
  42. data/rbi/oursprivacy_ingest/internal/type/base_page.rbi +43 -0
  43. data/rbi/oursprivacy_ingest/internal/type/boolean.rbi +58 -0
  44. data/rbi/oursprivacy_ingest/internal/type/converter.rbi +225 -0
  45. data/rbi/oursprivacy_ingest/internal/type/enum.rbi +82 -0
  46. data/rbi/oursprivacy_ingest/internal/type/file_input.rbi +59 -0
  47. data/rbi/oursprivacy_ingest/internal/type/hash_of.rbi +108 -0
  48. data/rbi/oursprivacy_ingest/internal/type/request_parameters.rbi +33 -0
  49. data/rbi/oursprivacy_ingest/internal/type/union.rbi +134 -0
  50. data/rbi/oursprivacy_ingest/internal/type/unknown.rbi +58 -0
  51. data/rbi/oursprivacy_ingest/internal/util.rbi +487 -0
  52. data/rbi/oursprivacy_ingest/internal.rbi +18 -0
  53. data/rbi/oursprivacy_ingest/models/track_event_params.rbi +1072 -0
  54. data/rbi/oursprivacy_ingest/models/track_event_response.rbi +71 -0
  55. data/rbi/oursprivacy_ingest/models/visitor_upsert_params.rbi +1035 -0
  56. data/rbi/oursprivacy_ingest/models/visitor_upsert_response.rbi +71 -0
  57. data/rbi/oursprivacy_ingest/models.rbi +7 -0
  58. data/rbi/oursprivacy_ingest/request_options.rbi +64 -0
  59. data/rbi/oursprivacy_ingest/resources/track.rbi +74 -0
  60. data/rbi/oursprivacy_ingest/resources/visitor.rbi +58 -0
  61. data/rbi/oursprivacy_ingest/version.rbi +5 -0
  62. data/sig/oursprivacy_ingest/client.rbs +25 -0
  63. data/sig/oursprivacy_ingest/errors.rbs +117 -0
  64. data/sig/oursprivacy_ingest/file_part.rbs +21 -0
  65. data/sig/oursprivacy_ingest/internal/transport/base_client.rbs +131 -0
  66. data/sig/oursprivacy_ingest/internal/transport/pooled_net_requester.rbs +45 -0
  67. data/sig/oursprivacy_ingest/internal/type/array_of.rbs +48 -0
  68. data/sig/oursprivacy_ingest/internal/type/base_model.rbs +106 -0
  69. data/sig/oursprivacy_ingest/internal/type/base_page.rbs +24 -0
  70. data/sig/oursprivacy_ingest/internal/type/boolean.rbs +26 -0
  71. data/sig/oursprivacy_ingest/internal/type/converter.rbs +79 -0
  72. data/sig/oursprivacy_ingest/internal/type/enum.rbs +32 -0
  73. data/sig/oursprivacy_ingest/internal/type/file_input.rbs +25 -0
  74. data/sig/oursprivacy_ingest/internal/type/hash_of.rbs +48 -0
  75. data/sig/oursprivacy_ingest/internal/type/request_parameters.rbs +20 -0
  76. data/sig/oursprivacy_ingest/internal/type/union.rbs +52 -0
  77. data/sig/oursprivacy_ingest/internal/type/unknown.rbs +26 -0
  78. data/sig/oursprivacy_ingest/internal/util.rbs +185 -0
  79. data/sig/oursprivacy_ingest/internal.rbs +10 -0
  80. data/sig/oursprivacy_ingest/models/track_event_params.rbs +673 -0
  81. data/sig/oursprivacy_ingest/models/track_event_response.rbs +28 -0
  82. data/sig/oursprivacy_ingest/models/visitor_upsert_params.rbs +653 -0
  83. data/sig/oursprivacy_ingest/models/visitor_upsert_response.rbs +28 -0
  84. data/sig/oursprivacy_ingest/models.rbs +5 -0
  85. data/sig/oursprivacy_ingest/request_options.rbs +36 -0
  86. data/sig/oursprivacy_ingest/resources/track.rbs +21 -0
  87. data/sig/oursprivacy_ingest/resources/visitor.rbs +17 -0
  88. data/sig/oursprivacy_ingest/version.rbs +3 -0
  89. metadata +146 -0
@@ -0,0 +1,972 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OursprivacyIngest
4
+ module Models
5
+ # @see OursprivacyIngest::Resources::Visitor#upsert
6
+ class VisitorUpsertParams < OursprivacyIngest::Internal::Type::BaseModel
7
+ extend OursprivacyIngest::Internal::Type::RequestParameters::Converter
8
+ include OursprivacyIngest::Internal::Type::RequestParameters
9
+
10
+ # @!attribute token
11
+ # The token for your Ours Privacy Source. You can find this in the Ours dashboard.
12
+ #
13
+ # @return [String]
14
+ required :token, String
15
+
16
+ # @!attribute user_properties
17
+ # User properties to associate with this user. The existing user properties will
18
+ # be updated. And all future events will have these properties associated with
19
+ # them.
20
+ #
21
+ # @return [OursprivacyIngest::Models::VisitorUpsertParams::UserProperties]
22
+ required :user_properties,
23
+ -> { OursprivacyIngest::VisitorUpsertParams::UserProperties },
24
+ api_name: :userProperties
25
+
26
+ # @!attribute default_properties
27
+ # These properties are used throughout the Ours app to pass known values onto
28
+ # destinations
29
+ #
30
+ # @return [OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties, nil]
31
+ optional :default_properties,
32
+ -> { OursprivacyIngest::VisitorUpsertParams::DefaultProperties },
33
+ api_name: :defaultProperties,
34
+ nil?: true
35
+
36
+ # @!attribute email
37
+ # The email address of a user. We will associate this event with the user or
38
+ # create a user. Used for lookup if externalId and userId are not included in the
39
+ # request.
40
+ #
41
+ # @return [String, nil]
42
+ optional :email, String, nil?: true
43
+
44
+ # @!attribute external_id
45
+ # The externalId (the ID in your system) of a user. We will associate this event
46
+ # with the user or create a user. If included in the request, email lookup is
47
+ # ignored.
48
+ #
49
+ # @return [String, nil]
50
+ optional :external_id, String, api_name: :externalId, nil?: true
51
+
52
+ # @!attribute user_id
53
+ # The Ours user id stored in local storage and cookies on your web properties. If
54
+ # userId is included in the request, we do not lookup the user by email or
55
+ # externalId.
56
+ #
57
+ # @return [String, nil]
58
+ optional :user_id, String, api_name: :userId, nil?: true
59
+
60
+ # @!method initialize(token:, user_properties:, default_properties: nil, email: nil, external_id: nil, user_id: nil, request_options: {})
61
+ # Some parameter documentations has been truncated, see
62
+ # {OursprivacyIngest::Models::VisitorUpsertParams} for more details.
63
+ #
64
+ # @param token [String] The token for your Ours Privacy Source. You can find this in the Ours dashboard.
65
+ #
66
+ # @param user_properties [OursprivacyIngest::Models::VisitorUpsertParams::UserProperties] User properties to associate with this user. The existing user properties will b
67
+ #
68
+ # @param default_properties [OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties, nil] These properties are used throughout the Ours app to pass known values onto dest
69
+ #
70
+ # @param email [String, nil] The email address of a user. We will associate this event with the user or creat
71
+ #
72
+ # @param external_id [String, nil] The externalId (the ID in your system) of a user. We will associate this event w
73
+ #
74
+ # @param user_id [String, nil] The Ours user id stored in local storage and cookies on your web properties. If
75
+ #
76
+ # @param request_options [OursprivacyIngest::RequestOptions, Hash{Symbol=>Object}]
77
+
78
+ class UserProperties < OursprivacyIngest::Internal::Type::BaseModel
79
+ # @!attribute ad_id
80
+ #
81
+ # @return [String, nil]
82
+ optional :ad_id, String, nil?: true
83
+
84
+ # @!attribute adset_id
85
+ #
86
+ # @return [String, nil]
87
+ optional :adset_id, String, nil?: true
88
+
89
+ # @!attribute campaign_id
90
+ #
91
+ # @return [String, nil]
92
+ optional :campaign_id, String, nil?: true
93
+
94
+ # @!attribute city
95
+ #
96
+ # @return [String, nil]
97
+ optional :city, String, nil?: true
98
+
99
+ # @!attribute clickid
100
+ #
101
+ # @return [String, nil]
102
+ optional :clickid, String, nil?: true
103
+
104
+ # @!attribute clid
105
+ #
106
+ # @return [String, nil]
107
+ optional :clid, String, nil?: true
108
+
109
+ # @!attribute company_name
110
+ #
111
+ # @return [String, nil]
112
+ optional :company_name, String, nil?: true
113
+
114
+ # @!attribute consent
115
+ #
116
+ # @return [Hash{Symbol=>Object, nil}, nil]
117
+ optional :consent,
118
+ OursprivacyIngest::Internal::Type::HashOf[OursprivacyIngest::Internal::Type::Unknown,
119
+ nil?: true],
120
+ nil?: true
121
+
122
+ # @!attribute country
123
+ #
124
+ # @return [String, nil]
125
+ optional :country, String, nil?: true
126
+
127
+ # @!attribute custom_properties
128
+ #
129
+ # @return [Hash{Symbol=>Object, nil}, nil]
130
+ optional :custom_properties,
131
+ OursprivacyIngest::Internal::Type::HashOf[OursprivacyIngest::Internal::Type::Unknown,
132
+ nil?: true],
133
+ nil?: true
134
+
135
+ # @!attribute date_of_birth
136
+ #
137
+ # @return [String, nil]
138
+ optional :date_of_birth, String, nil?: true
139
+
140
+ # @!attribute dclid
141
+ #
142
+ # @return [String, nil]
143
+ optional :dclid, String, nil?: true
144
+
145
+ # @!attribute email
146
+ #
147
+ # @return [String, nil]
148
+ optional :email, String, nil?: true
149
+
150
+ # @!attribute epik
151
+ #
152
+ # @return [String, nil]
153
+ optional :epik, String, nil?: true
154
+
155
+ # @!attribute external_id
156
+ #
157
+ # @return [String, nil]
158
+ optional :external_id, String, nil?: true
159
+
160
+ # @!attribute fbc
161
+ #
162
+ # @return [String, nil]
163
+ optional :fbc, String, nil?: true
164
+
165
+ # @!attribute fbclid
166
+ #
167
+ # @return [String, nil]
168
+ optional :fbclid, String, nil?: true
169
+
170
+ # @!attribute fbp
171
+ #
172
+ # @return [String, nil]
173
+ optional :fbp, String, nil?: true
174
+
175
+ # @!attribute first_name
176
+ #
177
+ # @return [String, nil]
178
+ optional :first_name, String, nil?: true
179
+
180
+ # @!attribute gad_source
181
+ #
182
+ # @return [String, nil]
183
+ optional :gad_source, String, nil?: true
184
+
185
+ # @!attribute gbraid
186
+ #
187
+ # @return [String, nil]
188
+ optional :gbraid, String, nil?: true
189
+
190
+ # @!attribute gclid
191
+ #
192
+ # @return [String, nil]
193
+ optional :gclid, String, nil?: true
194
+
195
+ # @!attribute gender
196
+ #
197
+ # @return [String, nil]
198
+ optional :gender, String, nil?: true
199
+
200
+ # @!attribute ip
201
+ # The IP address of the user
202
+ #
203
+ # @return [String, nil]
204
+ optional :ip, String, nil?: true
205
+
206
+ # @!attribute is_bot
207
+ #
208
+ # @return [Object, nil]
209
+ optional :is_bot, OursprivacyIngest::Internal::Type::Unknown
210
+
211
+ # @!attribute job_title
212
+ #
213
+ # @return [String, nil]
214
+ optional :job_title, String, nil?: true
215
+
216
+ # @!attribute last_name
217
+ #
218
+ # @return [String, nil]
219
+ optional :last_name, String, nil?: true
220
+
221
+ # @!attribute li_fat_id
222
+ #
223
+ # @return [String, nil]
224
+ optional :li_fat_id, String, nil?: true
225
+
226
+ # @!attribute msclkid
227
+ #
228
+ # @return [String, nil]
229
+ optional :msclkid, String, nil?: true
230
+
231
+ # @!attribute ndclid
232
+ #
233
+ # @return [String, nil]
234
+ optional :ndclid, String, nil?: true
235
+
236
+ # @!attribute phone_number
237
+ #
238
+ # @return [Object, nil]
239
+ optional :phone_number, OursprivacyIngest::Internal::Type::Unknown
240
+
241
+ # @!attribute qclid
242
+ #
243
+ # @return [String, nil]
244
+ optional :qclid, String, nil?: true
245
+
246
+ # @!attribute rdt_cid
247
+ #
248
+ # @return [String, nil]
249
+ optional :rdt_cid, String, nil?: true
250
+
251
+ # @!attribute referrer
252
+ #
253
+ # @return [String, nil]
254
+ optional :referrer, String, nil?: true
255
+
256
+ # @!attribute sacid
257
+ #
258
+ # @return [String, nil]
259
+ optional :sacid, String, nil?: true
260
+
261
+ # @!attribute sccid
262
+ #
263
+ # @return [String, nil]
264
+ optional :sccid, String, nil?: true
265
+
266
+ # @!attribute sid
267
+ #
268
+ # @return [String, nil]
269
+ optional :sid, String, nil?: true
270
+
271
+ # @!attribute state
272
+ #
273
+ # @return [String, nil]
274
+ optional :state, String, nil?: true
275
+
276
+ # @!attribute ttclid
277
+ #
278
+ # @return [String, nil]
279
+ optional :ttclid, String, nil?: true
280
+
281
+ # @!attribute twclid
282
+ #
283
+ # @return [String, nil]
284
+ optional :twclid, String, nil?: true
285
+
286
+ # @!attribute user_agent
287
+ #
288
+ # @return [String, nil]
289
+ optional :user_agent, String, nil?: true
290
+
291
+ # @!attribute user_agent_full_list
292
+ #
293
+ # @return [String, nil]
294
+ optional :user_agent_full_list, String, nil?: true
295
+
296
+ # @!attribute utm_campaign
297
+ #
298
+ # @return [String, nil]
299
+ optional :utm_campaign, String, nil?: true
300
+
301
+ # @!attribute utm_content
302
+ #
303
+ # @return [String, nil]
304
+ optional :utm_content, String, nil?: true
305
+
306
+ # @!attribute utm_medium
307
+ #
308
+ # @return [String, nil]
309
+ optional :utm_medium, String, nil?: true
310
+
311
+ # @!attribute utm_name
312
+ #
313
+ # @return [String, nil]
314
+ optional :utm_name, String, nil?: true
315
+
316
+ # @!attribute utm_source
317
+ #
318
+ # @return [String, nil]
319
+ optional :utm_source, String, nil?: true
320
+
321
+ # @!attribute utm_term
322
+ #
323
+ # @return [String, nil]
324
+ optional :utm_term, String, nil?: true
325
+
326
+ # @!attribute wbraid
327
+ #
328
+ # @return [String, nil]
329
+ optional :wbraid, String, nil?: true
330
+
331
+ # @!attribute zip
332
+ #
333
+ # @return [Object, nil]
334
+ optional :zip, OursprivacyIngest::Internal::Type::Unknown
335
+
336
+ # @!method initialize(ad_id: nil, adset_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, ip: nil, is_bot: nil, job_title: nil, last_name: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, phone_number: nil, qclid: nil, rdt_cid: nil, referrer: nil, sacid: nil, sccid: nil, sid: nil, state: nil, ttclid: 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, wbraid: nil, zip: nil)
337
+ # User properties to associate with this user. The existing user properties will
338
+ # be updated. And all future events will have these properties associated with
339
+ # them.
340
+ #
341
+ # @param ad_id [String, nil]
342
+ #
343
+ # @param adset_id [String, nil]
344
+ #
345
+ # @param campaign_id [String, nil]
346
+ #
347
+ # @param city [String, nil]
348
+ #
349
+ # @param clickid [String, nil]
350
+ #
351
+ # @param clid [String, nil]
352
+ #
353
+ # @param company_name [String, nil]
354
+ #
355
+ # @param consent [Hash{Symbol=>Object, nil}, nil]
356
+ #
357
+ # @param country [String, nil]
358
+ #
359
+ # @param custom_properties [Hash{Symbol=>Object, nil}, nil]
360
+ #
361
+ # @param date_of_birth [String, nil]
362
+ #
363
+ # @param dclid [String, nil]
364
+ #
365
+ # @param email [String, nil]
366
+ #
367
+ # @param epik [String, nil]
368
+ #
369
+ # @param external_id [String, nil]
370
+ #
371
+ # @param fbc [String, nil]
372
+ #
373
+ # @param fbclid [String, nil]
374
+ #
375
+ # @param fbp [String, nil]
376
+ #
377
+ # @param first_name [String, nil]
378
+ #
379
+ # @param gad_source [String, nil]
380
+ #
381
+ # @param gbraid [String, nil]
382
+ #
383
+ # @param gclid [String, nil]
384
+ #
385
+ # @param gender [String, nil]
386
+ #
387
+ # @param ip [String, nil] The IP address of the user
388
+ #
389
+ # @param is_bot [Object]
390
+ #
391
+ # @param job_title [String, nil]
392
+ #
393
+ # @param last_name [String, nil]
394
+ #
395
+ # @param li_fat_id [String, nil]
396
+ #
397
+ # @param msclkid [String, nil]
398
+ #
399
+ # @param ndclid [String, nil]
400
+ #
401
+ # @param phone_number [Object]
402
+ #
403
+ # @param qclid [String, nil]
404
+ #
405
+ # @param rdt_cid [String, nil]
406
+ #
407
+ # @param referrer [String, nil]
408
+ #
409
+ # @param sacid [String, nil]
410
+ #
411
+ # @param sccid [String, nil]
412
+ #
413
+ # @param sid [String, nil]
414
+ #
415
+ # @param state [String, nil]
416
+ #
417
+ # @param ttclid [String, nil]
418
+ #
419
+ # @param twclid [String, nil]
420
+ #
421
+ # @param user_agent [String, nil]
422
+ #
423
+ # @param user_agent_full_list [String, nil]
424
+ #
425
+ # @param utm_campaign [String, nil]
426
+ #
427
+ # @param utm_content [String, nil]
428
+ #
429
+ # @param utm_medium [String, nil]
430
+ #
431
+ # @param utm_name [String, nil]
432
+ #
433
+ # @param utm_source [String, nil]
434
+ #
435
+ # @param utm_term [String, nil]
436
+ #
437
+ # @param wbraid [String, nil]
438
+ #
439
+ # @param zip [Object]
440
+ end
441
+
442
+ class DefaultProperties < OursprivacyIngest::Internal::Type::BaseModel
443
+ # @!attribute active_duration
444
+ # The active time in milliseconds that the user had this tab active
445
+ #
446
+ # @return [Float, nil]
447
+ optional :active_duration, Float, api_name: :activeDuration, nil?: true
448
+
449
+ # @!attribute ad_id
450
+ # The ad id for detected in the session. This is set by the web sdk automatically.
451
+ #
452
+ # @return [String, nil]
453
+ optional :ad_id, String, nil?: true
454
+
455
+ # @!attribute adset_id
456
+ # The adset id for detected in the session. This is set by the web sdk
457
+ # automatically.
458
+ #
459
+ # @return [String, nil]
460
+ optional :adset_id, String, nil?: true
461
+
462
+ # @!attribute browser_language
463
+ # The language of the browser. Ex: en-US
464
+ #
465
+ # @return [String, nil]
466
+ optional :browser_language, String, nil?: true
467
+
468
+ # @!attribute browser_name
469
+ # The name of the browser. Ex: Chrome
470
+ #
471
+ # @return [String, nil]
472
+ optional :browser_name, String, nil?: true
473
+
474
+ # @!attribute browser_version
475
+ # The version of the browser. Ex: 114.0
476
+ #
477
+ # @return [String, nil]
478
+ optional :browser_version, String, nil?: true
479
+
480
+ # @!attribute campaign_id
481
+ # The campaign id for detected in the session. This is set by the web sdk
482
+ # automatically.
483
+ #
484
+ # @return [String, nil]
485
+ optional :campaign_id, String, nil?: true
486
+
487
+ # @!attribute clickid
488
+ # The Click ID. Ex: clickid123
489
+ #
490
+ # @return [String, nil]
491
+ optional :clickid, String, nil?: true
492
+
493
+ # @!attribute clid
494
+ # The Generic Click ID. Ex: clid123
495
+ #
496
+ # @return [String, nil]
497
+ optional :clid, String, nil?: true
498
+
499
+ # @!attribute cpu_architecture
500
+ # The architecture of the CPU. Ex: x64
501
+ #
502
+ # @return [String, nil]
503
+ optional :cpu_architecture, String, nil?: true
504
+
505
+ # @!attribute current_url
506
+ # The full url (including query params) of the current page
507
+ #
508
+ # @return [String, nil]
509
+ optional :current_url, String, nil?: true
510
+
511
+ # @!attribute dclid
512
+ # The DoubleClick Click ID. Ex: dclid123
513
+ #
514
+ # @return [String, nil]
515
+ optional :dclid, String, nil?: true
516
+
517
+ # @!attribute device_model
518
+ # The model of the device. Ex: iPhone 13
519
+ #
520
+ # @return [String, nil]
521
+ optional :device_model, String, nil?: true
522
+
523
+ # @!attribute device_type
524
+ # The type of device the user is using. Ex: mobile
525
+ #
526
+ # @return [String, nil]
527
+ optional :device_type, String, nil?: true
528
+
529
+ # @!attribute device_vendor
530
+ # The vendor of the device. Ex: Apple
531
+ #
532
+ # @return [String, nil]
533
+ optional :device_vendor, String, nil?: true
534
+
535
+ # @!attribute duration
536
+ # The time in milliseconds since the page was loaded // script was loaded
537
+ #
538
+ # @return [Float, nil]
539
+ optional :duration, Float, nil?: true
540
+
541
+ # @!attribute encoding
542
+ # The browsers encoding. Ex: UTF-8
543
+ #
544
+ # @return [String, nil]
545
+ optional :encoding, String, nil?: true
546
+
547
+ # @!attribute engine_name
548
+ # The name of the browser engine. Ex: Blink
549
+ #
550
+ # @return [String, nil]
551
+ optional :engine_name, String, nil?: true
552
+
553
+ # @!attribute engine_version
554
+ # The version of the browser engine. Ex: 114.0
555
+ #
556
+ # @return [String, nil]
557
+ optional :engine_version, String, nil?: true
558
+
559
+ # @!attribute epik
560
+ # The Pinterest Click ID. Ex: epik456
561
+ #
562
+ # @return [String, nil]
563
+ optional :epik, String, nil?: true
564
+
565
+ # @!attribute fbc
566
+ # Facebook Click ID with prefix format for Conversions API tracking. Ex:
567
+ # fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
568
+ #
569
+ # @return [String, nil]
570
+ optional :fbc, String, nil?: true
571
+
572
+ # @!attribute fbclid
573
+ # Raw Facebook Click ID query parameter without prefix from ad clicks. Ex:
574
+ # AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
575
+ #
576
+ # @return [String, nil]
577
+ optional :fbclid, String, nil?: true
578
+
579
+ # @!attribute fbp
580
+ # Facebook Browser ID parameter for identifying browsers and attributing events.
581
+ # Ex: fb.1.1554763741205.1098115397
582
+ #
583
+ # @return [String, nil]
584
+ optional :fbp, String, nil?: true
585
+
586
+ # @!attribute fv
587
+ # Deprecated
588
+ #
589
+ # @return [Boolean, nil]
590
+ optional :fv, OursprivacyIngest::Internal::Type::Boolean, nil?: true
591
+
592
+ # @!attribute gad_source
593
+ # The Google Ad Source. Ex: google
594
+ #
595
+ # @return [String, nil]
596
+ optional :gad_source, String, nil?: true
597
+
598
+ # @!attribute gbraid
599
+ # The Google Braid ID. Ex: gbraid123
600
+ #
601
+ # @return [String, nil]
602
+ optional :gbraid, String, nil?: true
603
+
604
+ # @!attribute gclid
605
+ # The Google Click ID. Ex: gclid123
606
+ #
607
+ # @return [String, nil]
608
+ optional :gclid, String, nil?: true
609
+
610
+ # @!attribute host
611
+ # The host of the current page. Ex: example.com
612
+ #
613
+ # @return [String, nil]
614
+ optional :host, String, nil?: true
615
+
616
+ # @!attribute iframe
617
+ # Whether the user is in an iframe. Ex: true
618
+ #
619
+ # @return [Boolean, nil]
620
+ optional :iframe, OursprivacyIngest::Internal::Type::Boolean, nil?: true
621
+
622
+ # @!attribute ip
623
+ # The IP address of the user. Ex: 127.0.0.1
624
+ #
625
+ # @return [String, nil]
626
+ optional :ip, String, nil?: true
627
+
628
+ # @!attribute is_bot
629
+ # Whether we have detected that the user is a bot. This is set automatically by
630
+ # the Ours server primarily for events tracked through the web SDK.
631
+ #
632
+ # @return [Object, nil]
633
+ optional :is_bot, OursprivacyIngest::Internal::Type::Unknown
634
+
635
+ # @!attribute li_fat_id
636
+ # The LinkedIn Click ID. Ex: li_fat_id123
637
+ #
638
+ # @return [String, nil]
639
+ optional :li_fat_id, String, nil?: true
640
+
641
+ # @!attribute msclkid
642
+ # The Microsoft Click ID. Ex: msclkid123
643
+ #
644
+ # @return [String, nil]
645
+ optional :msclkid, String, nil?: true
646
+
647
+ # @!attribute ndclid
648
+ # The NextDoor Click ID. Ex: ndclid123
649
+ #
650
+ # @return [String, nil]
651
+ optional :ndclid, String, nil?: true
652
+
653
+ # @!attribute new_s
654
+ # Deprecated
655
+ #
656
+ # @return [Boolean, nil]
657
+ optional :new_s, OursprivacyIngest::Internal::Type::Boolean, nil?: true
658
+
659
+ # @!attribute os_name
660
+ # The name of the operating system. Ex: Windows
661
+ #
662
+ # @return [String, nil]
663
+ optional :os_name, String, nil?: true
664
+
665
+ # @!attribute os_version
666
+ # The version of the operating system. Ex: 10.0
667
+ #
668
+ # @return [String, nil]
669
+ optional :os_version, String, nil?: true
670
+
671
+ # @!attribute page_hash
672
+ # A random set of numbers for the page load
673
+ #
674
+ # @return [Float, nil]
675
+ optional :page_hash, Float, nil?: true
676
+
677
+ # @!attribute pathname
678
+ # The pathname of the current page. Ex: /home
679
+ #
680
+ # @return [String, nil]
681
+ optional :pathname, String, nil?: true
682
+
683
+ # @!attribute qclid
684
+ # The Quora Click ID. Ex: qclid123
685
+ #
686
+ # @return [String, nil]
687
+ optional :qclid, String, nil?: true
688
+
689
+ # @!attribute rdt_cid
690
+ # The Reddit Click ID. Ex: rdt_cid123
691
+ #
692
+ # @return [String, nil]
693
+ optional :rdt_cid, String, nil?: true
694
+
695
+ # @!attribute received_at
696
+ # The time the event was received by an Ours server in ISO format
697
+ #
698
+ # @return [String, nil]
699
+ optional :received_at, String, nil?: true
700
+
701
+ # @!attribute referrer
702
+ # The referrer URL of the current page
703
+ #
704
+ # @return [String, nil]
705
+ optional :referrer, String, nil?: true
706
+
707
+ # @!attribute sacid
708
+ # The StackAdapt Tracking ID. Ex: sacid123
709
+ #
710
+ # @return [String, nil]
711
+ optional :sacid, String, nil?: true
712
+
713
+ # @!attribute sccid
714
+ # The SnapChat Click ID. Ex: sccid123
715
+ #
716
+ # @return [String, nil]
717
+ optional :sccid, String, nil?: true
718
+
719
+ # @!attribute screen_height
720
+ # The height of the screen. Ex: 1080
721
+ #
722
+ # @return [Float, nil]
723
+ optional :screen_height, Float, nil?: true
724
+
725
+ # @!attribute screen_width
726
+ # The width of the screen. Ex: 1920
727
+ #
728
+ # @return [Float, nil]
729
+ optional :screen_width, Float, nil?: true
730
+
731
+ # @!attribute session_count
732
+ # The number of sessions the user has had. Ex: 3
733
+ #
734
+ # @return [Float, nil]
735
+ optional :session_count, Float, api_name: :sessionCount, nil?: true
736
+
737
+ # @!attribute sid
738
+ # The session ID as assigned automatically by the web SDK. This is required for
739
+ # session replay
740
+ #
741
+ # @return [String, nil]
742
+ optional :sid, String, nil?: true
743
+
744
+ # @!attribute sr
745
+ #
746
+ # @return [String, nil]
747
+ optional :sr, String, nil?: true
748
+
749
+ # @!attribute title
750
+ # The title of the current page
751
+ #
752
+ # @return [String, nil]
753
+ optional :title, String, nil?: true
754
+
755
+ # @!attribute ttclid
756
+ # The TikTok Click ID. Ex: ttclid123
757
+ #
758
+ # @return [String, nil]
759
+ optional :ttclid, String, nil?: true
760
+
761
+ # @!attribute twclid
762
+ # The Twitter Click ID. Ex: twclid123
763
+ #
764
+ # @return [String, nil]
765
+ optional :twclid, String, nil?: true
766
+
767
+ # @!attribute uafvl
768
+ # User agent as a full list of strings.
769
+ #
770
+ # @return [String, nil]
771
+ optional :uafvl, String, nil?: true
772
+
773
+ # @!attribute user_agent
774
+ # The user agent of the browser
775
+ #
776
+ # @return [String, nil]
777
+ optional :user_agent, String, nil?: true
778
+
779
+ # @!attribute utm_campaign
780
+ # The UTM Campaign. The web SDK automatically captures this from the query params.
781
+ #
782
+ # @return [String, nil]
783
+ optional :utm_campaign, String, nil?: true
784
+
785
+ # @!attribute utm_content
786
+ # The UTM Content. The web SDK automatically captures this from the query params.
787
+ #
788
+ # @return [String, nil]
789
+ optional :utm_content, String, nil?: true
790
+
791
+ # @!attribute utm_medium
792
+ # The UTM Medium. The web SDK automatically captures this from the query params.
793
+ #
794
+ # @return [String, nil]
795
+ optional :utm_medium, String, nil?: true
796
+
797
+ # @!attribute utm_name
798
+ # The UTM Name. The web SDK automatically captures this from the query params.
799
+ #
800
+ # @return [String, nil]
801
+ optional :utm_name, String, nil?: true
802
+
803
+ # @!attribute utm_source
804
+ # The UTM Source. The web SDK automatically captures this from the query params.
805
+ #
806
+ # @return [String, nil]
807
+ optional :utm_source, String, nil?: true
808
+
809
+ # @!attribute utm_term
810
+ # The UTM Term. The web SDK automatically captures this from the query params.
811
+ #
812
+ # @return [String, nil]
813
+ optional :utm_term, String, nil?: true
814
+
815
+ # @!attribute version
816
+ # The version of the web SDK
817
+ #
818
+ # @return [String, nil]
819
+ optional :version, String, nil?: true
820
+
821
+ # @!attribute wbraid
822
+ # The WBRAID Identifier. The web SDK automatically captures this from the query
823
+ # params.
824
+ #
825
+ # @return [String, nil]
826
+ optional :wbraid, String, nil?: true
827
+
828
+ # @!attribute webview
829
+ # Whether the user is in a webview. Ex: true
830
+ #
831
+ # @return [Boolean, nil]
832
+ optional :webview, OursprivacyIngest::Internal::Type::Boolean, nil?: true
833
+
834
+ # @!method initialize(active_duration: nil, ad_id: nil, adset_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, host: nil, iframe: nil, ip: nil, is_bot: nil, li_fat_id: nil, msclkid: nil, ndclid: nil, new_s: nil, os_name: nil, os_version: nil, page_hash: nil, pathname: nil, qclid: nil, rdt_cid: nil, received_at: nil, referrer: nil, sacid: nil, sccid: nil, screen_height: nil, screen_width: nil, session_count: nil, sid: nil, sr: nil, title: nil, ttclid: 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, wbraid: nil, webview: nil)
835
+ # Some parameter documentations has been truncated, see
836
+ # {OursprivacyIngest::Models::VisitorUpsertParams::DefaultProperties} for more
837
+ # details.
838
+ #
839
+ # These properties are used throughout the Ours app to pass known values onto
840
+ # destinations
841
+ #
842
+ # @param active_duration [Float, nil] The active time in milliseconds that the user had this tab active
843
+ #
844
+ # @param ad_id [String, nil] The ad id for detected in the session. This is set by the web sdk automatically.
845
+ #
846
+ # @param adset_id [String, nil] The adset id for detected in the session. This is set by the web sdk automatical
847
+ #
848
+ # @param browser_language [String, nil] The language of the browser. Ex: en-US
849
+ #
850
+ # @param browser_name [String, nil] The name of the browser. Ex: Chrome
851
+ #
852
+ # @param browser_version [String, nil] The version of the browser. Ex: 114.0
853
+ #
854
+ # @param campaign_id [String, nil] The campaign id for detected in the session. This is set by the web sdk automati
855
+ #
856
+ # @param clickid [String, nil] The Click ID. Ex: clickid123
857
+ #
858
+ # @param clid [String, nil] The Generic Click ID. Ex: clid123
859
+ #
860
+ # @param cpu_architecture [String, nil] The architecture of the CPU. Ex: x64
861
+ #
862
+ # @param current_url [String, nil] The full url (including query params) of the current page
863
+ #
864
+ # @param dclid [String, nil] The DoubleClick Click ID. Ex: dclid123
865
+ #
866
+ # @param device_model [String, nil] The model of the device. Ex: iPhone 13
867
+ #
868
+ # @param device_type [String, nil] The type of device the user is using. Ex: mobile
869
+ #
870
+ # @param device_vendor [String, nil] The vendor of the device. Ex: Apple
871
+ #
872
+ # @param duration [Float, nil] The time in milliseconds since the page was loaded // script was loaded
873
+ #
874
+ # @param encoding [String, nil] The browsers encoding. Ex: UTF-8
875
+ #
876
+ # @param engine_name [String, nil] The name of the browser engine. Ex: Blink
877
+ #
878
+ # @param engine_version [String, nil] The version of the browser engine. Ex: 114.0
879
+ #
880
+ # @param epik [String, nil] The Pinterest Click ID. Ex: epik456
881
+ #
882
+ # @param fbc [String, nil] Facebook Click ID with prefix format for Conversions API tracking. Ex: fb.1.1554
883
+ #
884
+ # @param fbclid [String, nil] Raw Facebook Click ID query parameter without prefix from ad clicks. Ex: AbCdEfG
885
+ #
886
+ # @param fbp [String, nil] Facebook Browser ID parameter for identifying browsers and attributing events. E
887
+ #
888
+ # @param fv [Boolean, nil] Deprecated
889
+ #
890
+ # @param gad_source [String, nil] The Google Ad Source. Ex: google
891
+ #
892
+ # @param gbraid [String, nil] The Google Braid ID. Ex: gbraid123
893
+ #
894
+ # @param gclid [String, nil] The Google Click ID. Ex: gclid123
895
+ #
896
+ # @param host [String, nil] The host of the current page. Ex: example.com
897
+ #
898
+ # @param iframe [Boolean, nil] Whether the user is in an iframe. Ex: true
899
+ #
900
+ # @param ip [String, nil] The IP address of the user. Ex: 127.0.0.1
901
+ #
902
+ # @param is_bot [Object] Whether we have detected that the user is a bot. This is set automatically by th
903
+ #
904
+ # @param li_fat_id [String, nil] The LinkedIn Click ID. Ex: li_fat_id123
905
+ #
906
+ # @param msclkid [String, nil] The Microsoft Click ID. Ex: msclkid123
907
+ #
908
+ # @param ndclid [String, nil] The NextDoor Click ID. Ex: ndclid123
909
+ #
910
+ # @param new_s [Boolean, nil] Deprecated
911
+ #
912
+ # @param os_name [String, nil] The name of the operating system. Ex: Windows
913
+ #
914
+ # @param os_version [String, nil] The version of the operating system. Ex: 10.0
915
+ #
916
+ # @param page_hash [Float, nil] A random set of numbers for the page load
917
+ #
918
+ # @param pathname [String, nil] The pathname of the current page. Ex: /home
919
+ #
920
+ # @param qclid [String, nil] The Quora Click ID. Ex: qclid123
921
+ #
922
+ # @param rdt_cid [String, nil] The Reddit Click ID. Ex: rdt_cid123
923
+ #
924
+ # @param received_at [String, nil] The time the event was received by an Ours server in ISO format
925
+ #
926
+ # @param referrer [String, nil] The referrer URL of the current page
927
+ #
928
+ # @param sacid [String, nil] The StackAdapt Tracking ID. Ex: sacid123
929
+ #
930
+ # @param sccid [String, nil] The SnapChat Click ID. Ex: sccid123
931
+ #
932
+ # @param screen_height [Float, nil] The height of the screen. Ex: 1080
933
+ #
934
+ # @param screen_width [Float, nil] The width of the screen. Ex: 1920
935
+ #
936
+ # @param session_count [Float, nil] The number of sessions the user has had. Ex: 3
937
+ #
938
+ # @param sid [String, nil] The session ID as assigned automatically by the web SDK. This is required for se
939
+ #
940
+ # @param sr [String, nil]
941
+ #
942
+ # @param title [String, nil] The title of the current page
943
+ #
944
+ # @param ttclid [String, nil] The TikTok Click ID. Ex: ttclid123
945
+ #
946
+ # @param twclid [String, nil] The Twitter Click ID. Ex: twclid123
947
+ #
948
+ # @param uafvl [String, nil] User agent as a full list of strings.
949
+ #
950
+ # @param user_agent [String, nil] The user agent of the browser
951
+ #
952
+ # @param utm_campaign [String, nil] The UTM Campaign. The web SDK automatically captures this from the query params.
953
+ #
954
+ # @param utm_content [String, nil] The UTM Content. The web SDK automatically captures this from the query params.
955
+ #
956
+ # @param utm_medium [String, nil] The UTM Medium. The web SDK automatically captures this from the query params.
957
+ #
958
+ # @param utm_name [String, nil] The UTM Name. The web SDK automatically captures this from the query params.
959
+ #
960
+ # @param utm_source [String, nil] The UTM Source. The web SDK automatically captures this from the query params.
961
+ #
962
+ # @param utm_term [String, nil] The UTM Term. The web SDK automatically captures this from the query params.
963
+ #
964
+ # @param version [String, nil] The version of the web SDK
965
+ #
966
+ # @param wbraid [String, nil] The WBRAID Identifier. The web SDK automatically captures this from the query pa
967
+ #
968
+ # @param webview [Boolean, nil] Whether the user is in a webview. Ex: true
969
+ end
970
+ end
971
+ end
972
+ end