moderation_api 2.14.0 → 2.16.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 +17 -0
- data/README.md +1 -1
- data/lib/moderation_api/internal/type/union.rb +25 -0
- data/lib/moderation_api/models/action_create_params.rb +1 -45
- data/lib/moderation_api/models/action_list_response.rb +1 -57
- data/lib/moderation_api/models/action_retrieve_response.rb +1 -57
- data/lib/moderation_api/models/action_update_params.rb +1 -45
- data/lib/moderation_api/models/author_create_params.rb +9 -1
- data/lib/moderation_api/models/author_create_response.rb +9 -1
- data/lib/moderation_api/models/author_list_response.rb +9 -1
- data/lib/moderation_api/models/author_retrieve_response.rb +9 -1
- data/lib/moderation_api/models/author_update_params.rb +9 -1
- data/lib/moderation_api/models/author_update_response.rb +9 -1
- data/lib/moderation_api/models/content_submit_params.rb +12 -1
- data/lib/moderation_api/models/webhook_event.rb +6231 -0
- data/lib/moderation_api/models.rb +2 -0
- data/lib/moderation_api/resources/actions.rb +2 -6
- data/lib/moderation_api/resources/authors.rb +6 -2
- data/lib/moderation_api/version.rb +1 -1
- data/lib/moderation_api.rb +1 -0
- data/rbi/moderation_api/models/action_create_params.rbi +0 -80
- data/rbi/moderation_api/models/action_list_response.rbi +0 -85
- data/rbi/moderation_api/models/action_retrieve_response.rbi +0 -85
- data/rbi/moderation_api/models/action_update_params.rbi +0 -80
- data/rbi/moderation_api/models/author_create_params.rbi +8 -0
- data/rbi/moderation_api/models/author_create_response.rbi +8 -0
- data/rbi/moderation_api/models/author_list_response.rbi +8 -0
- data/rbi/moderation_api/models/author_retrieve_response.rbi +8 -0
- data/rbi/moderation_api/models/author_update_params.rbi +8 -0
- data/rbi/moderation_api/models/author_update_response.rbi +8 -0
- data/rbi/moderation_api/models/content_submit_params.rbi +13 -0
- data/rbi/moderation_api/models/webhook_event.rbi +11307 -0
- data/rbi/moderation_api/models.rbi +2 -0
- data/rbi/moderation_api/resources/actions.rbi +0 -8
- data/rbi/moderation_api/resources/authors.rbi +6 -0
- data/sig/moderation_api/models/action_create_params.rbs +1 -39
- data/sig/moderation_api/models/action_list_response.rbs +0 -42
- data/sig/moderation_api/models/action_retrieve_response.rbs +0 -42
- data/sig/moderation_api/models/action_update_params.rbs +1 -39
- data/sig/moderation_api/models/author_create_params.rbs +5 -0
- data/sig/moderation_api/models/author_create_response.rbs +5 -0
- data/sig/moderation_api/models/author_list_response.rbs +5 -0
- data/sig/moderation_api/models/author_retrieve_response.rbs +5 -0
- data/sig/moderation_api/models/author_update_params.rbs +5 -0
- data/sig/moderation_api/models/author_update_response.rbs +5 -0
- data/sig/moderation_api/models/content_submit_params.rbs +7 -0
- data/sig/moderation_api/models/webhook_event.rbs +4746 -0
- data/sig/moderation_api/models.rbs +2 -0
- data/sig/moderation_api/resources/actions.rbs +0 -2
- data/sig/moderation_api/resources/authors.rbs +2 -0
- metadata +5 -2
|
@@ -22,8 +22,6 @@ module ModerationAPI
|
|
|
22
22
|
ModerationAPI::ActionCreateParams::QueueBehaviour::OrSymbol,
|
|
23
23
|
type: T.nilable(ModerationAPI::ActionCreateParams::Type::OrSymbol),
|
|
24
24
|
value_required: T::Boolean,
|
|
25
|
-
webhooks:
|
|
26
|
-
T::Array[ModerationAPI::ActionCreateParams::Webhook::OrHash],
|
|
27
25
|
request_options: ModerationAPI::RequestOptions::OrHash
|
|
28
26
|
).returns(ModerationAPI::Models::ActionCreateResponse)
|
|
29
27
|
end
|
|
@@ -54,8 +52,6 @@ module ModerationAPI
|
|
|
54
52
|
type: nil,
|
|
55
53
|
# Whether the action requires a value to be executed.
|
|
56
54
|
value_required: nil,
|
|
57
|
-
# The action's webhooks.
|
|
58
|
-
webhooks: nil,
|
|
59
55
|
request_options: {}
|
|
60
56
|
)
|
|
61
57
|
end
|
|
@@ -91,8 +87,6 @@ module ModerationAPI
|
|
|
91
87
|
ModerationAPI::ActionUpdateParams::QueueBehaviour::OrSymbol,
|
|
92
88
|
type: T.nilable(ModerationAPI::ActionUpdateParams::Type::OrSymbol),
|
|
93
89
|
value_required: T::Boolean,
|
|
94
|
-
webhooks:
|
|
95
|
-
T::Array[ModerationAPI::ActionUpdateParams::Webhook::OrHash],
|
|
96
90
|
request_options: ModerationAPI::RequestOptions::OrHash
|
|
97
91
|
).returns(ModerationAPI::Models::ActionUpdateResponse)
|
|
98
92
|
end
|
|
@@ -125,8 +119,6 @@ module ModerationAPI
|
|
|
125
119
|
type: nil,
|
|
126
120
|
# Whether the action requires a value to be executed.
|
|
127
121
|
value_required: nil,
|
|
128
|
-
# The action's webhooks.
|
|
129
|
-
webhooks: nil,
|
|
130
122
|
request_options: {}
|
|
131
123
|
)
|
|
132
124
|
end
|
|
@@ -8,6 +8,7 @@ module ModerationAPI
|
|
|
8
8
|
sig do
|
|
9
9
|
params(
|
|
10
10
|
external_id: String,
|
|
11
|
+
company: T.nilable(String),
|
|
11
12
|
email: T.nilable(String),
|
|
12
13
|
external_link: T.nilable(String),
|
|
13
14
|
first_seen: Float,
|
|
@@ -22,6 +23,8 @@ module ModerationAPI
|
|
|
22
23
|
def create(
|
|
23
24
|
# External ID of the user, typically the ID of the author in your database.
|
|
24
25
|
external_id:,
|
|
26
|
+
# The author's company or organization
|
|
27
|
+
company: nil,
|
|
25
28
|
# Author email address
|
|
26
29
|
email: nil,
|
|
27
30
|
# URL of the author's external profile
|
|
@@ -61,6 +64,7 @@ module ModerationAPI
|
|
|
61
64
|
sig do
|
|
62
65
|
params(
|
|
63
66
|
id: String,
|
|
67
|
+
company: T.nilable(String),
|
|
64
68
|
email: T.nilable(String),
|
|
65
69
|
external_link: T.nilable(String),
|
|
66
70
|
first_seen: Float,
|
|
@@ -75,6 +79,8 @@ module ModerationAPI
|
|
|
75
79
|
def update(
|
|
76
80
|
# Either external ID or the ID assigned by moderation API.
|
|
77
81
|
id,
|
|
82
|
+
# The author's company or organization
|
|
83
|
+
company: nil,
|
|
78
84
|
# Author email address
|
|
79
85
|
email: nil,
|
|
80
86
|
# URL of the author's external profile
|
|
@@ -12,8 +12,7 @@ module ModerationAPI
|
|
|
12
12
|
possible_values: ::Array[ModerationAPI::ActionCreateParams::PossibleValue],
|
|
13
13
|
queue_behaviour: ModerationAPI::Models::ActionCreateParams::queue_behaviour,
|
|
14
14
|
type: ModerationAPI::Models::ActionCreateParams::type_?,
|
|
15
|
-
value_required: bool
|
|
16
|
-
webhooks: ::Array[ModerationAPI::ActionCreateParams::Webhook]
|
|
15
|
+
value_required: bool
|
|
17
16
|
}
|
|
18
17
|
& ModerationAPI::Internal::Type::request_parameters
|
|
19
18
|
|
|
@@ -61,12 +60,6 @@ module ModerationAPI
|
|
|
61
60
|
|
|
62
61
|
def value_required=: (bool) -> bool
|
|
63
62
|
|
|
64
|
-
attr_reader webhooks: ::Array[ModerationAPI::ActionCreateParams::Webhook]?
|
|
65
|
-
|
|
66
|
-
def webhooks=: (
|
|
67
|
-
::Array[ModerationAPI::ActionCreateParams::Webhook]
|
|
68
|
-
) -> ::Array[ModerationAPI::ActionCreateParams::Webhook]
|
|
69
|
-
|
|
70
63
|
def initialize: (
|
|
71
64
|
name: String,
|
|
72
65
|
?built_in: bool?,
|
|
@@ -79,7 +72,6 @@ module ModerationAPI
|
|
|
79
72
|
?queue_behaviour: ModerationAPI::Models::ActionCreateParams::queue_behaviour,
|
|
80
73
|
?type: ModerationAPI::Models::ActionCreateParams::type_?,
|
|
81
74
|
?value_required: bool,
|
|
82
|
-
?webhooks: ::Array[ModerationAPI::ActionCreateParams::Webhook],
|
|
83
75
|
?request_options: ModerationAPI::request_opts
|
|
84
76
|
) -> void
|
|
85
77
|
|
|
@@ -95,7 +87,6 @@ module ModerationAPI
|
|
|
95
87
|
queue_behaviour: ModerationAPI::Models::ActionCreateParams::queue_behaviour,
|
|
96
88
|
type: ModerationAPI::Models::ActionCreateParams::type_?,
|
|
97
89
|
value_required: bool,
|
|
98
|
-
webhooks: ::Array[ModerationAPI::ActionCreateParams::Webhook],
|
|
99
90
|
request_options: ModerationAPI::RequestOptions
|
|
100
91
|
}
|
|
101
92
|
|
|
@@ -161,35 +152,6 @@ module ModerationAPI
|
|
|
161
152
|
|
|
162
153
|
def self?.values: -> ::Array[ModerationAPI::Models::ActionCreateParams::type_]
|
|
163
154
|
end
|
|
164
|
-
|
|
165
|
-
type webhook =
|
|
166
|
-
{ name: String, url: String, id: String, description: String? }
|
|
167
|
-
|
|
168
|
-
class Webhook < ModerationAPI::Internal::Type::BaseModel
|
|
169
|
-
attr_accessor name: String
|
|
170
|
-
|
|
171
|
-
attr_accessor url: String
|
|
172
|
-
|
|
173
|
-
attr_reader id: String?
|
|
174
|
-
|
|
175
|
-
def id=: (String) -> String
|
|
176
|
-
|
|
177
|
-
attr_accessor description: String?
|
|
178
|
-
|
|
179
|
-
def initialize: (
|
|
180
|
-
name: String,
|
|
181
|
-
url: String,
|
|
182
|
-
?id: String,
|
|
183
|
-
?description: String?
|
|
184
|
-
) -> void
|
|
185
|
-
|
|
186
|
-
def to_hash: -> {
|
|
187
|
-
name: String,
|
|
188
|
-
url: String,
|
|
189
|
-
id: String,
|
|
190
|
-
description: String?
|
|
191
|
-
}
|
|
192
|
-
end
|
|
193
155
|
end
|
|
194
156
|
end
|
|
195
157
|
end
|
|
@@ -12,7 +12,6 @@ module ModerationAPI
|
|
|
12
12
|
possible_values: ::Array[ModerationAPI::Models::ActionListResponseItem::PossibleValue],
|
|
13
13
|
queue_behaviour: ModerationAPI::Models::ActionListResponseItem::queue_behaviour,
|
|
14
14
|
value_required: bool,
|
|
15
|
-
webhooks: ::Array[ModerationAPI::Models::ActionListResponseItem::Webhook],
|
|
16
15
|
description: String?,
|
|
17
16
|
key: String?,
|
|
18
17
|
type: ModerationAPI::Models::ActionListResponseItem::type_?
|
|
@@ -39,8 +38,6 @@ module ModerationAPI
|
|
|
39
38
|
|
|
40
39
|
attr_accessor value_required: bool
|
|
41
40
|
|
|
42
|
-
attr_accessor webhooks: ::Array[ModerationAPI::Models::ActionListResponseItem::Webhook]
|
|
43
|
-
|
|
44
41
|
attr_accessor description: String?
|
|
45
42
|
|
|
46
43
|
attr_accessor key: String?
|
|
@@ -58,7 +55,6 @@ module ModerationAPI
|
|
|
58
55
|
possible_values: ::Array[ModerationAPI::Models::ActionListResponseItem::PossibleValue],
|
|
59
56
|
queue_behaviour: ModerationAPI::Models::ActionListResponseItem::queue_behaviour,
|
|
60
57
|
value_required: bool,
|
|
61
|
-
webhooks: ::Array[ModerationAPI::Models::ActionListResponseItem::Webhook],
|
|
62
58
|
?description: String?,
|
|
63
59
|
?key: String?,
|
|
64
60
|
?type: ModerationAPI::Models::ActionListResponseItem::type_?
|
|
@@ -75,7 +71,6 @@ module ModerationAPI
|
|
|
75
71
|
possible_values: ::Array[ModerationAPI::Models::ActionListResponseItem::PossibleValue],
|
|
76
72
|
queue_behaviour: ModerationAPI::Models::ActionListResponseItem::queue_behaviour,
|
|
77
73
|
value_required: bool,
|
|
78
|
-
webhooks: ::Array[ModerationAPI::Models::ActionListResponseItem::Webhook],
|
|
79
74
|
description: String?,
|
|
80
75
|
key: String?,
|
|
81
76
|
type: ModerationAPI::Models::ActionListResponseItem::type_?
|
|
@@ -115,43 +110,6 @@ module ModerationAPI
|
|
|
115
110
|
def self?.values: -> ::Array[ModerationAPI::Models::ActionListResponseItem::queue_behaviour]
|
|
116
111
|
end
|
|
117
112
|
|
|
118
|
-
type webhook =
|
|
119
|
-
{
|
|
120
|
-
id: String,
|
|
121
|
-
name: String,
|
|
122
|
-
url: String,
|
|
123
|
-
description: String?,
|
|
124
|
-
moderation_action_id: String?
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
class Webhook < ModerationAPI::Internal::Type::BaseModel
|
|
128
|
-
attr_accessor id: String
|
|
129
|
-
|
|
130
|
-
attr_accessor name: String
|
|
131
|
-
|
|
132
|
-
attr_accessor url: String
|
|
133
|
-
|
|
134
|
-
attr_accessor description: String?
|
|
135
|
-
|
|
136
|
-
attr_accessor moderation_action_id: String?
|
|
137
|
-
|
|
138
|
-
def initialize: (
|
|
139
|
-
id: String,
|
|
140
|
-
name: String,
|
|
141
|
-
url: String,
|
|
142
|
-
?description: String?,
|
|
143
|
-
?moderation_action_id: String?
|
|
144
|
-
) -> void
|
|
145
|
-
|
|
146
|
-
def to_hash: -> {
|
|
147
|
-
id: String,
|
|
148
|
-
name: String,
|
|
149
|
-
url: String,
|
|
150
|
-
description: String?,
|
|
151
|
-
moderation_action_id: String?
|
|
152
|
-
}
|
|
153
|
-
end
|
|
154
|
-
|
|
155
113
|
type type_ =
|
|
156
114
|
:AUTHOR_BLOCK
|
|
157
115
|
| :AUTHOR_BLOCK_TEMP
|
|
@@ -12,7 +12,6 @@ module ModerationAPI
|
|
|
12
12
|
possible_values: ::Array[ModerationAPI::Models::ActionRetrieveResponse::PossibleValue],
|
|
13
13
|
queue_behaviour: ModerationAPI::Models::ActionRetrieveResponse::queue_behaviour,
|
|
14
14
|
value_required: bool,
|
|
15
|
-
webhooks: ::Array[ModerationAPI::Models::ActionRetrieveResponse::Webhook],
|
|
16
15
|
description: String?,
|
|
17
16
|
key: String?,
|
|
18
17
|
type: ModerationAPI::Models::ActionRetrieveResponse::type_?
|
|
@@ -39,8 +38,6 @@ module ModerationAPI
|
|
|
39
38
|
|
|
40
39
|
attr_accessor value_required: bool
|
|
41
40
|
|
|
42
|
-
attr_accessor webhooks: ::Array[ModerationAPI::Models::ActionRetrieveResponse::Webhook]
|
|
43
|
-
|
|
44
41
|
attr_accessor description: String?
|
|
45
42
|
|
|
46
43
|
attr_accessor key: String?
|
|
@@ -58,7 +55,6 @@ module ModerationAPI
|
|
|
58
55
|
possible_values: ::Array[ModerationAPI::Models::ActionRetrieveResponse::PossibleValue],
|
|
59
56
|
queue_behaviour: ModerationAPI::Models::ActionRetrieveResponse::queue_behaviour,
|
|
60
57
|
value_required: bool,
|
|
61
|
-
webhooks: ::Array[ModerationAPI::Models::ActionRetrieveResponse::Webhook],
|
|
62
58
|
?description: String?,
|
|
63
59
|
?key: String?,
|
|
64
60
|
?type: ModerationAPI::Models::ActionRetrieveResponse::type_?
|
|
@@ -75,7 +71,6 @@ module ModerationAPI
|
|
|
75
71
|
possible_values: ::Array[ModerationAPI::Models::ActionRetrieveResponse::PossibleValue],
|
|
76
72
|
queue_behaviour: ModerationAPI::Models::ActionRetrieveResponse::queue_behaviour,
|
|
77
73
|
value_required: bool,
|
|
78
|
-
webhooks: ::Array[ModerationAPI::Models::ActionRetrieveResponse::Webhook],
|
|
79
74
|
description: String?,
|
|
80
75
|
key: String?,
|
|
81
76
|
type: ModerationAPI::Models::ActionRetrieveResponse::type_?
|
|
@@ -115,43 +110,6 @@ module ModerationAPI
|
|
|
115
110
|
def self?.values: -> ::Array[ModerationAPI::Models::ActionRetrieveResponse::queue_behaviour]
|
|
116
111
|
end
|
|
117
112
|
|
|
118
|
-
type webhook =
|
|
119
|
-
{
|
|
120
|
-
id: String,
|
|
121
|
-
name: String,
|
|
122
|
-
url: String,
|
|
123
|
-
description: String?,
|
|
124
|
-
moderation_action_id: String?
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
class Webhook < ModerationAPI::Internal::Type::BaseModel
|
|
128
|
-
attr_accessor id: String
|
|
129
|
-
|
|
130
|
-
attr_accessor name: String
|
|
131
|
-
|
|
132
|
-
attr_accessor url: String
|
|
133
|
-
|
|
134
|
-
attr_accessor description: String?
|
|
135
|
-
|
|
136
|
-
attr_accessor moderation_action_id: String?
|
|
137
|
-
|
|
138
|
-
def initialize: (
|
|
139
|
-
id: String,
|
|
140
|
-
name: String,
|
|
141
|
-
url: String,
|
|
142
|
-
?description: String?,
|
|
143
|
-
?moderation_action_id: String?
|
|
144
|
-
) -> void
|
|
145
|
-
|
|
146
|
-
def to_hash: -> {
|
|
147
|
-
id: String,
|
|
148
|
-
name: String,
|
|
149
|
-
url: String,
|
|
150
|
-
description: String?,
|
|
151
|
-
moderation_action_id: String?
|
|
152
|
-
}
|
|
153
|
-
end
|
|
154
|
-
|
|
155
113
|
type type_ =
|
|
156
114
|
:AUTHOR_BLOCK
|
|
157
115
|
| :AUTHOR_BLOCK_TEMP
|
|
@@ -13,8 +13,7 @@ module ModerationAPI
|
|
|
13
13
|
possible_values: ::Array[ModerationAPI::ActionUpdateParams::PossibleValue],
|
|
14
14
|
queue_behaviour: ModerationAPI::Models::ActionUpdateParams::queue_behaviour,
|
|
15
15
|
type: ModerationAPI::Models::ActionUpdateParams::type_?,
|
|
16
|
-
value_required: bool
|
|
17
|
-
webhooks: ::Array[ModerationAPI::ActionUpdateParams::Webhook]
|
|
16
|
+
value_required: bool
|
|
18
17
|
}
|
|
19
18
|
& ModerationAPI::Internal::Type::request_parameters
|
|
20
19
|
|
|
@@ -66,12 +65,6 @@ module ModerationAPI
|
|
|
66
65
|
|
|
67
66
|
def value_required=: (bool) -> bool
|
|
68
67
|
|
|
69
|
-
attr_reader webhooks: ::Array[ModerationAPI::ActionUpdateParams::Webhook]?
|
|
70
|
-
|
|
71
|
-
def webhooks=: (
|
|
72
|
-
::Array[ModerationAPI::ActionUpdateParams::Webhook]
|
|
73
|
-
) -> ::Array[ModerationAPI::ActionUpdateParams::Webhook]
|
|
74
|
-
|
|
75
68
|
def initialize: (
|
|
76
69
|
id: String,
|
|
77
70
|
?built_in: bool?,
|
|
@@ -85,7 +78,6 @@ module ModerationAPI
|
|
|
85
78
|
?queue_behaviour: ModerationAPI::Models::ActionUpdateParams::queue_behaviour,
|
|
86
79
|
?type: ModerationAPI::Models::ActionUpdateParams::type_?,
|
|
87
80
|
?value_required: bool,
|
|
88
|
-
?webhooks: ::Array[ModerationAPI::ActionUpdateParams::Webhook],
|
|
89
81
|
?request_options: ModerationAPI::request_opts
|
|
90
82
|
) -> void
|
|
91
83
|
|
|
@@ -102,7 +94,6 @@ module ModerationAPI
|
|
|
102
94
|
queue_behaviour: ModerationAPI::Models::ActionUpdateParams::queue_behaviour,
|
|
103
95
|
type: ModerationAPI::Models::ActionUpdateParams::type_?,
|
|
104
96
|
value_required: bool,
|
|
105
|
-
webhooks: ::Array[ModerationAPI::ActionUpdateParams::Webhook],
|
|
106
97
|
request_options: ModerationAPI::RequestOptions
|
|
107
98
|
}
|
|
108
99
|
|
|
@@ -168,35 +159,6 @@ module ModerationAPI
|
|
|
168
159
|
|
|
169
160
|
def self?.values: -> ::Array[ModerationAPI::Models::ActionUpdateParams::type_]
|
|
170
161
|
end
|
|
171
|
-
|
|
172
|
-
type webhook =
|
|
173
|
-
{ name: String, url: String, id: String, description: String? }
|
|
174
|
-
|
|
175
|
-
class Webhook < ModerationAPI::Internal::Type::BaseModel
|
|
176
|
-
attr_accessor name: String
|
|
177
|
-
|
|
178
|
-
attr_accessor url: String
|
|
179
|
-
|
|
180
|
-
attr_reader id: String?
|
|
181
|
-
|
|
182
|
-
def id=: (String) -> String
|
|
183
|
-
|
|
184
|
-
attr_accessor description: String?
|
|
185
|
-
|
|
186
|
-
def initialize: (
|
|
187
|
-
name: String,
|
|
188
|
-
url: String,
|
|
189
|
-
?id: String,
|
|
190
|
-
?description: String?
|
|
191
|
-
) -> void
|
|
192
|
-
|
|
193
|
-
def to_hash: -> {
|
|
194
|
-
name: String,
|
|
195
|
-
url: String,
|
|
196
|
-
id: String,
|
|
197
|
-
description: String?
|
|
198
|
-
}
|
|
199
|
-
end
|
|
200
162
|
end
|
|
201
163
|
end
|
|
202
164
|
end
|
|
@@ -3,6 +3,7 @@ module ModerationAPI
|
|
|
3
3
|
type author_create_params =
|
|
4
4
|
{
|
|
5
5
|
external_id: String,
|
|
6
|
+
company: String?,
|
|
6
7
|
email: String?,
|
|
7
8
|
external_link: String?,
|
|
8
9
|
first_seen: Float,
|
|
@@ -20,6 +21,8 @@ module ModerationAPI
|
|
|
20
21
|
|
|
21
22
|
attr_accessor external_id: String
|
|
22
23
|
|
|
24
|
+
attr_accessor company: String?
|
|
25
|
+
|
|
23
26
|
attr_accessor email: String?
|
|
24
27
|
|
|
25
28
|
attr_accessor external_link: String?
|
|
@@ -46,6 +49,7 @@ module ModerationAPI
|
|
|
46
49
|
|
|
47
50
|
def initialize: (
|
|
48
51
|
external_id: String,
|
|
52
|
+
?company: String?,
|
|
49
53
|
?email: String?,
|
|
50
54
|
?external_link: String?,
|
|
51
55
|
?first_seen: Float,
|
|
@@ -59,6 +63,7 @@ module ModerationAPI
|
|
|
59
63
|
|
|
60
64
|
def to_hash: -> {
|
|
61
65
|
external_id: String,
|
|
66
|
+
company: String?,
|
|
62
67
|
email: String?,
|
|
63
68
|
external_link: String?,
|
|
64
69
|
first_seen: Float,
|
|
@@ -11,6 +11,7 @@ module ModerationAPI
|
|
|
11
11
|
risk_evaluation: ModerationAPI::Models::AuthorCreateResponse::RiskEvaluation?,
|
|
12
12
|
status: ModerationAPI::Models::AuthorCreateResponse::status,
|
|
13
13
|
trust_level: ModerationAPI::Models::AuthorCreateResponse::TrustLevel,
|
|
14
|
+
company: String?,
|
|
14
15
|
email: String?,
|
|
15
16
|
external_id: String?,
|
|
16
17
|
external_link: String?,
|
|
@@ -38,6 +39,8 @@ module ModerationAPI
|
|
|
38
39
|
|
|
39
40
|
attr_accessor trust_level: ModerationAPI::Models::AuthorCreateResponse::TrustLevel
|
|
40
41
|
|
|
42
|
+
attr_accessor company: String?
|
|
43
|
+
|
|
41
44
|
attr_accessor email: String?
|
|
42
45
|
|
|
43
46
|
attr_accessor external_id: String?
|
|
@@ -60,6 +63,7 @@ module ModerationAPI
|
|
|
60
63
|
risk_evaluation: ModerationAPI::Models::AuthorCreateResponse::RiskEvaluation?,
|
|
61
64
|
status: ModerationAPI::Models::AuthorCreateResponse::status,
|
|
62
65
|
trust_level: ModerationAPI::Models::AuthorCreateResponse::TrustLevel,
|
|
66
|
+
?company: String?,
|
|
63
67
|
?email: String?,
|
|
64
68
|
?external_id: String?,
|
|
65
69
|
?external_link: String?,
|
|
@@ -78,6 +82,7 @@ module ModerationAPI
|
|
|
78
82
|
risk_evaluation: ModerationAPI::Models::AuthorCreateResponse::RiskEvaluation?,
|
|
79
83
|
status: ModerationAPI::Models::AuthorCreateResponse::status,
|
|
80
84
|
trust_level: ModerationAPI::Models::AuthorCreateResponse::TrustLevel,
|
|
85
|
+
company: String?,
|
|
81
86
|
email: String?,
|
|
82
87
|
external_id: String?,
|
|
83
88
|
external_link: String?,
|
|
@@ -32,6 +32,7 @@ module ModerationAPI
|
|
|
32
32
|
risk_evaluation: ModerationAPI::Models::AuthorListResponse::Author::RiskEvaluation?,
|
|
33
33
|
status: ModerationAPI::Models::AuthorListResponse::Author::status,
|
|
34
34
|
trust_level: ModerationAPI::Models::AuthorListResponse::Author::TrustLevel,
|
|
35
|
+
company: String?,
|
|
35
36
|
email: String?,
|
|
36
37
|
external_id: String?,
|
|
37
38
|
external_link: String?,
|
|
@@ -59,6 +60,8 @@ module ModerationAPI
|
|
|
59
60
|
|
|
60
61
|
attr_accessor trust_level: ModerationAPI::Models::AuthorListResponse::Author::TrustLevel
|
|
61
62
|
|
|
63
|
+
attr_accessor company: String?
|
|
64
|
+
|
|
62
65
|
attr_accessor email: String?
|
|
63
66
|
|
|
64
67
|
attr_accessor external_id: String?
|
|
@@ -81,6 +84,7 @@ module ModerationAPI
|
|
|
81
84
|
risk_evaluation: ModerationAPI::Models::AuthorListResponse::Author::RiskEvaluation?,
|
|
82
85
|
status: ModerationAPI::Models::AuthorListResponse::Author::status,
|
|
83
86
|
trust_level: ModerationAPI::Models::AuthorListResponse::Author::TrustLevel,
|
|
87
|
+
?company: String?,
|
|
84
88
|
?email: String?,
|
|
85
89
|
?external_id: String?,
|
|
86
90
|
?external_link: String?,
|
|
@@ -99,6 +103,7 @@ module ModerationAPI
|
|
|
99
103
|
risk_evaluation: ModerationAPI::Models::AuthorListResponse::Author::RiskEvaluation?,
|
|
100
104
|
status: ModerationAPI::Models::AuthorListResponse::Author::status,
|
|
101
105
|
trust_level: ModerationAPI::Models::AuthorListResponse::Author::TrustLevel,
|
|
106
|
+
company: String?,
|
|
102
107
|
email: String?,
|
|
103
108
|
external_id: String?,
|
|
104
109
|
external_link: String?,
|
|
@@ -11,6 +11,7 @@ module ModerationAPI
|
|
|
11
11
|
risk_evaluation: ModerationAPI::Models::AuthorRetrieveResponse::RiskEvaluation?,
|
|
12
12
|
status: ModerationAPI::Models::AuthorRetrieveResponse::status,
|
|
13
13
|
trust_level: ModerationAPI::Models::AuthorRetrieveResponse::TrustLevel,
|
|
14
|
+
company: String?,
|
|
14
15
|
email: String?,
|
|
15
16
|
external_id: String?,
|
|
16
17
|
external_link: String?,
|
|
@@ -38,6 +39,8 @@ module ModerationAPI
|
|
|
38
39
|
|
|
39
40
|
attr_accessor trust_level: ModerationAPI::Models::AuthorRetrieveResponse::TrustLevel
|
|
40
41
|
|
|
42
|
+
attr_accessor company: String?
|
|
43
|
+
|
|
41
44
|
attr_accessor email: String?
|
|
42
45
|
|
|
43
46
|
attr_accessor external_id: String?
|
|
@@ -60,6 +63,7 @@ module ModerationAPI
|
|
|
60
63
|
risk_evaluation: ModerationAPI::Models::AuthorRetrieveResponse::RiskEvaluation?,
|
|
61
64
|
status: ModerationAPI::Models::AuthorRetrieveResponse::status,
|
|
62
65
|
trust_level: ModerationAPI::Models::AuthorRetrieveResponse::TrustLevel,
|
|
66
|
+
?company: String?,
|
|
63
67
|
?email: String?,
|
|
64
68
|
?external_id: String?,
|
|
65
69
|
?external_link: String?,
|
|
@@ -78,6 +82,7 @@ module ModerationAPI
|
|
|
78
82
|
risk_evaluation: ModerationAPI::Models::AuthorRetrieveResponse::RiskEvaluation?,
|
|
79
83
|
status: ModerationAPI::Models::AuthorRetrieveResponse::status,
|
|
80
84
|
trust_level: ModerationAPI::Models::AuthorRetrieveResponse::TrustLevel,
|
|
85
|
+
company: String?,
|
|
81
86
|
email: String?,
|
|
82
87
|
external_id: String?,
|
|
83
88
|
external_link: String?,
|
|
@@ -3,6 +3,7 @@ module ModerationAPI
|
|
|
3
3
|
type author_update_params =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
company: String?,
|
|
6
7
|
email: String?,
|
|
7
8
|
external_link: String?,
|
|
8
9
|
first_seen: Float,
|
|
@@ -20,6 +21,8 @@ module ModerationAPI
|
|
|
20
21
|
|
|
21
22
|
attr_accessor id: String
|
|
22
23
|
|
|
24
|
+
attr_accessor company: String?
|
|
25
|
+
|
|
23
26
|
attr_accessor email: String?
|
|
24
27
|
|
|
25
28
|
attr_accessor external_link: String?
|
|
@@ -46,6 +49,7 @@ module ModerationAPI
|
|
|
46
49
|
|
|
47
50
|
def initialize: (
|
|
48
51
|
id: String,
|
|
52
|
+
?company: String?,
|
|
49
53
|
?email: String?,
|
|
50
54
|
?external_link: String?,
|
|
51
55
|
?first_seen: Float,
|
|
@@ -59,6 +63,7 @@ module ModerationAPI
|
|
|
59
63
|
|
|
60
64
|
def to_hash: -> {
|
|
61
65
|
id: String,
|
|
66
|
+
company: String?,
|
|
62
67
|
email: String?,
|
|
63
68
|
external_link: String?,
|
|
64
69
|
first_seen: Float,
|
|
@@ -11,6 +11,7 @@ module ModerationAPI
|
|
|
11
11
|
risk_evaluation: ModerationAPI::Models::AuthorUpdateResponse::RiskEvaluation?,
|
|
12
12
|
status: ModerationAPI::Models::AuthorUpdateResponse::status,
|
|
13
13
|
trust_level: ModerationAPI::Models::AuthorUpdateResponse::TrustLevel,
|
|
14
|
+
company: String?,
|
|
14
15
|
email: String?,
|
|
15
16
|
external_id: String?,
|
|
16
17
|
external_link: String?,
|
|
@@ -38,6 +39,8 @@ module ModerationAPI
|
|
|
38
39
|
|
|
39
40
|
attr_accessor trust_level: ModerationAPI::Models::AuthorUpdateResponse::TrustLevel
|
|
40
41
|
|
|
42
|
+
attr_accessor company: String?
|
|
43
|
+
|
|
41
44
|
attr_accessor email: String?
|
|
42
45
|
|
|
43
46
|
attr_accessor external_id: String?
|
|
@@ -60,6 +63,7 @@ module ModerationAPI
|
|
|
60
63
|
risk_evaluation: ModerationAPI::Models::AuthorUpdateResponse::RiskEvaluation?,
|
|
61
64
|
status: ModerationAPI::Models::AuthorUpdateResponse::status,
|
|
62
65
|
trust_level: ModerationAPI::Models::AuthorUpdateResponse::TrustLevel,
|
|
66
|
+
?company: String?,
|
|
63
67
|
?email: String?,
|
|
64
68
|
?external_id: String?,
|
|
65
69
|
?external_link: String?,
|
|
@@ -78,6 +82,7 @@ module ModerationAPI
|
|
|
78
82
|
risk_evaluation: ModerationAPI::Models::AuthorUpdateResponse::RiskEvaluation?,
|
|
79
83
|
status: ModerationAPI::Models::AuthorUpdateResponse::status,
|
|
80
84
|
trust_level: ModerationAPI::Models::AuthorUpdateResponse::TrustLevel,
|
|
85
|
+
company: String?,
|
|
81
86
|
email: String?,
|
|
82
87
|
external_id: String?,
|
|
83
88
|
external_link: String?,
|
|
@@ -881,6 +881,7 @@ module ModerationAPI
|
|
|
881
881
|
flag: bool,
|
|
882
882
|
allowlist_wordlist_ids: ::Array[String],
|
|
883
883
|
blocklist_wordlist_ids: ::Array[String],
|
|
884
|
+
flag_link_shorteners: bool,
|
|
884
885
|
threshold: Float
|
|
885
886
|
}
|
|
886
887
|
|
|
@@ -897,6 +898,10 @@ module ModerationAPI
|
|
|
897
898
|
|
|
898
899
|
def blocklist_wordlist_ids=: (::Array[String]) -> ::Array[String]
|
|
899
900
|
|
|
901
|
+
attr_reader flag_link_shorteners: bool?
|
|
902
|
+
|
|
903
|
+
def flag_link_shorteners=: (bool) -> bool
|
|
904
|
+
|
|
900
905
|
attr_reader threshold: Float?
|
|
901
906
|
|
|
902
907
|
def threshold=: (Float) -> Float
|
|
@@ -905,6 +910,7 @@ module ModerationAPI
|
|
|
905
910
|
flag: bool,
|
|
906
911
|
?allowlist_wordlist_ids: ::Array[String],
|
|
907
912
|
?blocklist_wordlist_ids: ::Array[String],
|
|
913
|
+
?flag_link_shorteners: bool,
|
|
908
914
|
?threshold: Float,
|
|
909
915
|
?id: :url_risk
|
|
910
916
|
) -> void
|
|
@@ -914,6 +920,7 @@ module ModerationAPI
|
|
|
914
920
|
flag: bool,
|
|
915
921
|
allowlist_wordlist_ids: ::Array[String],
|
|
916
922
|
blocklist_wordlist_ids: ::Array[String],
|
|
923
|
+
flag_link_shorteners: bool,
|
|
917
924
|
threshold: Float
|
|
918
925
|
}
|
|
919
926
|
end
|