oursprivacy-ingest 1.4.0 → 1.5.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/oursprivacy_ingest/models/batch_create_params.rb +9 -17
- data/lib/oursprivacy_ingest/models/batch_create_response.rb +84 -42
- data/lib/oursprivacy_ingest/version.rb +1 -1
- data/rbi/oursprivacy_ingest/models/batch_create_params.rbi +8 -19
- data/rbi/oursprivacy_ingest/models/batch_create_response.rbi +191 -108
- data/sig/oursprivacy_ingest/models/batch_create_params.rbs +5 -12
- data/sig/oursprivacy_ingest/models/batch_create_response.rbs +89 -46
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ed1b63854906efe0f462b08eaf8cb9de0ff4a4586e13ce25159e54371939947
|
|
4
|
+
data.tar.gz: 0531b08a511ed70b76b42a47d2541dfdf11fc388cce6b0a03f53f8f8017d3cde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e629ea80c262196d7cf71ccf58a9ed7dcbc6ea633e7c89863a344dbc8dd24c48dcd58ce18881842989aa85986c62b3c8ff1d393b88eaec7a43444b4dc0dce7aa
|
|
7
|
+
data.tar.gz: fca70c8d6c4c831dd2a624d409e244ebabe7ed4865de14b55aad2c5b9e4f3152d7c7ed5dde54e0f7507fa6a1a73fb97e96dbe9ffa677940eb3b65c3e9719bafe
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.0 (2026-05-06)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.4.0...v1.5.0](https://github.com/with-ours/ingest-sdk-ruby/compare/v1.4.0...v1.5.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([70e698d](https://github.com/with-ours/ingest-sdk-ruby/commit/70e698d9524677ef21e236253598ef7d52babbe7))
|
|
10
|
+
|
|
3
11
|
## 1.4.0 (2026-05-06)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.3.0...v1.4.0](https://github.com/with-ours/ingest-sdk-ruby/compare/v1.3.0...v1.4.0)
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
17
17
|
<!-- x-release-please-start-version -->
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
|
-
gem "oursprivacy-ingest", "~> 1.
|
|
20
|
+
gem "oursprivacy-ingest", "~> 1.5.0"
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
<!-- x-release-please-end -->
|
|
@@ -28,6 +28,12 @@ module OursprivacyIngest
|
|
|
28
28
|
# @param request_options [OursprivacyIngest::RequestOptions, Hash{Symbol=>Object}]
|
|
29
29
|
|
|
30
30
|
class Event < OursprivacyIngest::Internal::Type::BaseModel
|
|
31
|
+
# @!attribute distinct_id
|
|
32
|
+
# A unique identifier for the event. This helps prevent duplicate events.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :distinct_id, String, api_name: :distinctId
|
|
36
|
+
|
|
31
37
|
# @!attribute event
|
|
32
38
|
# The name of the event you're tracking. This must be whitelisted in the Ours
|
|
33
39
|
# dashboard.
|
|
@@ -35,12 +41,6 @@ module OursprivacyIngest
|
|
|
35
41
|
# @return [String]
|
|
36
42
|
required :event, String
|
|
37
43
|
|
|
38
|
-
# @!attribute token
|
|
39
|
-
# The token for your Source. You can find this in the dashboard.
|
|
40
|
-
#
|
|
41
|
-
# @return [String, nil]
|
|
42
|
-
optional :token, String
|
|
43
|
-
|
|
44
44
|
# @!attribute default_properties
|
|
45
45
|
# These properties are used throughout the Ours app to pass known values onto
|
|
46
46
|
# destinations
|
|
@@ -51,12 +51,6 @@ module OursprivacyIngest
|
|
|
51
51
|
api_name: :defaultProperties,
|
|
52
52
|
nil?: true
|
|
53
53
|
|
|
54
|
-
# @!attribute distinct_id
|
|
55
|
-
# A unique identifier for the event. This helps prevent duplicate events.
|
|
56
|
-
#
|
|
57
|
-
# @return [String, nil]
|
|
58
|
-
optional :distinct_id, String, api_name: :distinctId, nil?: true
|
|
59
|
-
|
|
60
54
|
# @!attribute email
|
|
61
55
|
# The email address of a user. We will associate this event with the user or
|
|
62
56
|
# create a user. Used for lookup if externalId and userId are not included in the
|
|
@@ -118,18 +112,16 @@ module OursprivacyIngest
|
|
|
118
112
|
api_name: :userProperties,
|
|
119
113
|
nil?: true
|
|
120
114
|
|
|
121
|
-
# @!method initialize(event:,
|
|
115
|
+
# @!method initialize(distinct_id:, event:, default_properties: nil, email: nil, event_properties: nil, external_id: nil, identity_context: nil, time: nil, user_id: nil, user_properties: nil)
|
|
122
116
|
# Some parameter documentations has been truncated, see
|
|
123
117
|
# {OursprivacyIngest::Models::BatchCreateParams::Event} for more details.
|
|
124
118
|
#
|
|
125
|
-
# @param
|
|
119
|
+
# @param distinct_id [String] A unique identifier for the event. This helps prevent duplicate events.
|
|
126
120
|
#
|
|
127
|
-
# @param
|
|
121
|
+
# @param event [String] The name of the event you're tracking. This must be whitelisted in the Ours dash
|
|
128
122
|
#
|
|
129
123
|
# @param default_properties [OursprivacyIngest::Models::BatchCreateParams::Event::DefaultProperties, nil] These properties are used throughout the Ours app to pass known values onto dest
|
|
130
124
|
#
|
|
131
|
-
# @param distinct_id [String, nil] A unique identifier for the event. This helps prevent duplicate events.
|
|
132
|
-
#
|
|
133
125
|
# @param email [String, nil] The email address of a user. We will associate this event with the user or creat
|
|
134
126
|
#
|
|
135
127
|
# @param event_properties [Hash{Symbol=>String, nil}, nil] Any additional event properties you want to pass along.
|
|
@@ -11,70 +11,112 @@ module OursprivacyIngest
|
|
|
11
11
|
|
|
12
12
|
# @!attribute failed
|
|
13
13
|
#
|
|
14
|
-
# @return [
|
|
15
|
-
required :failed,
|
|
14
|
+
# @return [Integer]
|
|
15
|
+
required :failed, Integer
|
|
16
16
|
|
|
17
17
|
# @!attribute results
|
|
18
18
|
#
|
|
19
|
-
# @return [Array<OursprivacyIngest::Models::BatchCreateResponse::Result>]
|
|
19
|
+
# @return [Array<OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1>]
|
|
20
20
|
required :results,
|
|
21
|
-
-> { OursprivacyIngest::Internal::Type::ArrayOf[OursprivacyIngest::Models::BatchCreateResponse::Result] }
|
|
21
|
+
-> { OursprivacyIngest::Internal::Type::ArrayOf[union: OursprivacyIngest::Models::BatchCreateResponse::Result] }
|
|
22
22
|
|
|
23
23
|
# @!attribute success
|
|
24
24
|
#
|
|
25
|
-
# @return [Boolean
|
|
26
|
-
required :success,
|
|
25
|
+
# @return [Boolean]
|
|
26
|
+
required :success, OursprivacyIngest::Internal::Type::Boolean
|
|
27
27
|
|
|
28
28
|
# @!method initialize(accepted:, failed:, results:, success:)
|
|
29
29
|
# @param accepted [Integer]
|
|
30
|
-
# @param failed [
|
|
31
|
-
# @param results [Array<OursprivacyIngest::Models::BatchCreateResponse::Result>]
|
|
32
|
-
# @param success [Boolean
|
|
30
|
+
# @param failed [Integer]
|
|
31
|
+
# @param results [Array<OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1>]
|
|
32
|
+
# @param success [Boolean]
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
extend OursprivacyIngest::Internal::Type::Enum
|
|
34
|
+
module Result
|
|
35
|
+
extend OursprivacyIngest::Internal::Type::Union
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
variant -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0 }
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
# @return [Array<Float>]
|
|
42
|
-
end
|
|
39
|
+
variant -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1 }
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
class UnionMember0 < OursprivacyIngest::Internal::Type::BaseModel
|
|
42
|
+
# @!attribute index
|
|
43
|
+
#
|
|
44
|
+
# @return [Integer]
|
|
45
|
+
required :index, Integer
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
# @!attribute success
|
|
48
|
+
#
|
|
49
|
+
# @return [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success]
|
|
50
|
+
required :success,
|
|
51
|
+
enum: -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success }
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
# @!method initialize(index:, success:)
|
|
54
|
+
# @param index [Integer]
|
|
55
|
+
# @param success [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success]
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
# @see OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0#success
|
|
58
|
+
module Success
|
|
59
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
62
60
|
|
|
63
|
-
|
|
61
|
+
TRUE = true
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
# @!method self.values
|
|
64
|
+
# @return [Array<Boolean>]
|
|
65
|
+
end
|
|
67
66
|
end
|
|
68
|
-
end
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
class UnionMember1 < OursprivacyIngest::Internal::Type::BaseModel
|
|
69
|
+
# @!attribute code
|
|
70
|
+
#
|
|
71
|
+
# @return [Symbol, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code]
|
|
72
|
+
required :code, enum: -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code }
|
|
73
|
+
|
|
74
|
+
# @!attribute index
|
|
75
|
+
#
|
|
76
|
+
# @return [Integer]
|
|
77
|
+
required :index, Integer
|
|
78
|
+
|
|
79
|
+
# @!attribute message
|
|
80
|
+
#
|
|
81
|
+
# @return [String]
|
|
82
|
+
required :message, String
|
|
83
|
+
|
|
84
|
+
# @!attribute success
|
|
85
|
+
#
|
|
86
|
+
# @return [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success]
|
|
87
|
+
required :success,
|
|
88
|
+
enum: -> { OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success }
|
|
89
|
+
|
|
90
|
+
# @!method initialize(code:, index:, message:, success:)
|
|
91
|
+
# @param code [Symbol, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code]
|
|
92
|
+
# @param index [Integer]
|
|
93
|
+
# @param message [String]
|
|
94
|
+
# @param success [Boolean, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success]
|
|
95
|
+
|
|
96
|
+
# @see OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1#code
|
|
97
|
+
module Code
|
|
98
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
99
|
+
|
|
100
|
+
INVALID_EVENT = :invalid_event
|
|
101
|
+
QUEUE_FAILED = :queue_failed
|
|
102
|
+
|
|
103
|
+
# @!method self.values
|
|
104
|
+
# @return [Array<Symbol>]
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# @see OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1#success
|
|
108
|
+
module Success
|
|
109
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
110
|
+
|
|
111
|
+
FALSE = false
|
|
112
|
+
|
|
113
|
+
# @!method self.values
|
|
114
|
+
# @return [Array<Boolean>]
|
|
115
|
+
end
|
|
116
|
+
end
|
|
75
117
|
|
|
76
|
-
# @!method self.
|
|
77
|
-
# @return [Array
|
|
118
|
+
# @!method self.variants
|
|
119
|
+
# @return [Array(OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0, OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1)]
|
|
78
120
|
end
|
|
79
121
|
end
|
|
80
122
|
end
|
|
@@ -59,18 +59,15 @@ module OursprivacyIngest
|
|
|
59
59
|
)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
+
# A unique identifier for the event. This helps prevent duplicate events.
|
|
63
|
+
sig { returns(String) }
|
|
64
|
+
attr_accessor :distinct_id
|
|
65
|
+
|
|
62
66
|
# The name of the event you're tracking. This must be whitelisted in the Ours
|
|
63
67
|
# dashboard.
|
|
64
68
|
sig { returns(String) }
|
|
65
69
|
attr_accessor :event
|
|
66
70
|
|
|
67
|
-
# The token for your Source. You can find this in the dashboard.
|
|
68
|
-
sig { returns(T.nilable(String)) }
|
|
69
|
-
attr_reader :token
|
|
70
|
-
|
|
71
|
-
sig { params(token: String).void }
|
|
72
|
-
attr_writer :token
|
|
73
|
-
|
|
74
71
|
# These properties are used throughout the Ours app to pass known values onto
|
|
75
72
|
# destinations
|
|
76
73
|
sig do
|
|
@@ -92,10 +89,6 @@ module OursprivacyIngest
|
|
|
92
89
|
end
|
|
93
90
|
attr_writer :default_properties
|
|
94
91
|
|
|
95
|
-
# A unique identifier for the event. This helps prevent duplicate events.
|
|
96
|
-
sig { returns(T.nilable(String)) }
|
|
97
|
-
attr_accessor :distinct_id
|
|
98
|
-
|
|
99
92
|
# The email address of a user. We will associate this event with the user or
|
|
100
93
|
# create a user. Used for lookup if externalId and userId are not included in the
|
|
101
94
|
# request.
|
|
@@ -168,13 +161,12 @@ module OursprivacyIngest
|
|
|
168
161
|
|
|
169
162
|
sig do
|
|
170
163
|
params(
|
|
164
|
+
distinct_id: String,
|
|
171
165
|
event: String,
|
|
172
|
-
token: String,
|
|
173
166
|
default_properties:
|
|
174
167
|
T.nilable(
|
|
175
168
|
OursprivacyIngest::BatchCreateParams::Event::DefaultProperties::OrHash
|
|
176
169
|
),
|
|
177
|
-
distinct_id: T.nilable(String),
|
|
178
170
|
email: T.nilable(String),
|
|
179
171
|
event_properties: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
180
172
|
external_id: T.nilable(String),
|
|
@@ -191,16 +183,14 @@ module OursprivacyIngest
|
|
|
191
183
|
).returns(T.attached_class)
|
|
192
184
|
end
|
|
193
185
|
def self.new(
|
|
186
|
+
# A unique identifier for the event. This helps prevent duplicate events.
|
|
187
|
+
distinct_id:,
|
|
194
188
|
# The name of the event you're tracking. This must be whitelisted in the Ours
|
|
195
189
|
# dashboard.
|
|
196
190
|
event:,
|
|
197
|
-
# The token for your Source. You can find this in the dashboard.
|
|
198
|
-
token: nil,
|
|
199
191
|
# These properties are used throughout the Ours app to pass known values onto
|
|
200
192
|
# destinations
|
|
201
193
|
default_properties: nil,
|
|
202
|
-
# A unique identifier for the event. This helps prevent duplicate events.
|
|
203
|
-
distinct_id: nil,
|
|
204
194
|
# The email address of a user. We will associate this event with the user or
|
|
205
195
|
# create a user. Used for lookup if externalId and userId are not included in the
|
|
206
196
|
# request.
|
|
@@ -231,13 +221,12 @@ module OursprivacyIngest
|
|
|
231
221
|
sig do
|
|
232
222
|
override.returns(
|
|
233
223
|
{
|
|
224
|
+
distinct_id: String,
|
|
234
225
|
event: String,
|
|
235
|
-
token: String,
|
|
236
226
|
default_properties:
|
|
237
227
|
T.nilable(
|
|
238
228
|
OursprivacyIngest::BatchCreateParams::Event::DefaultProperties
|
|
239
229
|
),
|
|
240
|
-
distinct_id: T.nilable(String),
|
|
241
230
|
email: T.nilable(String),
|
|
242
231
|
event_properties: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
243
232
|
external_id: T.nilable(String),
|
|
@@ -14,38 +14,33 @@ module OursprivacyIngest
|
|
|
14
14
|
sig { returns(Integer) }
|
|
15
15
|
attr_accessor :accepted
|
|
16
16
|
|
|
17
|
-
sig
|
|
18
|
-
returns(
|
|
19
|
-
OursprivacyIngest::Models::BatchCreateResponse::Failed::TaggedFloat
|
|
20
|
-
)
|
|
21
|
-
end
|
|
17
|
+
sig { returns(Integer) }
|
|
22
18
|
attr_accessor :failed
|
|
23
19
|
|
|
24
20
|
sig do
|
|
25
21
|
returns(
|
|
26
|
-
T::Array[
|
|
22
|
+
T::Array[
|
|
23
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::Variants
|
|
24
|
+
]
|
|
27
25
|
)
|
|
28
26
|
end
|
|
29
27
|
attr_accessor :results
|
|
30
28
|
|
|
31
|
-
sig
|
|
32
|
-
returns(
|
|
33
|
-
OursprivacyIngest::Models::BatchCreateResponse::Success::TaggedBoolean
|
|
34
|
-
)
|
|
35
|
-
end
|
|
29
|
+
sig { returns(T::Boolean) }
|
|
36
30
|
attr_accessor :success
|
|
37
31
|
|
|
38
32
|
sig do
|
|
39
33
|
params(
|
|
40
34
|
accepted: Integer,
|
|
41
|
-
failed:
|
|
42
|
-
OursprivacyIngest::Models::BatchCreateResponse::Failed::OrFloat,
|
|
35
|
+
failed: Integer,
|
|
43
36
|
results:
|
|
44
37
|
T::Array[
|
|
45
|
-
|
|
38
|
+
T.any(
|
|
39
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::OrHash,
|
|
40
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::OrHash
|
|
41
|
+
)
|
|
46
42
|
],
|
|
47
|
-
success:
|
|
48
|
-
OursprivacyIngest::Models::BatchCreateResponse::Success::OrBoolean
|
|
43
|
+
success: T::Boolean
|
|
49
44
|
).returns(T.attached_class)
|
|
50
45
|
end
|
|
51
46
|
def self.new(accepted:, failed:, results:, success:)
|
|
@@ -55,141 +50,229 @@ module OursprivacyIngest
|
|
|
55
50
|
override.returns(
|
|
56
51
|
{
|
|
57
52
|
accepted: Integer,
|
|
58
|
-
failed:
|
|
59
|
-
OursprivacyIngest::Models::BatchCreateResponse::Failed::TaggedFloat,
|
|
53
|
+
failed: Integer,
|
|
60
54
|
results:
|
|
61
|
-
T::Array[
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
T::Array[
|
|
56
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::Variants
|
|
57
|
+
],
|
|
58
|
+
success: T::Boolean
|
|
64
59
|
}
|
|
65
60
|
)
|
|
66
61
|
end
|
|
67
62
|
def to_hash
|
|
68
63
|
end
|
|
69
64
|
|
|
70
|
-
module
|
|
71
|
-
extend OursprivacyIngest::Internal::Type::
|
|
65
|
+
module Result
|
|
66
|
+
extend OursprivacyIngest::Internal::Type::Union
|
|
72
67
|
|
|
73
|
-
|
|
68
|
+
Variants =
|
|
74
69
|
T.type_alias do
|
|
75
|
-
T.
|
|
70
|
+
T.any(
|
|
71
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0,
|
|
72
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1
|
|
73
|
+
)
|
|
76
74
|
end
|
|
77
|
-
OrFloat = T.type_alias { Float }
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
class UnionMember0 < OursprivacyIngest::Internal::Type::BaseModel
|
|
77
|
+
OrHash =
|
|
78
|
+
T.type_alias do
|
|
79
|
+
T.any(
|
|
80
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0,
|
|
81
|
+
OursprivacyIngest::Internal::AnyHash
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
T::Array[
|
|
88
|
-
OursprivacyIngest::Models::BatchCreateResponse::Failed::TaggedFloat
|
|
89
|
-
]
|
|
90
|
-
)
|
|
91
|
-
end
|
|
92
|
-
def self.values
|
|
93
|
-
end
|
|
94
|
-
end
|
|
85
|
+
sig { returns(Integer) }
|
|
86
|
+
attr_accessor :index
|
|
95
87
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
T.any(
|
|
100
|
-
OursprivacyIngest::Models::BatchCreateResponse::Result,
|
|
101
|
-
OursprivacyIngest::Internal::AnyHash
|
|
88
|
+
sig do
|
|
89
|
+
returns(
|
|
90
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success::TaggedBoolean
|
|
102
91
|
)
|
|
103
92
|
end
|
|
93
|
+
attr_accessor :success
|
|
104
94
|
|
|
105
|
-
|
|
106
|
-
|
|
95
|
+
sig do
|
|
96
|
+
params(
|
|
97
|
+
index: Integer,
|
|
98
|
+
success:
|
|
99
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success::OrBoolean
|
|
100
|
+
).returns(T.attached_class)
|
|
101
|
+
end
|
|
102
|
+
def self.new(index:, success:)
|
|
103
|
+
end
|
|
107
104
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
sig do
|
|
106
|
+
override.returns(
|
|
107
|
+
{
|
|
108
|
+
index: Integer,
|
|
109
|
+
success:
|
|
110
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success::TaggedBoolean
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def to_hash
|
|
115
|
+
end
|
|
114
116
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
index: Integer,
|
|
118
|
-
success:
|
|
119
|
-
OursprivacyIngest::Models::BatchCreateResponse::Result::Success::OrBoolean
|
|
120
|
-
).returns(T.attached_class)
|
|
121
|
-
end
|
|
122
|
-
def self.new(index:, success:)
|
|
123
|
-
end
|
|
117
|
+
module Success
|
|
118
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
124
119
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
120
|
+
TaggedBoolean =
|
|
121
|
+
T.type_alias do
|
|
122
|
+
T.all(
|
|
123
|
+
T::Boolean,
|
|
124
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
OrBoolean = T.type_alias { T::Boolean }
|
|
128
|
+
|
|
129
|
+
TRUE =
|
|
130
|
+
T.let(
|
|
131
|
+
true,
|
|
132
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success::TaggedBoolean
|
|
133
|
+
)
|
|
136
134
|
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
sig do
|
|
136
|
+
override.returns(
|
|
137
|
+
T::Array[
|
|
138
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::Success::TaggedBoolean
|
|
139
|
+
]
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
def self.values
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
139
146
|
|
|
140
|
-
|
|
147
|
+
class UnionMember1 < OursprivacyIngest::Internal::Type::BaseModel
|
|
148
|
+
OrHash =
|
|
141
149
|
T.type_alias do
|
|
142
|
-
T.
|
|
143
|
-
|
|
144
|
-
OursprivacyIngest::
|
|
150
|
+
T.any(
|
|
151
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1,
|
|
152
|
+
OursprivacyIngest::Internal::AnyHash
|
|
145
153
|
)
|
|
146
154
|
end
|
|
147
|
-
OrBoolean = T.type_alias { T::Boolean }
|
|
148
155
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
156
|
+
sig do
|
|
157
|
+
returns(
|
|
158
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code::TaggedSymbol
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
attr_accessor :code
|
|
162
|
+
|
|
163
|
+
sig { returns(Integer) }
|
|
164
|
+
attr_accessor :index
|
|
165
|
+
|
|
166
|
+
sig { returns(String) }
|
|
167
|
+
attr_accessor :message
|
|
168
|
+
|
|
169
|
+
sig do
|
|
170
|
+
returns(
|
|
171
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success::TaggedBoolean
|
|
153
172
|
)
|
|
173
|
+
end
|
|
174
|
+
attr_accessor :success
|
|
175
|
+
|
|
176
|
+
sig do
|
|
177
|
+
params(
|
|
178
|
+
code:
|
|
179
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code::OrSymbol,
|
|
180
|
+
index: Integer,
|
|
181
|
+
message: String,
|
|
182
|
+
success:
|
|
183
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success::OrBoolean
|
|
184
|
+
).returns(T.attached_class)
|
|
185
|
+
end
|
|
186
|
+
def self.new(code:, index:, message:, success:)
|
|
187
|
+
end
|
|
154
188
|
|
|
155
189
|
sig do
|
|
156
190
|
override.returns(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
191
|
+
{
|
|
192
|
+
code:
|
|
193
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code::TaggedSymbol,
|
|
194
|
+
index: Integer,
|
|
195
|
+
message: String,
|
|
196
|
+
success:
|
|
197
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success::TaggedBoolean
|
|
198
|
+
}
|
|
160
199
|
)
|
|
161
200
|
end
|
|
162
|
-
def
|
|
201
|
+
def to_hash
|
|
163
202
|
end
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
203
|
|
|
167
|
-
|
|
168
|
-
|
|
204
|
+
module Code
|
|
205
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
169
206
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
207
|
+
TaggedSymbol =
|
|
208
|
+
T.type_alias do
|
|
209
|
+
T.all(
|
|
210
|
+
Symbol,
|
|
211
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code
|
|
212
|
+
)
|
|
213
|
+
end
|
|
214
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
215
|
+
|
|
216
|
+
INVALID_EVENT =
|
|
217
|
+
T.let(
|
|
218
|
+
:invalid_event,
|
|
219
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code::TaggedSymbol
|
|
220
|
+
)
|
|
221
|
+
QUEUE_FAILED =
|
|
222
|
+
T.let(
|
|
223
|
+
:queue_failed,
|
|
224
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code::TaggedSymbol
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
sig do
|
|
228
|
+
override.returns(
|
|
229
|
+
T::Array[
|
|
230
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Code::TaggedSymbol
|
|
231
|
+
]
|
|
232
|
+
)
|
|
233
|
+
end
|
|
234
|
+
def self.values
|
|
235
|
+
end
|
|
176
236
|
end
|
|
177
|
-
OrBoolean = T.type_alias { T::Boolean }
|
|
178
237
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
238
|
+
module Success
|
|
239
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
TaggedBoolean =
|
|
242
|
+
T.type_alias do
|
|
243
|
+
T.all(
|
|
244
|
+
T::Boolean,
|
|
245
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
OrBoolean = T.type_alias { T::Boolean }
|
|
249
|
+
|
|
250
|
+
FALSE =
|
|
251
|
+
T.let(
|
|
252
|
+
false,
|
|
253
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success::TaggedBoolean
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
sig do
|
|
257
|
+
override.returns(
|
|
258
|
+
T::Array[
|
|
259
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::Success::TaggedBoolean
|
|
260
|
+
]
|
|
261
|
+
)
|
|
262
|
+
end
|
|
263
|
+
def self.values
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
end
|
|
184
267
|
|
|
185
268
|
sig do
|
|
186
269
|
override.returns(
|
|
187
270
|
T::Array[
|
|
188
|
-
OursprivacyIngest::Models::BatchCreateResponse::
|
|
271
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::Variants
|
|
189
272
|
]
|
|
190
273
|
)
|
|
191
274
|
end
|
|
192
|
-
def self.
|
|
275
|
+
def self.variants
|
|
193
276
|
end
|
|
194
277
|
end
|
|
195
278
|
end
|
|
@@ -29,10 +29,9 @@ module OursprivacyIngest
|
|
|
29
29
|
|
|
30
30
|
type event =
|
|
31
31
|
{
|
|
32
|
+
distinct_id: String,
|
|
32
33
|
event: String,
|
|
33
|
-
token: String,
|
|
34
34
|
default_properties: OursprivacyIngest::BatchCreateParams::Event::DefaultProperties?,
|
|
35
|
-
distinct_id: String?,
|
|
36
35
|
email: String?,
|
|
37
36
|
event_properties: ::Hash[Symbol, String?]?,
|
|
38
37
|
external_id: String?,
|
|
@@ -43,16 +42,12 @@ module OursprivacyIngest
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
class Event < OursprivacyIngest::Internal::Type::BaseModel
|
|
46
|
-
attr_accessor
|
|
47
|
-
|
|
48
|
-
attr_reader token: String?
|
|
45
|
+
attr_accessor distinct_id: String
|
|
49
46
|
|
|
50
|
-
|
|
47
|
+
attr_accessor event: String
|
|
51
48
|
|
|
52
49
|
attr_accessor default_properties: OursprivacyIngest::BatchCreateParams::Event::DefaultProperties?
|
|
53
50
|
|
|
54
|
-
attr_accessor distinct_id: String?
|
|
55
|
-
|
|
56
51
|
attr_accessor email: String?
|
|
57
52
|
|
|
58
53
|
attr_accessor event_properties: ::Hash[Symbol, String?]?
|
|
@@ -68,10 +63,9 @@ module OursprivacyIngest
|
|
|
68
63
|
attr_accessor user_properties: OursprivacyIngest::BatchCreateParams::Event::UserProperties?
|
|
69
64
|
|
|
70
65
|
def initialize: (
|
|
66
|
+
distinct_id: String,
|
|
71
67
|
event: String,
|
|
72
|
-
?token: String,
|
|
73
68
|
?default_properties: OursprivacyIngest::BatchCreateParams::Event::DefaultProperties?,
|
|
74
|
-
?distinct_id: String?,
|
|
75
69
|
?email: String?,
|
|
76
70
|
?event_properties: ::Hash[Symbol, String?]?,
|
|
77
71
|
?external_id: String?,
|
|
@@ -82,10 +76,9 @@ module OursprivacyIngest
|
|
|
82
76
|
) -> void
|
|
83
77
|
|
|
84
78
|
def to_hash: -> {
|
|
79
|
+
distinct_id: String,
|
|
85
80
|
event: String,
|
|
86
|
-
token: String,
|
|
87
81
|
default_properties: OursprivacyIngest::BatchCreateParams::Event::DefaultProperties?,
|
|
88
|
-
distinct_id: String?,
|
|
89
82
|
email: String?,
|
|
90
83
|
event_properties: ::Hash[Symbol, String?]?,
|
|
91
84
|
external_id: String?,
|
|
@@ -3,84 +3,127 @@ module OursprivacyIngest
|
|
|
3
3
|
type batch_create_response =
|
|
4
4
|
{
|
|
5
5
|
accepted: Integer,
|
|
6
|
-
failed:
|
|
7
|
-
results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::
|
|
8
|
-
success:
|
|
6
|
+
failed: Integer,
|
|
7
|
+
results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::result],
|
|
8
|
+
success: bool
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class BatchCreateResponse < OursprivacyIngest::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor accepted: Integer
|
|
13
13
|
|
|
14
|
-
attr_accessor failed:
|
|
14
|
+
attr_accessor failed: Integer
|
|
15
15
|
|
|
16
|
-
attr_accessor results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::
|
|
16
|
+
attr_accessor results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::result]
|
|
17
17
|
|
|
18
|
-
attr_accessor success:
|
|
18
|
+
attr_accessor success: bool
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
accepted: Integer,
|
|
22
|
-
failed:
|
|
23
|
-
results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::
|
|
24
|
-
success:
|
|
22
|
+
failed: Integer,
|
|
23
|
+
results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::result],
|
|
24
|
+
success: bool
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
accepted: Integer,
|
|
29
|
-
failed:
|
|
30
|
-
results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::
|
|
31
|
-
success:
|
|
29
|
+
failed: Integer,
|
|
30
|
+
results: ::Array[OursprivacyIngest::Models::BatchCreateResponse::result],
|
|
31
|
+
success: bool
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type
|
|
34
|
+
type result =
|
|
35
|
+
OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0
|
|
36
|
+
| OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1
|
|
35
37
|
|
|
36
|
-
module
|
|
37
|
-
extend OursprivacyIngest::Internal::Type::
|
|
38
|
+
module Result
|
|
39
|
+
extend OursprivacyIngest::Internal::Type::Union
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
type union_member0 =
|
|
42
|
+
{
|
|
43
|
+
index: Integer,
|
|
44
|
+
success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::success
|
|
45
|
+
}
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
class UnionMember0 < OursprivacyIngest::Internal::Type::BaseModel
|
|
48
|
+
attr_accessor index: Integer
|
|
43
49
|
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
index: Integer,
|
|
47
|
-
success: OursprivacyIngest::Models::BatchCreateResponse::Result::success
|
|
48
|
-
}
|
|
50
|
+
attr_accessor success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::success
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
def initialize: (
|
|
53
|
+
index: Integer,
|
|
54
|
+
success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::success
|
|
55
|
+
) -> void
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
def to_hash: -> {
|
|
58
|
+
index: Integer,
|
|
59
|
+
success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::success
|
|
60
|
+
}
|
|
54
61
|
|
|
55
|
-
|
|
56
|
-
index: Integer,
|
|
57
|
-
success: OursprivacyIngest::Models::BatchCreateResponse::Result::success
|
|
58
|
-
) -> void
|
|
62
|
+
type success = true
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
success: OursprivacyIngest::Models::BatchCreateResponse::Result::success
|
|
63
|
-
}
|
|
64
|
+
module Success
|
|
65
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
TRUE: true
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
def self?.values: -> ::Array[OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember0::success]
|
|
70
|
+
end
|
|
71
|
+
end
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
type union_member1 =
|
|
74
|
+
{
|
|
75
|
+
code: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::code,
|
|
76
|
+
index: Integer,
|
|
77
|
+
message: String,
|
|
78
|
+
success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::success
|
|
79
|
+
}
|
|
71
80
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
class UnionMember1 < OursprivacyIngest::Internal::Type::BaseModel
|
|
82
|
+
attr_accessor code: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::code
|
|
83
|
+
|
|
84
|
+
attr_accessor index: Integer
|
|
85
|
+
|
|
86
|
+
attr_accessor message: String
|
|
87
|
+
|
|
88
|
+
attr_accessor success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::success
|
|
75
89
|
|
|
76
|
-
|
|
90
|
+
def initialize: (
|
|
91
|
+
code: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::code,
|
|
92
|
+
index: Integer,
|
|
93
|
+
message: String,
|
|
94
|
+
success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::success
|
|
95
|
+
) -> void
|
|
77
96
|
|
|
78
|
-
|
|
79
|
-
|
|
97
|
+
def to_hash: -> {
|
|
98
|
+
code: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::code,
|
|
99
|
+
index: Integer,
|
|
100
|
+
message: String,
|
|
101
|
+
success: OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::success
|
|
102
|
+
}
|
|
80
103
|
|
|
81
|
-
|
|
104
|
+
type code = :invalid_event | :queue_failed
|
|
105
|
+
|
|
106
|
+
module Code
|
|
107
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
108
|
+
|
|
109
|
+
INVALID_EVENT: :invalid_event
|
|
110
|
+
QUEUE_FAILED: :queue_failed
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::code]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
type success = false
|
|
116
|
+
|
|
117
|
+
module Success
|
|
118
|
+
extend OursprivacyIngest::Internal::Type::Enum
|
|
119
|
+
|
|
120
|
+
FALSE: false
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[OursprivacyIngest::Models::BatchCreateResponse::Result::UnionMember1::success]
|
|
123
|
+
end
|
|
124
|
+
end
|
|
82
125
|
|
|
83
|
-
def self?.
|
|
126
|
+
def self?.variants: -> ::Array[OursprivacyIngest::Models::BatchCreateResponse::result]
|
|
84
127
|
end
|
|
85
128
|
end
|
|
86
129
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oursprivacy-ingest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ours Privacy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|