Skip to content

Commit 14c7bc7

Browse files
feat(api): api update
1 parent 99888a2 commit 14c7bc7

7 files changed

Lines changed: 46 additions & 46 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 94
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-4b8499dddbc5ac767491c492be1629f4f10a17442cf84e13e10fe38b7dcb713c.yml
3-
openapi_spec_hash: 98edfca809c07521259de151d3fc5684
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock/knock-0d9b2038188e6e237e90e7d04144af0b48d60f006c49172ffb5e5c0151187d3b.yml
3+
openapi_spec_hash: a37bbcbd9f496e5469be9a756bdaa0e9
44
config_hash: 625db64572b7ee0ee1dd00546e53fc5f

lib/knockapi/models/workflow_cancel_params.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class WorkflowCancelParams < Knockapi::Internal::Type::BaseModel
1313
required :key, String
1414

1515
# @!attribute cancellation_key
16-
# An optional key that is used to reference a specific workflow trigger request
17-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
18-
# request. Must be provided while triggering a workflow in order to enable
19-
# subsequent cancellation. Should be unique across trigger requests to avoid
20-
# unintentional cancellations.
16+
# A key that is used to reference a specific workflow trigger request when issuing
17+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
18+
# be provided while triggering a workflow in order to enable subsequent
19+
# cancellation. Should be unique across trigger requests to avoid unintentional
20+
# cancellations.
2121
#
2222
# @return [String]
2323
required :cancellation_key, String
@@ -37,7 +37,7 @@ class WorkflowCancelParams < Knockapi::Internal::Type::BaseModel
3737
#
3838
# @param key [String]
3939
#
40-
# @param cancellation_key [String] An optional key that is used to reference a specific workflow trigger request wh
40+
# @param cancellation_key [String] A key that is used to reference a specific workflow trigger request when issuing
4141
#
4242
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>, nil] A list of recipients to cancel the notification for. If omitted, cancels for all
4343
#

lib/knockapi/models/workflow_trigger_params.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class WorkflowTriggerParams < Knockapi::Internal::Type::BaseModel
2828
optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true
2929

3030
# @!attribute cancellation_key
31-
# An optional key that is used to reference a specific workflow trigger request
32-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
33-
# request. Must be provided while triggering a workflow in order to enable
34-
# subsequent cancellation. Should be unique across trigger requests to avoid
35-
# unintentional cancellations.
31+
# A key that is used to reference a specific workflow trigger request when issuing
32+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
33+
# be provided while triggering a workflow in order to enable subsequent
34+
# cancellation. Should be unique across trigger requests to avoid unintentional
35+
# cancellations.
3636
#
3737
# @return [String, nil]
3838
optional :cancellation_key, String, nil?: true
@@ -62,7 +62,7 @@ class WorkflowTriggerParams < Knockapi::Internal::Type::BaseModel
6262
#
6363
# @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
6464
#
65-
# @param cancellation_key [String, nil] An optional key that is used to reference a specific workflow trigger request wh
65+
# @param cancellation_key [String, nil] A key that is used to reference a specific workflow trigger request when issuing
6666
#
6767
# @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
6868
#

lib/knockapi/resources/workflows.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Workflows
1616
#
1717
# @param key [String] The key of the workflow to cancel.
1818
#
19-
# @param cancellation_key [String] An optional key that is used to reference a specific workflow trigger request wh
19+
# @param cancellation_key [String] A key that is used to reference a specific workflow trigger request when issuing
2020
#
2121
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>, nil] A list of recipients to cancel the notification for. If omitted, cancels for all
2222
#
@@ -53,7 +53,7 @@ def cancel(key, params)
5353
#
5454
# @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
5555
#
56-
# @param cancellation_key [String, nil] An optional key that is used to reference a specific workflow trigger request wh
56+
# @param cancellation_key [String, nil] A key that is used to reference a specific workflow trigger request when issuing
5757
#
5858
# @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
5959
#

rbi/knockapi/models/workflow_cancel_params.rbi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ module Knockapi
1414
sig { returns(String) }
1515
attr_accessor :key
1616

17-
# An optional key that is used to reference a specific workflow trigger request
18-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
19-
# request. Must be provided while triggering a workflow in order to enable
20-
# subsequent cancellation. Should be unique across trigger requests to avoid
21-
# unintentional cancellations.
17+
# A key that is used to reference a specific workflow trigger request when issuing
18+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
19+
# be provided while triggering a workflow in order to enable subsequent
20+
# cancellation. Should be unique across trigger requests to avoid unintentional
21+
# cancellations.
2222
sig { returns(String) }
2323
attr_accessor :cancellation_key
2424

@@ -53,11 +53,11 @@ module Knockapi
5353
end
5454
def self.new(
5555
key:,
56-
# An optional key that is used to reference a specific workflow trigger request
57-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
58-
# request. Must be provided while triggering a workflow in order to enable
59-
# subsequent cancellation. Should be unique across trigger requests to avoid
60-
# unintentional cancellations.
56+
# A key that is used to reference a specific workflow trigger request when issuing
57+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
58+
# be provided while triggering a workflow in order to enable subsequent
59+
# cancellation. Should be unique across trigger requests to avoid unintentional
60+
# cancellations.
6161
cancellation_key:,
6262
# A list of recipients to cancel the notification for. If omitted, cancels for all
6363
# recipients associated with the cancellation key.

rbi/knockapi/models/workflow_trigger_params.rbi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ module Knockapi
4545
end
4646
attr_accessor :actor
4747

48-
# An optional key that is used to reference a specific workflow trigger request
49-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
50-
# request. Must be provided while triggering a workflow in order to enable
51-
# subsequent cancellation. Should be unique across trigger requests to avoid
52-
# unintentional cancellations.
48+
# A key that is used to reference a specific workflow trigger request when issuing
49+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
50+
# be provided while triggering a workflow in order to enable subsequent
51+
# cancellation. Should be unique across trigger requests to avoid unintentional
52+
# cancellations.
5353
sig { returns(T.nilable(String)) }
5454
attr_accessor :cancellation_key
5555

@@ -98,11 +98,11 @@ module Knockapi
9898
# (string), an inline user request (object), or an inline object request, which is
9999
# determined by the presence of a `collection` property.
100100
actor: nil,
101-
# An optional key that is used to reference a specific workflow trigger request
102-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
103-
# request. Must be provided while triggering a workflow in order to enable
104-
# subsequent cancellation. Should be unique across trigger requests to avoid
105-
# unintentional cancellations.
101+
# A key that is used to reference a specific workflow trigger request when issuing
102+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
103+
# be provided while triggering a workflow in order to enable subsequent
104+
# cancellation. Should be unique across trigger requests to avoid unintentional
105+
# cancellations.
106106
cancellation_key: nil,
107107
# An optional map of data to pass into the workflow execution. There is a 10MB
108108
# limit on the size of the full `data` payload. Any individual string value

rbi/knockapi/resources/workflows.rbi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ module Knockapi
2727
def cancel(
2828
# The key of the workflow to cancel.
2929
key,
30-
# An optional key that is used to reference a specific workflow trigger request
31-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
32-
# request. Must be provided while triggering a workflow in order to enable
33-
# subsequent cancellation. Should be unique across trigger requests to avoid
34-
# unintentional cancellations.
30+
# A key that is used to reference a specific workflow trigger request when issuing
31+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
32+
# be provided while triggering a workflow in order to enable subsequent
33+
# cancellation. Should be unique across trigger requests to avoid unintentional
34+
# cancellations.
3535
cancellation_key:,
3636
# A list of recipients to cancel the notification for. If omitted, cancels for all
3737
# recipients associated with the cancellation key.
@@ -80,11 +80,11 @@ module Knockapi
8080
# (string), an inline user request (object), or an inline object request, which is
8181
# determined by the presence of a `collection` property.
8282
actor: nil,
83-
# An optional key that is used to reference a specific workflow trigger request
84-
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
85-
# request. Must be provided while triggering a workflow in order to enable
86-
# subsequent cancellation. Should be unique across trigger requests to avoid
87-
# unintentional cancellations.
83+
# A key that is used to reference a specific workflow trigger request when issuing
84+
# a [workflow cancellation](/send-notifications/canceling-workflows) request. Must
85+
# be provided while triggering a workflow in order to enable subsequent
86+
# cancellation. Should be unique across trigger requests to avoid unintentional
87+
# cancellations.
8888
cancellation_key: nil,
8989
# An optional map of data to pass into the workflow execution. There is a 10MB
9090
# limit on the size of the full `data` payload. Any individual string value

0 commit comments

Comments
 (0)