safetykit 0.43.0 → 0.44.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: 1df438dd54ed3af6ca9dff6a0da2ba1f552468f6fe8e2b7d125b160c2362cbbd
4
- data.tar.gz: bbf7fb331e1fa8a0a942dbb5d9cc26d2c4031a66e7d8579036c94292c8b5fd45
3
+ metadata.gz: 207ad345a64fa1b890d3aaad33043e17859c09ce95bc203ecfb9ddadeb703c8c
4
+ data.tar.gz: 57d104b1c3117be45e035aee0308c0f628d08bb5522b3af27e3b83e1c13df233
5
5
  SHA512:
6
- metadata.gz: 97d5154d012d07a1d171468e2db948644c63a006b9525c778bc576fc21bb8bdfb0b8da191529b75f11c9a5f6c84df56311db821ed0aa90fc6a73c94e911eeb7b
7
- data.tar.gz: 48e73043335a95db99915afa7723ba947d4afe924cc162b9179cc88b43c9398d234561eabe0bc03b1dee29b41f1b327c8b7d68ab3cd167f694729597a6262f00
6
+ metadata.gz: 487285a9bc781d67c5920ce0af7cd9998a11cb9e2cea9b8b6ccd3479b48b1ea38246783355b2956656be1524ce1a756e9187ed167594b1d2ddd0a65a349c392f
7
+ data.tar.gz: 072efb531430625cba569586c125f5776ac077e33bae57cc68bab8e69431e4186ef802937ee6eaaa0fb7cda47c3561adcf7f18b45ac3ff9439a0417517976f6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.44.0 (2026-07-28)
4
+
5
+ Full Changelog: [v0.43.0...v0.44.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.43.0...v0.44.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([82087f3](https://github.com/GetSafetyKit/safetykit-ruby/commit/82087f33a18740ba3e8a1bd066852e11e6a2c593))
10
+
3
11
  ## 0.43.0 (2026-07-18)
4
12
 
5
13
  Full Changelog: [v0.42.0...v0.43.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.42.0...v0.43.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.43.0"
20
+ gem "safetykit", "~> 0.44.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -32,7 +32,12 @@ module SafetyKit
32
32
  # @return [Integer]
33
33
  required :timestamp, Integer
34
34
 
35
- # @!method initialize(namespace:, image_data_uri:, stream_id:, timestamp:, request_options: {})
35
+ # @!attribute artifact_id
36
+ #
37
+ # @return [String, nil]
38
+ optional :artifact_id, String
39
+
40
+ # @!method initialize(namespace:, image_data_uri:, stream_id:, timestamp:, artifact_id: nil, request_options: {})
36
41
  # Some parameter documentations has been truncated, see
37
42
  # {SafetyKit::Models::StreamAddFrameParams} for more details.
38
43
  #
@@ -44,6 +49,8 @@ module SafetyKit
44
49
  #
45
50
  # @param timestamp [Integer]
46
51
  #
52
+ # @param artifact_id [String]
53
+ #
47
54
  # @param request_options [SafetyKit::RequestOptions, Hash{Symbol=>Object}]
48
55
  end
49
56
  end
@@ -28,7 +28,12 @@ module SafetyKit
28
28
  # @return [Integer]
29
29
  required :timestamp, Integer
30
30
 
31
- # @!method initialize(namespace:, stream_id:, text:, timestamp:, request_options: {})
31
+ # @!attribute artifact_id
32
+ #
33
+ # @return [String, nil]
34
+ optional :artifact_id, String
35
+
36
+ # @!method initialize(namespace:, stream_id:, text:, timestamp:, artifact_id: nil, request_options: {})
32
37
  # @param namespace [String] The namespace to ingest stream data into
33
38
  #
34
39
  # @param stream_id [String]
@@ -37,6 +42,8 @@ module SafetyKit
37
42
  #
38
43
  # @param timestamp [Integer]
39
44
  #
45
+ # @param artifact_id [String]
46
+ #
40
47
  # @param request_options [SafetyKit::RequestOptions, Hash{Symbol=>Object}]
41
48
  end
42
49
  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:, request_options: {})
46
+ # @overload add_frame(namespace, image_data_uri:, stream_id:, timestamp:, artifact_id: nil, request_options: {})
47
47
  #
48
48
  # @param namespace [String] The namespace to ingest stream data into
49
49
  #
@@ -53,6 +53,8 @@ module SafetyKit
53
53
  #
54
54
  # @param timestamp [Integer]
55
55
  #
56
+ # @param artifact_id [String]
57
+ #
56
58
  # @param request_options [SafetyKit::RequestOptions, Hash{Symbol=>Object}, nil]
57
59
  #
58
60
  # @return [SafetyKit::Models::StreamAddFrameResponse]
@@ -76,7 +78,7 @@ module SafetyKit
76
78
  # correctly with later frames. This method returns immediately after the
77
79
  # transcript has been accepted for processing.
78
80
  #
79
- # @overload add_transcript(namespace, stream_id:, text:, timestamp:, request_options: {})
81
+ # @overload add_transcript(namespace, stream_id:, text:, timestamp:, artifact_id: nil, request_options: {})
80
82
  #
81
83
  # @param namespace [String] The namespace to ingest stream data into
82
84
  #
@@ -86,6 +88,8 @@ module SafetyKit
86
88
  #
87
89
  # @param timestamp [Integer]
88
90
  #
91
+ # @param artifact_id [String]
92
+ #
89
93
  # @param request_options [SafetyKit::RequestOptions, Hash{Symbol=>Object}, nil]
90
94
  #
91
95
  # @return [SafetyKit::Models::StreamAddTranscriptResponse]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.43.0"
4
+ VERSION = "0.44.0"
5
5
  end
@@ -28,12 +28,19 @@ module SafetyKit
28
28
  sig { returns(Integer) }
29
29
  attr_accessor :timestamp
30
30
 
31
+ sig { returns(T.nilable(String)) }
32
+ attr_reader :artifact_id
33
+
34
+ sig { params(artifact_id: String).void }
35
+ attr_writer :artifact_id
36
+
31
37
  sig do
32
38
  params(
33
39
  namespace: String,
34
40
  image_data_uri: String,
35
41
  stream_id: String,
36
42
  timestamp: Integer,
43
+ artifact_id: String,
37
44
  request_options: SafetyKit::RequestOptions::OrHash
38
45
  ).returns(T.attached_class)
39
46
  end
@@ -47,6 +54,7 @@ module SafetyKit
47
54
  image_data_uri:,
48
55
  stream_id:,
49
56
  timestamp:,
57
+ artifact_id: nil,
50
58
  request_options: {}
51
59
  )
52
60
  end
@@ -58,6 +66,7 @@ module SafetyKit
58
66
  image_data_uri: String,
59
67
  stream_id: String,
60
68
  timestamp: Integer,
69
+ artifact_id: String,
61
70
  request_options: SafetyKit::RequestOptions
62
71
  }
63
72
  )
@@ -27,12 +27,19 @@ module SafetyKit
27
27
  sig { returns(Integer) }
28
28
  attr_accessor :timestamp
29
29
 
30
+ sig { returns(T.nilable(String)) }
31
+ attr_reader :artifact_id
32
+
33
+ sig { params(artifact_id: String).void }
34
+ attr_writer :artifact_id
35
+
30
36
  sig do
31
37
  params(
32
38
  namespace: String,
33
39
  stream_id: String,
34
40
  text: String,
35
41
  timestamp: Integer,
42
+ artifact_id: String,
36
43
  request_options: SafetyKit::RequestOptions::OrHash
37
44
  ).returns(T.attached_class)
38
45
  end
@@ -42,6 +49,7 @@ module SafetyKit
42
49
  stream_id:,
43
50
  text:,
44
51
  timestamp:,
52
+ artifact_id: nil,
45
53
  request_options: {}
46
54
  )
47
55
  end
@@ -53,6 +61,7 @@ module SafetyKit
53
61
  stream_id: String,
54
62
  text: String,
55
63
  timestamp: Integer,
64
+ artifact_id: String,
56
65
  request_options: SafetyKit::RequestOptions
57
66
  }
58
67
  )
@@ -37,6 +37,7 @@ module SafetyKit
37
37
  image_data_uri: String,
38
38
  stream_id: String,
39
39
  timestamp: Integer,
40
+ artifact_id: String,
40
41
  request_options: SafetyKit::RequestOptions::OrHash
41
42
  ).returns(SafetyKit::Models::StreamAddFrameResponse)
42
43
  end
@@ -50,6 +51,7 @@ module SafetyKit
50
51
  image_data_uri:,
51
52
  stream_id:,
52
53
  timestamp:,
54
+ artifact_id: nil,
53
55
  request_options: {}
54
56
  )
55
57
  end
@@ -66,6 +68,7 @@ module SafetyKit
66
68
  stream_id: String,
67
69
  text: String,
68
70
  timestamp: Integer,
71
+ artifact_id: String,
69
72
  request_options: SafetyKit::RequestOptions::OrHash
70
73
  ).returns(SafetyKit::Models::StreamAddTranscriptResponse)
71
74
  end
@@ -75,6 +78,7 @@ module SafetyKit
75
78
  stream_id:,
76
79
  text:,
77
80
  timestamp:,
81
+ artifact_id: nil,
78
82
  request_options: {}
79
83
  )
80
84
  end
@@ -5,7 +5,8 @@ module SafetyKit
5
5
  namespace: String,
6
6
  image_data_uri: String,
7
7
  stream_id: String,
8
- timestamp: Integer
8
+ timestamp: Integer,
9
+ artifact_id: String
9
10
  }
10
11
  & SafetyKit::Internal::Type::request_parameters
11
12
 
@@ -21,11 +22,16 @@ module SafetyKit
21
22
 
22
23
  attr_accessor timestamp: Integer
23
24
 
25
+ attr_reader artifact_id: String?
26
+
27
+ def artifact_id=: (String) -> String
28
+
24
29
  def initialize: (
25
30
  namespace: String,
26
31
  image_data_uri: String,
27
32
  stream_id: String,
28
33
  timestamp: Integer,
34
+ ?artifact_id: String,
29
35
  ?request_options: SafetyKit::request_opts
30
36
  ) -> void
31
37
 
@@ -34,6 +40,7 @@ module SafetyKit
34
40
  image_data_uri: String,
35
41
  stream_id: String,
36
42
  timestamp: Integer,
43
+ artifact_id: String,
37
44
  request_options: SafetyKit::RequestOptions
38
45
  }
39
46
  end
@@ -1,7 +1,13 @@
1
1
  module SafetyKit
2
2
  module Models
3
3
  type stream_add_transcript_params =
4
- { namespace: String, stream_id: String, text: String, timestamp: Integer }
4
+ {
5
+ namespace: String,
6
+ stream_id: String,
7
+ text: String,
8
+ timestamp: Integer,
9
+ artifact_id: String
10
+ }
5
11
  & SafetyKit::Internal::Type::request_parameters
6
12
 
7
13
  class StreamAddTranscriptParams < SafetyKit::Internal::Type::BaseModel
@@ -16,11 +22,16 @@ module SafetyKit
16
22
 
17
23
  attr_accessor timestamp: Integer
18
24
 
25
+ attr_reader artifact_id: String?
26
+
27
+ def artifact_id=: (String) -> String
28
+
19
29
  def initialize: (
20
30
  namespace: String,
21
31
  stream_id: String,
22
32
  text: String,
23
33
  timestamp: Integer,
34
+ ?artifact_id: String,
24
35
  ?request_options: SafetyKit::request_opts
25
36
  ) -> void
26
37
 
@@ -29,6 +40,7 @@ module SafetyKit
29
40
  stream_id: String,
30
41
  text: String,
31
42
  timestamp: Integer,
43
+ artifact_id: String,
32
44
  request_options: SafetyKit::RequestOptions
33
45
  }
34
46
  end
@@ -13,6 +13,7 @@ module SafetyKit
13
13
  image_data_uri: String,
14
14
  stream_id: String,
15
15
  timestamp: Integer,
16
+ ?artifact_id: String,
16
17
  ?request_options: SafetyKit::request_opts
17
18
  ) -> SafetyKit::Models::StreamAddFrameResponse
18
19
 
@@ -21,6 +22,7 @@ module SafetyKit
21
22
  stream_id: String,
22
23
  text: String,
23
24
  timestamp: Integer,
25
+ ?artifact_id: String,
24
26
  ?request_options: SafetyKit::request_opts
25
27
  ) -> SafetyKit::Models::StreamAddTranscriptResponse
26
28
 
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.43.0
4
+ version: 0.44.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-07-18 00:00:00.000000000 Z
11
+ date: 2026-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi