moderation_api 2.15.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.
@@ -37,6 +37,8 @@ module ModerationAPI
37
37
 
38
38
  QueueRetrieveParams = ModerationAPI::Models::QueueRetrieveParams
39
39
 
40
+ WebhookEvent = ModerationAPI::Models::WebhookEvent
41
+
40
42
  Wordlist = ModerationAPI::Models::Wordlist
41
43
 
42
44
  WordlistGetEmbeddingStatusParams =
@@ -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
@@ -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