knockapi 1.4.0 → 1.6.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 +26 -0
- data/README.md +1 -1
- data/lib/knockapi/internal/type/enum.rb +6 -3
- data/lib/knockapi/internal/type/union.rb +5 -2
- data/lib/knockapi/internal/util.rb +8 -9
- data/lib/knockapi/models/objects/bulk_set_params.rb +46 -3
- data/lib/knockapi/models/schedule_create_params.rb +19 -9
- data/lib/knockapi/models/schedule_list_params.rb +4 -4
- data/lib/knockapi/models/schedule_repeat_rule.rb +9 -9
- data/lib/knockapi/models/tenant_set_params.rb +1 -11
- data/lib/knockapi/models/user_list_subscriptions_params.rb +4 -4
- data/lib/knockapi/models.rb +4 -4
- data/lib/knockapi/resources/objects/bulk.rb +1 -1
- data/lib/knockapi/resources/schedules.rb +6 -4
- data/lib/knockapi/resources/tenants.rb +1 -3
- data/lib/knockapi/resources/users.rb +1 -1
- data/lib/knockapi/version.rb +1 -1
- data/rbi/knockapi/internal/util.rbi +2 -0
- data/rbi/knockapi/models/objects/bulk_set_params.rbi +117 -3
- data/rbi/knockapi/models/schedule_create_params.rbi +49 -8
- data/rbi/knockapi/models/schedule_list_params.rbi +33 -6
- data/rbi/knockapi/models/schedule_repeat_rule.rbi +11 -8
- data/rbi/knockapi/models/tenant_set_params.rbi +0 -21
- data/rbi/knockapi/models/user_list_subscriptions_params.rbi +33 -6
- data/rbi/knockapi/resources/objects/bulk.rbi +1 -1
- data/rbi/knockapi/resources/schedules.rbi +23 -5
- data/rbi/knockapi/resources/tenants.rbi +0 -9
- data/rbi/knockapi/resources/users.rbi +8 -2
- data/sig/knockapi/models/objects/bulk_set_params.rbs +36 -4
- data/sig/knockapi/models/schedule_create_params.rbs +14 -5
- data/sig/knockapi/models/schedule_list_params.rbs +7 -5
- data/sig/knockapi/models/schedule_repeat_rule.rbs +7 -5
- data/sig/knockapi/models/tenant_set_params.rbs +0 -5
- data/sig/knockapi/models/user_list_subscriptions_params.rbs +7 -5
- data/sig/knockapi/resources/objects/bulk.rbs +1 -1
- data/sig/knockapi/resources/schedules.rbs +3 -2
- data/sig/knockapi/resources/tenants.rbs +0 -1
- data/sig/knockapi/resources/users.rbs +1 -1
- metadata +2 -2
@@ -25,14 +25,26 @@ module Knockapi
|
|
25
25
|
end
|
26
26
|
attr_accessor :recipients
|
27
27
|
|
28
|
-
# The repeat rule for the schedule.
|
29
|
-
sig { returns(T::Array[Knockapi::ScheduleRepeatRule]) }
|
30
|
-
attr_accessor :repeats
|
31
|
-
|
32
28
|
# The key of the workflow.
|
33
29
|
sig { returns(String) }
|
34
30
|
attr_accessor :workflow
|
35
31
|
|
32
|
+
# Specifies a recipient in a request. This can either be a user identifier
|
33
|
+
# (string), an inline user request (object), or an inline object request, which is
|
34
|
+
# determined by the presence of a `collection` property.
|
35
|
+
sig do
|
36
|
+
returns(
|
37
|
+
T.nilable(
|
38
|
+
T.any(
|
39
|
+
String,
|
40
|
+
Knockapi::InlineIdentifyUserRequest,
|
41
|
+
Knockapi::InlineObjectRequest
|
42
|
+
)
|
43
|
+
)
|
44
|
+
)
|
45
|
+
end
|
46
|
+
attr_accessor :actor
|
47
|
+
|
36
48
|
# An optional map of data to pass into the workflow execution. There is a 1024
|
37
49
|
# byte limit on the size of any single string value (with the exception of
|
38
50
|
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
@@ -44,6 +56,15 @@ module Knockapi
|
|
44
56
|
sig { returns(T.nilable(Time)) }
|
45
57
|
attr_accessor :ending_at
|
46
58
|
|
59
|
+
# The repeat rule for the schedule.
|
60
|
+
sig { returns(T.nilable(T::Array[Knockapi::ScheduleRepeatRule])) }
|
61
|
+
attr_reader :repeats
|
62
|
+
|
63
|
+
sig do
|
64
|
+
params(repeats: T::Array[Knockapi::ScheduleRepeatRule::OrHash]).void
|
65
|
+
end
|
66
|
+
attr_writer :repeats
|
67
|
+
|
47
68
|
# The starting date and time for the schedule.
|
48
69
|
sig { returns(T.nilable(Time)) }
|
49
70
|
attr_accessor :scheduled_at
|
@@ -62,10 +83,18 @@ module Knockapi
|
|
62
83
|
Knockapi::InlineObjectRequest::OrHash
|
63
84
|
)
|
64
85
|
],
|
65
|
-
repeats: T::Array[Knockapi::ScheduleRepeatRule::OrHash],
|
66
86
|
workflow: String,
|
87
|
+
actor:
|
88
|
+
T.nilable(
|
89
|
+
T.any(
|
90
|
+
String,
|
91
|
+
Knockapi::InlineIdentifyUserRequest::OrHash,
|
92
|
+
Knockapi::InlineObjectRequest::OrHash
|
93
|
+
)
|
94
|
+
),
|
67
95
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
68
96
|
ending_at: T.nilable(Time),
|
97
|
+
repeats: T::Array[Knockapi::ScheduleRepeatRule::OrHash],
|
69
98
|
scheduled_at: T.nilable(Time),
|
70
99
|
tenant: T.nilable(T.any(String, Knockapi::TenantRequest::OrHash)),
|
71
100
|
request_options: Knockapi::RequestOptions::OrHash
|
@@ -74,10 +103,12 @@ module Knockapi
|
|
74
103
|
def self.new(
|
75
104
|
# The recipients to set the schedule for. Limited to 100 recipients per request.
|
76
105
|
recipients:,
|
77
|
-
# The repeat rule for the schedule.
|
78
|
-
repeats:,
|
79
106
|
# The key of the workflow.
|
80
107
|
workflow:,
|
108
|
+
# Specifies a recipient in a request. This can either be a user identifier
|
109
|
+
# (string), an inline user request (object), or an inline object request, which is
|
110
|
+
# determined by the presence of a `collection` property.
|
111
|
+
actor: nil,
|
81
112
|
# An optional map of data to pass into the workflow execution. There is a 1024
|
82
113
|
# byte limit on the size of any single string value (with the exception of
|
83
114
|
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
@@ -85,6 +116,8 @@ module Knockapi
|
|
85
116
|
data: nil,
|
86
117
|
# The ending date and time for the schedule.
|
87
118
|
ending_at: nil,
|
119
|
+
# The repeat rule for the schedule.
|
120
|
+
repeats: nil,
|
88
121
|
# The starting date and time for the schedule.
|
89
122
|
scheduled_at: nil,
|
90
123
|
# An request to set a tenant inline.
|
@@ -104,10 +137,18 @@ module Knockapi
|
|
104
137
|
Knockapi::InlineObjectRequest
|
105
138
|
)
|
106
139
|
],
|
107
|
-
repeats: T::Array[Knockapi::ScheduleRepeatRule],
|
108
140
|
workflow: String,
|
141
|
+
actor:
|
142
|
+
T.nilable(
|
143
|
+
T.any(
|
144
|
+
String,
|
145
|
+
Knockapi::InlineIdentifyUserRequest,
|
146
|
+
Knockapi::InlineObjectRequest
|
147
|
+
)
|
148
|
+
),
|
109
149
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
110
150
|
ending_at: T.nilable(Time),
|
151
|
+
repeats: T::Array[Knockapi::ScheduleRepeatRule],
|
111
152
|
scheduled_at: T.nilable(Time),
|
112
153
|
tenant: T.nilable(T.any(String, Knockapi::TenantRequest)),
|
113
154
|
request_options: Knockapi::RequestOptions
|
@@ -36,11 +36,29 @@ module Knockapi
|
|
36
36
|
sig { params(page_size: Integer).void }
|
37
37
|
attr_writer :page_size
|
38
38
|
|
39
|
-
# Filter by recipient
|
40
|
-
sig
|
39
|
+
# Filter by recipient references.
|
40
|
+
sig do
|
41
|
+
returns(
|
42
|
+
T.nilable(
|
43
|
+
T::Array[
|
44
|
+
T.any(String, Knockapi::RecipientReference::ObjectReference)
|
45
|
+
]
|
46
|
+
)
|
47
|
+
)
|
48
|
+
end
|
41
49
|
attr_reader :recipients
|
42
50
|
|
43
|
-
sig
|
51
|
+
sig do
|
52
|
+
params(
|
53
|
+
recipients:
|
54
|
+
T::Array[
|
55
|
+
T.any(
|
56
|
+
String,
|
57
|
+
Knockapi::RecipientReference::ObjectReference::OrHash
|
58
|
+
)
|
59
|
+
]
|
60
|
+
).void
|
61
|
+
end
|
44
62
|
attr_writer :recipients
|
45
63
|
|
46
64
|
# Filter by tenant ID.
|
@@ -56,7 +74,13 @@ module Knockapi
|
|
56
74
|
after: String,
|
57
75
|
before: String,
|
58
76
|
page_size: Integer,
|
59
|
-
recipients:
|
77
|
+
recipients:
|
78
|
+
T::Array[
|
79
|
+
T.any(
|
80
|
+
String,
|
81
|
+
Knockapi::RecipientReference::ObjectReference::OrHash
|
82
|
+
)
|
83
|
+
],
|
60
84
|
tenant: String,
|
61
85
|
request_options: Knockapi::RequestOptions::OrHash
|
62
86
|
).returns(T.attached_class)
|
@@ -70,7 +94,7 @@ module Knockapi
|
|
70
94
|
before: nil,
|
71
95
|
# The number of items per page.
|
72
96
|
page_size: nil,
|
73
|
-
# Filter by recipient
|
97
|
+
# Filter by recipient references.
|
74
98
|
recipients: nil,
|
75
99
|
# Filter by tenant ID.
|
76
100
|
tenant: nil,
|
@@ -85,7 +109,10 @@ module Knockapi
|
|
85
109
|
after: String,
|
86
110
|
before: String,
|
87
111
|
page_size: Integer,
|
88
|
-
recipients:
|
112
|
+
recipients:
|
113
|
+
T::Array[
|
114
|
+
T.any(String, Knockapi::RecipientReference::ObjectReference)
|
115
|
+
],
|
89
116
|
tenant: String,
|
90
117
|
request_options: Knockapi::RequestOptions
|
91
118
|
}
|
@@ -8,14 +8,17 @@ module Knockapi
|
|
8
8
|
T.any(Knockapi::ScheduleRepeatRule, Knockapi::Internal::AnyHash)
|
9
9
|
end
|
10
10
|
|
11
|
-
# The typename of the schema.
|
12
|
-
sig { returns(String) }
|
13
|
-
attr_accessor :_typename
|
14
|
-
|
15
11
|
# The frequency of the schedule.
|
16
12
|
sig { returns(Knockapi::ScheduleRepeatRule::Frequency::OrSymbol) }
|
17
13
|
attr_accessor :frequency
|
18
14
|
|
15
|
+
# The typename of the schema.
|
16
|
+
sig { returns(T.nilable(String)) }
|
17
|
+
attr_reader :_typename
|
18
|
+
|
19
|
+
sig { params(_typename: String).void }
|
20
|
+
attr_writer :_typename
|
21
|
+
|
19
22
|
# The day of the month to repeat the schedule.
|
20
23
|
sig { returns(T.nilable(Integer)) }
|
21
24
|
attr_accessor :day_of_month
|
@@ -46,8 +49,8 @@ module Knockapi
|
|
46
49
|
# The repeat rule for the schedule.
|
47
50
|
sig do
|
48
51
|
params(
|
49
|
-
_typename: String,
|
50
52
|
frequency: Knockapi::ScheduleRepeatRule::Frequency::OrSymbol,
|
53
|
+
_typename: String,
|
51
54
|
day_of_month: T.nilable(Integer),
|
52
55
|
days:
|
53
56
|
T.nilable(T::Array[Knockapi::ScheduleRepeatRule::Day::OrSymbol]),
|
@@ -57,10 +60,10 @@ module Knockapi
|
|
57
60
|
).returns(T.attached_class)
|
58
61
|
end
|
59
62
|
def self.new(
|
60
|
-
# The typename of the schema.
|
61
|
-
_typename:,
|
62
63
|
# The frequency of the schedule.
|
63
64
|
frequency:,
|
65
|
+
# The typename of the schema.
|
66
|
+
_typename: nil,
|
64
67
|
# The day of the month to repeat the schedule.
|
65
68
|
day_of_month: nil,
|
66
69
|
# The days of the week to repeat the schedule.
|
@@ -77,8 +80,8 @@ module Knockapi
|
|
77
80
|
sig do
|
78
81
|
override.returns(
|
79
82
|
{
|
80
|
-
_typename: String,
|
81
83
|
frequency: Knockapi::ScheduleRepeatRule::Frequency::OrSymbol,
|
84
|
+
_typename: String,
|
82
85
|
day_of_month: T.nilable(Integer),
|
83
86
|
days:
|
84
87
|
T.nilable(T::Array[Knockapi::ScheduleRepeatRule::Day::OrSymbol]),
|
@@ -30,14 +30,6 @@ module Knockapi
|
|
30
30
|
end
|
31
31
|
attr_accessor :channel_data
|
32
32
|
|
33
|
-
# Inline set preferences for a recipient, where the key is the preference set id.
|
34
|
-
sig do
|
35
|
-
returns(
|
36
|
-
T.nilable(T::Hash[Symbol, Knockapi::Recipients::PreferenceSetRequest])
|
37
|
-
)
|
38
|
-
end
|
39
|
-
attr_accessor :preferences
|
40
|
-
|
41
33
|
# The settings for the tenant. Includes branding and preference set.
|
42
34
|
sig { returns(T.nilable(Knockapi::TenantSetParams::Settings)) }
|
43
35
|
attr_reader :settings
|
@@ -60,13 +52,6 @@ module Knockapi
|
|
60
52
|
)
|
61
53
|
]
|
62
54
|
),
|
63
|
-
preferences:
|
64
|
-
T.nilable(
|
65
|
-
T::Hash[
|
66
|
-
Symbol,
|
67
|
-
Knockapi::Recipients::PreferenceSetRequest::OrHash
|
68
|
-
]
|
69
|
-
),
|
70
55
|
settings: Knockapi::TenantSetParams::Settings::OrHash,
|
71
56
|
request_options: Knockapi::RequestOptions::OrHash
|
72
57
|
).returns(T.attached_class)
|
@@ -74,8 +59,6 @@ module Knockapi
|
|
74
59
|
def self.new(
|
75
60
|
# A request to set channel data for a type of channel inline.
|
76
61
|
channel_data: nil,
|
77
|
-
# Inline set preferences for a recipient, where the key is the preference set id.
|
78
|
-
preferences: nil,
|
79
62
|
# The settings for the tenant. Includes branding and preference set.
|
80
63
|
settings: nil,
|
81
64
|
request_options: {}
|
@@ -98,10 +81,6 @@ module Knockapi
|
|
98
81
|
)
|
99
82
|
]
|
100
83
|
),
|
101
|
-
preferences:
|
102
|
-
T.nilable(
|
103
|
-
T::Hash[Symbol, Knockapi::Recipients::PreferenceSetRequest]
|
104
|
-
),
|
105
84
|
settings: Knockapi::TenantSetParams::Settings,
|
106
85
|
request_options: Knockapi::RequestOptions
|
107
86
|
}
|
@@ -46,11 +46,29 @@ module Knockapi
|
|
46
46
|
end
|
47
47
|
attr_writer :include
|
48
48
|
|
49
|
-
# Only returns subscriptions for the specified object
|
50
|
-
sig
|
49
|
+
# Only returns subscriptions for the specified object references.
|
50
|
+
sig do
|
51
|
+
returns(
|
52
|
+
T.nilable(
|
53
|
+
T::Array[
|
54
|
+
T.any(String, Knockapi::RecipientReference::ObjectReference)
|
55
|
+
]
|
56
|
+
)
|
57
|
+
)
|
58
|
+
end
|
51
59
|
attr_reader :objects
|
52
60
|
|
53
|
-
sig
|
61
|
+
sig do
|
62
|
+
params(
|
63
|
+
objects:
|
64
|
+
T::Array[
|
65
|
+
T.any(
|
66
|
+
String,
|
67
|
+
Knockapi::RecipientReference::ObjectReference::OrHash
|
68
|
+
)
|
69
|
+
]
|
70
|
+
).void
|
71
|
+
end
|
54
72
|
attr_writer :objects
|
55
73
|
|
56
74
|
# The number of items per page.
|
@@ -66,7 +84,13 @@ module Knockapi
|
|
66
84
|
before: String,
|
67
85
|
include:
|
68
86
|
T::Array[Knockapi::UserListSubscriptionsParams::Include::OrSymbol],
|
69
|
-
objects:
|
87
|
+
objects:
|
88
|
+
T::Array[
|
89
|
+
T.any(
|
90
|
+
String,
|
91
|
+
Knockapi::RecipientReference::ObjectReference::OrHash
|
92
|
+
)
|
93
|
+
],
|
70
94
|
page_size: Integer,
|
71
95
|
request_options: Knockapi::RequestOptions::OrHash
|
72
96
|
).returns(T.attached_class)
|
@@ -78,7 +102,7 @@ module Knockapi
|
|
78
102
|
before: nil,
|
79
103
|
# Associated resources to include in the response.
|
80
104
|
include: nil,
|
81
|
-
# Only returns subscriptions for the specified object
|
105
|
+
# Only returns subscriptions for the specified object references.
|
82
106
|
objects: nil,
|
83
107
|
# The number of items per page.
|
84
108
|
page_size: nil,
|
@@ -95,7 +119,10 @@ module Knockapi
|
|
95
119
|
T::Array[
|
96
120
|
Knockapi::UserListSubscriptionsParams::Include::OrSymbol
|
97
121
|
],
|
98
|
-
objects:
|
122
|
+
objects:
|
123
|
+
T::Array[
|
124
|
+
T.any(String, Knockapi::RecipientReference::ObjectReference)
|
125
|
+
],
|
99
126
|
page_size: Integer,
|
100
127
|
request_options: Knockapi::RequestOptions
|
101
128
|
}
|
@@ -49,7 +49,7 @@ module Knockapi
|
|
49
49
|
sig do
|
50
50
|
params(
|
51
51
|
collection: String,
|
52
|
-
objects: T::Array[Knockapi::
|
52
|
+
objects: T::Array[Knockapi::Objects::BulkSetParams::Object::OrHash],
|
53
53
|
request_options: Knockapi::RequestOptions::OrHash
|
54
54
|
).returns(Knockapi::BulkOperation)
|
55
55
|
end
|
@@ -21,10 +21,18 @@ module Knockapi
|
|
21
21
|
Knockapi::InlineObjectRequest::OrHash
|
22
22
|
)
|
23
23
|
],
|
24
|
-
repeats: T::Array[Knockapi::ScheduleRepeatRule::OrHash],
|
25
24
|
workflow: String,
|
25
|
+
actor:
|
26
|
+
T.nilable(
|
27
|
+
T.any(
|
28
|
+
String,
|
29
|
+
Knockapi::InlineIdentifyUserRequest::OrHash,
|
30
|
+
Knockapi::InlineObjectRequest::OrHash
|
31
|
+
)
|
32
|
+
),
|
26
33
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
27
34
|
ending_at: T.nilable(Time),
|
35
|
+
repeats: T::Array[Knockapi::ScheduleRepeatRule::OrHash],
|
28
36
|
scheduled_at: T.nilable(Time),
|
29
37
|
tenant: T.nilable(T.any(String, Knockapi::TenantRequest::OrHash)),
|
30
38
|
request_options: Knockapi::RequestOptions::OrHash
|
@@ -33,10 +41,12 @@ module Knockapi
|
|
33
41
|
def create(
|
34
42
|
# The recipients to set the schedule for. Limited to 100 recipients per request.
|
35
43
|
recipients:,
|
36
|
-
# The repeat rule for the schedule.
|
37
|
-
repeats:,
|
38
44
|
# The key of the workflow.
|
39
45
|
workflow:,
|
46
|
+
# Specifies a recipient in a request. This can either be a user identifier
|
47
|
+
# (string), an inline user request (object), or an inline object request, which is
|
48
|
+
# determined by the presence of a `collection` property.
|
49
|
+
actor: nil,
|
40
50
|
# An optional map of data to pass into the workflow execution. There is a 1024
|
41
51
|
# byte limit on the size of any single string value (with the exception of
|
42
52
|
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
@@ -44,6 +54,8 @@ module Knockapi
|
|
44
54
|
data: nil,
|
45
55
|
# The ending date and time for the schedule.
|
46
56
|
ending_at: nil,
|
57
|
+
# The repeat rule for the schedule.
|
58
|
+
repeats: nil,
|
47
59
|
# The starting date and time for the schedule.
|
48
60
|
scheduled_at: nil,
|
49
61
|
# An request to set a tenant inline.
|
@@ -106,7 +118,13 @@ module Knockapi
|
|
106
118
|
after: String,
|
107
119
|
before: String,
|
108
120
|
page_size: Integer,
|
109
|
-
recipients:
|
121
|
+
recipients:
|
122
|
+
T::Array[
|
123
|
+
T.any(
|
124
|
+
String,
|
125
|
+
Knockapi::RecipientReference::ObjectReference::OrHash
|
126
|
+
)
|
127
|
+
],
|
110
128
|
tenant: String,
|
111
129
|
request_options: Knockapi::RequestOptions::OrHash
|
112
130
|
).returns(Knockapi::Internal::EntriesCursor[Knockapi::Schedule])
|
@@ -120,7 +138,7 @@ module Knockapi
|
|
120
138
|
before: nil,
|
121
139
|
# The number of items per page.
|
122
140
|
page_size: nil,
|
123
|
-
# Filter by recipient
|
141
|
+
# Filter by recipient references.
|
124
142
|
recipients: nil,
|
125
143
|
# Filter by tenant ID.
|
126
144
|
tenant: nil,
|
@@ -78,13 +78,6 @@ module Knockapi
|
|
78
78
|
)
|
79
79
|
]
|
80
80
|
),
|
81
|
-
preferences:
|
82
|
-
T.nilable(
|
83
|
-
T::Hash[
|
84
|
-
Symbol,
|
85
|
-
Knockapi::Recipients::PreferenceSetRequest::OrHash
|
86
|
-
]
|
87
|
-
),
|
88
81
|
settings: Knockapi::TenantSetParams::Settings::OrHash,
|
89
82
|
request_options: Knockapi::RequestOptions::OrHash
|
90
83
|
).returns(Knockapi::Tenant)
|
@@ -94,8 +87,6 @@ module Knockapi
|
|
94
87
|
id,
|
95
88
|
# A request to set channel data for a type of channel inline.
|
96
89
|
channel_data: nil,
|
97
|
-
# Inline set preferences for a recipient, where the key is the preference set id.
|
98
|
-
preferences: nil,
|
99
90
|
# The settings for the tenant. Includes branding and preference set.
|
100
91
|
settings: nil,
|
101
92
|
request_options: {}
|
@@ -283,7 +283,13 @@ module Knockapi
|
|
283
283
|
before: String,
|
284
284
|
include:
|
285
285
|
T::Array[Knockapi::UserListSubscriptionsParams::Include::OrSymbol],
|
286
|
-
objects:
|
286
|
+
objects:
|
287
|
+
T::Array[
|
288
|
+
T.any(
|
289
|
+
String,
|
290
|
+
Knockapi::RecipientReference::ObjectReference::OrHash
|
291
|
+
)
|
292
|
+
],
|
287
293
|
page_size: Integer,
|
288
294
|
request_options: Knockapi::RequestOptions::OrHash
|
289
295
|
).returns(
|
@@ -299,7 +305,7 @@ module Knockapi
|
|
299
305
|
before: nil,
|
300
306
|
# Associated resources to include in the response.
|
301
307
|
include: nil,
|
302
|
-
# Only returns subscriptions for the specified object
|
308
|
+
# Only returns subscriptions for the specified object references.
|
303
309
|
objects: nil,
|
304
310
|
# The number of items per page.
|
305
311
|
page_size: nil,
|
@@ -2,24 +2,56 @@ module Knockapi
|
|
2
2
|
module Models
|
3
3
|
module Objects
|
4
4
|
type bulk_set_params =
|
5
|
-
{ objects: ::Array[Knockapi::
|
5
|
+
{ objects: ::Array[Knockapi::Objects::BulkSetParams::Object] }
|
6
6
|
& Knockapi::Internal::Type::request_parameters
|
7
7
|
|
8
8
|
class BulkSetParams < Knockapi::Internal::Type::BaseModel
|
9
9
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
10
10
|
include Knockapi::Internal::Type::RequestParameters
|
11
11
|
|
12
|
-
attr_accessor objects: ::Array[Knockapi::
|
12
|
+
attr_accessor objects: ::Array[Knockapi::Objects::BulkSetParams::Object]
|
13
13
|
|
14
14
|
def initialize: (
|
15
|
-
objects: ::Array[Knockapi::
|
15
|
+
objects: ::Array[Knockapi::Objects::BulkSetParams::Object],
|
16
16
|
?request_options: Knockapi::request_opts
|
17
17
|
) -> void
|
18
18
|
|
19
19
|
def to_hash: -> {
|
20
|
-
objects: ::Array[Knockapi::
|
20
|
+
objects: ::Array[Knockapi::Objects::BulkSetParams::Object],
|
21
21
|
request_options: Knockapi::RequestOptions
|
22
22
|
}
|
23
|
+
|
24
|
+
type object =
|
25
|
+
{
|
26
|
+
id: String,
|
27
|
+
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
28
|
+
created_at: Time?,
|
29
|
+
preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
30
|
+
}
|
31
|
+
|
32
|
+
class Object < Knockapi::Internal::Type::BaseModel
|
33
|
+
attr_accessor id: String
|
34
|
+
|
35
|
+
attr_accessor channel_data: Knockapi::Models::Recipients::inline_channel_data_request?
|
36
|
+
|
37
|
+
attr_accessor created_at: Time?
|
38
|
+
|
39
|
+
attr_accessor preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
40
|
+
|
41
|
+
def initialize: (
|
42
|
+
id: String,
|
43
|
+
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
44
|
+
?created_at: Time?,
|
45
|
+
?preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
46
|
+
) -> void
|
47
|
+
|
48
|
+
def to_hash: -> {
|
49
|
+
id: String,
|
50
|
+
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
51
|
+
created_at: Time?,
|
52
|
+
preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
53
|
+
}
|
54
|
+
end
|
23
55
|
end
|
24
56
|
end
|
25
57
|
end
|
@@ -3,10 +3,11 @@ module Knockapi
|
|
3
3
|
type schedule_create_params =
|
4
4
|
{
|
5
5
|
recipients: ::Array[Knockapi::Models::recipient_request],
|
6
|
-
repeats: ::Array[Knockapi::ScheduleRepeatRule],
|
7
6
|
workflow: String,
|
7
|
+
actor: Knockapi::Models::recipient_request?,
|
8
8
|
data: ::Hash[Symbol, top]?,
|
9
9
|
ending_at: Time?,
|
10
|
+
repeats: ::Array[Knockapi::ScheduleRepeatRule],
|
10
11
|
scheduled_at: Time?,
|
11
12
|
tenant: Knockapi::Models::inline_tenant_request?
|
12
13
|
}
|
@@ -18,24 +19,31 @@ module Knockapi
|
|
18
19
|
|
19
20
|
attr_accessor recipients: ::Array[Knockapi::Models::recipient_request]
|
20
21
|
|
21
|
-
attr_accessor repeats: ::Array[Knockapi::ScheduleRepeatRule]
|
22
|
-
|
23
22
|
attr_accessor workflow: String
|
24
23
|
|
24
|
+
attr_accessor actor: Knockapi::Models::recipient_request?
|
25
|
+
|
25
26
|
attr_accessor data: ::Hash[Symbol, top]?
|
26
27
|
|
27
28
|
attr_accessor ending_at: Time?
|
28
29
|
|
30
|
+
attr_reader repeats: ::Array[Knockapi::ScheduleRepeatRule]?
|
31
|
+
|
32
|
+
def repeats=: (
|
33
|
+
::Array[Knockapi::ScheduleRepeatRule]
|
34
|
+
) -> ::Array[Knockapi::ScheduleRepeatRule]
|
35
|
+
|
29
36
|
attr_accessor scheduled_at: Time?
|
30
37
|
|
31
38
|
attr_accessor tenant: Knockapi::Models::inline_tenant_request?
|
32
39
|
|
33
40
|
def initialize: (
|
34
41
|
recipients: ::Array[Knockapi::Models::recipient_request],
|
35
|
-
repeats: ::Array[Knockapi::ScheduleRepeatRule],
|
36
42
|
workflow: String,
|
43
|
+
?actor: Knockapi::Models::recipient_request?,
|
37
44
|
?data: ::Hash[Symbol, top]?,
|
38
45
|
?ending_at: Time?,
|
46
|
+
?repeats: ::Array[Knockapi::ScheduleRepeatRule],
|
39
47
|
?scheduled_at: Time?,
|
40
48
|
?tenant: Knockapi::Models::inline_tenant_request?,
|
41
49
|
?request_options: Knockapi::request_opts
|
@@ -43,10 +51,11 @@ module Knockapi
|
|
43
51
|
|
44
52
|
def to_hash: -> {
|
45
53
|
recipients: ::Array[Knockapi::Models::recipient_request],
|
46
|
-
repeats: ::Array[Knockapi::ScheduleRepeatRule],
|
47
54
|
workflow: String,
|
55
|
+
actor: Knockapi::Models::recipient_request?,
|
48
56
|
data: ::Hash[Symbol, top]?,
|
49
57
|
ending_at: Time?,
|
58
|
+
repeats: ::Array[Knockapi::ScheduleRepeatRule],
|
50
59
|
scheduled_at: Time?,
|
51
60
|
tenant: Knockapi::Models::inline_tenant_request?,
|
52
61
|
request_options: Knockapi::RequestOptions
|
@@ -6,7 +6,7 @@ module Knockapi
|
|
6
6
|
after: String,
|
7
7
|
before: String,
|
8
8
|
page_size: Integer,
|
9
|
-
recipients: ::Array[
|
9
|
+
recipients: ::Array[Knockapi::Models::recipient_reference],
|
10
10
|
tenant: String
|
11
11
|
}
|
12
12
|
& Knockapi::Internal::Type::request_parameters
|
@@ -29,9 +29,11 @@ module Knockapi
|
|
29
29
|
|
30
30
|
def page_size=: (Integer) -> Integer
|
31
31
|
|
32
|
-
attr_reader recipients: ::Array[
|
32
|
+
attr_reader recipients: ::Array[Knockapi::Models::recipient_reference]?
|
33
33
|
|
34
|
-
def recipients=: (
|
34
|
+
def recipients=: (
|
35
|
+
::Array[Knockapi::Models::recipient_reference]
|
36
|
+
) -> ::Array[Knockapi::Models::recipient_reference]
|
35
37
|
|
36
38
|
attr_reader tenant: String?
|
37
39
|
|
@@ -42,7 +44,7 @@ module Knockapi
|
|
42
44
|
?after: String,
|
43
45
|
?before: String,
|
44
46
|
?page_size: Integer,
|
45
|
-
?recipients: ::Array[
|
47
|
+
?recipients: ::Array[Knockapi::Models::recipient_reference],
|
46
48
|
?tenant: String,
|
47
49
|
?request_options: Knockapi::request_opts
|
48
50
|
) -> void
|
@@ -52,7 +54,7 @@ module Knockapi
|
|
52
54
|
after: String,
|
53
55
|
before: String,
|
54
56
|
page_size: Integer,
|
55
|
-
recipients: ::Array[
|
57
|
+
recipients: ::Array[Knockapi::Models::recipient_reference],
|
56
58
|
tenant: String,
|
57
59
|
request_options: Knockapi::RequestOptions
|
58
60
|
}
|
@@ -2,8 +2,8 @@ module Knockapi
|
|
2
2
|
module Models
|
3
3
|
type schedule_repeat_rule =
|
4
4
|
{
|
5
|
-
_typename: String,
|
6
5
|
frequency: Knockapi::Models::ScheduleRepeatRule::frequency,
|
6
|
+
_typename: String,
|
7
7
|
day_of_month: Integer?,
|
8
8
|
days: ::Array[Knockapi::Models::ScheduleRepeatRule::day]?,
|
9
9
|
hours: Integer?,
|
@@ -12,10 +12,12 @@ module Knockapi
|
|
12
12
|
}
|
13
13
|
|
14
14
|
class ScheduleRepeatRule < Knockapi::Internal::Type::BaseModel
|
15
|
-
attr_accessor _typename: String
|
16
|
-
|
17
15
|
attr_accessor frequency: Knockapi::Models::ScheduleRepeatRule::frequency
|
18
16
|
|
17
|
+
attr_reader _typename: String?
|
18
|
+
|
19
|
+
def _typename=: (String) -> String
|
20
|
+
|
19
21
|
attr_accessor day_of_month: Integer?
|
20
22
|
|
21
23
|
attr_accessor days: ::Array[Knockapi::Models::ScheduleRepeatRule::day]?
|
@@ -29,8 +31,8 @@ module Knockapi
|
|
29
31
|
attr_accessor minutes: Integer?
|
30
32
|
|
31
33
|
def initialize: (
|
32
|
-
_typename: String,
|
33
34
|
frequency: Knockapi::Models::ScheduleRepeatRule::frequency,
|
35
|
+
?_typename: String,
|
34
36
|
?day_of_month: Integer?,
|
35
37
|
?days: ::Array[Knockapi::Models::ScheduleRepeatRule::day]?,
|
36
38
|
?hours: Integer?,
|
@@ -39,8 +41,8 @@ module Knockapi
|
|
39
41
|
) -> void
|
40
42
|
|
41
43
|
def to_hash: -> {
|
42
|
-
_typename: String,
|
43
44
|
frequency: Knockapi::Models::ScheduleRepeatRule::frequency,
|
45
|
+
_typename: String,
|
44
46
|
day_of_month: Integer?,
|
45
47
|
days: ::Array[Knockapi::Models::ScheduleRepeatRule::day]?,
|
46
48
|
hours: Integer?,
|