safetykit 0.36.0 → 0.38.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 +21 -0
- data/README.md +1 -1
- data/lib/safety_kit/client.rb +2 -2
- data/lib/safety_kit/models/data_create_upload_url_params.rb +1 -0
- data/lib/safety_kit/models/data_update_settings_params.rb +1 -0
- data/lib/safety_kit/models/deletion_request_create_params.rb +2 -1
- data/lib/safety_kit/models/deletion_request_create_response.rb +6 -6
- data/lib/safety_kit/resources/deletion_requests.rb +5 -4
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/client.rbi +2 -2
- data/rbi/safety_kit/models/data_create_upload_url_params.rbi +5 -0
- data/rbi/safety_kit/models/data_update_settings_params.rbi +5 -0
- data/rbi/safety_kit/models/deletion_request_create_params.rbi +4 -2
- data/rbi/safety_kit/models/deletion_request_create_response.rbi +6 -6
- data/rbi/safety_kit/resources/deletion_requests.rbi +7 -5
- data/sig/safety_kit/models/data_create_upload_url_params.rbs +2 -0
- data/sig/safety_kit/models/data_update_settings_params.rbs +2 -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: ff72ad728938a8307e681b9fde61aac54b0741a14909ce107a3a187e623f0b02
|
|
4
|
+
data.tar.gz: c488cade87250091d245a2769b2cd724600800179a3461e02862b7f501a5c1f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32f7d3c20edcc2662d3bfc88f5df8452cf1fe3fa40f95e78d7959dfc02deb806bde921c518e4de4270946db965ce79c5dc9fcb26aa452d71895f2684426ee1e8
|
|
7
|
+
data.tar.gz: d7bb166f624757314bc6b11e74d6158685ca6f3132793e0c03ed06b96e6d9f9d3816fb63662355a6de18af0ebeb45b275ebe750a6943c115c62e32ca15a57535
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.0 (2026-07-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.37.0...v0.38.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.37.0...v0.38.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([da68fbf](https://github.com/GetSafetyKit/safetykit-ruby/commit/da68fbf3326717db209a179860844db751fe9ae1))
|
|
10
|
+
|
|
11
|
+
## 0.37.0 (2026-07-02)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.36.0...v0.37.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.36.0...v0.37.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([c829ea3](https://github.com/GetSafetyKit/safetykit-ruby/commit/c829ea3b29adf9359b451c45a5070bd51ef6417e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **internal:** bound formatter parallelism to CPU count ([b7f4940](https://github.com/GetSafetyKit/safetykit-ruby/commit/b7f494006a515a87f61f9f3e5cc20ba91235347f))
|
|
23
|
+
|
|
3
24
|
## 0.36.0 (2026-06-25)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.35.0...v0.36.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.35.0...v0.36.0)
|
data/README.md
CHANGED
data/lib/safety_kit/client.rb
CHANGED
|
@@ -37,8 +37,8 @@ module SafetyKit
|
|
|
37
37
|
# @return [SafetyKit::Resources::Async]
|
|
38
38
|
attr_reader :async
|
|
39
39
|
|
|
40
|
-
# Submit end-user deletion requests
|
|
41
|
-
#
|
|
40
|
+
# Submit end-user deletion requests. Accepted requests are processed
|
|
41
|
+
# asynchronously.
|
|
42
42
|
# @return [SafetyKit::Resources::DeletionRequests]
|
|
43
43
|
attr_reader :deletion_requests
|
|
44
44
|
|
|
@@ -16,7 +16,8 @@ module SafetyKit
|
|
|
16
16
|
|
|
17
17
|
# @!attribute external_request_id
|
|
18
18
|
# Optional caller-provided request identifier for correlating the deletion request
|
|
19
|
-
# in both systems.
|
|
19
|
+
# in both systems. Repeat submissions with the same external_request_id are
|
|
20
|
+
# deduplicated and return the original deletion_request_id.
|
|
20
21
|
#
|
|
21
22
|
# @return [String, nil]
|
|
22
23
|
optional :external_request_id, String
|
|
@@ -5,13 +5,13 @@ module SafetyKit
|
|
|
5
5
|
# @see SafetyKit::Resources::DeletionRequests#create
|
|
6
6
|
class DeletionRequestCreateResponse < SafetyKit::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute deletion_request_id
|
|
8
|
-
# SafetyKit correlation identifier for the
|
|
8
|
+
# SafetyKit correlation identifier for the deletion request.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :deletion_request_id, String
|
|
12
12
|
|
|
13
13
|
# @!attribute status
|
|
14
|
-
# Deletion request was accepted and
|
|
14
|
+
# Deletion request was accepted and queued for asynchronous processing.
|
|
15
15
|
#
|
|
16
16
|
# @return [Symbol, SafetyKit::Models::DeletionRequestCreateResponse::Status]
|
|
17
17
|
required :status, enum: -> { SafetyKit::Models::DeletionRequestCreateResponse::Status }
|
|
@@ -23,15 +23,15 @@ module SafetyKit
|
|
|
23
23
|
optional :external_request_id, String
|
|
24
24
|
|
|
25
25
|
# @!method initialize(deletion_request_id:, status:, external_request_id: nil)
|
|
26
|
-
# Response returned after SafetyKit accepts and
|
|
26
|
+
# Response returned after SafetyKit accepts and queues a deletion request.
|
|
27
27
|
#
|
|
28
|
-
# @param deletion_request_id [String] SafetyKit correlation identifier for the
|
|
28
|
+
# @param deletion_request_id [String] SafetyKit correlation identifier for the deletion request.
|
|
29
29
|
#
|
|
30
|
-
# @param status [Symbol, SafetyKit::Models::DeletionRequestCreateResponse::Status] Deletion request was accepted and
|
|
30
|
+
# @param status [Symbol, SafetyKit::Models::DeletionRequestCreateResponse::Status] Deletion request was accepted and queued for asynchronous processing.
|
|
31
31
|
#
|
|
32
32
|
# @param external_request_id [String] Caller-provided request identifier, if supplied.
|
|
33
33
|
|
|
34
|
-
# Deletion request was accepted and
|
|
34
|
+
# Deletion request was accepted and queued for asynchronous processing.
|
|
35
35
|
#
|
|
36
36
|
# @see SafetyKit::Models::DeletionRequestCreateResponse#status
|
|
37
37
|
module Status
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
module SafetyKit
|
|
4
4
|
module Resources
|
|
5
|
-
# Submit end-user deletion requests
|
|
6
|
-
#
|
|
5
|
+
# Submit end-user deletion requests. Accepted requests are processed
|
|
6
|
+
# asynchronously.
|
|
7
7
|
class DeletionRequests
|
|
8
8
|
# Some parameter documentations has been truncated, see
|
|
9
9
|
# {SafetyKit::Models::DeletionRequestCreateParams} for more details.
|
|
10
10
|
#
|
|
11
|
-
# Submit an end-user data deletion request
|
|
12
|
-
#
|
|
11
|
+
# Submit an end-user data deletion request. SafetyKit validates the request,
|
|
12
|
+
# durably queues it, and asynchronously deletes the stored data associated with
|
|
13
|
+
# the subject user.
|
|
13
14
|
#
|
|
14
15
|
# @overload create(subject_user_id:, external_request_id: nil, requested_at: nil, request_options: {})
|
|
15
16
|
#
|
data/lib/safety_kit/version.rb
CHANGED
data/rbi/safety_kit/client.rbi
CHANGED
|
@@ -32,8 +32,8 @@ module SafetyKit
|
|
|
32
32
|
sig { returns(SafetyKit::Resources::Async) }
|
|
33
33
|
attr_reader :async
|
|
34
34
|
|
|
35
|
-
# Submit end-user deletion requests
|
|
36
|
-
#
|
|
35
|
+
# Submit end-user deletion requests. Accepted requests are processed
|
|
36
|
+
# asynchronously.
|
|
37
37
|
sig { returns(SafetyKit::Resources::DeletionRequests) }
|
|
38
38
|
attr_reader :deletion_requests
|
|
39
39
|
|
|
@@ -445,6 +445,11 @@ module SafetyKit
|
|
|
445
445
|
:thread,
|
|
446
446
|
SafetyKit::DataCreateUploadURLParams::Schema::DisplayHint::Type::TaggedSymbol
|
|
447
447
|
)
|
|
448
|
+
TWO_PERSON_CHAT =
|
|
449
|
+
T.let(
|
|
450
|
+
:two_person_chat,
|
|
451
|
+
SafetyKit::DataCreateUploadURLParams::Schema::DisplayHint::Type::TaggedSymbol
|
|
452
|
+
)
|
|
448
453
|
MESSAGE =
|
|
449
454
|
T.let(
|
|
450
455
|
:message,
|
|
@@ -430,6 +430,11 @@ module SafetyKit
|
|
|
430
430
|
:thread,
|
|
431
431
|
SafetyKit::DataUpdateSettingsParams::Schema::DisplayHint::Type::TaggedSymbol
|
|
432
432
|
)
|
|
433
|
+
TWO_PERSON_CHAT =
|
|
434
|
+
T.let(
|
|
435
|
+
:two_person_chat,
|
|
436
|
+
SafetyKit::DataUpdateSettingsParams::Schema::DisplayHint::Type::TaggedSymbol
|
|
437
|
+
)
|
|
433
438
|
MESSAGE =
|
|
434
439
|
T.let(
|
|
435
440
|
:message,
|
|
@@ -20,7 +20,8 @@ module SafetyKit
|
|
|
20
20
|
attr_accessor :subject_user_id
|
|
21
21
|
|
|
22
22
|
# Optional caller-provided request identifier for correlating the deletion request
|
|
23
|
-
# in both systems.
|
|
23
|
+
# in both systems. Repeat submissions with the same external_request_id are
|
|
24
|
+
# deduplicated and return the original deletion_request_id.
|
|
24
25
|
sig { returns(T.nilable(String)) }
|
|
25
26
|
attr_reader :external_request_id
|
|
26
27
|
|
|
@@ -48,7 +49,8 @@ module SafetyKit
|
|
|
48
49
|
# deleted.
|
|
49
50
|
subject_user_id:,
|
|
50
51
|
# Optional caller-provided request identifier for correlating the deletion request
|
|
51
|
-
# in both systems.
|
|
52
|
+
# in both systems. Repeat submissions with the same external_request_id are
|
|
53
|
+
# deduplicated and return the original deletion_request_id.
|
|
52
54
|
external_request_id: nil,
|
|
53
55
|
# The time the deletion request was received in your system, as an ISO 8601
|
|
54
56
|
# datetime string.
|
|
@@ -11,11 +11,11 @@ module SafetyKit
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# SafetyKit correlation identifier for the
|
|
14
|
+
# SafetyKit correlation identifier for the deletion request.
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :deletion_request_id
|
|
17
17
|
|
|
18
|
-
# Deletion request was accepted and
|
|
18
|
+
# Deletion request was accepted and queued for asynchronous processing.
|
|
19
19
|
sig do
|
|
20
20
|
returns(
|
|
21
21
|
SafetyKit::Models::DeletionRequestCreateResponse::Status::TaggedSymbol
|
|
@@ -30,7 +30,7 @@ module SafetyKit
|
|
|
30
30
|
sig { params(external_request_id: String).void }
|
|
31
31
|
attr_writer :external_request_id
|
|
32
32
|
|
|
33
|
-
# Response returned after SafetyKit accepts and
|
|
33
|
+
# Response returned after SafetyKit accepts and queues a deletion request.
|
|
34
34
|
sig do
|
|
35
35
|
params(
|
|
36
36
|
deletion_request_id: String,
|
|
@@ -40,9 +40,9 @@ module SafetyKit
|
|
|
40
40
|
).returns(T.attached_class)
|
|
41
41
|
end
|
|
42
42
|
def self.new(
|
|
43
|
-
# SafetyKit correlation identifier for the
|
|
43
|
+
# SafetyKit correlation identifier for the deletion request.
|
|
44
44
|
deletion_request_id:,
|
|
45
|
-
# Deletion request was accepted and
|
|
45
|
+
# Deletion request was accepted and queued for asynchronous processing.
|
|
46
46
|
status:,
|
|
47
47
|
# Caller-provided request identifier, if supplied.
|
|
48
48
|
external_request_id: nil
|
|
@@ -62,7 +62,7 @@ module SafetyKit
|
|
|
62
62
|
def to_hash
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
# Deletion request was accepted and
|
|
65
|
+
# Deletion request was accepted and queued for asynchronous processing.
|
|
66
66
|
module Status
|
|
67
67
|
extend SafetyKit::Internal::Type::Enum
|
|
68
68
|
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module SafetyKit
|
|
4
4
|
module Resources
|
|
5
|
-
# Submit end-user deletion requests
|
|
6
|
-
#
|
|
5
|
+
# Submit end-user deletion requests. Accepted requests are processed
|
|
6
|
+
# asynchronously.
|
|
7
7
|
class DeletionRequests
|
|
8
|
-
# Submit an end-user data deletion request
|
|
9
|
-
#
|
|
8
|
+
# Submit an end-user data deletion request. SafetyKit validates the request,
|
|
9
|
+
# durably queues it, and asynchronously deletes the stored data associated with
|
|
10
|
+
# the subject user.
|
|
10
11
|
sig do
|
|
11
12
|
params(
|
|
12
13
|
subject_user_id: String,
|
|
@@ -20,7 +21,8 @@ module SafetyKit
|
|
|
20
21
|
# deleted.
|
|
21
22
|
subject_user_id:,
|
|
22
23
|
# Optional caller-provided request identifier for correlating the deletion request
|
|
23
|
-
# in both systems.
|
|
24
|
+
# in both systems. Repeat submissions with the same external_request_id are
|
|
25
|
+
# deduplicated and return the original deletion_request_id.
|
|
24
26
|
external_request_id: nil,
|
|
25
27
|
# The time the deletion request was received in your system, as an ISO 8601
|
|
26
28
|
# datetime string.
|
|
@@ -159,6 +159,7 @@ module SafetyKit
|
|
|
159
159
|
| :audio_set
|
|
160
160
|
| :body
|
|
161
161
|
| :thread
|
|
162
|
+
| :two_person_chat
|
|
162
163
|
| :message
|
|
163
164
|
| :profile
|
|
164
165
|
| :money
|
|
@@ -187,6 +188,7 @@ module SafetyKit
|
|
|
187
188
|
AUDIO_SET: :audio_set
|
|
188
189
|
BODY: :body
|
|
189
190
|
THREAD: :thread
|
|
191
|
+
TWO_PERSON_CHAT: :two_person_chat
|
|
190
192
|
MESSAGE: :message
|
|
191
193
|
PROFILE: :profile
|
|
192
194
|
MONEY: :money
|
|
@@ -155,6 +155,7 @@ module SafetyKit
|
|
|
155
155
|
| :audio_set
|
|
156
156
|
| :body
|
|
157
157
|
| :thread
|
|
158
|
+
| :two_person_chat
|
|
158
159
|
| :message
|
|
159
160
|
| :profile
|
|
160
161
|
| :money
|
|
@@ -183,6 +184,7 @@ module SafetyKit
|
|
|
183
184
|
AUDIO_SET: :audio_set
|
|
184
185
|
BODY: :body
|
|
185
186
|
THREAD: :thread
|
|
187
|
+
TWO_PERSON_CHAT: :two_person_chat
|
|
186
188
|
MESSAGE: :message
|
|
187
189
|
PROFILE: :profile
|
|
188
190
|
MONEY: :money
|
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.38.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-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|