knockapi 1.32.1 → 1.34.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 +44 -0
- data/README.md +1 -1
- data/lib/knockapi/client.rb +13 -0
- data/lib/knockapi/internal/util.rb +31 -0
- data/lib/knockapi/models/audience_add_members_params.rb +8 -1
- data/lib/knockapi/models/audience_list_members_params.rb +7 -1
- data/lib/knockapi/models/audience_remove_members_params.rb +8 -1
- data/lib/knockapi/models/bulk_operation_get_params.rb +7 -1
- data/lib/knockapi/models/channels/bulk_update_message_status_params.rb +15 -1
- data/lib/knockapi/models/condition.rb +1 -0
- data/lib/knockapi/models/message_archive_params.rb +7 -1
- data/lib/knockapi/models/message_get_content_params.rb +7 -1
- data/lib/knockapi/models/message_get_params.rb +7 -1
- data/lib/knockapi/models/message_list_activities_params.rb +8 -1
- data/lib/knockapi/models/message_list_delivery_logs_params.rb +8 -1
- data/lib/knockapi/models/message_list_events_params.rb +8 -1
- data/lib/knockapi/models/message_mark_as_interacted_params.rb +8 -1
- data/lib/knockapi/models/message_mark_as_read_params.rb +7 -1
- data/lib/knockapi/models/message_mark_as_seen_params.rb +7 -1
- data/lib/knockapi/models/message_mark_as_unread_params.rb +7 -1
- data/lib/knockapi/models/message_mark_as_unseen_params.rb +7 -1
- data/lib/knockapi/models/message_unarchive_params.rb +7 -1
- data/lib/knockapi/models/object_add_subscriptions_params.rb +15 -1
- data/lib/knockapi/models/object_delete_params.rb +13 -1
- data/lib/knockapi/models/object_delete_subscriptions_params.rb +15 -1
- data/lib/knockapi/models/object_get_channel_data_params.rb +19 -1
- data/lib/knockapi/models/object_get_params.rb +13 -1
- data/lib/knockapi/models/object_get_preferences_params.rb +19 -1
- data/lib/knockapi/models/object_list_messages_params.rb +15 -1
- data/lib/knockapi/models/object_list_params.rb +8 -1
- data/lib/knockapi/models/object_list_preferences_params.rb +13 -1
- data/lib/knockapi/models/object_list_schedules_params.rb +15 -1
- data/lib/knockapi/models/object_list_subscriptions_params.rb +15 -1
- data/lib/knockapi/models/object_set_channel_data_params.rb +19 -1
- data/lib/knockapi/models/object_set_params.rb +15 -1
- data/lib/knockapi/models/object_set_preferences_params.rb +19 -1
- data/lib/knockapi/models/object_unset_channel_data_params.rb +19 -1
- data/lib/knockapi/models/objects/bulk_add_subscriptions_params.rb +8 -1
- data/lib/knockapi/models/objects/bulk_delete_params.rb +8 -1
- data/lib/knockapi/models/objects/bulk_delete_subscriptions_params.rb +8 -1
- data/lib/knockapi/models/objects/bulk_set_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_check_auth_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_list_channels_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_list_teams_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_revoke_access_params.rb +8 -1
- data/lib/knockapi/models/providers/slack_check_auth_params.rb +8 -1
- data/lib/knockapi/models/providers/slack_list_channels_params.rb +8 -1
- data/lib/knockapi/models/providers/slack_revoke_access_params.rb +8 -1
- data/lib/knockapi/models/tenant_delete_params.rb +7 -1
- data/lib/knockapi/models/tenant_get_params.rb +8 -1
- data/lib/knockapi/models/tenant_set_params.rb +8 -1
- data/lib/knockapi/models/user_delete_params.rb +7 -1
- data/lib/knockapi/models/user_get_channel_data_params.rb +13 -1
- data/lib/knockapi/models/user_get_params.rb +7 -1
- data/lib/knockapi/models/user_get_preferences_params.rb +15 -1
- data/lib/knockapi/models/user_list_messages_params.rb +8 -1
- data/lib/knockapi/models/user_list_preferences_params.rb +7 -1
- data/lib/knockapi/models/user_list_schedules_params.rb +8 -1
- data/lib/knockapi/models/user_list_subscriptions_params.rb +8 -1
- data/lib/knockapi/models/user_merge_params.rb +8 -1
- data/lib/knockapi/models/user_set_channel_data_params.rb +13 -1
- data/lib/knockapi/models/user_set_preferences_params.rb +13 -1
- data/lib/knockapi/models/user_unset_channel_data_params.rb +13 -1
- data/lib/knockapi/models/user_update_params.rb +7 -1
- data/lib/knockapi/models/users/feed_get_settings_params.rb +13 -1
- data/lib/knockapi/models/users/feed_list_items_params.rb +15 -1
- data/lib/knockapi/models/users/guide_get_channel_params.rb +15 -1
- data/lib/knockapi/models/users/guide_mark_message_as_archived_params.rb +15 -1
- data/lib/knockapi/models/users/guide_mark_message_as_interacted_params.rb +15 -1
- data/lib/knockapi/models/users/guide_mark_message_as_seen_params.rb +15 -1
- data/lib/knockapi/models/workflow_cancel_params.rb +8 -1
- data/lib/knockapi/models/workflow_trigger_params.rb +8 -1
- data/lib/knockapi/resources/audiences.rb +4 -2
- data/lib/knockapi/resources/bulk_operations.rb +2 -0
- data/lib/knockapi/resources/channels/bulk.rb +2 -0
- data/lib/knockapi/resources/channels.rb +2 -0
- data/lib/knockapi/resources/messages/batch.rb +3 -1
- data/lib/knockapi/resources/messages.rb +10 -4
- data/lib/knockapi/resources/objects/bulk.rb +2 -0
- data/lib/knockapi/resources/objects.rb +11 -4
- data/lib/knockapi/resources/providers/ms_teams.rb +10 -4
- data/lib/knockapi/resources/providers/slack.rb +8 -3
- data/lib/knockapi/resources/providers.rb +4 -0
- data/lib/knockapi/resources/schedules/bulk.rb +2 -0
- data/lib/knockapi/resources/schedules.rb +6 -1
- data/lib/knockapi/resources/tenants/bulk.rb +4 -1
- data/lib/knockapi/resources/tenants.rb +11 -4
- data/lib/knockapi/resources/users/bulk.rb +2 -0
- data/lib/knockapi/resources/users/feeds.rb +4 -1
- data/lib/knockapi/resources/users/guides.rb +4 -1
- data/lib/knockapi/resources/users.rb +18 -5
- data/lib/knockapi/resources/workflows.rb +2 -0
- data/lib/knockapi/version.rb +1 -1
- data/rbi/knockapi/client.rbi +13 -0
- data/rbi/knockapi/internal/util.rbi +20 -0
- data/rbi/knockapi/models/audience_add_members_params.rbi +6 -0
- data/rbi/knockapi/models/audience_list_members_params.rbi +13 -5
- data/rbi/knockapi/models/audience_remove_members_params.rbi +6 -0
- data/rbi/knockapi/models/bulk_operation_get_params.rbi +13 -5
- data/rbi/knockapi/models/channels/bulk_update_message_status_params.rbi +18 -0
- data/rbi/knockapi/models/condition.rbi +2 -0
- data/rbi/knockapi/models/message_archive_params.rbi +13 -5
- data/rbi/knockapi/models/message_get_content_params.rbi +13 -5
- data/rbi/knockapi/models/message_get_params.rbi +13 -5
- data/rbi/knockapi/models/message_list_activities_params.rbi +6 -0
- data/rbi/knockapi/models/message_list_delivery_logs_params.rbi +6 -0
- data/rbi/knockapi/models/message_list_events_params.rbi +6 -0
- data/rbi/knockapi/models/message_mark_as_interacted_params.rbi +6 -0
- data/rbi/knockapi/models/message_mark_as_read_params.rbi +13 -5
- data/rbi/knockapi/models/message_mark_as_seen_params.rbi +13 -5
- data/rbi/knockapi/models/message_mark_as_unread_params.rbi +13 -5
- data/rbi/knockapi/models/message_mark_as_unseen_params.rbi +13 -5
- data/rbi/knockapi/models/message_unarchive_params.rbi +13 -5
- data/rbi/knockapi/models/object_add_subscriptions_params.rbi +12 -0
- data/rbi/knockapi/models/object_delete_params.rbi +21 -5
- data/rbi/knockapi/models/object_delete_subscriptions_params.rbi +12 -0
- data/rbi/knockapi/models/object_get_channel_data_params.rbi +26 -5
- data/rbi/knockapi/models/object_get_params.rbi +21 -5
- data/rbi/knockapi/models/object_get_preferences_params.rbi +26 -5
- data/rbi/knockapi/models/object_list_messages_params.rbi +12 -0
- data/rbi/knockapi/models/object_list_params.rbi +6 -0
- data/rbi/knockapi/models/object_list_preferences_params.rbi +21 -5
- data/rbi/knockapi/models/object_list_schedules_params.rbi +12 -0
- data/rbi/knockapi/models/object_list_subscriptions_params.rbi +12 -0
- data/rbi/knockapi/models/object_set_channel_data_params.rbi +26 -5
- data/rbi/knockapi/models/object_set_params.rbi +12 -0
- data/rbi/knockapi/models/object_set_preferences_params.rbi +26 -5
- data/rbi/knockapi/models/object_unset_channel_data_params.rbi +26 -5
- data/rbi/knockapi/models/objects/bulk_add_subscriptions_params.rbi +6 -0
- data/rbi/knockapi/models/objects/bulk_delete_params.rbi +6 -0
- data/rbi/knockapi/models/objects/bulk_delete_subscriptions_params.rbi +6 -0
- data/rbi/knockapi/models/objects/bulk_set_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_check_auth_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_list_channels_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_list_teams_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_revoke_access_params.rbi +6 -0
- data/rbi/knockapi/models/providers/slack_check_auth_params.rbi +6 -0
- data/rbi/knockapi/models/providers/slack_list_channels_params.rbi +6 -0
- data/rbi/knockapi/models/providers/slack_revoke_access_params.rbi +6 -0
- data/rbi/knockapi/models/tenant_delete_params.rbi +13 -5
- data/rbi/knockapi/models/tenant_get_params.rbi +6 -0
- data/rbi/knockapi/models/tenant_set_params.rbi +6 -0
- data/rbi/knockapi/models/user_delete_params.rbi +13 -5
- data/rbi/knockapi/models/user_get_channel_data_params.rbi +21 -5
- data/rbi/knockapi/models/user_get_params.rbi +13 -5
- data/rbi/knockapi/models/user_get_preferences_params.rbi +16 -1
- data/rbi/knockapi/models/user_list_messages_params.rbi +6 -0
- data/rbi/knockapi/models/user_list_preferences_params.rbi +13 -5
- data/rbi/knockapi/models/user_list_schedules_params.rbi +6 -0
- data/rbi/knockapi/models/user_list_subscriptions_params.rbi +6 -0
- data/rbi/knockapi/models/user_merge_params.rbi +10 -1
- data/rbi/knockapi/models/user_set_channel_data_params.rbi +21 -5
- data/rbi/knockapi/models/user_set_preferences_params.rbi +21 -5
- data/rbi/knockapi/models/user_unset_channel_data_params.rbi +21 -5
- data/rbi/knockapi/models/user_update_params.rbi +13 -5
- data/rbi/knockapi/models/users/feed_get_settings_params.rbi +21 -5
- data/rbi/knockapi/models/users/feed_list_items_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_get_channel_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_mark_message_as_archived_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_mark_message_as_interacted_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_mark_message_as_seen_params.rbi +12 -0
- data/rbi/knockapi/models/workflow_cancel_params.rbi +6 -0
- data/rbi/knockapi/models/workflow_trigger_params.rbi +6 -0
- data/rbi/knockapi/resources/audiences.rbi +1 -0
- data/rbi/knockapi/resources/bulk_operations.rbi +2 -0
- data/rbi/knockapi/resources/channels/bulk.rbi +2 -0
- data/rbi/knockapi/resources/channels.rbi +2 -0
- data/rbi/knockapi/resources/messages/batch.rbi +1 -0
- data/rbi/knockapi/resources/messages.rbi +2 -0
- data/rbi/knockapi/resources/objects/bulk.rbi +2 -0
- data/rbi/knockapi/resources/objects.rbi +3 -0
- data/rbi/knockapi/resources/providers/ms_teams.rbi +2 -0
- data/rbi/knockapi/resources/providers/slack.rbi +2 -0
- data/rbi/knockapi/resources/providers.rbi +4 -0
- data/rbi/knockapi/resources/schedules/bulk.rbi +2 -0
- data/rbi/knockapi/resources/schedules.rbi +4 -0
- data/rbi/knockapi/resources/tenants/bulk.rbi +2 -0
- data/rbi/knockapi/resources/tenants.rbi +4 -0
- data/rbi/knockapi/resources/users/bulk.rbi +2 -0
- data/rbi/knockapi/resources/users/feeds.rbi +2 -0
- data/rbi/knockapi/resources/users/guides.rbi +2 -0
- data/rbi/knockapi/resources/users.rbi +8 -0
- data/rbi/knockapi/resources/workflows.rbi +2 -0
- data/sig/knockapi/internal/util.rbs +10 -0
- data/sig/knockapi/models/audience_add_members_params.rbs +5 -0
- data/sig/knockapi/models/audience_list_members_params.rbs +8 -3
- data/sig/knockapi/models/audience_remove_members_params.rbs +8 -1
- data/sig/knockapi/models/bulk_operation_get_params.rbs +8 -3
- data/sig/knockapi/models/channels/bulk_update_message_status_params.rbs +10 -0
- data/sig/knockapi/models/condition.rbs +2 -0
- data/sig/knockapi/models/message_archive_params.rbs +11 -3
- data/sig/knockapi/models/message_get_content_params.rbs +11 -3
- data/sig/knockapi/models/message_get_params.rbs +11 -3
- data/sig/knockapi/models/message_list_activities_params.rbs +5 -0
- data/sig/knockapi/models/message_list_delivery_logs_params.rbs +5 -1
- data/sig/knockapi/models/message_list_events_params.rbs +5 -1
- data/sig/knockapi/models/message_mark_as_interacted_params.rbs +5 -1
- data/sig/knockapi/models/message_mark_as_read_params.rbs +11 -3
- data/sig/knockapi/models/message_mark_as_seen_params.rbs +11 -3
- data/sig/knockapi/models/message_mark_as_unread_params.rbs +11 -3
- data/sig/knockapi/models/message_mark_as_unseen_params.rbs +11 -3
- data/sig/knockapi/models/message_unarchive_params.rbs +11 -3
- data/sig/knockapi/models/object_add_subscriptions_params.rbs +10 -0
- data/sig/knockapi/models/object_delete_params.rbs +16 -3
- data/sig/knockapi/models/object_delete_subscriptions_params.rbs +13 -1
- data/sig/knockapi/models/object_get_channel_data_params.rbs +20 -3
- data/sig/knockapi/models/object_get_params.rbs +17 -3
- data/sig/knockapi/models/object_get_preferences_params.rbs +20 -3
- data/sig/knockapi/models/object_list_messages_params.rbs +10 -0
- data/sig/knockapi/models/object_list_params.rbs +5 -0
- data/sig/knockapi/models/object_list_preferences_params.rbs +16 -3
- data/sig/knockapi/models/object_list_schedules_params.rbs +10 -0
- data/sig/knockapi/models/object_list_subscriptions_params.rbs +10 -0
- data/sig/knockapi/models/object_set_channel_data_params.rbs +26 -3
- data/sig/knockapi/models/object_set_params.rbs +10 -0
- data/sig/knockapi/models/object_set_preferences_params.rbs +26 -3
- data/sig/knockapi/models/object_unset_channel_data_params.rbs +20 -3
- data/sig/knockapi/models/objects/bulk_add_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/objects/bulk_delete_params.rbs +5 -1
- data/sig/knockapi/models/objects/bulk_delete_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/objects/bulk_set_params.rbs +8 -1
- data/sig/knockapi/models/providers/ms_team_check_auth_params.rbs +5 -1
- data/sig/knockapi/models/providers/ms_team_list_channels_params.rbs +5 -0
- data/sig/knockapi/models/providers/ms_team_list_teams_params.rbs +5 -0
- data/sig/knockapi/models/providers/ms_team_revoke_access_params.rbs +5 -1
- data/sig/knockapi/models/providers/slack_check_auth_params.rbs +5 -1
- data/sig/knockapi/models/providers/slack_list_channels_params.rbs +5 -0
- data/sig/knockapi/models/providers/slack_revoke_access_params.rbs +5 -1
- data/sig/knockapi/models/tenant_delete_params.rbs +8 -3
- data/sig/knockapi/models/tenant_get_params.rbs +5 -1
- data/sig/knockapi/models/tenant_set_params.rbs +5 -0
- data/sig/knockapi/models/user_delete_params.rbs +11 -3
- data/sig/knockapi/models/user_get_channel_data_params.rbs +16 -3
- data/sig/knockapi/models/user_get_params.rbs +12 -3
- data/sig/knockapi/models/user_get_preferences_params.rbs +10 -1
- data/sig/knockapi/models/user_list_messages_params.rbs +5 -0
- data/sig/knockapi/models/user_list_preferences_params.rbs +11 -3
- data/sig/knockapi/models/user_list_schedules_params.rbs +5 -0
- data/sig/knockapi/models/user_list_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/user_merge_params.rbs +6 -1
- data/sig/knockapi/models/user_set_channel_data_params.rbs +20 -3
- data/sig/knockapi/models/user_set_preferences_params.rbs +20 -3
- data/sig/knockapi/models/user_unset_channel_data_params.rbs +16 -3
- data/sig/knockapi/models/user_update_params.rbs +13 -3
- data/sig/knockapi/models/users/feed_get_settings_params.rbs +16 -3
- data/sig/knockapi/models/users/feed_list_items_params.rbs +10 -0
- data/sig/knockapi/models/users/guide_get_channel_params.rbs +15 -1
- data/sig/knockapi/models/users/guide_mark_message_as_archived_params.rbs +10 -0
- data/sig/knockapi/models/users/guide_mark_message_as_interacted_params.rbs +10 -0
- data/sig/knockapi/models/users/guide_mark_message_as_seen_params.rbs +10 -0
- data/sig/knockapi/models/workflow_cancel_params.rbs +5 -0
- data/sig/knockapi/models/workflow_trigger_params.rbs +5 -0
- metadata +2 -2
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type object_set_channel_data_params =
|
|
4
|
-
{
|
|
4
|
+
{ collection: String, object_id_: String, channel_id: String }
|
|
5
|
+
& Knockapi::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ObjectSetChannelDataParams < Knockapi::Models::Recipients::ChannelDataRequest
|
|
7
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
def
|
|
11
|
+
def collection: -> String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def collection=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def object_id_: -> String
|
|
16
|
+
|
|
17
|
+
def object_id_=: (String _) -> String
|
|
18
|
+
|
|
19
|
+
def channel_id: -> String
|
|
20
|
+
|
|
21
|
+
def channel_id=: (String _) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
collection: String,
|
|
25
|
+
object_id_: String,
|
|
26
|
+
channel_id: String,
|
|
27
|
+
?request_options: Knockapi::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
collection: String,
|
|
32
|
+
object_id_: String,
|
|
33
|
+
channel_id: String,
|
|
34
|
+
request_options: Knockapi::RequestOptions
|
|
35
|
+
}
|
|
13
36
|
end
|
|
14
37
|
end
|
|
15
38
|
end
|
|
@@ -2,6 +2,8 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
type object_set_params =
|
|
4
4
|
{
|
|
5
|
+
collection: String,
|
|
6
|
+
id: String,
|
|
5
7
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
6
8
|
locale: String?,
|
|
7
9
|
name: String?,
|
|
@@ -14,6 +16,10 @@ module Knockapi
|
|
|
14
16
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
15
17
|
include Knockapi::Internal::Type::RequestParameters
|
|
16
18
|
|
|
19
|
+
attr_accessor collection: String
|
|
20
|
+
|
|
21
|
+
attr_accessor id: String
|
|
22
|
+
|
|
17
23
|
attr_reader channel_data: Knockapi::Models::Recipients::inline_channel_data_request?
|
|
18
24
|
|
|
19
25
|
def channel_data=: (
|
|
@@ -33,6 +39,8 @@ module Knockapi
|
|
|
33
39
|
attr_accessor timezone: String?
|
|
34
40
|
|
|
35
41
|
def initialize: (
|
|
42
|
+
collection: String,
|
|
43
|
+
id: String,
|
|
36
44
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
37
45
|
?locale: String?,
|
|
38
46
|
?name: String?,
|
|
@@ -42,6 +50,8 @@ module Knockapi
|
|
|
42
50
|
) -> void
|
|
43
51
|
|
|
44
52
|
def to_hash: -> {
|
|
53
|
+
collection: String,
|
|
54
|
+
id: String,
|
|
45
55
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
46
56
|
locale: String?,
|
|
47
57
|
name: String?,
|
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type object_set_preferences_params =
|
|
4
|
-
{
|
|
4
|
+
{ collection: String, object_id_: String, id: String }
|
|
5
|
+
& Knockapi::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ObjectSetPreferencesParams < Knockapi::Models::Recipients::PreferenceSetRequest
|
|
7
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
def
|
|
11
|
+
def collection: -> String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def collection=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def object_id_: -> String
|
|
16
|
+
|
|
17
|
+
def object_id_=: (String _) -> String
|
|
18
|
+
|
|
19
|
+
def id: -> String
|
|
20
|
+
|
|
21
|
+
def id=: (String _) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
collection: String,
|
|
25
|
+
object_id_: String,
|
|
26
|
+
id: String,
|
|
27
|
+
?request_options: Knockapi::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
collection: String,
|
|
32
|
+
object_id_: String,
|
|
33
|
+
id: String,
|
|
34
|
+
request_options: Knockapi::RequestOptions
|
|
35
|
+
}
|
|
13
36
|
end
|
|
14
37
|
end
|
|
15
38
|
end
|
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type object_unset_channel_data_params =
|
|
4
|
-
{
|
|
4
|
+
{ collection: String, object_id_: String, channel_id: String }
|
|
5
|
+
& Knockapi::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ObjectUnsetChannelDataParams < Knockapi::Internal::Type::BaseModel
|
|
7
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor collection: String
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
attr_accessor object_id_: String
|
|
14
|
+
|
|
15
|
+
attr_accessor channel_id: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
collection: String,
|
|
19
|
+
object_id_: String,
|
|
20
|
+
channel_id: String,
|
|
21
|
+
?request_options: Knockapi::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
collection: String,
|
|
26
|
+
object_id_: String,
|
|
27
|
+
channel_id: String,
|
|
28
|
+
request_options: Knockapi::RequestOptions
|
|
29
|
+
}
|
|
13
30
|
end
|
|
14
31
|
end
|
|
15
32
|
end
|
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
|
3
3
|
module Objects
|
|
4
4
|
type bulk_add_subscriptions_params =
|
|
5
5
|
{
|
|
6
|
+
collection: String,
|
|
6
7
|
subscriptions: ::Array[Knockapi::Objects::BulkAddSubscriptionsParams::Subscription]
|
|
7
8
|
}
|
|
8
9
|
& Knockapi::Internal::Type::request_parameters
|
|
@@ -11,14 +12,18 @@ module Knockapi
|
|
|
11
12
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
12
13
|
include Knockapi::Internal::Type::RequestParameters
|
|
13
14
|
|
|
15
|
+
attr_accessor collection: String
|
|
16
|
+
|
|
14
17
|
attr_accessor subscriptions: ::Array[Knockapi::Objects::BulkAddSubscriptionsParams::Subscription]
|
|
15
18
|
|
|
16
19
|
def initialize: (
|
|
20
|
+
collection: String,
|
|
17
21
|
subscriptions: ::Array[Knockapi::Objects::BulkAddSubscriptionsParams::Subscription],
|
|
18
22
|
?request_options: Knockapi::request_opts
|
|
19
23
|
) -> void
|
|
20
24
|
|
|
21
25
|
def to_hash: -> {
|
|
26
|
+
collection: String,
|
|
22
27
|
subscriptions: ::Array[Knockapi::Objects::BulkAddSubscriptionsParams::Subscription],
|
|
23
28
|
request_options: Knockapi::RequestOptions
|
|
24
29
|
}
|
|
@@ -2,21 +2,25 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Objects
|
|
4
4
|
type bulk_delete_params =
|
|
5
|
-
{ object_ids: ::Array[String] }
|
|
5
|
+
{ collection: String, object_ids: ::Array[String] }
|
|
6
6
|
& Knockapi::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class BulkDeleteParams < Knockapi::Internal::Type::BaseModel
|
|
9
9
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Knockapi::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor collection: String
|
|
13
|
+
|
|
12
14
|
attr_accessor object_ids: ::Array[String]
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
collection: String,
|
|
15
18
|
object_ids: ::Array[String],
|
|
16
19
|
?request_options: Knockapi::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
collection: String,
|
|
20
24
|
object_ids: ::Array[String],
|
|
21
25
|
request_options: Knockapi::RequestOptions
|
|
22
26
|
}
|
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
|
3
3
|
module Objects
|
|
4
4
|
type bulk_delete_subscriptions_params =
|
|
5
5
|
{
|
|
6
|
+
collection: String,
|
|
6
7
|
subscriptions: ::Array[Knockapi::Objects::BulkDeleteSubscriptionsParams::Subscription]
|
|
7
8
|
}
|
|
8
9
|
& Knockapi::Internal::Type::request_parameters
|
|
@@ -11,14 +12,18 @@ module Knockapi
|
|
|
11
12
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
12
13
|
include Knockapi::Internal::Type::RequestParameters
|
|
13
14
|
|
|
15
|
+
attr_accessor collection: String
|
|
16
|
+
|
|
14
17
|
attr_accessor subscriptions: ::Array[Knockapi::Objects::BulkDeleteSubscriptionsParams::Subscription]
|
|
15
18
|
|
|
16
19
|
def initialize: (
|
|
20
|
+
collection: String,
|
|
17
21
|
subscriptions: ::Array[Knockapi::Objects::BulkDeleteSubscriptionsParams::Subscription],
|
|
18
22
|
?request_options: Knockapi::request_opts
|
|
19
23
|
) -> void
|
|
20
24
|
|
|
21
25
|
def to_hash: -> {
|
|
26
|
+
collection: String,
|
|
22
27
|
subscriptions: ::Array[Knockapi::Objects::BulkDeleteSubscriptionsParams::Subscription],
|
|
23
28
|
request_options: Knockapi::RequestOptions
|
|
24
29
|
}
|
|
@@ -2,21 +2,28 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Objects
|
|
4
4
|
type bulk_set_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
collection: String,
|
|
7
|
+
objects: ::Array[Knockapi::Objects::BulkSetParams::Object]
|
|
8
|
+
}
|
|
6
9
|
& Knockapi::Internal::Type::request_parameters
|
|
7
10
|
|
|
8
11
|
class BulkSetParams < Knockapi::Internal::Type::BaseModel
|
|
9
12
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
10
13
|
include Knockapi::Internal::Type::RequestParameters
|
|
11
14
|
|
|
15
|
+
attr_accessor collection: String
|
|
16
|
+
|
|
12
17
|
attr_accessor objects: ::Array[Knockapi::Objects::BulkSetParams::Object]
|
|
13
18
|
|
|
14
19
|
def initialize: (
|
|
20
|
+
collection: String,
|
|
15
21
|
objects: ::Array[Knockapi::Objects::BulkSetParams::Object],
|
|
16
22
|
?request_options: Knockapi::request_opts
|
|
17
23
|
) -> void
|
|
18
24
|
|
|
19
25
|
def to_hash: -> {
|
|
26
|
+
collection: String,
|
|
20
27
|
objects: ::Array[Knockapi::Objects::BulkSetParams::Object],
|
|
21
28
|
request_options: Knockapi::RequestOptions
|
|
22
29
|
}
|
|
@@ -2,21 +2,25 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Providers
|
|
4
4
|
type ms_team_check_auth_params =
|
|
5
|
-
{ ms_teams_tenant_object: String }
|
|
5
|
+
{ channel_id: String, ms_teams_tenant_object: String }
|
|
6
6
|
& Knockapi::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class MsTeamCheckAuthParams < Knockapi::Internal::Type::BaseModel
|
|
9
9
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Knockapi::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor channel_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor ms_teams_tenant_object: String
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
channel_id: String,
|
|
15
18
|
ms_teams_tenant_object: String,
|
|
16
19
|
?request_options: Knockapi::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
channel_id: String,
|
|
20
24
|
ms_teams_tenant_object: String,
|
|
21
25
|
request_options: Knockapi::RequestOptions
|
|
22
26
|
}
|
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
|
3
3
|
module Providers
|
|
4
4
|
type ms_team_list_channels_params =
|
|
5
5
|
{
|
|
6
|
+
channel_id: String,
|
|
6
7
|
ms_teams_tenant_object: String,
|
|
7
8
|
team_id: String,
|
|
8
9
|
query_options: Knockapi::Providers::MsTeamListChannelsParams::QueryOptions
|
|
@@ -13,6 +14,8 @@ module Knockapi
|
|
|
13
14
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Knockapi::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor channel_id: String
|
|
18
|
+
|
|
16
19
|
attr_accessor ms_teams_tenant_object: String
|
|
17
20
|
|
|
18
21
|
attr_accessor team_id: String
|
|
@@ -24,6 +27,7 @@ module Knockapi
|
|
|
24
27
|
) -> Knockapi::Providers::MsTeamListChannelsParams::QueryOptions
|
|
25
28
|
|
|
26
29
|
def initialize: (
|
|
30
|
+
channel_id: String,
|
|
27
31
|
ms_teams_tenant_object: String,
|
|
28
32
|
team_id: String,
|
|
29
33
|
?query_options: Knockapi::Providers::MsTeamListChannelsParams::QueryOptions,
|
|
@@ -31,6 +35,7 @@ module Knockapi
|
|
|
31
35
|
) -> void
|
|
32
36
|
|
|
33
37
|
def to_hash: -> {
|
|
38
|
+
channel_id: String,
|
|
34
39
|
ms_teams_tenant_object: String,
|
|
35
40
|
team_id: String,
|
|
36
41
|
query_options: Knockapi::Providers::MsTeamListChannelsParams::QueryOptions,
|
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
|
3
3
|
module Providers
|
|
4
4
|
type ms_team_list_teams_params =
|
|
5
5
|
{
|
|
6
|
+
channel_id: String,
|
|
6
7
|
ms_teams_tenant_object: String,
|
|
7
8
|
query_options: Knockapi::Providers::MsTeamListTeamsParams::QueryOptions
|
|
8
9
|
}
|
|
@@ -12,6 +13,8 @@ module Knockapi
|
|
|
12
13
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
13
14
|
include Knockapi::Internal::Type::RequestParameters
|
|
14
15
|
|
|
16
|
+
attr_accessor channel_id: String
|
|
17
|
+
|
|
15
18
|
attr_accessor ms_teams_tenant_object: String
|
|
16
19
|
|
|
17
20
|
attr_reader query_options: Knockapi::Providers::MsTeamListTeamsParams::QueryOptions?
|
|
@@ -21,12 +24,14 @@ module Knockapi
|
|
|
21
24
|
) -> Knockapi::Providers::MsTeamListTeamsParams::QueryOptions
|
|
22
25
|
|
|
23
26
|
def initialize: (
|
|
27
|
+
channel_id: String,
|
|
24
28
|
ms_teams_tenant_object: String,
|
|
25
29
|
?query_options: Knockapi::Providers::MsTeamListTeamsParams::QueryOptions,
|
|
26
30
|
?request_options: Knockapi::request_opts
|
|
27
31
|
) -> void
|
|
28
32
|
|
|
29
33
|
def to_hash: -> {
|
|
34
|
+
channel_id: String,
|
|
30
35
|
ms_teams_tenant_object: String,
|
|
31
36
|
query_options: Knockapi::Providers::MsTeamListTeamsParams::QueryOptions,
|
|
32
37
|
request_options: Knockapi::RequestOptions
|
|
@@ -2,21 +2,25 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Providers
|
|
4
4
|
type ms_team_revoke_access_params =
|
|
5
|
-
{ ms_teams_tenant_object: String }
|
|
5
|
+
{ channel_id: String, ms_teams_tenant_object: String }
|
|
6
6
|
& Knockapi::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class MsTeamRevokeAccessParams < Knockapi::Internal::Type::BaseModel
|
|
9
9
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Knockapi::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor channel_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor ms_teams_tenant_object: String
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
channel_id: String,
|
|
15
18
|
ms_teams_tenant_object: String,
|
|
16
19
|
?request_options: Knockapi::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
channel_id: String,
|
|
20
24
|
ms_teams_tenant_object: String,
|
|
21
25
|
request_options: Knockapi::RequestOptions
|
|
22
26
|
}
|
|
@@ -2,21 +2,25 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Providers
|
|
4
4
|
type slack_check_auth_params =
|
|
5
|
-
{ access_token_object: String }
|
|
5
|
+
{ channel_id: String, access_token_object: String }
|
|
6
6
|
& Knockapi::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class SlackCheckAuthParams < Knockapi::Internal::Type::BaseModel
|
|
9
9
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Knockapi::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor channel_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor access_token_object: String
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
channel_id: String,
|
|
15
18
|
access_token_object: String,
|
|
16
19
|
?request_options: Knockapi::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
channel_id: String,
|
|
20
24
|
access_token_object: String,
|
|
21
25
|
request_options: Knockapi::RequestOptions
|
|
22
26
|
}
|
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
|
3
3
|
module Providers
|
|
4
4
|
type slack_list_channels_params =
|
|
5
5
|
{
|
|
6
|
+
channel_id: String,
|
|
6
7
|
access_token_object: String,
|
|
7
8
|
query_options: Knockapi::Providers::SlackListChannelsParams::QueryOptions
|
|
8
9
|
}
|
|
@@ -12,6 +13,8 @@ module Knockapi
|
|
|
12
13
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
13
14
|
include Knockapi::Internal::Type::RequestParameters
|
|
14
15
|
|
|
16
|
+
attr_accessor channel_id: String
|
|
17
|
+
|
|
15
18
|
attr_accessor access_token_object: String
|
|
16
19
|
|
|
17
20
|
attr_reader query_options: Knockapi::Providers::SlackListChannelsParams::QueryOptions?
|
|
@@ -21,12 +24,14 @@ module Knockapi
|
|
|
21
24
|
) -> Knockapi::Providers::SlackListChannelsParams::QueryOptions
|
|
22
25
|
|
|
23
26
|
def initialize: (
|
|
27
|
+
channel_id: String,
|
|
24
28
|
access_token_object: String,
|
|
25
29
|
?query_options: Knockapi::Providers::SlackListChannelsParams::QueryOptions,
|
|
26
30
|
?request_options: Knockapi::request_opts
|
|
27
31
|
) -> void
|
|
28
32
|
|
|
29
33
|
def to_hash: -> {
|
|
34
|
+
channel_id: String,
|
|
30
35
|
access_token_object: String,
|
|
31
36
|
query_options: Knockapi::Providers::SlackListChannelsParams::QueryOptions,
|
|
32
37
|
request_options: Knockapi::RequestOptions
|
|
@@ -2,21 +2,25 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Providers
|
|
4
4
|
type slack_revoke_access_params =
|
|
5
|
-
{ access_token_object: String }
|
|
5
|
+
{ channel_id: String, access_token_object: String }
|
|
6
6
|
& Knockapi::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class SlackRevokeAccessParams < Knockapi::Internal::Type::BaseModel
|
|
9
9
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Knockapi::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor channel_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor access_token_object: String
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
channel_id: String,
|
|
15
18
|
access_token_object: String,
|
|
16
19
|
?request_options: Knockapi::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
channel_id: String,
|
|
20
24
|
access_token_object: String,
|
|
21
25
|
request_options: Knockapi::RequestOptions
|
|
22
26
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class TenantDeleteParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Knockapi::RequestOptions }
|
|
13
18
|
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_get_params =
|
|
4
|
-
{ resolve_full_preference_settings: bool }
|
|
4
|
+
{ id: String, resolve_full_preference_settings: bool }
|
|
5
5
|
& Knockapi::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class TenantGetParams < Knockapi::Internal::Type::BaseModel
|
|
8
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
11
13
|
attr_reader resolve_full_preference_settings: bool?
|
|
12
14
|
|
|
13
15
|
def resolve_full_preference_settings=: (bool) -> bool
|
|
14
16
|
|
|
15
17
|
def initialize: (
|
|
18
|
+
id: String,
|
|
16
19
|
?resolve_full_preference_settings: bool,
|
|
17
20
|
?request_options: Knockapi::request_opts
|
|
18
21
|
) -> void
|
|
19
22
|
|
|
20
23
|
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
21
25
|
resolve_full_preference_settings: bool,
|
|
22
26
|
request_options: Knockapi::RequestOptions
|
|
23
27
|
}
|
|
@@ -2,6 +2,7 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_set_params =
|
|
4
4
|
{
|
|
5
|
+
id: String,
|
|
5
6
|
resolve_full_preference_settings: bool,
|
|
6
7
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
7
8
|
name: String?,
|
|
@@ -13,6 +14,8 @@ module Knockapi
|
|
|
13
14
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Knockapi::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
16
19
|
attr_reader resolve_full_preference_settings: bool?
|
|
17
20
|
|
|
18
21
|
def resolve_full_preference_settings=: (bool) -> bool
|
|
@@ -28,6 +31,7 @@ module Knockapi
|
|
|
28
31
|
) -> Knockapi::TenantSetParams::Settings
|
|
29
32
|
|
|
30
33
|
def initialize: (
|
|
34
|
+
id: String,
|
|
31
35
|
?resolve_full_preference_settings: bool,
|
|
32
36
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
33
37
|
?name: String?,
|
|
@@ -36,6 +40,7 @@ module Knockapi
|
|
|
36
40
|
) -> void
|
|
37
41
|
|
|
38
42
|
def to_hash: -> {
|
|
43
|
+
id: String,
|
|
39
44
|
resolve_full_preference_settings: bool,
|
|
40
45
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
41
46
|
name: String?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type user_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ user_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class UserDeleteParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor user_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
user_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
user_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type user_get_channel_data_params =
|
|
4
|
-
{
|
|
4
|
+
{ user_id: String, channel_id: String }
|
|
5
|
+
& Knockapi::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class UserGetChannelDataParams < Knockapi::Internal::Type::BaseModel
|
|
7
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor user_id: String
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
attr_accessor channel_id: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
user_id: String,
|
|
17
|
+
channel_id: String,
|
|
18
|
+
?request_options: Knockapi::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
user_id: String,
|
|
23
|
+
channel_id: String,
|
|
24
|
+
request_options: Knockapi::RequestOptions
|
|
25
|
+
}
|
|
13
26
|
end
|
|
14
27
|
end
|
|
15
28
|
end
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
|
-
type user_get_params =
|
|
3
|
+
type user_get_params =
|
|
4
|
+
{ user_id: String } & Knockapi::Internal::Type::request_parameters
|
|
4
5
|
|
|
5
6
|
class UserGetParams < Knockapi::Internal::Type::BaseModel
|
|
6
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
7
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
attr_accessor user_id: String
|
|
10
11
|
|
|
11
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
user_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
user_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
12
21
|
end
|
|
13
22
|
end
|
|
14
23
|
end
|