safetykit 0.58.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 +16 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/content_create_params.rb +9 -4
- data/lib/safety_kit/models/data_update_settings_params.rb +6 -8
- data/lib/safety_kit/resources/content.rb +1 -1
- data/lib/safety_kit/resources/data.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/models/data_update_settings_params.rbi +7 -11
- data/rbi/safety_kit/resources/content.rbi +3 -1
- data/rbi/safety_kit/resources/data.rbi +2 -4
- metadata +2 -2
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,21 @@
|
|
|
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
|
+
|
|
11
|
+
## 0.59.0 (2026-08-12)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.58.0...v0.59.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.58.0...v0.59.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([79f835f](https://github.com/GetSafetyKit/safetykit-ruby/commit/79f835fe421b21ca05a77ab77bfeef64aea99285))
|
|
18
|
+
|
|
3
19
|
## 0.58.0 (2026-08-11)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.57.0...v0.58.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.57.0...v0.58.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
|
#
|
|
@@ -14,10 +14,8 @@ module SafetyKit
|
|
|
14
14
|
required :namespace, String
|
|
15
15
|
|
|
16
16
|
# @!attribute schema
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
# websites), datetime fields, or 'metadata' for fields that should be stored but
|
|
20
|
-
# not indexed. Use display_hint to provide UI rendering hints.
|
|
17
|
+
# New schema to store for this namespace. Omit to leave the existing schema
|
|
18
|
+
# unchanged.
|
|
21
19
|
#
|
|
22
20
|
# @return [Hash{Symbol=>SafetyKit::Models::DataUpdateSettingsParams::Schema}, nil]
|
|
23
21
|
optional :schema, -> { SafetyKit::Internal::Type::HashOf[SafetyKit::DataUpdateSettingsParams::Schema] }
|
|
@@ -35,7 +33,7 @@ module SafetyKit
|
|
|
35
33
|
#
|
|
36
34
|
# @param namespace [String] The namespace to ingest data into
|
|
37
35
|
#
|
|
38
|
-
# @param schema [Hash{Symbol=>SafetyKit::Models::DataUpdateSettingsParams::Schema}]
|
|
36
|
+
# @param schema [Hash{Symbol=>SafetyKit::Models::DataUpdateSettingsParams::Schema}] New schema to store for this namespace. Omit to leave the existing schema unchan
|
|
39
37
|
#
|
|
40
38
|
# @param settings [Hash{Symbol=>Object, nil}] Namespace settings to store, replacing existing settings. Omit to leave existing
|
|
41
39
|
#
|
|
@@ -59,7 +57,7 @@ module SafetyKit
|
|
|
59
57
|
optional :content_type, enum: -> { SafetyKit::DataUpdateSettingsParams::Schema::ContentType }
|
|
60
58
|
|
|
61
59
|
# @!attribute display_hint
|
|
62
|
-
#
|
|
60
|
+
# Optional hint for how this field should be displayed in the UI
|
|
63
61
|
#
|
|
64
62
|
# @return [SafetyKit::Models::DataUpdateSettingsParams::Schema::DisplayHint, nil]
|
|
65
63
|
optional :display_hint, -> { SafetyKit::DataUpdateSettingsParams::Schema::DisplayHint }
|
|
@@ -88,7 +86,7 @@ module SafetyKit
|
|
|
88
86
|
#
|
|
89
87
|
# @param content_type [Symbol, SafetyKit::Models::DataUpdateSettingsParams::Schema::ContentType] The type of content (image_url, video_url, audio_url, website_url, datetime, met
|
|
90
88
|
#
|
|
91
|
-
# @param display_hint [SafetyKit::Models::DataUpdateSettingsParams::Schema::DisplayHint]
|
|
89
|
+
# @param display_hint [SafetyKit::Models::DataUpdateSettingsParams::Schema::DisplayHint] Optional hint for how this field should be displayed in the UI
|
|
92
90
|
#
|
|
93
91
|
# @param field_limit [Integer] Maximum amount of this field to include when sending to AI models. For text fiel
|
|
94
92
|
#
|
|
@@ -137,7 +135,7 @@ module SafetyKit
|
|
|
137
135
|
optional :type, enum: -> { SafetyKit::DataUpdateSettingsParams::Schema::DisplayHint::Type }
|
|
138
136
|
|
|
139
137
|
# @!method initialize(hidden: nil, name: nil, type: nil)
|
|
140
|
-
#
|
|
138
|
+
# Optional hint for how this field should be displayed in the UI
|
|
141
139
|
#
|
|
142
140
|
# @param hidden [Boolean] Hide this field from default UI display.
|
|
143
141
|
#
|
|
@@ -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
|
#
|
|
@@ -124,7 +124,7 @@ module SafetyKit
|
|
|
124
124
|
#
|
|
125
125
|
# @param namespace [String] The namespace to ingest data into
|
|
126
126
|
#
|
|
127
|
-
# @param schema [Hash{Symbol=>SafetyKit::Models::DataUpdateSettingsParams::Schema}]
|
|
127
|
+
# @param schema [Hash{Symbol=>SafetyKit::Models::DataUpdateSettingsParams::Schema}] New schema to store for this namespace. Omit to leave the existing schema unchan
|
|
128
128
|
#
|
|
129
129
|
# @param settings [Hash{Symbol=>Object, nil}] Namespace settings to store, replacing existing settings. Omit to leave existing
|
|
130
130
|
#
|
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.
|
|
@@ -18,10 +18,8 @@ module SafetyKit
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :namespace
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
# websites), datetime fields, or 'metadata' for fields that should be stored but
|
|
24
|
-
# not indexed. Use display_hint to provide UI rendering hints.
|
|
21
|
+
# New schema to store for this namespace. Omit to leave the existing schema
|
|
22
|
+
# unchanged.
|
|
25
23
|
sig do
|
|
26
24
|
returns(
|
|
27
25
|
T.nilable(
|
|
@@ -62,10 +60,8 @@ module SafetyKit
|
|
|
62
60
|
def self.new(
|
|
63
61
|
# The namespace to ingest data into
|
|
64
62
|
namespace:,
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
# websites), datetime fields, or 'metadata' for fields that should be stored but
|
|
68
|
-
# not indexed. Use display_hint to provide UI rendering hints.
|
|
63
|
+
# New schema to store for this namespace. Omit to leave the existing schema
|
|
64
|
+
# unchanged.
|
|
69
65
|
schema: nil,
|
|
70
66
|
# Namespace settings to store, replacing existing settings. Omit to leave existing
|
|
71
67
|
# settings unchanged. Configure these values with guidance from SafetyKit.
|
|
@@ -126,7 +122,7 @@ module SafetyKit
|
|
|
126
122
|
end
|
|
127
123
|
attr_writer :content_type
|
|
128
124
|
|
|
129
|
-
#
|
|
125
|
+
# Optional hint for how this field should be displayed in the UI
|
|
130
126
|
sig do
|
|
131
127
|
returns(
|
|
132
128
|
T.nilable(SafetyKit::DataUpdateSettingsParams::Schema::DisplayHint)
|
|
@@ -191,7 +187,7 @@ module SafetyKit
|
|
|
191
187
|
# process the URL. Use 'metadata' for fields that should be stored but not
|
|
192
188
|
# indexed, and 'markdown' or 'html' for rich text.
|
|
193
189
|
content_type: nil,
|
|
194
|
-
#
|
|
190
|
+
# Optional hint for how this field should be displayed in the UI
|
|
195
191
|
display_hint: nil,
|
|
196
192
|
# Maximum amount of this field to include when sending to AI models. For text
|
|
197
193
|
# fields, this is the character limit. For array fields (e.g. image URLs), this is
|
|
@@ -328,7 +324,7 @@ module SafetyKit
|
|
|
328
324
|
end
|
|
329
325
|
attr_writer :type
|
|
330
326
|
|
|
331
|
-
#
|
|
327
|
+
# Optional hint for how this field should be displayed in the UI
|
|
332
328
|
sig do
|
|
333
329
|
params(
|
|
334
330
|
hidden: T::Boolean,
|
|
@@ -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:,
|
|
@@ -100,10 +100,8 @@ module SafetyKit
|
|
|
100
100
|
def update_settings(
|
|
101
101
|
# The namespace to ingest data into
|
|
102
102
|
namespace,
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
# websites), datetime fields, or 'metadata' for fields that should be stored but
|
|
106
|
-
# not indexed. Use display_hint to provide UI rendering hints.
|
|
103
|
+
# New schema to store for this namespace. Omit to leave the existing schema
|
|
104
|
+
# unchanged.
|
|
107
105
|
schema: nil,
|
|
108
106
|
# Namespace settings to store, replacing existing settings. Omit to leave existing
|
|
109
107
|
# settings unchanged. Configure these values with guidance from SafetyKit.
|
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.
|
|
4
|
+
version: 0.60.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-
|
|
11
|
+
date: 2026-08-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|