knockapi 1.9.0 → 1.10.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: 0d32e3d8651dc87c73b9b678f58a739ebae4ec3bf39566add6a6deea3713f572
4
- data.tar.gz: 2f67c250f6d52a2e923ed33796b7d12ce0d45f74605c5a3a52e2d9590ea658c7
3
+ metadata.gz: 15d3524531f301e1bc6912fd6e30877decb6f10e86f3fcecb879a1aaa3e7e34a
4
+ data.tar.gz: 294acbf61c588df5d1060a59a1af639d088b6d85911a963ca924c1caad0795fa
5
5
  SHA512:
6
- metadata.gz: 60af3d7b09617d1f215e696682c0b0e870d41676446f681de43189ae5f150af62d5e76af8e5b95ecd7b819a3db31a23903d1c65e4dd912b7f7cdf466be110436
7
- data.tar.gz: e4b370e0705f79f236d1d8796d47c3846dd0891d38a83336ea64ef3c1c383c8d22b38ddbdfa1bc34d9efbfc3eb69761383d3dad1c1f56e574af0662fe9f46d40
6
+ metadata.gz: 519f43929f720e0d191b0259478af9e4f22c5a5f42ee78c2e6c8435af6d3ad3d72caf9e18e4bbd177f6bd5a05f9aad0af33a2d4b74bd7ce4c6332247061c133c
7
+ data.tar.gz: ac2d4483166ecbd8cb89b60987cd3bfb936c8338a8e0130aa79c483ddef7f6c973b72c2f7ce72ed6bceeef561ffe3b9882072f4e00fc16257e64fcb0e6952fab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.10.0 (2025-07-15)
4
+
5
+ Full Changelog: [v1.9.0...v1.10.0](https://github.com/knocklabs/knock-ruby/compare/v1.9.0...v1.10.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([d8ce1f1](https://github.com/knocklabs/knock-ruby/commit/d8ce1f14fbfd984d72a8eaa81a060659f46eb9b7))
10
+ * **api:** api update ([b3ed2ae](https://github.com/knocklabs/knock-ruby/commit/b3ed2ae46f54a0e046a8bcef0492c6ae6ee2555a))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **ci:** only run for pushes and fork pull requests ([854d6f0](https://github.com/knocklabs/knock-ruby/commit/854d6f0a527695decdb8e0e4a0093bc3d94eff9f))
16
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([f77e1d6](https://github.com/knocklabs/knock-ruby/commit/f77e1d62802fc88dcb62764834ac1c71005d1f87))
17
+
3
18
  ## 1.9.0 (2025-06-27)
4
19
 
5
20
  Full Changelog: [v1.8.1...v1.9.0](https://github.com/knocklabs/knock-ruby/compare/v1.8.1...v1.9.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 "knockapi", "~> 1.9.0"
20
+ gem "knockapi", "~> 1.10.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -471,6 +471,7 @@ module Knockapi
471
471
  self.class.validate!(req)
472
472
  model = req.fetch(:model) { Knockapi::Internal::Type::Unknown }
473
473
  opts = req[:options].to_h
474
+ unwrap = req[:unwrap]
474
475
  Knockapi::RequestOptions.validate!(opts)
475
476
  request = build_request(req.except(:options), opts)
476
477
  url = request.fetch(:url)
@@ -487,11 +488,18 @@ module Knockapi
487
488
  decoded = Knockapi::Internal::Util.decode_content(response, stream: stream)
488
489
  case req
489
490
  in {stream: Class => st}
490
- st.new(model: model, url: url, status: status, response: response, stream: decoded)
491
+ st.new(
492
+ model: model,
493
+ url: url,
494
+ status: status,
495
+ response: response,
496
+ unwrap: unwrap,
497
+ stream: decoded
498
+ )
491
499
  in {page: Class => page}
492
500
  page.new(client: self, req: req, headers: response, page_data: decoded)
493
501
  else
494
- unwrapped = Knockapi::Internal::Util.dig(decoded, req[:unwrap])
502
+ unwrapped = Knockapi::Internal::Util.dig(decoded, unwrap)
495
503
  Knockapi::Internal::Type::Converter.coerce(model, unwrapped)
496
504
  end
497
505
  end
@@ -57,7 +57,8 @@ module Knockapi
57
57
  # @!attribute types
58
58
  # Mix and match channel types by providing a comma-separated list of any
59
59
  # combination of public_channel, private_channel, mpim, im. Defaults to
60
- # `"public_channel,private_channel"`.
60
+ # `"public_channel,private_channel"`. If the user's Slack ID is unavailable, this
61
+ # option is ignored and only public channels are returned.
61
62
  #
62
63
  # @return [String, nil]
63
64
  optional :types, String
@@ -53,10 +53,10 @@ module Knockapi
53
53
  optional :actor, union: -> { Knockapi::Recipient }, nil?: true
54
54
 
55
55
  # @!attribute data
56
- # An optional map of data to pass into the workflow execution. There is a 1024
57
- # byte limit on the size of any single string value (with the exception of
58
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
59
- # size of the full `data` payload.
56
+ # An optional map of data to pass into the workflow execution. There is a 10MB
57
+ # limit on the size of the full `data` payload. Any individual string value
58
+ # greater than 1024 bytes in length will be
59
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
60
60
  #
61
61
  # @return [Hash{Symbol=>Object}, nil]
62
62
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -103,7 +103,7 @@ module Knockapi
103
103
  #
104
104
  # @param actor [Knockapi::Models::User, Knockapi::Models::Object, nil] A recipient of a notification, which is either a user or an object.
105
105
  #
106
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
106
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
107
107
  #
108
108
  # @param last_occurrence_at [Time, nil] The last occurrence of the schedule.
109
109
  #
@@ -28,10 +28,10 @@ module Knockapi
28
28
  optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true
29
29
 
30
30
  # @!attribute data
31
- # An optional map of data to pass into the workflow execution. There is a 1024
32
- # byte limit on the size of any single string value (with the exception of
33
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
34
- # size of the full `data` payload.
31
+ # An optional map of data to pass into the workflow execution. There is a 10MB
32
+ # limit on the size of the full `data` payload. Any individual string value
33
+ # greater than 1024 bytes in length will be
34
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
35
35
  #
36
36
  # @return [Hash{Symbol=>Object}, nil]
37
37
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -70,7 +70,7 @@ module Knockapi
70
70
  #
71
71
  # @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
72
72
  #
73
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
73
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
74
74
  #
75
75
  # @param ending_at [Time, nil] The ending date and time for the schedule.
76
76
  #
@@ -21,10 +21,10 @@ module Knockapi
21
21
  optional :actor, union: -> { Knockapi::RecipientReference }, nil?: true
22
22
 
23
23
  # @!attribute data
24
- # An optional map of data to pass into the workflow execution. There is a 1024
25
- # byte limit on the size of any single string value (with the exception of
26
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
27
- # size of the full `data` payload.
24
+ # An optional map of data to pass into the workflow execution. There is a 10MB
25
+ # limit on the size of the full `data` payload. Any individual string value
26
+ # greater than 1024 bytes in length will be
27
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
28
28
  #
29
29
  # @return [Hash{Symbol=>Object}, nil]
30
30
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -61,7 +61,7 @@ module Knockapi
61
61
  #
62
62
  # @param actor [String, Knockapi::Models::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
63
63
  #
64
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
64
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
65
65
  #
66
66
  # @param ending_at [Time, nil] The ending date and time for the schedule.
67
67
  #
@@ -36,10 +36,10 @@ module Knockapi
36
36
  optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true
37
37
 
38
38
  # @!attribute data
39
- # An optional map of data to pass into the workflow execution. There is a 1024
40
- # byte limit on the size of any single string value (with the exception of
41
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
42
- # size of the full `data` payload.
39
+ # An optional map of data to pass into the workflow execution. There is a 10MB
40
+ # limit on the size of the full `data` payload. Any individual string value
41
+ # greater than 1024 bytes in length will be
42
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
43
43
  #
44
44
  # @return [Hash{Symbol=>Object}, nil]
45
45
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -86,7 +86,7 @@ module Knockapi
86
86
  #
87
87
  # @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
88
88
  #
89
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
89
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
90
90
  #
91
91
  # @param ending_at [Time, nil] The ending date and time for the schedule.
92
92
  #
@@ -33,10 +33,10 @@ module Knockapi
33
33
  optional :cancellation_key, String, nil?: true
34
34
 
35
35
  # @!attribute data
36
- # An optional map of data to pass into the workflow execution. There is a 1024
37
- # byte limit on the size of any single string value (with the exception of
38
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
39
- # size of the full `data` payload.
36
+ # An optional map of data to pass into the workflow execution. There is a 10MB
37
+ # limit on the size of the full `data` payload. Any individual string value
38
+ # greater than 1024 bytes in length will be
39
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
40
40
  #
41
41
  # @return [Hash{Symbol=>Object}, nil]
42
42
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -57,7 +57,7 @@ module Knockapi
57
57
  #
58
58
  # @param cancellation_key [String, nil] An optional key that is used to reference a specific workflow trigger request wh
59
59
  #
60
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
60
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
61
61
  #
62
62
  # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
63
63
  #
@@ -23,7 +23,7 @@ module Knockapi
23
23
  #
24
24
  # @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
25
25
  #
26
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
26
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
27
27
  #
28
28
  # @param ending_at [Time, nil] The ending date and time for the schedule.
29
29
  #
@@ -64,7 +64,7 @@ module Knockapi
64
64
  #
65
65
  # @param actor [String, Knockapi::Models::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
66
66
  #
67
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
67
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
68
68
  #
69
69
  # @param ending_at [Time, nil] The ending date and time for the schedule.
70
70
  #
@@ -53,7 +53,7 @@ module Knockapi
53
53
  #
54
54
  # @param cancellation_key [String, nil] An optional key that is used to reference a specific workflow trigger request wh
55
55
  #
56
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
56
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
57
57
  #
58
58
  # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
59
59
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knockapi
4
- VERSION = "1.9.0"
4
+ VERSION = "1.10.0"
5
5
  end
@@ -107,7 +107,8 @@ module Knockapi
107
107
 
108
108
  # Mix and match channel types by providing a comma-separated list of any
109
109
  # combination of public_channel, private_channel, mpim, im. Defaults to
110
- # `"public_channel,private_channel"`.
110
+ # `"public_channel,private_channel"`. If the user's Slack ID is unavailable, this
111
+ # option is ignored and only public channels are returned.
111
112
  sig { returns(T.nilable(String)) }
112
113
  attr_reader :types
113
114
 
@@ -137,7 +138,8 @@ module Knockapi
137
138
  team_id: nil,
138
139
  # Mix and match channel types by providing a comma-separated list of any
139
140
  # combination of public_channel, private_channel, mpim, im. Defaults to
140
- # `"public_channel,private_channel"`.
141
+ # `"public_channel,private_channel"`. If the user's Slack ID is unavailable, this
142
+ # option is ignored and only public channels are returned.
141
143
  types: nil
142
144
  )
143
145
  end
@@ -41,10 +41,10 @@ module Knockapi
41
41
  sig { returns(T.nilable(Knockapi::Recipient::Variants)) }
42
42
  attr_accessor :actor
43
43
 
44
- # An optional map of data to pass into the workflow execution. There is a 1024
45
- # byte limit on the size of any single string value (with the exception of
46
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
47
- # size of the full `data` payload.
44
+ # An optional map of data to pass into the workflow execution. There is a 10MB
45
+ # limit on the size of the full `data` payload. Any individual string value
46
+ # greater than 1024 bytes in length will be
47
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
48
48
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
49
49
  attr_accessor :data
50
50
 
@@ -97,10 +97,10 @@ module Knockapi
97
97
  _typename: nil,
98
98
  # A recipient of a notification, which is either a user or an object.
99
99
  actor: nil,
100
- # An optional map of data to pass into the workflow execution. There is a 1024
101
- # byte limit on the size of any single string value (with the exception of
102
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
103
- # size of the full `data` payload.
100
+ # An optional map of data to pass into the workflow execution. There is a 10MB
101
+ # limit on the size of the full `data` payload. Any individual string value
102
+ # greater than 1024 bytes in length will be
103
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
104
104
  data: nil,
105
105
  # The last occurrence of the schedule.
106
106
  last_occurrence_at: nil,
@@ -45,10 +45,10 @@ module Knockapi
45
45
  end
46
46
  attr_accessor :actor
47
47
 
48
- # An optional map of data to pass into the workflow execution. There is a 1024
49
- # byte limit on the size of any single string value (with the exception of
50
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
51
- # size of the full `data` payload.
48
+ # An optional map of data to pass into the workflow execution. There is a 10MB
49
+ # limit on the size of the full `data` payload. Any individual string value
50
+ # greater than 1024 bytes in length will be
51
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
52
52
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
53
53
  attr_accessor :data
54
54
 
@@ -109,10 +109,10 @@ module Knockapi
109
109
  # (string), an inline user request (object), or an inline object request, which is
110
110
  # determined by the presence of a `collection` property.
111
111
  actor: nil,
112
- # An optional map of data to pass into the workflow execution. There is a 1024
113
- # byte limit on the size of any single string value (with the exception of
114
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
115
- # size of the full `data` payload.
112
+ # An optional map of data to pass into the workflow execution. There is a 10MB
113
+ # limit on the size of the full `data` payload. Any individual string value
114
+ # greater than 1024 bytes in length will be
115
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
116
116
  data: nil,
117
117
  # The ending date and time for the schedule.
118
118
  ending_at: nil,
@@ -26,10 +26,10 @@ module Knockapi
26
26
  end
27
27
  attr_accessor :actor
28
28
 
29
- # An optional map of data to pass into the workflow execution. There is a 1024
30
- # byte limit on the size of any single string value (with the exception of
31
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
32
- # size of the full `data` payload.
29
+ # An optional map of data to pass into the workflow execution. There is a 10MB
30
+ # limit on the size of the full `data` payload. Any individual string value
31
+ # greater than 1024 bytes in length will be
32
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
33
33
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
34
34
  attr_accessor :data
35
35
 
@@ -78,10 +78,10 @@ module Knockapi
78
78
  # A reference to a recipient, either a user identifier (string) or an object
79
79
  # reference (ID, collection).
80
80
  actor: nil,
81
- # An optional map of data to pass into the workflow execution. There is a 1024
82
- # byte limit on the size of any single string value (with the exception of
83
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
84
- # size of the full `data` payload.
81
+ # An optional map of data to pass into the workflow execution. There is a 10MB
82
+ # limit on the size of the full `data` payload. Any individual string value
83
+ # greater than 1024 bytes in length will be
84
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
85
85
  data: nil,
86
86
  # The ending date and time for the schedule.
87
87
  ending_at: nil,
@@ -76,10 +76,10 @@ module Knockapi
76
76
  end
77
77
  attr_accessor :actor
78
78
 
79
- # An optional map of data to pass into the workflow execution. There is a 1024
80
- # byte limit on the size of any single string value (with the exception of
81
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
82
- # size of the full `data` payload.
79
+ # An optional map of data to pass into the workflow execution. There is a 10MB
80
+ # limit on the size of the full `data` payload. Any individual string value
81
+ # greater than 1024 bytes in length will be
82
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
83
83
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
84
84
  attr_accessor :data
85
85
 
@@ -164,10 +164,10 @@ module Knockapi
164
164
  # (string), an inline user request (object), or an inline object request, which is
165
165
  # determined by the presence of a `collection` property.
166
166
  actor: nil,
167
- # An optional map of data to pass into the workflow execution. There is a 1024
168
- # byte limit on the size of any single string value (with the exception of
169
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
170
- # size of the full `data` payload.
167
+ # An optional map of data to pass into the workflow execution. There is a 10MB
168
+ # limit on the size of the full `data` payload. Any individual string value
169
+ # greater than 1024 bytes in length will be
170
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
171
171
  data: nil,
172
172
  # The ending date and time for the schedule.
173
173
  ending_at: nil,
@@ -50,10 +50,10 @@ module Knockapi
50
50
  sig { returns(T.nilable(String)) }
51
51
  attr_accessor :cancellation_key
52
52
 
53
- # An optional map of data to pass into the workflow execution. There is a 1024
54
- # byte limit on the size of any single string value (with the exception of
55
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
56
- # size of the full `data` payload.
53
+ # An optional map of data to pass into the workflow execution. There is a 10MB
54
+ # limit on the size of the full `data` payload. Any individual string value
55
+ # greater than 1024 bytes in length will be
56
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
57
57
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
58
58
  attr_accessor :data
59
59
 
@@ -99,10 +99,10 @@ module Knockapi
99
99
  # subsequent cancellation. Should be unique across trigger requests to avoid
100
100
  # unintentional cancellations.
101
101
  cancellation_key: nil,
102
- # An optional map of data to pass into the workflow execution. There is a 1024
103
- # byte limit on the size of any single string value (with the exception of
104
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
105
- # size of the full `data` payload.
102
+ # An optional map of data to pass into the workflow execution. There is a 10MB
103
+ # limit on the size of the full `data` payload. Any individual string value
104
+ # greater than 1024 bytes in length will be
105
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
106
106
  data: nil,
107
107
  # An request to set a tenant inline.
108
108
  tenant: nil,
@@ -47,10 +47,10 @@ module Knockapi
47
47
  # (string), an inline user request (object), or an inline object request, which is
48
48
  # determined by the presence of a `collection` property.
49
49
  actor: nil,
50
- # An optional map of data to pass into the workflow execution. There is a 1024
51
- # byte limit on the size of any single string value (with the exception of
52
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
53
- # size of the full `data` payload.
50
+ # An optional map of data to pass into the workflow execution. There is a 10MB
51
+ # limit on the size of the full `data` payload. Any individual string value
52
+ # greater than 1024 bytes in length will be
53
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
54
54
  data: nil,
55
55
  # The ending date and time for the schedule.
56
56
  ending_at: nil,
@@ -93,10 +93,10 @@ module Knockapi
93
93
  # A reference to a recipient, either a user identifier (string) or an object
94
94
  # reference (ID, collection).
95
95
  actor: nil,
96
- # An optional map of data to pass into the workflow execution. There is a 1024
97
- # byte limit on the size of any single string value (with the exception of
98
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
99
- # size of the full `data` payload.
96
+ # An optional map of data to pass into the workflow execution. There is a 10MB
97
+ # limit on the size of the full `data` payload. Any individual string value
98
+ # greater than 1024 bytes in length will be
99
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
100
100
  data: nil,
101
101
  # The ending date and time for the schedule.
102
102
  ending_at: nil,
@@ -84,10 +84,10 @@ module Knockapi
84
84
  # subsequent cancellation. Should be unique across trigger requests to avoid
85
85
  # unintentional cancellations.
86
86
  cancellation_key: nil,
87
- # An optional map of data to pass into the workflow execution. There is a 1024
88
- # byte limit on the size of any single string value (with the exception of
89
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
90
- # size of the full `data` payload.
87
+ # An optional map of data to pass into the workflow execution. There is a 10MB
88
+ # limit on the size of the full `data` payload. Any individual string value
89
+ # greater than 1024 bytes in length will be
90
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
91
91
  data: nil,
92
92
  # An request to set a tenant inline.
93
93
  tenant: nil,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knockapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Knock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-27 00:00:00.000000000 Z
11
+ date: 2025-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool