safetykit 0.59.0 → 0.60.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 +8 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/content_create_params.rb +9 -4
- data/lib/safety_kit/resources/content.rb +1 -1
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/content_create_params.rbi +8 -4
- data/rbi/safety_kit/resources/content.rbi +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cb28c05f7fef84ce3dfd57ed9d02a7a91f5b82ca89fa83c7a8fcc1d8cb6f284
|
|
4
|
+
data.tar.gz: 20ab9fdc4a618d9f5c53928b32aa0c4810b8bb2a0569d7a6c673e7226612521a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7c7c368db73c3d086844655ff65a4597e48de920937854b21c322bc2b00ca29bdcb18749bcc0e6e93a0eefc64d5ca9d9435d581683c6797ab1fd2757dcc681e
|
|
7
|
+
data.tar.gz: 49d1ab71b13c0a87126beba45f65499a4e3d8df4e272364bee01a05bc683cea2764dfea84fc8fde7e2dcdebc5d3380143a6e2bf592b380e1116fc89fb619a6a8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.60.0 (2026-08-12)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.59.0...v0.60.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.59.0...v0.60.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8a1cae4](https://github.com/GetSafetyKit/safetykit-ruby/commit/8a1cae4ed0d2f9c53e4f934a63fb9f245da6c814))
|
|
10
|
+
|
|
3
11
|
## 0.59.0 (2026-08-12)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.58.0...v0.59.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.58.0...v0.59.0)
|
data/README.md
CHANGED
|
@@ -8,7 +8,9 @@ module SafetyKit
|
|
|
8
8
|
include SafetyKit::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute content
|
|
11
|
-
# Content parts to classify together. At most 20 images.
|
|
11
|
+
# Content parts to classify together. At most 20 images. Text parts may total
|
|
12
|
+
# 128,000 characters. Text is classified in overlapping windows and a label
|
|
13
|
+
# matches when any window matches.
|
|
12
14
|
#
|
|
13
15
|
# @return [Array<SafetyKit::Models::ContentCreateParams::Content::UnionMember0, SafetyKit::Models::ContentCreateParams::Content::UnionMember1>]
|
|
14
16
|
required :content,
|
|
@@ -39,7 +41,10 @@ module SafetyKit
|
|
|
39
41
|
optional :safety_kit_version, enum: -> { SafetyKit::ContentCreateParams::SafetyKitVersion }
|
|
40
42
|
|
|
41
43
|
# @!method initialize(content:, user_id:, content_id: nil, metadata: nil, safety_kit_version: nil, request_options: {})
|
|
42
|
-
#
|
|
44
|
+
# Some parameter documentations has been truncated, see
|
|
45
|
+
# {SafetyKit::Models::ContentCreateParams} for more details.
|
|
46
|
+
#
|
|
47
|
+
# @param content [Array<SafetyKit::Models::ContentCreateParams::Content::UnionMember0, SafetyKit::Models::ContentCreateParams::Content::UnionMember1>] Content parts to classify together. At most 20 images. Text parts may total 128,
|
|
43
48
|
#
|
|
44
49
|
# @param user_id [String] Your stable identifier for the user this content belongs to.
|
|
45
50
|
#
|
|
@@ -61,7 +66,7 @@ module SafetyKit
|
|
|
61
66
|
|
|
62
67
|
class UnionMember0 < SafetyKit::Internal::Type::BaseModel
|
|
63
68
|
# @!attribute text
|
|
64
|
-
# User-authored text to classify.
|
|
69
|
+
# User-authored text to classify. At most 16,000 characters per part.
|
|
65
70
|
#
|
|
66
71
|
# @return [String]
|
|
67
72
|
required :text, String
|
|
@@ -78,7 +83,7 @@ module SafetyKit
|
|
|
78
83
|
optional :key, String
|
|
79
84
|
|
|
80
85
|
# @!method initialize(text:, type:, key: nil)
|
|
81
|
-
# @param text [String] User-authored text to classify.
|
|
86
|
+
# @param text [String] User-authored text to classify. At most 16,000 characters per part.
|
|
82
87
|
#
|
|
83
88
|
# @param type [Symbol, SafetyKit::Models::ContentCreateParams::Content::UnionMember0::Type]
|
|
84
89
|
#
|
|
@@ -19,7 +19,7 @@ module SafetyKit
|
|
|
19
19
|
#
|
|
20
20
|
# @overload create(content:, user_id:, content_id: nil, metadata: nil, safety_kit_version: nil, request_options: {})
|
|
21
21
|
#
|
|
22
|
-
# @param content [Array<SafetyKit::Models::ContentCreateParams::Content::UnionMember0, SafetyKit::Models::ContentCreateParams::Content::UnionMember1>] Body param: Content parts to classify together. At most 20 images.
|
|
22
|
+
# @param content [Array<SafetyKit::Models::ContentCreateParams::Content::UnionMember0, SafetyKit::Models::ContentCreateParams::Content::UnionMember1>] Body param: Content parts to classify together. At most 20 images. Text parts ma
|
|
23
23
|
#
|
|
24
24
|
# @param user_id [String] Body param: Your stable identifier for the user this content belongs to.
|
|
25
25
|
#
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -11,7 +11,9 @@ module SafetyKit
|
|
|
11
11
|
T.any(SafetyKit::ContentCreateParams, SafetyKit::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# Content parts to classify together. At most 20 images.
|
|
14
|
+
# Content parts to classify together. At most 20 images. Text parts may total
|
|
15
|
+
# 128,000 characters. Text is classified in overlapping windows and a label
|
|
16
|
+
# matches when any window matches.
|
|
15
17
|
sig do
|
|
16
18
|
returns(
|
|
17
19
|
T::Array[
|
|
@@ -76,7 +78,9 @@ module SafetyKit
|
|
|
76
78
|
).returns(T.attached_class)
|
|
77
79
|
end
|
|
78
80
|
def self.new(
|
|
79
|
-
# Content parts to classify together. At most 20 images.
|
|
81
|
+
# Content parts to classify together. At most 20 images. Text parts may total
|
|
82
|
+
# 128,000 characters. Text is classified in overlapping windows and a label
|
|
83
|
+
# matches when any window matches.
|
|
80
84
|
content:,
|
|
81
85
|
# Your stable identifier for the user this content belongs to.
|
|
82
86
|
user_id:,
|
|
@@ -133,7 +137,7 @@ module SafetyKit
|
|
|
133
137
|
)
|
|
134
138
|
end
|
|
135
139
|
|
|
136
|
-
# User-authored text to classify.
|
|
140
|
+
# User-authored text to classify. At most 16,000 characters per part.
|
|
137
141
|
sig { returns(String) }
|
|
138
142
|
attr_accessor :text
|
|
139
143
|
|
|
@@ -160,7 +164,7 @@ module SafetyKit
|
|
|
160
164
|
).returns(T.attached_class)
|
|
161
165
|
end
|
|
162
166
|
def self.new(
|
|
163
|
-
# User-authored text to classify.
|
|
167
|
+
# User-authored text to classify. At most 16,000 characters per part.
|
|
164
168
|
text:,
|
|
165
169
|
type:,
|
|
166
170
|
# Your name for where this part came from.
|
|
@@ -31,7 +31,9 @@ module SafetyKit
|
|
|
31
31
|
).returns(SafetyKit::Models::ContentCreateResponse)
|
|
32
32
|
end
|
|
33
33
|
def create(
|
|
34
|
-
# Body param: Content parts to classify together. At most 20 images.
|
|
34
|
+
# Body param: Content parts to classify together. At most 20 images. Text parts
|
|
35
|
+
# may total 128,000 characters. Text is classified in overlapping windows and a
|
|
36
|
+
# label matches when any window matches.
|
|
35
37
|
content:,
|
|
36
38
|
# Body param: Your stable identifier for the user this content belongs to.
|
|
37
39
|
user_id:,
|