moderation_api 2.9.0 → 2.10.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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/moderation_api/internal/util.rb +31 -0
  5. data/lib/moderation_api/models/action_delete_params.rb +9 -1
  6. data/lib/moderation_api/models/action_retrieve_params.rb +9 -1
  7. data/lib/moderation_api/models/action_update_params.rb +9 -1
  8. data/lib/moderation_api/models/actions/execute_execute_by_id_params.rb +9 -1
  9. data/lib/moderation_api/models/author_delete_params.rb +7 -1
  10. data/lib/moderation_api/models/author_retrieve_params.rb +9 -1
  11. data/lib/moderation_api/models/author_update_params.rb +9 -1
  12. data/lib/moderation_api/models/content_submit_params.rb +27 -3
  13. data/lib/moderation_api/models/queue/item_list_params.rb +9 -1
  14. data/lib/moderation_api/models/queue/item_resolve_params.rb +9 -1
  15. data/lib/moderation_api/models/queue/item_unresolve_params.rb +9 -1
  16. data/lib/moderation_api/models/queue_get_stats_params.rb +9 -1
  17. data/lib/moderation_api/models/queue_retrieve_params.rb +9 -1
  18. data/lib/moderation_api/models/wordlist/word_add_params.rb +9 -1
  19. data/lib/moderation_api/models/wordlist/word_remove_params.rb +9 -1
  20. data/lib/moderation_api/models/wordlist_get_embedding_status_params.rb +9 -1
  21. data/lib/moderation_api/models/wordlist_retrieve_params.rb +9 -1
  22. data/lib/moderation_api/models/wordlist_update_params.rb +9 -1
  23. data/lib/moderation_api/resources/actions.rb +2 -1
  24. data/lib/moderation_api/resources/authors.rb +2 -1
  25. data/lib/moderation_api/resources/content.rb +1 -1
  26. data/lib/moderation_api/resources/queue/items.rb +2 -1
  27. data/lib/moderation_api/resources/queue.rb +2 -1
  28. data/lib/moderation_api/resources/wordlist/words.rb +2 -1
  29. data/lib/moderation_api/version.rb +1 -1
  30. data/rbi/moderation_api/internal/util.rbi +20 -0
  31. data/rbi/moderation_api/models/action_delete_params.rbi +16 -5
  32. data/rbi/moderation_api/models/action_retrieve_params.rbi +16 -5
  33. data/rbi/moderation_api/models/action_update_params.rbi +8 -0
  34. data/rbi/moderation_api/models/actions/execute_execute_by_id_params.rbi +8 -0
  35. data/rbi/moderation_api/models/author_delete_params.rbi +11 -5
  36. data/rbi/moderation_api/models/author_retrieve_params.rbi +16 -5
  37. data/rbi/moderation_api/models/author_update_params.rbi +8 -0
  38. data/rbi/moderation_api/models/content_submit_params.rbi +41 -0
  39. data/rbi/moderation_api/models/queue/item_list_params.rbi +8 -0
  40. data/rbi/moderation_api/models/queue/item_resolve_params.rbi +8 -0
  41. data/rbi/moderation_api/models/queue/item_unresolve_params.rbi +8 -0
  42. data/rbi/moderation_api/models/queue_get_stats_params.rbi +8 -0
  43. data/rbi/moderation_api/models/queue_retrieve_params.rbi +16 -5
  44. data/rbi/moderation_api/models/wordlist/word_add_params.rbi +8 -0
  45. data/rbi/moderation_api/models/wordlist/word_remove_params.rbi +8 -0
  46. data/rbi/moderation_api/models/wordlist_get_embedding_status_params.rbi +16 -5
  47. data/rbi/moderation_api/models/wordlist_retrieve_params.rbi +16 -5
  48. data/rbi/moderation_api/models/wordlist_update_params.rbi +8 -0
  49. data/rbi/moderation_api/resources/content.rbi +1 -0
  50. data/sig/moderation_api/internal/util.rbs +10 -0
  51. data/sig/moderation_api/models/action_delete_params.rbs +11 -3
  52. data/sig/moderation_api/models/action_retrieve_params.rbs +11 -3
  53. data/sig/moderation_api/models/action_update_params.rbs +5 -0
  54. data/sig/moderation_api/models/actions/execute_execute_by_id_params.rbs +5 -0
  55. data/sig/moderation_api/models/author_delete_params.rbs +11 -3
  56. data/sig/moderation_api/models/author_retrieve_params.rbs +11 -3
  57. data/sig/moderation_api/models/author_update_params.rbs +5 -0
  58. data/sig/moderation_api/models/content_submit_params.rbs +21 -0
  59. data/sig/moderation_api/models/queue/item_list_params.rbs +5 -0
  60. data/sig/moderation_api/models/queue/item_resolve_params.rbs +5 -1
  61. data/sig/moderation_api/models/queue/item_unresolve_params.rbs +5 -1
  62. data/sig/moderation_api/models/queue_get_stats_params.rbs +5 -1
  63. data/sig/moderation_api/models/queue_retrieve_params.rbs +11 -3
  64. data/sig/moderation_api/models/wordlist/word_add_params.rbs +5 -1
  65. data/sig/moderation_api/models/wordlist/word_remove_params.rbs +5 -1
  66. data/sig/moderation_api/models/wordlist_get_embedding_status_params.rbs +11 -3
  67. data/sig/moderation_api/models/wordlist_retrieve_params.rbs +11 -3
  68. data/sig/moderation_api/models/wordlist_update_params.rbs +5 -0
  69. metadata +2 -2
@@ -48,6 +48,7 @@ module ModerationAPI
48
48
  ModerationAPI::ContentSubmitParams::Policy::CodeAbuse::OrHash,
49
49
  ModerationAPI::ContentSubmitParams::Policy::PiiMasking::OrHash,
50
50
  ModerationAPI::ContentSubmitParams::Policy::URLMasking::OrHash,
51
+ ModerationAPI::ContentSubmitParams::Policy::URLRisk::OrHash,
51
52
  ModerationAPI::ContentSubmitParams::Policy::Guideline::OrHash
52
53
  )
53
54
  ],
@@ -106,6 +106,16 @@ module ModerationAPI
106
106
  JSON_CONTENT: Regexp
107
107
  JSONL_CONTENT: Regexp
108
108
 
109
+ def encode_query_params: (
110
+ ::Hash[Symbol, top] query
111
+ ) -> ::Hash[Symbol, top]
112
+
113
+ private def write_query_param_element!: (
114
+ ::Hash[Symbol, top] collection,
115
+ String key,
116
+ top element
117
+ ) -> nil
118
+
109
119
  def self?.write_multipart_content: (
110
120
  Enumerator::Yielder y,
111
121
  val: top,
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type action_delete_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class ActionDeleteParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type action_retrieve_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class ActionRetrieveParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -2,6 +2,7 @@ module ModerationAPI
2
2
  module Models
3
3
  type action_update_params =
4
4
  {
5
+ id: String,
5
6
  built_in: bool?,
6
7
  description: String?,
7
8
  filter_in_queue_ids: ::Array[String],
@@ -21,6 +22,8 @@ module ModerationAPI
21
22
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
22
23
  include ModerationAPI::Internal::Type::RequestParameters
23
24
 
25
+ attr_accessor id: String
26
+
24
27
  attr_accessor built_in: bool?
25
28
 
26
29
  attr_accessor description: String?
@@ -70,6 +73,7 @@ module ModerationAPI
70
73
  ) -> ::Array[ModerationAPI::ActionUpdateParams::Webhook]
71
74
 
72
75
  def initialize: (
76
+ id: String,
73
77
  ?built_in: bool?,
74
78
  ?description: String?,
75
79
  ?filter_in_queue_ids: ::Array[String],
@@ -86,6 +90,7 @@ module ModerationAPI
86
90
  ) -> void
87
91
 
88
92
  def to_hash: -> {
93
+ id: String,
89
94
  built_in: bool?,
90
95
  description: String?,
91
96
  filter_in_queue_ids: ::Array[String],
@@ -3,6 +3,7 @@ module ModerationAPI
3
3
  module Actions
4
4
  type execute_execute_by_id_params =
5
5
  {
6
+ action_id: String,
6
7
  author_ids: ::Array[String],
7
8
  content_ids: ::Array[String],
8
9
  queue_id: String,
@@ -14,6 +15,8 @@ module ModerationAPI
14
15
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
15
16
  include ModerationAPI::Internal::Type::RequestParameters
16
17
 
18
+ attr_accessor action_id: String
19
+
17
20
  attr_reader author_ids: ::Array[String]?
18
21
 
19
22
  def author_ids=: (::Array[String]) -> ::Array[String]
@@ -31,6 +34,7 @@ module ModerationAPI
31
34
  def value=: (String) -> String
32
35
 
33
36
  def initialize: (
37
+ action_id: String,
34
38
  ?author_ids: ::Array[String],
35
39
  ?content_ids: ::Array[String],
36
40
  ?queue_id: String,
@@ -39,6 +43,7 @@ module ModerationAPI
39
43
  ) -> void
40
44
 
41
45
  def to_hash: -> {
46
+ action_id: String,
42
47
  author_ids: ::Array[String],
43
48
  content_ids: ::Array[String],
44
49
  queue_id: String,
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type author_delete_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class AuthorDeleteParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type author_retrieve_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class AuthorRetrieveParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -2,6 +2,7 @@ module ModerationAPI
2
2
  module Models
3
3
  type author_update_params =
4
4
  {
5
+ id: String,
5
6
  email: String?,
6
7
  external_link: String?,
7
8
  first_seen: Float,
@@ -17,6 +18,8 @@ module ModerationAPI
17
18
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
18
19
  include ModerationAPI::Internal::Type::RequestParameters
19
20
 
21
+ attr_accessor id: String
22
+
20
23
  attr_accessor email: String?
21
24
 
22
25
  attr_accessor external_link: String?
@@ -42,6 +45,7 @@ module ModerationAPI
42
45
  attr_accessor profile_picture: String?
43
46
 
44
47
  def initialize: (
48
+ id: String,
45
49
  ?email: String?,
46
50
  ?external_link: String?,
47
51
  ?first_seen: Float,
@@ -54,6 +58,7 @@ module ModerationAPI
54
58
  ) -> void
55
59
 
56
60
  def to_hash: -> {
61
+ id: String,
57
62
  email: String?,
58
63
  external_link: String?,
59
64
  first_seen: Float,
@@ -299,6 +299,7 @@ module ModerationAPI
299
299
  | ModerationAPI::ContentSubmitParams::Policy::CodeAbuse
300
300
  | ModerationAPI::ContentSubmitParams::Policy::PiiMasking
301
301
  | ModerationAPI::ContentSubmitParams::Policy::URLMasking
302
+ | ModerationAPI::ContentSubmitParams::Policy::URLRisk
302
303
  | ModerationAPI::ContentSubmitParams::Policy::Guideline
303
304
 
304
305
  module Policy
@@ -874,6 +875,26 @@ module ModerationAPI
874
875
  end
875
876
  end
876
877
 
878
+ type url_risk = { id: :url_risk, flag: bool, threshold: Float }
879
+
880
+ class URLRisk < ModerationAPI::Internal::Type::BaseModel
881
+ attr_accessor id: :url_risk
882
+
883
+ attr_accessor flag: bool
884
+
885
+ attr_reader threshold: Float?
886
+
887
+ def threshold=: (Float) -> Float
888
+
889
+ def initialize: (
890
+ flag: bool,
891
+ ?threshold: Float,
892
+ ?id: :url_risk
893
+ ) -> void
894
+
895
+ def to_hash: -> { id: :url_risk, flag: bool, threshold: Float }
896
+ end
897
+
877
898
  type guideline =
878
899
  {
879
900
  id: :guideline,
@@ -3,6 +3,7 @@ module ModerationAPI
3
3
  module Queue
4
4
  type item_list_params =
5
5
  {
6
+ id: String,
6
7
  after_date: String,
7
8
  author_id: String,
8
9
  before_date: String,
@@ -21,6 +22,8 @@ module ModerationAPI
21
22
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
22
23
  include ModerationAPI::Internal::Type::RequestParameters
23
24
 
25
+ attr_accessor id: String
26
+
24
27
  attr_reader after_date: String?
25
28
 
26
29
  def after_date=: (String) -> String
@@ -70,6 +73,7 @@ module ModerationAPI
70
73
  ) -> ModerationAPI::Models::Queue::ItemListParams::sort_field
71
74
 
72
75
  def initialize: (
76
+ id: String,
73
77
  ?after_date: String,
74
78
  ?author_id: String,
75
79
  ?before_date: String,
@@ -85,6 +89,7 @@ module ModerationAPI
85
89
  ) -> void
86
90
 
87
91
  def to_hash: -> {
92
+ id: String,
88
93
  after_date: String,
89
94
  author_id: String,
90
95
  before_date: String,
@@ -2,7 +2,7 @@ module ModerationAPI
2
2
  module Models
3
3
  module Queue
4
4
  type item_resolve_params =
5
- { id: String, comment: String }
5
+ { id: String, item_id: String, comment: String }
6
6
  & ModerationAPI::Internal::Type::request_parameters
7
7
 
8
8
  class ItemResolveParams < ModerationAPI::Internal::Type::BaseModel
@@ -11,18 +11,22 @@ module ModerationAPI
11
11
 
12
12
  attr_accessor id: String
13
13
 
14
+ attr_accessor item_id: String
15
+
14
16
  attr_reader comment: String?
15
17
 
16
18
  def comment=: (String) -> String
17
19
 
18
20
  def initialize: (
19
21
  id: String,
22
+ item_id: String,
20
23
  ?comment: String,
21
24
  ?request_options: ModerationAPI::request_opts
22
25
  ) -> void
23
26
 
24
27
  def to_hash: -> {
25
28
  id: String,
29
+ item_id: String,
26
30
  comment: String,
27
31
  request_options: ModerationAPI::RequestOptions
28
32
  }
@@ -2,7 +2,7 @@ module ModerationAPI
2
2
  module Models
3
3
  module Queue
4
4
  type item_unresolve_params =
5
- { id: String, comment: String }
5
+ { id: String, item_id: String, comment: String }
6
6
  & ModerationAPI::Internal::Type::request_parameters
7
7
 
8
8
  class ItemUnresolveParams < ModerationAPI::Internal::Type::BaseModel
@@ -11,18 +11,22 @@ module ModerationAPI
11
11
 
12
12
  attr_accessor id: String
13
13
 
14
+ attr_accessor item_id: String
15
+
14
16
  attr_reader comment: String?
15
17
 
16
18
  def comment=: (String) -> String
17
19
 
18
20
  def initialize: (
19
21
  id: String,
22
+ item_id: String,
20
23
  ?comment: String,
21
24
  ?request_options: ModerationAPI::request_opts
22
25
  ) -> void
23
26
 
24
27
  def to_hash: -> {
25
28
  id: String,
29
+ item_id: String,
26
30
  comment: String,
27
31
  request_options: ModerationAPI::RequestOptions
28
32
  }
@@ -1,23 +1,27 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type queue_get_stats_params =
4
- { within_days: String }
4
+ { id: String, within_days: String }
5
5
  & ModerationAPI::Internal::Type::request_parameters
6
6
 
7
7
  class QueueGetStatsParams < ModerationAPI::Internal::Type::BaseModel
8
8
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
9
9
  include ModerationAPI::Internal::Type::RequestParameters
10
10
 
11
+ attr_accessor id: String
12
+
11
13
  attr_reader within_days: String?
12
14
 
13
15
  def within_days=: (String) -> String
14
16
 
15
17
  def initialize: (
18
+ id: String,
16
19
  ?within_days: String,
17
20
  ?request_options: ModerationAPI::request_opts
18
21
  ) -> void
19
22
 
20
23
  def to_hash: -> {
24
+ id: String,
21
25
  within_days: String,
22
26
  request_options: ModerationAPI::RequestOptions
23
27
  }
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type queue_retrieve_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class QueueRetrieveParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -2,21 +2,25 @@ module ModerationAPI
2
2
  module Models
3
3
  module Wordlist
4
4
  type word_add_params =
5
- { words: ::Array[String] }
5
+ { id: String, words: ::Array[String] }
6
6
  & ModerationAPI::Internal::Type::request_parameters
7
7
 
8
8
  class WordAddParams < ModerationAPI::Internal::Type::BaseModel
9
9
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
10
10
  include ModerationAPI::Internal::Type::RequestParameters
11
11
 
12
+ attr_accessor id: String
13
+
12
14
  attr_accessor words: ::Array[String]
13
15
 
14
16
  def initialize: (
17
+ id: String,
15
18
  words: ::Array[String],
16
19
  ?request_options: ModerationAPI::request_opts
17
20
  ) -> void
18
21
 
19
22
  def to_hash: -> {
23
+ id: String,
20
24
  words: ::Array[String],
21
25
  request_options: ModerationAPI::RequestOptions
22
26
  }
@@ -2,21 +2,25 @@ module ModerationAPI
2
2
  module Models
3
3
  module Wordlist
4
4
  type word_remove_params =
5
- { words: ::Array[String] }
5
+ { id: String, words: ::Array[String] }
6
6
  & ModerationAPI::Internal::Type::request_parameters
7
7
 
8
8
  class WordRemoveParams < ModerationAPI::Internal::Type::BaseModel
9
9
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
10
10
  include ModerationAPI::Internal::Type::RequestParameters
11
11
 
12
+ attr_accessor id: String
13
+
12
14
  attr_accessor words: ::Array[String]
13
15
 
14
16
  def initialize: (
17
+ id: String,
15
18
  words: ::Array[String],
16
19
  ?request_options: ModerationAPI::request_opts
17
20
  ) -> void
18
21
 
19
22
  def to_hash: -> {
23
+ id: String,
20
24
  words: ::Array[String],
21
25
  request_options: ModerationAPI::RequestOptions
22
26
  }
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type wordlist_get_embedding_status_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class WordlistGetEmbeddingStatusParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,15 +1,23 @@
1
1
  module ModerationAPI
2
2
  module Models
3
3
  type wordlist_retrieve_params =
4
- { } & ModerationAPI::Internal::Type::request_parameters
4
+ { id: String } & ModerationAPI::Internal::Type::request_parameters
5
5
 
6
6
  class WordlistRetrieveParams < ModerationAPI::Internal::Type::BaseModel
7
7
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
8
8
  include ModerationAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: ModerationAPI::request_opts) -> void
10
+ attr_accessor id: String
11
11
 
12
- def to_hash: -> { request_options: ModerationAPI::RequestOptions }
12
+ def initialize: (
13
+ id: String,
14
+ ?request_options: ModerationAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ id: String,
19
+ request_options: ModerationAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -2,6 +2,7 @@ module ModerationAPI
2
2
  module Models
3
3
  type wordlist_update_params =
4
4
  {
5
+ id: String,
5
6
  description: String,
6
7
  key: String,
7
8
  name: String,
@@ -14,6 +15,8 @@ module ModerationAPI
14
15
  extend ModerationAPI::Internal::Type::RequestParameters::Converter
15
16
  include ModerationAPI::Internal::Type::RequestParameters
16
17
 
18
+ attr_accessor id: String
19
+
17
20
  attr_reader description: String?
18
21
 
19
22
  def description=: (String) -> String
@@ -35,6 +38,7 @@ module ModerationAPI
35
38
  def words=: (::Array[String]) -> ::Array[String]
36
39
 
37
40
  def initialize: (
41
+ id: String,
38
42
  ?description: String,
39
43
  ?key: String,
40
44
  ?name: String,
@@ -44,6 +48,7 @@ module ModerationAPI
44
48
  ) -> void
45
49
 
46
50
  def to_hash: -> {
51
+ id: String,
47
52
  description: String,
48
53
  key: String,
49
54
  name: String,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderation_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moderation API
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-03 00:00:00.000000000 Z
11
+ date: 2026-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi