safetykit 0.48.0 → 0.50.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/access_token_create_access_token_params.rb +1 -1
- data/lib/safety_kit/models/stream_add_frame_params.rb +11 -1
- data/lib/safety_kit/resources/streams.rb +3 -1
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/access_token_create_access_token_params.rbi +2 -2
- data/rbi/safety_kit/models/stream_add_frame_params.rbi +15 -0
- data/rbi/safety_kit/resources/access_tokens.rbi +1 -1
- data/rbi/safety_kit/resources/streams.rbi +5 -0
- data/sig/safety_kit/models/stream_add_frame_params.rbs +8 -1
- data/sig/safety_kit/resources/streams.rbs +1 -0
- 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: 3be0223c948a999f249d8f68585345ec7d96040de4b4b18256a29d7af8b1b662
|
|
4
|
+
data.tar.gz: 9863631b6583962919497f97a27ddbde318e13b18d66ed3ccc724d1cd0f924c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1e231c7fafe07d840d93848166f1bedeef1ded22f991ab97e5c22aeb9d88a255d6de0065da5cb91c414178c327c4f65ec9e2dba62f3b38154b191ec470b9a90
|
|
7
|
+
data.tar.gz: a3369ab0dfb03b3579926ca0e8edd36bce0a927d8350f4d25bce7c8aa8da527a4868206cb7b28445dc9367e08fb4ded3d13fb5deccda8ebd39f552c08e8ea520
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.50.0 (2026-08-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.49.0...v0.50.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.49.0...v0.50.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([0f2676b](https://github.com/GetSafetyKit/safetykit-ruby/commit/0f2676b4f1b89391e398e1ae101f70de5bd07772))
|
|
10
|
+
|
|
11
|
+
## 0.49.0 (2026-07-31)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.48.0...v0.49.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.48.0...v0.49.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([cf0ec44](https://github.com/GetSafetyKit/safetykit-ruby/commit/cf0ec4463cb66198fb4d440ecd8bd611089f7179))
|
|
18
|
+
|
|
3
19
|
## 0.48.0 (2026-07-30)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.47.0...v0.48.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.47.0...v0.48.0)
|
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ module SafetyKit
|
|
|
15
15
|
|
|
16
16
|
# @!attribute expires_in
|
|
17
17
|
# Lifetime of the access token in seconds. Defaults to 3600 (1 hour). Minimum 300
|
|
18
|
-
# (5 minutes), maximum
|
|
18
|
+
# (5 minutes), maximum 86400 (24 hours).
|
|
19
19
|
#
|
|
20
20
|
# @return [Integer, nil]
|
|
21
21
|
optional :expires_in, Integer
|
|
@@ -37,7 +37,15 @@ module SafetyKit
|
|
|
37
37
|
# @return [String, nil]
|
|
38
38
|
optional :frame_id, String
|
|
39
39
|
|
|
40
|
-
# @!
|
|
40
|
+
# @!attribute metadata
|
|
41
|
+
# Arbitrary key-value metadata to associate with this frame, at most 8192 bytes
|
|
42
|
+
# when serialized. If a violation is detected on this frame, the metadata is
|
|
43
|
+
# echoed back verbatim in the live_video.violation_detected webhook.
|
|
44
|
+
#
|
|
45
|
+
# @return [Hash{Symbol=>Object, nil}, nil]
|
|
46
|
+
optional :metadata, SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true]
|
|
47
|
+
|
|
48
|
+
# @!method initialize(namespace:, image_data_uri:, stream_id:, timestamp:, frame_id: nil, metadata: nil, request_options: {})
|
|
41
49
|
# Some parameter documentations has been truncated, see
|
|
42
50
|
# {SafetyKit::Models::StreamAddFrameParams} for more details.
|
|
43
51
|
#
|
|
@@ -51,6 +59,8 @@ module SafetyKit
|
|
|
51
59
|
#
|
|
52
60
|
# @param frame_id [String]
|
|
53
61
|
#
|
|
62
|
+
# @param metadata [Hash{Symbol=>Object, nil}] Arbitrary key-value metadata to associate with this frame, at most 8192 bytes wh
|
|
63
|
+
#
|
|
54
64
|
# @param request_options [SafetyKit::RequestOptions, Hash{Symbol=>Object}]
|
|
55
65
|
end
|
|
56
66
|
end
|
|
@@ -43,7 +43,7 @@ module SafetyKit
|
|
|
43
43
|
# ignored by downstream processing. This method returns immediately after the
|
|
44
44
|
# frame has been accepted for processing.
|
|
45
45
|
#
|
|
46
|
-
# @overload add_frame(namespace, image_data_uri:, stream_id:, timestamp:, frame_id: nil, request_options: {})
|
|
46
|
+
# @overload add_frame(namespace, image_data_uri:, stream_id:, timestamp:, frame_id: nil, metadata: nil, request_options: {})
|
|
47
47
|
#
|
|
48
48
|
# @param namespace [String] The namespace to ingest stream data into
|
|
49
49
|
#
|
|
@@ -55,6 +55,8 @@ module SafetyKit
|
|
|
55
55
|
#
|
|
56
56
|
# @param frame_id [String]
|
|
57
57
|
#
|
|
58
|
+
# @param metadata [Hash{Symbol=>Object, nil}] Arbitrary key-value metadata to associate with this frame, at most 8192 bytes wh
|
|
59
|
+
#
|
|
58
60
|
# @param request_options [SafetyKit::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
59
61
|
#
|
|
60
62
|
# @return [SafetyKit::Models::StreamAddFrameResponse]
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -22,7 +22,7 @@ module SafetyKit
|
|
|
22
22
|
attr_writer :customer_session_id
|
|
23
23
|
|
|
24
24
|
# Lifetime of the access token in seconds. Defaults to 3600 (1 hour). Minimum 300
|
|
25
|
-
# (5 minutes), maximum
|
|
25
|
+
# (5 minutes), maximum 86400 (24 hours).
|
|
26
26
|
sig { returns(T.nilable(Integer)) }
|
|
27
27
|
attr_reader :expires_in
|
|
28
28
|
|
|
@@ -49,7 +49,7 @@ module SafetyKit
|
|
|
49
49
|
# Optional opaque session identifier to associate with the access token.
|
|
50
50
|
customer_session_id: nil,
|
|
51
51
|
# Lifetime of the access token in seconds. Defaults to 3600 (1 hour). Minimum 300
|
|
52
|
-
# (5 minutes), maximum
|
|
52
|
+
# (5 minutes), maximum 86400 (24 hours).
|
|
53
53
|
expires_in: nil,
|
|
54
54
|
# Optional user identifier to associate with the access token for attribution. Use
|
|
55
55
|
# the same canonical user ID string that you send in other SafetyKit API calls.
|
|
@@ -34,6 +34,15 @@ module SafetyKit
|
|
|
34
34
|
sig { params(frame_id: String).void }
|
|
35
35
|
attr_writer :frame_id
|
|
36
36
|
|
|
37
|
+
# Arbitrary key-value metadata to associate with this frame, at most 8192 bytes
|
|
38
|
+
# when serialized. If a violation is detected on this frame, the metadata is
|
|
39
|
+
# echoed back verbatim in the live_video.violation_detected webhook.
|
|
40
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
|
|
41
|
+
attr_reader :metadata
|
|
42
|
+
|
|
43
|
+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).void }
|
|
44
|
+
attr_writer :metadata
|
|
45
|
+
|
|
37
46
|
sig do
|
|
38
47
|
params(
|
|
39
48
|
namespace: String,
|
|
@@ -41,6 +50,7 @@ module SafetyKit
|
|
|
41
50
|
stream_id: String,
|
|
42
51
|
timestamp: Integer,
|
|
43
52
|
frame_id: String,
|
|
53
|
+
metadata: T::Hash[Symbol, T.nilable(T.anything)],
|
|
44
54
|
request_options: SafetyKit::RequestOptions::OrHash
|
|
45
55
|
).returns(T.attached_class)
|
|
46
56
|
end
|
|
@@ -55,6 +65,10 @@ module SafetyKit
|
|
|
55
65
|
stream_id:,
|
|
56
66
|
timestamp:,
|
|
57
67
|
frame_id: nil,
|
|
68
|
+
# Arbitrary key-value metadata to associate with this frame, at most 8192 bytes
|
|
69
|
+
# when serialized. If a violation is detected on this frame, the metadata is
|
|
70
|
+
# echoed back verbatim in the live_video.violation_detected webhook.
|
|
71
|
+
metadata: nil,
|
|
58
72
|
request_options: {}
|
|
59
73
|
)
|
|
60
74
|
end
|
|
@@ -67,6 +81,7 @@ module SafetyKit
|
|
|
67
81
|
stream_id: String,
|
|
68
82
|
timestamp: Integer,
|
|
69
83
|
frame_id: String,
|
|
84
|
+
metadata: T::Hash[Symbol, T.nilable(T.anything)],
|
|
70
85
|
request_options: SafetyKit::RequestOptions
|
|
71
86
|
}
|
|
72
87
|
)
|
|
@@ -21,7 +21,7 @@ module SafetyKit
|
|
|
21
21
|
# Optional opaque session identifier to associate with the access token.
|
|
22
22
|
customer_session_id: nil,
|
|
23
23
|
# Lifetime of the access token in seconds. Defaults to 3600 (1 hour). Minimum 300
|
|
24
|
-
# (5 minutes), maximum
|
|
24
|
+
# (5 minutes), maximum 86400 (24 hours).
|
|
25
25
|
expires_in: nil,
|
|
26
26
|
# Optional user identifier to associate with the access token for attribution. Use
|
|
27
27
|
# the same canonical user ID string that you send in other SafetyKit API calls.
|
|
@@ -38,6 +38,7 @@ module SafetyKit
|
|
|
38
38
|
stream_id: String,
|
|
39
39
|
timestamp: Integer,
|
|
40
40
|
frame_id: String,
|
|
41
|
+
metadata: T::Hash[Symbol, T.nilable(T.anything)],
|
|
41
42
|
request_options: SafetyKit::RequestOptions::OrHash
|
|
42
43
|
).returns(SafetyKit::Models::StreamAddFrameResponse)
|
|
43
44
|
end
|
|
@@ -52,6 +53,10 @@ module SafetyKit
|
|
|
52
53
|
stream_id:,
|
|
53
54
|
timestamp:,
|
|
54
55
|
frame_id: nil,
|
|
56
|
+
# Arbitrary key-value metadata to associate with this frame, at most 8192 bytes
|
|
57
|
+
# when serialized. If a violation is detected on this frame, the metadata is
|
|
58
|
+
# echoed back verbatim in the live_video.violation_detected webhook.
|
|
59
|
+
metadata: nil,
|
|
55
60
|
request_options: {}
|
|
56
61
|
)
|
|
57
62
|
end
|
|
@@ -6,7 +6,8 @@ module SafetyKit
|
|
|
6
6
|
image_data_uri: String,
|
|
7
7
|
stream_id: String,
|
|
8
8
|
timestamp: Integer,
|
|
9
|
-
frame_id: String
|
|
9
|
+
frame_id: String,
|
|
10
|
+
metadata: ::Hash[Symbol, top?]
|
|
10
11
|
}
|
|
11
12
|
& SafetyKit::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -26,12 +27,17 @@ module SafetyKit
|
|
|
26
27
|
|
|
27
28
|
def frame_id=: (String) -> String
|
|
28
29
|
|
|
30
|
+
attr_reader metadata: ::Hash[Symbol, top?]?
|
|
31
|
+
|
|
32
|
+
def metadata=: (::Hash[Symbol, top?]) -> ::Hash[Symbol, top?]
|
|
33
|
+
|
|
29
34
|
def initialize: (
|
|
30
35
|
namespace: String,
|
|
31
36
|
image_data_uri: String,
|
|
32
37
|
stream_id: String,
|
|
33
38
|
timestamp: Integer,
|
|
34
39
|
?frame_id: String,
|
|
40
|
+
?metadata: ::Hash[Symbol, top?],
|
|
35
41
|
?request_options: SafetyKit::request_opts
|
|
36
42
|
) -> void
|
|
37
43
|
|
|
@@ -41,6 +47,7 @@ module SafetyKit
|
|
|
41
47
|
stream_id: String,
|
|
42
48
|
timestamp: Integer,
|
|
43
49
|
frame_id: String,
|
|
50
|
+
metadata: ::Hash[Symbol, top?],
|
|
44
51
|
request_options: SafetyKit::RequestOptions
|
|
45
52
|
}
|
|
46
53
|
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.
|
|
4
|
+
version: 0.50.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-
|
|
11
|
+
date: 2026-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|