Skip to content

Commit f710ae2

Browse files
feat(api): api update
1 parent 9b272e8 commit f710ae2

4 files changed

Lines changed: 29 additions & 3 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: 92
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-f7658bcdf4b85c3c7b283f0dc216e7eb425d4ff258674fa79f6caa0eeb340b5e.yml
3-
openapi_spec_hash: c80f2985521f9fc3cb931940915e6a99
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-9424b756f0a9438c5869b404da1779095190ea58a215179b29bef2b8cb65b106.yml
3+
openapi_spec_hash: 9adf51786e9a57c01a0c29710ff70f95
44
config_hash: a3056fe062e62c7ca4d3931ccf3f6d06

lib/knockapi/models/users/guide_get_channel_response.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class Entry < Knockapi::Internal::Type::BaseModel
8888
# @return [String, nil]
8989
optional :channel_id, String
9090

91+
# @!attribute dashboard_url
92+
# URL to this guide in the Knock dashboard
93+
#
94+
# @return [String, nil]
95+
optional :dashboard_url, String
96+
9197
# @!attribute inserted_at
9298
#
9399
# @return [Time, nil]
@@ -121,7 +127,7 @@ class Entry < Knockapi::Internal::Type::BaseModel
121127
# @return [Time, nil]
122128
optional :updated_at, Time
123129

124-
# @!method initialize(id: nil, _typename: nil, activation_url_patterns: nil, activation_url_rules: nil, active: nil, bypass_global_group_limit: nil, channel_id: nil, inserted_at: nil, key: nil, semver: nil, steps: nil, type: nil, updated_at: nil)
130+
# @!method initialize(id: nil, _typename: nil, activation_url_patterns: nil, activation_url_rules: nil, active: nil, bypass_global_group_limit: nil, channel_id: nil, dashboard_url: nil, inserted_at: nil, key: nil, semver: nil, steps: nil, type: nil, updated_at: nil)
125131
# Some parameter documentations has been truncated, see
126132
# {Knockapi::Models::Users::GuideGetChannelResponse::Entry} for more details.
127133
#
@@ -139,6 +145,8 @@ class Entry < Knockapi::Internal::Type::BaseModel
139145
#
140146
# @param channel_id [String]
141147
#
148+
# @param dashboard_url [String] URL to this guide in the Knock dashboard
149+
#
142150
# @param inserted_at [Time]
143151
#
144152
# @param key [String] The key of the guide.

rbi/knockapi/models/users/guide_get_channel_response.rbi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ module Knockapi
184184
sig { params(channel_id: String).void }
185185
attr_writer :channel_id
186186

187+
# URL to this guide in the Knock dashboard
188+
sig { returns(T.nilable(String)) }
189+
attr_reader :dashboard_url
190+
191+
sig { params(dashboard_url: String).void }
192+
attr_writer :dashboard_url
193+
187194
sig { returns(T.nilable(Time)) }
188195
attr_reader :inserted_at
189196

@@ -252,6 +259,7 @@ module Knockapi
252259
active: T::Boolean,
253260
bypass_global_group_limit: T::Boolean,
254261
channel_id: String,
262+
dashboard_url: String,
255263
inserted_at: Time,
256264
key: String,
257265
semver: String,
@@ -278,6 +286,8 @@ module Knockapi
278286
active: nil,
279287
bypass_global_group_limit: nil,
280288
channel_id: nil,
289+
# URL to this guide in the Knock dashboard
290+
dashboard_url: nil,
281291
inserted_at: nil,
282292
# The key of the guide.
283293
key: nil,
@@ -305,6 +315,7 @@ module Knockapi
305315
active: T::Boolean,
306316
bypass_global_group_limit: T::Boolean,
307317
channel_id: String,
318+
dashboard_url: String,
308319
inserted_at: Time,
309320
key: String,
310321
semver: String,

sig/knockapi/models/users/guide_get_channel_response.rbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module Knockapi
4141
active: bool,
4242
bypass_global_group_limit: bool,
4343
channel_id: String,
44+
dashboard_url: String,
4445
inserted_at: Time,
4546
key: String,
4647
semver: String,
@@ -82,6 +83,10 @@ module Knockapi
8283

8384
def channel_id=: (String) -> String
8485

86+
attr_reader dashboard_url: String?
87+
88+
def dashboard_url=: (String) -> String
89+
8590
attr_reader inserted_at: Time?
8691

8792
def inserted_at=: (Time) -> Time
@@ -116,6 +121,7 @@ module Knockapi
116121
?active: bool,
117122
?bypass_global_group_limit: bool,
118123
?channel_id: String,
124+
?dashboard_url: String,
119125
?inserted_at: Time,
120126
?key: String,
121127
?semver: String,
@@ -132,6 +138,7 @@ module Knockapi
132138
active: bool,
133139
bypass_global_group_limit: bool,
134140
channel_id: String,
141+
dashboard_url: String,
135142
inserted_at: Time,
136143
key: String,
137144
semver: String,

0 commit comments

Comments
 (0)