growsurf-ruby 0.3.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 605534d947eac522a949503f9572694007413ef9040a32a96bea535a2584be47
4
- data.tar.gz: aef15c880bbfa43c46f5c29f5299179909325b12d7211e1320a03cab1d28a6fe
3
+ metadata.gz: 1ac4a21288a39b1b353991906e251d66defef13a542306c9a20d2997a64ba7f8
4
+ data.tar.gz: e7d9dc119edc82f58f68de3b088e983c53c819d9a2ae000bc153c9fa1dcc5bc6
5
5
  SHA512:
6
- metadata.gz: 06c6a1595b1d6778efd78c9d01237364471f023f2163d8f3b663aaa27cdf684d1d0ea714023b03b2398d65a07b971fd5902712640016166dee9e116c35f40580
7
- data.tar.gz: 3761201606953175d138cbed0e948d6e2b069183e9584faefe841f9dfe7a0a9c5d9f0e190c69776bb1cf424f872e95a23122d1ed77c55721967c73202a569160
6
+ metadata.gz: 6766b01f7d674381c2d2b38584fe6ba93ef68851fb60c60841dffed9512ef062e38e5e48797c79b6517b4315e54e754ae9d816346f987bc87143130453dde1cb
7
+ data.tar.gz: 2bac4d0c18cf042b032e431904f303ff53b4da988b4008890a047755f6d00529b2272da61268afcbb3e86c7ca20096c8e7da20ca4d7e6c072821f3061e24cc65
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0 (2026-05-25)
4
+
5
+ Full Changelog: [v0.4.0...v0.5.0](https://github.com/growsurf/growsurf-ruby/compare/v0.4.0...v0.5.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([e9e3916](https://github.com/growsurf/growsurf-ruby/commit/e9e3916ed07e217dbad3bcea88a7979226927915))
10
+
11
+ ## 0.4.0 (2026-05-20)
12
+
13
+ Full Changelog: [v0.3.0...v0.4.0](https://github.com/growsurf/growsurf-ruby/compare/v0.3.0...v0.4.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** Add Participant.mobileInstanceId ([c5ca7c3](https://github.com/growsurf/growsurf-ruby/commit/c5ca7c3334d28caf6d28afa9baf71cd9cfbfee11))
18
+
3
19
  ## 0.3.0 (2026-05-19)
4
20
 
5
21
  Full Changelog: [v0.2.0...v0.3.0](https://github.com/growsurf/growsurf-ruby/compare/v0.2.0...v0.3.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 "growsurf-ruby", "~> 0.3.0"
20
+ gem "growsurf-ruby", "~> 0.5.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -35,6 +35,14 @@ module GrowsurfRuby
35
35
  # @return [Hash{Symbol=>Object}, nil]
36
36
  optional :metadata, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
37
37
 
38
+ # @!attribute mobile_instance_id
39
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
40
+ # for mobile participant creation and mobile participant token flows. The official
41
+ # mobile SDKs generate this as a lowercase UUID.
42
+ #
43
+ # @return [String, nil]
44
+ optional :mobile_instance_id, String, api_name: :mobileInstanceId
45
+
38
46
  # @!attribute referral_status
39
47
  #
40
48
  # @return [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus, nil]
@@ -48,7 +56,10 @@ module GrowsurfRuby
48
56
  # @return [String, nil]
49
57
  optional :referred_by, String, api_name: :referredBy
50
58
 
51
- # @!method initialize(email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, referral_status: nil, referred_by: nil)
59
+ # @!method initialize(email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, referral_status: nil, referred_by: nil)
60
+ # Some parameter documentations has been truncated, see
61
+ # {GrowsurfRuby::Models::Campaign::Create} for more details.
62
+ #
52
63
  # @param email [String]
53
64
  #
54
65
  # @param fingerprint [String]
@@ -61,6 +72,8 @@ module GrowsurfRuby
61
72
  #
62
73
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
63
74
  #
75
+ # @param mobile_instance_id [String] Optional app-install scoped identifier for native mobile anti-fraud. Recommended
76
+ #
64
77
  # @param referral_status [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus]
65
78
  #
66
79
  # @param referred_by [String] Referrer participant ID or email address.
@@ -117,6 +117,14 @@ module GrowsurfRuby
117
117
  # @return [Hash{Symbol=>Object}, nil]
118
118
  optional :metadata, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
119
119
 
120
+ # @!attribute mobile_instance_id
121
+ # App-install scoped mobile identifier used for anti-fraud matching when provided
122
+ # by native mobile apps. The official mobile SDKs generate this as a lowercase
123
+ # UUID. Not stored when strict GDPR/CCPA mode is enabled.
124
+ #
125
+ # @return [String, nil]
126
+ optional :mobile_instance_id, String, api_name: :mobileInstanceId, nil?: true
127
+
120
128
  # @!attribute monthly_referrals
121
129
  #
122
130
  # @return [Array<String>, nil]
@@ -207,7 +215,10 @@ module GrowsurfRuby
207
215
  # @return [Array<String>, nil]
208
216
  optional :vanity_keys, GrowsurfRuby::Internal::Type::ArrayOf[String], api_name: :vanityKeys
209
217
 
210
- # @!method initialize(id:, email:, monthly_rank:, monthly_referral_count:, rank:, referral_count:, rewards:, share_url:, all_matching_fraudsters: nil, created_at: nil, fingerprint: nil, first_name: nil, fraud_reason_code: nil, fraud_risk_level: nil, impression_count: nil, invite_count: nil, ip_address: nil, is_new: nil, is_winner: nil, last_name: nil, metadata: nil, monthly_referrals: nil, notes: nil, paypal_email_address: nil, prev_monthly_rank: nil, prev_monthly_referral_count: nil, referrals: nil, referral_source: nil, referral_status: nil, referred_by: nil, referrer: nil, share_count: nil, unique_impression_count: nil, unread_commissions_count: nil, unread_payouts_count: nil, unsubscribed: nil, vanity_keys: nil)
218
+ # @!method initialize(id:, email:, monthly_rank:, monthly_referral_count:, rank:, referral_count:, rewards:, share_url:, all_matching_fraudsters: nil, created_at: nil, fingerprint: nil, first_name: nil, fraud_reason_code: nil, fraud_risk_level: nil, impression_count: nil, invite_count: nil, ip_address: nil, is_new: nil, is_winner: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, monthly_referrals: nil, notes: nil, paypal_email_address: nil, prev_monthly_rank: nil, prev_monthly_referral_count: nil, referrals: nil, referral_source: nil, referral_status: nil, referred_by: nil, referrer: nil, share_count: nil, unique_impression_count: nil, unread_commissions_count: nil, unread_payouts_count: nil, unsubscribed: nil, vanity_keys: nil)
219
+ # Some parameter documentations has been truncated, see
220
+ # {GrowsurfRuby::Models::Campaign::CampaignParticipant} for more details.
221
+ #
211
222
  # @param id [String]
212
223
  #
213
224
  # @param email [String]
@@ -250,6 +261,8 @@ module GrowsurfRuby
250
261
  #
251
262
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
252
263
  #
264
+ # @param mobile_instance_id [String, nil] App-install scoped mobile identifier used for anti-fraud matching when provided
265
+ #
253
266
  # @param monthly_referrals [Array<String>]
254
267
  #
255
268
  # @param notes [String, nil]
@@ -102,10 +102,13 @@ module GrowsurfRuby
102
102
  )
103
103
  end
104
104
 
105
+ # Some parameter documentations has been truncated, see
106
+ # {GrowsurfRuby::Models::Campaign::ParticipantAddParams} for more details.
107
+ #
105
108
  # Adds a new participant to the program. If the email already exists, the existing
106
109
  # participant is returned.
107
110
  #
108
- # @overload add(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, referral_status: nil, referred_by: nil, request_options: {})
111
+ # @overload add(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, referral_status: nil, referred_by: nil, request_options: {})
109
112
  #
110
113
  # @param id [String] GrowSurf program ID.
111
114
  #
@@ -121,6 +124,8 @@ module GrowsurfRuby
121
124
  #
122
125
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
123
126
  #
127
+ # @param mobile_instance_id [String] Optional app-install scoped identifier for native mobile anti-fraud. Recommended
128
+ #
124
129
  # @param referral_status [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus]
125
130
  #
126
131
  # @param referred_by [String] Referrer participant ID or email address.
@@ -52,12 +52,16 @@ module GrowsurfRuby
52
52
  )
53
53
  end
54
54
 
55
+ # Some parameter documentations has been truncated, see
56
+ # {GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenParams} for more
57
+ # details.
58
+ #
55
59
  # Creates or returns a participant using the same input behavior as Add
56
60
  # Participant, then returns a participant-scoped token for GrowSurf mobile SDK
57
61
  # participant endpoints. Use this endpoint from your backend after your mobile app
58
62
  # authenticates a signed-in user. The program must have mobile SDK access enabled.
59
63
  #
60
- # @overload create_mobile_participant_token(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, referral_status: nil, referred_by: nil, request_options: {})
64
+ # @overload create_mobile_participant_token(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, referral_status: nil, referred_by: nil, request_options: {})
61
65
  #
62
66
  # @param id [String] GrowSurf program ID.
63
67
  #
@@ -73,6 +77,8 @@ module GrowsurfRuby
73
77
  #
74
78
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
75
79
  #
80
+ # @param mobile_instance_id [String] Optional app-install scoped identifier for native mobile anti-fraud. Recommended
81
+ #
76
82
  # @param referral_status [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus]
77
83
  #
78
84
  # @param referred_by [String] Referrer participant ID or email address.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrowsurfRuby
4
- VERSION = "0.3.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -46,6 +46,15 @@ module GrowsurfRuby
46
46
  sig { params(metadata: T::Hash[Symbol, T.anything]).void }
47
47
  attr_writer :metadata
48
48
 
49
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
50
+ # for mobile participant creation and mobile participant token flows. The official
51
+ # mobile SDKs generate this as a lowercase UUID.
52
+ sig { returns(T.nilable(String)) }
53
+ attr_reader :mobile_instance_id
54
+
55
+ sig { params(mobile_instance_id: String).void }
56
+ attr_writer :mobile_instance_id
57
+
49
58
  sig do
50
59
  returns(
51
60
  T.nilable(GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol)
@@ -76,6 +85,7 @@ module GrowsurfRuby
76
85
  ip_address: String,
77
86
  last_name: String,
78
87
  metadata: T::Hash[Symbol, T.anything],
88
+ mobile_instance_id: String,
79
89
  referral_status:
80
90
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
81
91
  referred_by: String
@@ -89,6 +99,10 @@ module GrowsurfRuby
89
99
  last_name: nil,
90
100
  # Shallow custom metadata object.
91
101
  metadata: nil,
102
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
103
+ # for mobile participant creation and mobile participant token flows. The official
104
+ # mobile SDKs generate this as a lowercase UUID.
105
+ mobile_instance_id: nil,
92
106
  referral_status: nil,
93
107
  # Referrer participant ID or email address.
94
108
  referred_by: nil
@@ -104,6 +118,7 @@ module GrowsurfRuby
104
118
  ip_address: String,
105
119
  last_name: String,
106
120
  metadata: T::Hash[Symbol, T.anything],
121
+ mobile_instance_id: String,
107
122
  referral_status:
108
123
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
109
124
  referred_by: String
@@ -115,6 +115,12 @@ module GrowsurfRuby
115
115
  sig { params(metadata: T::Hash[Symbol, T.anything]).void }
116
116
  attr_writer :metadata
117
117
 
118
+ # App-install scoped mobile identifier used for anti-fraud matching when provided
119
+ # by native mobile apps. The official mobile SDKs generate this as a lowercase
120
+ # UUID. Not stored when strict GDPR/CCPA mode is enabled.
121
+ sig { returns(T.nilable(String)) }
122
+ attr_accessor :mobile_instance_id
123
+
118
124
  sig { returns(T.nilable(T::Array[String])) }
119
125
  attr_reader :monthly_referrals
120
126
 
@@ -259,6 +265,7 @@ module GrowsurfRuby
259
265
  is_winner: T::Boolean,
260
266
  last_name: T.nilable(String),
261
267
  metadata: T::Hash[Symbol, T.anything],
268
+ mobile_instance_id: T.nilable(String),
262
269
  monthly_referrals: T::Array[String],
263
270
  notes: T.nilable(String),
264
271
  paypal_email_address: String,
@@ -303,6 +310,10 @@ module GrowsurfRuby
303
310
  last_name: nil,
304
311
  # Shallow custom metadata object.
305
312
  metadata: nil,
313
+ # App-install scoped mobile identifier used for anti-fraud matching when provided
314
+ # by native mobile apps. The official mobile SDKs generate this as a lowercase
315
+ # UUID. Not stored when strict GDPR/CCPA mode is enabled.
316
+ mobile_instance_id: nil,
306
317
  monthly_referrals: nil,
307
318
  notes: nil,
308
319
  paypal_email_address: nil,
@@ -347,6 +358,7 @@ module GrowsurfRuby
347
358
  is_winner: T::Boolean,
348
359
  last_name: T.nilable(String),
349
360
  metadata: T::Hash[Symbol, T.anything],
361
+ mobile_instance_id: T.nilable(String),
350
362
  monthly_referrals: T::Array[String],
351
363
  notes: T.nilable(String),
352
364
  paypal_email_address: String,
@@ -91,6 +91,7 @@ module GrowsurfRuby
91
91
  ip_address: String,
92
92
  last_name: String,
93
93
  metadata: T::Hash[Symbol, T.anything],
94
+ mobile_instance_id: String,
94
95
  referral_status:
95
96
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
96
97
  referred_by: String,
@@ -107,6 +108,10 @@ module GrowsurfRuby
107
108
  last_name: nil,
108
109
  # Shallow custom metadata object.
109
110
  metadata: nil,
111
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
112
+ # for mobile participant creation and mobile participant token flows. The official
113
+ # mobile SDKs generate this as a lowercase UUID.
114
+ mobile_instance_id: nil,
110
115
  referral_status: nil,
111
116
  # Referrer participant ID or email address.
112
117
  referred_by: nil,
@@ -50,6 +50,7 @@ module GrowsurfRuby
50
50
  ip_address: String,
51
51
  last_name: String,
52
52
  metadata: T::Hash[Symbol, T.anything],
53
+ mobile_instance_id: String,
53
54
  referral_status:
54
55
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
55
56
  referred_by: String,
@@ -68,6 +69,10 @@ module GrowsurfRuby
68
69
  last_name: nil,
69
70
  # Shallow custom metadata object.
70
71
  metadata: nil,
72
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
73
+ # for mobile participant creation and mobile participant token flows. The official
74
+ # mobile SDKs generate this as a lowercase UUID.
75
+ mobile_instance_id: nil,
71
76
  referral_status: nil,
72
77
  # Referrer participant ID or email address.
73
78
  referred_by: nil,
@@ -9,6 +9,7 @@ module GrowsurfRuby
9
9
  ip_address: String,
10
10
  last_name: String,
11
11
  metadata: ::Hash[Symbol, top],
12
+ mobile_instance_id: String,
12
13
  referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
13
14
  referred_by: String
14
15
  }
@@ -36,6 +37,10 @@ module GrowsurfRuby
36
37
 
37
38
  def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
38
39
 
40
+ attr_reader mobile_instance_id: String?
41
+
42
+ def mobile_instance_id=: (String) -> String
43
+
39
44
  attr_reader referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status?
40
45
 
41
46
  def referral_status=: (
@@ -53,6 +58,7 @@ module GrowsurfRuby
53
58
  ?ip_address: String,
54
59
  ?last_name: String,
55
60
  ?metadata: ::Hash[Symbol, top],
61
+ ?mobile_instance_id: String,
56
62
  ?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
57
63
  ?referred_by: String
58
64
  ) -> void
@@ -64,6 +70,7 @@ module GrowsurfRuby
64
70
  ip_address: String,
65
71
  last_name: String,
66
72
  metadata: ::Hash[Symbol, top],
73
+ mobile_instance_id: String,
67
74
  referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
68
75
  referred_by: String
69
76
  }
@@ -24,6 +24,7 @@ module GrowsurfRuby
24
24
  is_winner: bool,
25
25
  last_name: String?,
26
26
  metadata: ::Hash[Symbol, top],
27
+ mobile_instance_id: String?,
27
28
  monthly_referrals: ::Array[String],
28
29
  notes: String?,
29
30
  paypal_email_address: String,
@@ -107,6 +108,8 @@ module GrowsurfRuby
107
108
 
108
109
  def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
109
110
 
111
+ attr_accessor mobile_instance_id: String?
112
+
110
113
  attr_reader monthly_referrals: ::Array[String]?
111
114
 
112
115
  def monthly_referrals=: (::Array[String]) -> ::Array[String]
@@ -193,6 +196,7 @@ module GrowsurfRuby
193
196
  ?is_winner: bool,
194
197
  ?last_name: String?,
195
198
  ?metadata: ::Hash[Symbol, top],
199
+ ?mobile_instance_id: String?,
196
200
  ?monthly_referrals: ::Array[String],
197
201
  ?notes: String?,
198
202
  ?paypal_email_address: String,
@@ -233,6 +237,7 @@ module GrowsurfRuby
233
237
  is_winner: bool,
234
238
  last_name: String?,
235
239
  metadata: ::Hash[Symbol, top],
240
+ mobile_instance_id: String?,
236
241
  monthly_referrals: ::Array[String],
237
242
  notes: String?,
238
243
  paypal_email_address: String,
@@ -36,6 +36,7 @@ module GrowsurfRuby
36
36
  ?ip_address: String,
37
37
  ?last_name: String,
38
38
  ?metadata: ::Hash[Symbol, top],
39
+ ?mobile_instance_id: String,
39
40
  ?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
40
41
  ?referred_by: String,
41
42
  ?request_options: GrowsurfRuby::request_opts
@@ -24,6 +24,7 @@ module GrowsurfRuby
24
24
  ?ip_address: String,
25
25
  ?last_name: String,
26
26
  ?metadata: ::Hash[Symbol, top],
27
+ ?mobile_instance_id: String,
27
28
  ?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
28
29
  ?referred_by: String,
29
30
  ?request_options: GrowsurfRuby::request_opts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: growsurf-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Growsurf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-19 00:00:00.000000000 Z
11
+ date: 2026-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi