safetykit 0.41.0 → 0.42.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: 66201fbaeb030a2b7518147ad2ef659300eb51bb92bd6d16c63b70b5cb428301
4
- data.tar.gz: 78229890f0c36346293b5561b14c3c28b6215edd0443bb2c46a3532218fae67b
3
+ metadata.gz: edffd2653865558912c56bead33b990ba0805681fa73149c4047b187b4cf2cbb
4
+ data.tar.gz: dbfc43c05caa3f8a9bb601bfee579a8a1979aa3ee3939fba2c588b7297ad65d7
5
5
  SHA512:
6
- metadata.gz: 168216935f69680e825fdb46afbcb7f79f2e0ae1451e26e9bcb336c075d3ee4b2e9a6b8ee33ce889220a1c8d0d99220c90f6a7c1e35cf75d3aa0ba203c6896bf
7
- data.tar.gz: 04f11bd1bbde3e55662bdcd9f8ddeb588f5b7a557eb924f2c3c68aae8ec48ca363c68e512cae6dfafb7d0add16fa91ad2faa970ba39a86b22669b1e7d5e0f6b1
6
+ metadata.gz: 6d820ca8a1312d4e3a127252954bb95effb1a27e51aceb1d8a69b8a334d9e44f14fd250459c66994c142410b1979c418bb64afab93552df843084e035ded878c
7
+ data.tar.gz: 42e81a1984b01d3a91a522d1ea534356925de459c107df797c72ce65504f4ec60f9c47c3a12b2d26b604d0d6044148f63b53679ab79f8972883537b25b69fe4d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.42.0 (2026-07-18)
4
+
5
+ Full Changelog: [v0.41.0...v0.42.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.41.0...v0.42.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([19ed205](https://github.com/GetSafetyKit/safetykit-ruby/commit/19ed2054daafec6085e90b5be7420e025183207f))
10
+
3
11
  ## 0.41.0 (2026-07-16)
4
12
 
5
13
  Full Changelog: [v0.40.0...v0.41.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.40.0...v0.41.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.41.0"
20
+ gem "safetykit", "~> 0.42.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -51,8 +51,9 @@ module SafetyKit
51
51
 
52
52
  # @!attribute content_type
53
53
  # The type of content (image_url, video_url, audio_url, website_url, datetime,
54
- # metadata, or card). When specified as a URL type, SafetyKit will process the
55
- # URL. Use 'metadata' for fields that should be stored but not indexed.
54
+ # metadata, markdown, or html). When specified as a URL type, SafetyKit will
55
+ # process the URL. Use 'metadata' for fields that should be stored but not
56
+ # indexed, and 'markdown' or 'html' for rich text.
56
57
  #
57
58
  # @return [Symbol, SafetyKit::Models::DataUpdateSettingsParams::Schema::ContentType, nil]
58
59
  optional :content_type, enum: -> { SafetyKit::DataUpdateSettingsParams::Schema::ContentType }
@@ -94,8 +95,9 @@ module SafetyKit
94
95
  # @param ingest_as [Symbol, SafetyKit::Models::DataUpdateSettingsParams::Schema::IngestAs] Optional parser to apply before indexing this field.
95
96
 
96
97
  # The type of content (image_url, video_url, audio_url, website_url, datetime,
97
- # metadata, or card). When specified as a URL type, SafetyKit will process the
98
- # URL. Use 'metadata' for fields that should be stored but not indexed.
98
+ # metadata, markdown, or html). When specified as a URL type, SafetyKit will
99
+ # process the URL. Use 'metadata' for fields that should be stored but not
100
+ # indexed, and 'markdown' or 'html' for rich text.
99
101
  #
100
102
  # @see SafetyKit::Models::DataUpdateSettingsParams::Schema#content_type
101
103
  module ContentType
@@ -107,7 +109,8 @@ module SafetyKit
107
109
  WEBSITE_URL = :website_url
108
110
  DATETIME = :datetime
109
111
  METADATA = :metadata
110
- CARD = :card
112
+ MARKDOWN = :markdown
113
+ HTML = :html
111
114
 
112
115
  # @!method self.values
113
116
  # @return [Array<Symbol>]
@@ -11,7 +11,12 @@ module SafetyKit
11
11
  # Beta. Queue backend events for asynchronous ingestion. This endpoint accepts the
12
12
  # same request body as POST /v1/events, writes one SQS message per event, and
13
13
  # returns after the events are queued. SafetyKit later processes the queued events
14
- # through the standard event ingestion path.
14
+ # through the standard event ingestion path. Event strings support tab (U+0009),
15
+ # line feed (U+000A), carriage return (U+000D), and characters in the ranges
16
+ # U+0020–U+D7FF, U+E000–U+FFFD, and U+10000–U+10FFFF. The endpoint strips all
17
+ # other code points before queueing the event; clients should sanitize them before
18
+ # sending because they are unsupported and can cause errors in other ingestion
19
+ # paths.
15
20
  #
16
21
  # @overload create_async(body:, request_options: {})
17
22
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.41.0"
4
+ VERSION = "0.42.0"
5
5
  end
@@ -106,8 +106,9 @@ module SafetyKit
106
106
  attr_writer :belongs_to
107
107
 
108
108
  # The type of content (image_url, video_url, audio_url, website_url, datetime,
109
- # metadata, or card). When specified as a URL type, SafetyKit will process the
110
- # URL. Use 'metadata' for fields that should be stored but not indexed.
109
+ # metadata, markdown, or html). When specified as a URL type, SafetyKit will
110
+ # process the URL. Use 'metadata' for fields that should be stored but not
111
+ # indexed, and 'markdown' or 'html' for rich text.
111
112
  sig do
112
113
  returns(
113
114
  T.nilable(
@@ -186,8 +187,9 @@ module SafetyKit
186
187
  # relationship with that namespace.
187
188
  belongs_to: nil,
188
189
  # The type of content (image_url, video_url, audio_url, website_url, datetime,
189
- # metadata, or card). When specified as a URL type, SafetyKit will process the
190
- # URL. Use 'metadata' for fields that should be stored but not indexed.
190
+ # metadata, markdown, or html). When specified as a URL type, SafetyKit will
191
+ # process the URL. Use 'metadata' for fields that should be stored but not
192
+ # indexed, and 'markdown' or 'html' for rich text.
191
193
  content_type: nil,
192
194
  # Display hint for UI rendering of this field
193
195
  display_hint: nil,
@@ -218,8 +220,9 @@ module SafetyKit
218
220
  end
219
221
 
220
222
  # The type of content (image_url, video_url, audio_url, website_url, datetime,
221
- # metadata, or card). When specified as a URL type, SafetyKit will process the
222
- # URL. Use 'metadata' for fields that should be stored but not indexed.
223
+ # metadata, markdown, or html). When specified as a URL type, SafetyKit will
224
+ # process the URL. Use 'metadata' for fields that should be stored but not
225
+ # indexed, and 'markdown' or 'html' for rich text.
223
226
  module ContentType
224
227
  extend SafetyKit::Internal::Type::Enum
225
228
 
@@ -262,9 +265,14 @@ module SafetyKit
262
265
  :metadata,
263
266
  SafetyKit::DataUpdateSettingsParams::Schema::ContentType::TaggedSymbol
264
267
  )
265
- CARD =
268
+ MARKDOWN =
266
269
  T.let(
267
- :card,
270
+ :markdown,
271
+ SafetyKit::DataUpdateSettingsParams::Schema::ContentType::TaggedSymbol
272
+ )
273
+ HTML =
274
+ T.let(
275
+ :html,
268
276
  SafetyKit::DataUpdateSettingsParams::Schema::ContentType::TaggedSymbol
269
277
  )
270
278
 
@@ -8,7 +8,12 @@ module SafetyKit
8
8
  # Beta. Queue backend events for asynchronous ingestion. This endpoint accepts the
9
9
  # same request body as POST /v1/events, writes one SQS message per event, and
10
10
  # returns after the events are queued. SafetyKit later processes the queued events
11
- # through the standard event ingestion path.
11
+ # through the standard event ingestion path. Event strings support tab (U+0009),
12
+ # line feed (U+000A), carriage return (U+000D), and characters in the ranges
13
+ # U+0020–U+D7FF, U+E000–U+FFFD, and U+10000–U+10FFFF. The endpoint strips all
14
+ # other code points before queueing the event; clients should sanitize them before
15
+ # sending because they are unsupported and can cause errors in other ingestion
16
+ # paths.
12
17
  sig do
13
18
  params(
14
19
  body:
@@ -97,7 +97,8 @@ module SafetyKit
97
97
  | :website_url
98
98
  | :datetime
99
99
  | :metadata
100
- | :card
100
+ | :markdown
101
+ | :html
101
102
 
102
103
  module ContentType
103
104
  extend SafetyKit::Internal::Type::Enum
@@ -108,7 +109,8 @@ module SafetyKit
108
109
  WEBSITE_URL: :website_url
109
110
  DATETIME: :datetime
110
111
  METADATA: :metadata
111
- CARD: :card
112
+ MARKDOWN: :markdown
113
+ HTML: :html
112
114
 
113
115
  def self?.values: -> ::Array[SafetyKit::Models::DataUpdateSettingsParams::Schema::content_type]
114
116
  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.41.0
4
+ version: 0.42.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-16 00:00:00.000000000 Z
11
+ date: 2026-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi