safetykit 0.54.0 → 0.56.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: 3940fe0cd96efc27d41bf5e435769504809af46453f457e210009cc7984054f7
4
- data.tar.gz: 1091f431d55165f712b327cb01b806eea5df1c0a3f9591d47ddc6d9d92090ece
3
+ metadata.gz: e4f14e3ad89b25b2fdd5f3cc9683b7397a4a71cda7d7f31a9a12bf4bdd081333
4
+ data.tar.gz: eedcb639f3053397b70fddff1853c49d5313e0146d9139a44dba5129d1863b75
5
5
  SHA512:
6
- metadata.gz: 7b4103c14298b4ca6bccf47cb52d3f093a9864d00d85242587b36f3029ac8ecee8097dd7413e7506f4abd4a16dec273041e0cd9b70f7493d666128bb3003c777
7
- data.tar.gz: b67aa63c04b3e02921d364e307baafa4508a3dea6fd3ead32cd2f8f392873b5c65ca8dc6b17726c4c64d13f53cbc356340de536032a6a96ee3772b03b11af308
6
+ metadata.gz: 1e7d88a65263dd63d77dd2fcdc39510fec92b32fb20ace949182a02a55cfb4ed34771439fb6e62200bbfb3aafb1ea546c37ee903a18f0fd7a94531f261a1678c
7
+ data.tar.gz: 710b42dff5bb08f06668078f5a73756b7dd705c4d3e9bf05d3f5d98c9ddab13e34332ae5e06e01936d8f256e7ad626b24be3a0d6276c41155b7a0dc9645881df
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.56.0 (2026-08-07)
4
+
5
+ Full Changelog: [v0.55.0...v0.56.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.55.0...v0.56.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([56f203f](https://github.com/GetSafetyKit/safetykit-ruby/commit/56f203f076e1ca7e68776fc18543d100462963a0))
10
+
11
+ ## 0.55.0 (2026-08-06)
12
+
13
+ Full Changelog: [v0.54.0...v0.55.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.54.0...v0.55.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([7e85141](https://github.com/GetSafetyKit/safetykit-ruby/commit/7e851412c0beba84e59c41869bbe1e7debd3173f))
18
+
3
19
  ## 0.54.0 (2026-08-06)
4
20
 
5
21
  Full Changelog: [v0.53.0...v0.54.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.53.0...v0.54.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 "safetykit", "~> 0.54.0"
20
+ gem "safetykit", "~> 0.56.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -107,7 +107,7 @@ module SafetyKit
107
107
 
108
108
  NONE = :none
109
109
  COMPLETED = :completed
110
- TIMED_OUT = :timed_out
110
+ ERROR = :error
111
111
 
112
112
  # @!method self.values
113
113
  # @return [Array<Symbol>]
@@ -12,6 +12,11 @@ module SafetyKit
12
12
  # both, and receive per-policy results in the response. Requests have a maximum
13
13
  # size of 6MB.
14
14
  #
15
+ # Errors: 400 for an invalid body or images, with the failing field in the
16
+ # message. 401 for a missing or invalid API key. 413 for requests over 6MB. 503
17
+ # when classification is temporarily unavailable, in which case the request was
18
+ # not processed and is safe to retry.
19
+ #
15
20
  # @overload create(user_id:, content_id: nil, images: nil, metadata: nil, text: nil, request_options: {})
16
21
  #
17
22
  # @param user_id [String] Your stable identifier for the user this content belongs to.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.54.0"
4
+ VERSION = "0.56.0"
5
5
  end
@@ -217,9 +217,9 @@ module SafetyKit
217
217
  :completed,
218
218
  SafetyKit::Models::ContentCreateResponse::Policy::Escalation::TaggedSymbol
219
219
  )
220
- TIMED_OUT =
220
+ ERROR =
221
221
  T.let(
222
- :timed_out,
222
+ :error,
223
223
  SafetyKit::Models::ContentCreateResponse::Policy::Escalation::TaggedSymbol
224
224
  )
225
225
 
@@ -8,6 +8,11 @@ module SafetyKit
8
8
  # Classify a piece of content synchronously. Send user-authored text, images, or
9
9
  # both, and receive per-policy results in the response. Requests have a maximum
10
10
  # size of 6MB.
11
+ #
12
+ # Errors: 400 for an invalid body or images, with the failing field in the
13
+ # message. 401 for a missing or invalid API key. 413 for requests over 6MB. 503
14
+ # when classification is temporarily unavailable, in which case the request was
15
+ # not processed and is safe to retry.
11
16
  sig do
12
17
  params(
13
18
  user_id: String,
@@ -79,14 +79,14 @@ module SafetyKit
79
79
  def self?.values: -> ::Array[SafetyKit::Models::ContentCreateResponse::Policy::decision]
80
80
  end
81
81
 
82
- type escalation = :none | :completed | :timed_out
82
+ type escalation = :none | :completed | :error
83
83
 
84
84
  module Escalation
85
85
  extend SafetyKit::Internal::Type::Enum
86
86
 
87
87
  NONE: :none
88
88
  COMPLETED: :completed
89
- TIMED_OUT: :timed_out
89
+ ERROR: :error
90
90
 
91
91
  def self?.values: -> ::Array[SafetyKit::Models::ContentCreateResponse::Policy::escalation]
92
92
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safetykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Safetykit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-06 00:00:00.000000000 Z
11
+ date: 2026-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi