sentdm 0.16.0 → 0.18.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 +16 -0
- data/README.md +1 -1
- data/lib/sentdm/models/contact_delete_params.rb +2 -17
- data/lib/sentdm/models/profile_complete_response.rb +68 -2
- data/lib/sentdm/models/profile_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -18
- data/lib/sentdm/models/user_remove_params.rb +2 -17
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +3 -44
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -12
- data/lib/sentdm/models.rb +2 -0
- data/lib/sentdm/resources/contacts.rb +6 -5
- data/lib/sentdm/resources/profiles/campaigns.rb +5 -4
- data/lib/sentdm/resources/profiles.rb +8 -7
- data/lib/sentdm/resources/users.rb +6 -5
- data/lib/sentdm/resources/webhooks.rb +6 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -33
- data/rbi/sentdm/models/profile_complete_response.rbi +121 -2
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -33
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -35
- data/rbi/sentdm/models/user_remove_params.rbi +2 -33
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +4 -99
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -28
- data/rbi/sentdm/models.rbi +2 -0
- data/rbi/sentdm/resources/contacts.rbi +4 -3
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -3
- data/rbi/sentdm/resources/profiles.rbi +5 -4
- data/rbi/sentdm/resources/users.rbi +4 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -3
- data/sig/sentdm/models/contact_delete_params.rbs +6 -20
- data/sig/sentdm/models/profile_complete_response.rbs +51 -1
- data/sig/sentdm/models/profile_delete_params.rbs +6 -20
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +9 -22
- data/sig/sentdm/models/user_remove_params.rbs +6 -20
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +6 -59
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -23
- data/sig/sentdm/models.rbs +2 -0
- data/sig/sentdm/resources/contacts.rbs +1 -1
- data/sig/sentdm/resources/profiles/campaigns.rbs +1 -1
- data/sig/sentdm/resources/profiles.rbs +2 -2
- data/sig/sentdm/resources/users.rbs +1 -1
- data/sig/sentdm/resources/webhooks.rbs +1 -1
- metadata +5 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class ContactDeleteParams < Sentdm::
|
|
5
|
+
class ContactDeleteParams < Sentdm::Models::MutationRequest
|
|
6
6
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include Sentdm::Internal::Type::RequestParameters
|
|
8
8
|
|
|
@@ -14,13 +14,6 @@ module Sentdm
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :id
|
|
16
16
|
|
|
17
|
-
# Request to delete/dissociate a contact
|
|
18
|
-
sig { returns(Sentdm::ContactDeleteParams::Body) }
|
|
19
|
-
attr_reader :body
|
|
20
|
-
|
|
21
|
-
sig { params(body: Sentdm::ContactDeleteParams::Body::OrHash).void }
|
|
22
|
-
attr_writer :body
|
|
23
|
-
|
|
24
17
|
sig { returns(T.nilable(String)) }
|
|
25
18
|
attr_reader :x_profile_id
|
|
26
19
|
|
|
@@ -30,25 +23,17 @@ module Sentdm
|
|
|
30
23
|
sig do
|
|
31
24
|
params(
|
|
32
25
|
id: String,
|
|
33
|
-
body: Sentdm::ContactDeleteParams::Body::OrHash,
|
|
34
26
|
x_profile_id: String,
|
|
35
27
|
request_options: Sentdm::RequestOptions::OrHash
|
|
36
28
|
).returns(T.attached_class)
|
|
37
29
|
end
|
|
38
|
-
def self.new(
|
|
39
|
-
id:,
|
|
40
|
-
# Request to delete/dissociate a contact
|
|
41
|
-
body:,
|
|
42
|
-
x_profile_id: nil,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
30
|
+
def self.new(id:, x_profile_id: nil, request_options: {})
|
|
45
31
|
end
|
|
46
32
|
|
|
47
33
|
sig do
|
|
48
34
|
override.returns(
|
|
49
35
|
{
|
|
50
36
|
id: String,
|
|
51
|
-
body: Sentdm::ContactDeleteParams::Body,
|
|
52
37
|
x_profile_id: String,
|
|
53
38
|
request_options: Sentdm::RequestOptions
|
|
54
39
|
}
|
|
@@ -56,22 +41,6 @@ module Sentdm
|
|
|
56
41
|
end
|
|
57
42
|
def to_hash
|
|
58
43
|
end
|
|
59
|
-
|
|
60
|
-
class Body < Sentdm::Models::MutationRequest
|
|
61
|
-
OrHash =
|
|
62
|
-
T.type_alias do
|
|
63
|
-
T.any(Sentdm::ContactDeleteParams::Body, Sentdm::Internal::AnyHash)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# Request to delete/dissociate a contact
|
|
67
|
-
sig { returns(T.attached_class) }
|
|
68
|
-
def self.new
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
sig { override.returns({}) }
|
|
72
|
-
def to_hash
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
44
|
end
|
|
76
45
|
end
|
|
77
46
|
end
|
|
@@ -2,7 +2,126 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
ProfileCompleteResponse
|
|
6
|
-
|
|
5
|
+
class ProfileCompleteResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Sentdm::Models::ProfileCompleteResponse,
|
|
10
|
+
Sentdm::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Response when a profile is already in the completed state and no further action
|
|
15
|
+
# is taken.
|
|
16
|
+
sig { returns(T.nilable(Sentdm::Models::ProfileCompleteResponse::Data)) }
|
|
17
|
+
attr_reader :data
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
data: T.nilable(Sentdm::Models::ProfileCompleteResponse::Data::OrHash)
|
|
22
|
+
).void
|
|
23
|
+
end
|
|
24
|
+
attr_writer :data
|
|
25
|
+
|
|
26
|
+
# Error information
|
|
27
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
28
|
+
attr_reader :error
|
|
29
|
+
|
|
30
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
31
|
+
attr_writer :error
|
|
32
|
+
|
|
33
|
+
# Request and response metadata
|
|
34
|
+
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
35
|
+
attr_reader :meta
|
|
36
|
+
|
|
37
|
+
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
38
|
+
attr_writer :meta
|
|
39
|
+
|
|
40
|
+
# Indicates whether the request was successful
|
|
41
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
42
|
+
attr_reader :success
|
|
43
|
+
|
|
44
|
+
sig { params(success: T::Boolean).void }
|
|
45
|
+
attr_writer :success
|
|
46
|
+
|
|
47
|
+
# Standard API response envelope for all v3 endpoints
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
data:
|
|
51
|
+
T.nilable(Sentdm::Models::ProfileCompleteResponse::Data::OrHash),
|
|
52
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
53
|
+
meta: Sentdm::APIMeta::OrHash,
|
|
54
|
+
success: T::Boolean
|
|
55
|
+
).returns(T.attached_class)
|
|
56
|
+
end
|
|
57
|
+
def self.new(
|
|
58
|
+
# Response when a profile is already in the completed state and no further action
|
|
59
|
+
# is taken.
|
|
60
|
+
data: nil,
|
|
61
|
+
# Error information
|
|
62
|
+
error: nil,
|
|
63
|
+
# Request and response metadata
|
|
64
|
+
meta: nil,
|
|
65
|
+
# Indicates whether the request was successful
|
|
66
|
+
success: nil
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
sig do
|
|
71
|
+
override.returns(
|
|
72
|
+
{
|
|
73
|
+
data: T.nilable(Sentdm::Models::ProfileCompleteResponse::Data),
|
|
74
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
75
|
+
meta: Sentdm::APIMeta,
|
|
76
|
+
success: T::Boolean
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
def to_hash
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class Data < Sentdm::Internal::Type::BaseModel
|
|
84
|
+
OrHash =
|
|
85
|
+
T.type_alias do
|
|
86
|
+
T.any(
|
|
87
|
+
Sentdm::Models::ProfileCompleteResponse::Data,
|
|
88
|
+
Sentdm::Internal::AnyHash
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Human-readable message describing the result.
|
|
93
|
+
sig { returns(T.nilable(String)) }
|
|
94
|
+
attr_reader :message
|
|
95
|
+
|
|
96
|
+
sig { params(message: String).void }
|
|
97
|
+
attr_writer :message
|
|
98
|
+
|
|
99
|
+
# Current process status of the profile (e.g., "completed", "submitted",
|
|
100
|
+
# "in_progress").
|
|
101
|
+
sig { returns(T.nilable(String)) }
|
|
102
|
+
attr_reader :status
|
|
103
|
+
|
|
104
|
+
sig { params(status: String).void }
|
|
105
|
+
attr_writer :status
|
|
106
|
+
|
|
107
|
+
# Response when a profile is already in the completed state and no further action
|
|
108
|
+
# is taken.
|
|
109
|
+
sig do
|
|
110
|
+
params(message: String, status: String).returns(T.attached_class)
|
|
111
|
+
end
|
|
112
|
+
def self.new(
|
|
113
|
+
# Human-readable message describing the result.
|
|
114
|
+
message: nil,
|
|
115
|
+
# Current process status of the profile (e.g., "completed", "submitted",
|
|
116
|
+
# "in_progress").
|
|
117
|
+
status: nil
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
sig { override.returns({ message: String, status: String }) }
|
|
122
|
+
def to_hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
7
126
|
end
|
|
8
127
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class ProfileDeleteParams < Sentdm::
|
|
5
|
+
class ProfileDeleteParams < Sentdm::Models::MutationRequest
|
|
6
6
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include Sentdm::Internal::Type::RequestParameters
|
|
8
8
|
|
|
@@ -14,13 +14,6 @@ module Sentdm
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :profile_id
|
|
16
16
|
|
|
17
|
-
# Request to delete a profile
|
|
18
|
-
sig { returns(Sentdm::ProfileDeleteParams::Body) }
|
|
19
|
-
attr_reader :body
|
|
20
|
-
|
|
21
|
-
sig { params(body: Sentdm::ProfileDeleteParams::Body::OrHash).void }
|
|
22
|
-
attr_writer :body
|
|
23
|
-
|
|
24
17
|
sig { returns(T.nilable(String)) }
|
|
25
18
|
attr_reader :x_profile_id
|
|
26
19
|
|
|
@@ -30,25 +23,17 @@ module Sentdm
|
|
|
30
23
|
sig do
|
|
31
24
|
params(
|
|
32
25
|
profile_id: String,
|
|
33
|
-
body: Sentdm::ProfileDeleteParams::Body::OrHash,
|
|
34
26
|
x_profile_id: String,
|
|
35
27
|
request_options: Sentdm::RequestOptions::OrHash
|
|
36
28
|
).returns(T.attached_class)
|
|
37
29
|
end
|
|
38
|
-
def self.new(
|
|
39
|
-
profile_id:,
|
|
40
|
-
# Request to delete a profile
|
|
41
|
-
body:,
|
|
42
|
-
x_profile_id: nil,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
30
|
+
def self.new(profile_id:, x_profile_id: nil, request_options: {})
|
|
45
31
|
end
|
|
46
32
|
|
|
47
33
|
sig do
|
|
48
34
|
override.returns(
|
|
49
35
|
{
|
|
50
36
|
profile_id: String,
|
|
51
|
-
body: Sentdm::ProfileDeleteParams::Body,
|
|
52
37
|
x_profile_id: String,
|
|
53
38
|
request_options: Sentdm::RequestOptions
|
|
54
39
|
}
|
|
@@ -56,22 +41,6 @@ module Sentdm
|
|
|
56
41
|
end
|
|
57
42
|
def to_hash
|
|
58
43
|
end
|
|
59
|
-
|
|
60
|
-
class Body < Sentdm::Models::MutationRequest
|
|
61
|
-
OrHash =
|
|
62
|
-
T.type_alias do
|
|
63
|
-
T.any(Sentdm::ProfileDeleteParams::Body, Sentdm::Internal::AnyHash)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# Request to delete a profile
|
|
67
|
-
sig { returns(T.attached_class) }
|
|
68
|
-
def self.new
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
sig { override.returns({}) }
|
|
72
|
-
def to_hash
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
44
|
end
|
|
76
45
|
end
|
|
77
46
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
5
|
module Profiles
|
|
6
|
-
class CampaignDeleteParams < Sentdm::
|
|
6
|
+
class CampaignDeleteParams < Sentdm::Models::MutationRequest
|
|
7
7
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Sentdm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
@@ -21,17 +21,6 @@ module Sentdm
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :campaign_id
|
|
23
23
|
|
|
24
|
-
# Request to delete a campaign from a brand
|
|
25
|
-
sig { returns(Sentdm::Profiles::CampaignDeleteParams::Body) }
|
|
26
|
-
attr_reader :body
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
body: Sentdm::Profiles::CampaignDeleteParams::Body::OrHash
|
|
31
|
-
).void
|
|
32
|
-
end
|
|
33
|
-
attr_writer :body
|
|
34
|
-
|
|
35
24
|
sig { returns(T.nilable(String)) }
|
|
36
25
|
attr_reader :x_profile_id
|
|
37
26
|
|
|
@@ -42,7 +31,6 @@ module Sentdm
|
|
|
42
31
|
params(
|
|
43
32
|
profile_id: String,
|
|
44
33
|
campaign_id: String,
|
|
45
|
-
body: Sentdm::Profiles::CampaignDeleteParams::Body::OrHash,
|
|
46
34
|
x_profile_id: String,
|
|
47
35
|
request_options: Sentdm::RequestOptions::OrHash
|
|
48
36
|
).returns(T.attached_class)
|
|
@@ -50,8 +38,6 @@ module Sentdm
|
|
|
50
38
|
def self.new(
|
|
51
39
|
profile_id:,
|
|
52
40
|
campaign_id:,
|
|
53
|
-
# Request to delete a campaign from a brand
|
|
54
|
-
body:,
|
|
55
41
|
x_profile_id: nil,
|
|
56
42
|
request_options: {}
|
|
57
43
|
)
|
|
@@ -62,7 +48,6 @@ module Sentdm
|
|
|
62
48
|
{
|
|
63
49
|
profile_id: String,
|
|
64
50
|
campaign_id: String,
|
|
65
|
-
body: Sentdm::Profiles::CampaignDeleteParams::Body,
|
|
66
51
|
x_profile_id: String,
|
|
67
52
|
request_options: Sentdm::RequestOptions
|
|
68
53
|
}
|
|
@@ -70,25 +55,6 @@ module Sentdm
|
|
|
70
55
|
end
|
|
71
56
|
def to_hash
|
|
72
57
|
end
|
|
73
|
-
|
|
74
|
-
class Body < Sentdm::Models::MutationRequest
|
|
75
|
-
OrHash =
|
|
76
|
-
T.type_alias do
|
|
77
|
-
T.any(
|
|
78
|
-
Sentdm::Profiles::CampaignDeleteParams::Body,
|
|
79
|
-
Sentdm::Internal::AnyHash
|
|
80
|
-
)
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# Request to delete a campaign from a brand
|
|
84
|
-
sig { returns(T.attached_class) }
|
|
85
|
-
def self.new
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
sig { override.returns({}) }
|
|
89
|
-
def to_hash
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
58
|
end
|
|
93
59
|
end
|
|
94
60
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class UserRemoveParams < Sentdm::
|
|
5
|
+
class UserRemoveParams < Sentdm::Models::MutationRequest
|
|
6
6
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include Sentdm::Internal::Type::RequestParameters
|
|
8
8
|
|
|
@@ -14,13 +14,6 @@ module Sentdm
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :user_id
|
|
16
16
|
|
|
17
|
-
# Request to remove a user from an organization
|
|
18
|
-
sig { returns(Sentdm::UserRemoveParams::Body) }
|
|
19
|
-
attr_reader :body
|
|
20
|
-
|
|
21
|
-
sig { params(body: Sentdm::UserRemoveParams::Body::OrHash).void }
|
|
22
|
-
attr_writer :body
|
|
23
|
-
|
|
24
17
|
sig { returns(T.nilable(String)) }
|
|
25
18
|
attr_reader :x_profile_id
|
|
26
19
|
|
|
@@ -30,25 +23,17 @@ module Sentdm
|
|
|
30
23
|
sig do
|
|
31
24
|
params(
|
|
32
25
|
user_id: String,
|
|
33
|
-
body: Sentdm::UserRemoveParams::Body::OrHash,
|
|
34
26
|
x_profile_id: String,
|
|
35
27
|
request_options: Sentdm::RequestOptions::OrHash
|
|
36
28
|
).returns(T.attached_class)
|
|
37
29
|
end
|
|
38
|
-
def self.new(
|
|
39
|
-
user_id:,
|
|
40
|
-
# Request to remove a user from an organization
|
|
41
|
-
body:,
|
|
42
|
-
x_profile_id: nil,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
30
|
+
def self.new(user_id:, x_profile_id: nil, request_options: {})
|
|
45
31
|
end
|
|
46
32
|
|
|
47
33
|
sig do
|
|
48
34
|
override.returns(
|
|
49
35
|
{
|
|
50
36
|
user_id: String,
|
|
51
|
-
body: Sentdm::UserRemoveParams::Body,
|
|
52
37
|
x_profile_id: String,
|
|
53
38
|
request_options: Sentdm::RequestOptions
|
|
54
39
|
}
|
|
@@ -56,22 +41,6 @@ module Sentdm
|
|
|
56
41
|
end
|
|
57
42
|
def to_hash
|
|
58
43
|
end
|
|
59
|
-
|
|
60
|
-
class Body < Sentdm::Models::MutationRequest
|
|
61
|
-
OrHash =
|
|
62
|
-
T.type_alias do
|
|
63
|
-
T.any(Sentdm::UserRemoveParams::Body, Sentdm::Internal::AnyHash)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# Request to remove a user from an organization
|
|
67
|
-
sig { returns(T.attached_class) }
|
|
68
|
-
def self.new
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
sig { override.returns({}) }
|
|
72
|
-
def to_hash
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
44
|
end
|
|
76
45
|
end
|
|
77
46
|
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class WebhookEventType < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Sentdm::WebhookEventType, Sentdm::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(T.nilable(String)) }
|
|
12
|
+
attr_accessor :description
|
|
13
|
+
|
|
14
|
+
sig { returns(T.nilable(String)) }
|
|
15
|
+
attr_reader :display_name
|
|
16
|
+
|
|
17
|
+
sig { params(display_name: String).void }
|
|
18
|
+
attr_writer :display_name
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :event_type
|
|
22
|
+
|
|
23
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
+
attr_reader :is_active
|
|
25
|
+
|
|
26
|
+
sig { params(is_active: T::Boolean).void }
|
|
27
|
+
attr_writer :is_active
|
|
28
|
+
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_reader :name
|
|
31
|
+
|
|
32
|
+
sig { params(name: String).void }
|
|
33
|
+
attr_writer :name
|
|
34
|
+
|
|
35
|
+
sig { returns(T.nilable(T::Array[Sentdm::WebhookEventType])) }
|
|
36
|
+
attr_accessor :sub_types
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
description: T.nilable(String),
|
|
41
|
+
display_name: String,
|
|
42
|
+
event_type: T.nilable(String),
|
|
43
|
+
is_active: T::Boolean,
|
|
44
|
+
name: String,
|
|
45
|
+
sub_types: T.nilable(T::Array[Sentdm::WebhookEventType])
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
description: nil,
|
|
50
|
+
display_name: nil,
|
|
51
|
+
event_type: nil,
|
|
52
|
+
is_active: nil,
|
|
53
|
+
name: nil,
|
|
54
|
+
sub_types: nil
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
description: T.nilable(String),
|
|
62
|
+
display_name: String,
|
|
63
|
+
event_type: T.nilable(String),
|
|
64
|
+
is_active: T::Boolean,
|
|
65
|
+
name: String,
|
|
66
|
+
sub_types: T.nilable(T::Array[Sentdm::WebhookEventType])
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
def to_hash
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -95,123 +95,28 @@ module Sentdm
|
|
|
95
95
|
)
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
-
sig
|
|
99
|
-
returns(
|
|
100
|
-
T.nilable(
|
|
101
|
-
T::Array[
|
|
102
|
-
Sentdm::Models::WebhookListEventTypesResponse::Data::EventType
|
|
103
|
-
]
|
|
104
|
-
)
|
|
105
|
-
)
|
|
106
|
-
end
|
|
98
|
+
sig { returns(T.nilable(T::Array[Sentdm::WebhookEventType])) }
|
|
107
99
|
attr_reader :event_types
|
|
108
100
|
|
|
109
101
|
sig do
|
|
110
|
-
params(
|
|
111
|
-
event_types:
|
|
112
|
-
T::Array[
|
|
113
|
-
Sentdm::Models::WebhookListEventTypesResponse::Data::EventType::OrHash
|
|
114
|
-
]
|
|
115
|
-
).void
|
|
102
|
+
params(event_types: T::Array[Sentdm::WebhookEventType::OrHash]).void
|
|
116
103
|
end
|
|
117
104
|
attr_writer :event_types
|
|
118
105
|
|
|
119
106
|
# The response data (null if error)
|
|
120
107
|
sig do
|
|
121
108
|
params(
|
|
122
|
-
event_types:
|
|
123
|
-
T::Array[
|
|
124
|
-
Sentdm::Models::WebhookListEventTypesResponse::Data::EventType::OrHash
|
|
125
|
-
]
|
|
109
|
+
event_types: T::Array[Sentdm::WebhookEventType::OrHash]
|
|
126
110
|
).returns(T.attached_class)
|
|
127
111
|
end
|
|
128
112
|
def self.new(event_types: nil)
|
|
129
113
|
end
|
|
130
114
|
|
|
131
115
|
sig do
|
|
132
|
-
override.returns(
|
|
133
|
-
{
|
|
134
|
-
event_types:
|
|
135
|
-
T::Array[
|
|
136
|
-
Sentdm::Models::WebhookListEventTypesResponse::Data::EventType
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
)
|
|
116
|
+
override.returns({ event_types: T::Array[Sentdm::WebhookEventType] })
|
|
140
117
|
end
|
|
141
118
|
def to_hash
|
|
142
119
|
end
|
|
143
|
-
|
|
144
|
-
class EventType < Sentdm::Internal::Type::BaseModel
|
|
145
|
-
OrHash =
|
|
146
|
-
T.type_alias do
|
|
147
|
-
T.any(
|
|
148
|
-
Sentdm::Models::WebhookListEventTypesResponse::Data::EventType,
|
|
149
|
-
Sentdm::Internal::AnyHash
|
|
150
|
-
)
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
sig { returns(T.nilable(String)) }
|
|
154
|
-
attr_accessor :description
|
|
155
|
-
|
|
156
|
-
sig { returns(T.nilable(String)) }
|
|
157
|
-
attr_reader :display_name
|
|
158
|
-
|
|
159
|
-
sig { params(display_name: String).void }
|
|
160
|
-
attr_writer :display_name
|
|
161
|
-
|
|
162
|
-
sig { returns(T.nilable(String)) }
|
|
163
|
-
attr_accessor :event_type
|
|
164
|
-
|
|
165
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
166
|
-
attr_reader :is_active
|
|
167
|
-
|
|
168
|
-
sig { params(is_active: T::Boolean).void }
|
|
169
|
-
attr_writer :is_active
|
|
170
|
-
|
|
171
|
-
sig { returns(T.nilable(String)) }
|
|
172
|
-
attr_reader :name
|
|
173
|
-
|
|
174
|
-
sig { params(name: String).void }
|
|
175
|
-
attr_writer :name
|
|
176
|
-
|
|
177
|
-
sig { returns(T.nilable(T::Array[T.anything])) }
|
|
178
|
-
attr_accessor :sub_types
|
|
179
|
-
|
|
180
|
-
sig do
|
|
181
|
-
params(
|
|
182
|
-
description: T.nilable(String),
|
|
183
|
-
display_name: String,
|
|
184
|
-
event_type: T.nilable(String),
|
|
185
|
-
is_active: T::Boolean,
|
|
186
|
-
name: String,
|
|
187
|
-
sub_types: T.nilable(T::Array[T.anything])
|
|
188
|
-
).returns(T.attached_class)
|
|
189
|
-
end
|
|
190
|
-
def self.new(
|
|
191
|
-
description: nil,
|
|
192
|
-
display_name: nil,
|
|
193
|
-
event_type: nil,
|
|
194
|
-
is_active: nil,
|
|
195
|
-
name: nil,
|
|
196
|
-
sub_types: nil
|
|
197
|
-
)
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
sig do
|
|
201
|
-
override.returns(
|
|
202
|
-
{
|
|
203
|
-
description: T.nilable(String),
|
|
204
|
-
display_name: String,
|
|
205
|
-
event_type: T.nilable(String),
|
|
206
|
-
is_active: T::Boolean,
|
|
207
|
-
name: String,
|
|
208
|
-
sub_types: T.nilable(T::Array[T.anything])
|
|
209
|
-
}
|
|
210
|
-
)
|
|
211
|
-
end
|
|
212
|
-
def to_hash
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
120
|
end
|
|
216
121
|
end
|
|
217
122
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class WebhookRotateSecretParams < Sentdm::
|
|
5
|
+
class WebhookRotateSecretParams < Sentdm::Models::MutationRequest
|
|
6
6
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include Sentdm::Internal::Type::RequestParameters
|
|
8
8
|
|
|
@@ -14,12 +14,6 @@ module Sentdm
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :id
|
|
16
16
|
|
|
17
|
-
sig { returns(Sentdm::WebhookRotateSecretParams::Body) }
|
|
18
|
-
attr_reader :body
|
|
19
|
-
|
|
20
|
-
sig { params(body: Sentdm::WebhookRotateSecretParams::Body::OrHash).void }
|
|
21
|
-
attr_writer :body
|
|
22
|
-
|
|
23
17
|
sig { returns(T.nilable(String)) }
|
|
24
18
|
attr_reader :idempotency_key
|
|
25
19
|
|
|
@@ -35,7 +29,6 @@ module Sentdm
|
|
|
35
29
|
sig do
|
|
36
30
|
params(
|
|
37
31
|
id: String,
|
|
38
|
-
body: Sentdm::WebhookRotateSecretParams::Body::OrHash,
|
|
39
32
|
idempotency_key: String,
|
|
40
33
|
x_profile_id: String,
|
|
41
34
|
request_options: Sentdm::RequestOptions::OrHash
|
|
@@ -43,7 +36,6 @@ module Sentdm
|
|
|
43
36
|
end
|
|
44
37
|
def self.new(
|
|
45
38
|
id:,
|
|
46
|
-
body:,
|
|
47
39
|
idempotency_key: nil,
|
|
48
40
|
x_profile_id: nil,
|
|
49
41
|
request_options: {}
|
|
@@ -54,7 +46,6 @@ module Sentdm
|
|
|
54
46
|
override.returns(
|
|
55
47
|
{
|
|
56
48
|
id: String,
|
|
57
|
-
body: Sentdm::WebhookRotateSecretParams::Body,
|
|
58
49
|
idempotency_key: String,
|
|
59
50
|
x_profile_id: String,
|
|
60
51
|
request_options: Sentdm::RequestOptions
|
|
@@ -63,24 +54,6 @@ module Sentdm
|
|
|
63
54
|
end
|
|
64
55
|
def to_hash
|
|
65
56
|
end
|
|
66
|
-
|
|
67
|
-
class Body < Sentdm::Models::MutationRequest
|
|
68
|
-
OrHash =
|
|
69
|
-
T.type_alias do
|
|
70
|
-
T.any(
|
|
71
|
-
Sentdm::WebhookRotateSecretParams::Body,
|
|
72
|
-
Sentdm::Internal::AnyHash
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
sig { returns(T.attached_class) }
|
|
77
|
-
def self.new
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
sig { override.returns({}) }
|
|
81
|
-
def to_hash
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
57
|
end
|
|
85
58
|
end
|
|
86
59
|
end
|
data/rbi/sentdm/models.rbi
CHANGED
|
@@ -133,6 +133,8 @@ module Sentdm
|
|
|
133
133
|
|
|
134
134
|
WebhookDeleteParams = Sentdm::Models::WebhookDeleteParams
|
|
135
135
|
|
|
136
|
+
WebhookEventType = Sentdm::Models::WebhookEventType
|
|
137
|
+
|
|
136
138
|
WebhookListEventsParams = Sentdm::Models::WebhookListEventsParams
|
|
137
139
|
|
|
138
140
|
WebhookListEventTypesParams = Sentdm::Models::WebhookListEventTypesParams
|