sentdm 0.30.0 → 0.31.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 +13 -0
- data/README.md +29 -1
- data/lib/sentdm/internal/contacts_page.rb +115 -0
- data/lib/sentdm/internal/conversations_page.rb +115 -0
- data/lib/sentdm/internal/templates_page.rb +115 -0
- data/lib/sentdm/internal/webhook_events_page.rb +115 -0
- data/lib/sentdm/internal/webhooks_page.rb +115 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +0 -1
- data/lib/sentdm/models/contact_list_params.rb +13 -13
- data/lib/sentdm/models/contact_response.rb +1 -0
- data/lib/sentdm/models/conversation_list_messages_params.rb +5 -5
- data/lib/sentdm/models/conversation_list_params.rb +5 -5
- data/lib/sentdm/models/template.rb +1 -0
- data/lib/sentdm/models/template_list_params.rb +17 -17
- data/lib/sentdm/models/webhook_list_events_params.rb +5 -5
- data/lib/sentdm/models/webhook_list_events_response.rb +108 -168
- data/lib/sentdm/models/webhook_list_params.rb +11 -11
- data/lib/sentdm/models/webhook_response.rb +1 -0
- data/lib/sentdm/resources/contacts.rb +8 -7
- data/lib/sentdm/resources/conversations.rb +10 -8
- data/lib/sentdm/resources/templates.rb +10 -9
- data/lib/sentdm/resources/webhooks.rb +12 -10
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +5 -3
- data/rbi/sentdm/internal/contacts_page.rbi +71 -0
- data/rbi/sentdm/internal/conversations_page.rbi +71 -0
- data/rbi/sentdm/internal/templates_page.rbi +71 -0
- data/rbi/sentdm/internal/webhook_events_page.rbi +71 -0
- data/rbi/sentdm/internal/webhooks_page.rbi +71 -0
- data/rbi/sentdm/models/contact_list_params.rbi +19 -13
- data/rbi/sentdm/models/conversation_list_messages_params.rbi +12 -6
- data/rbi/sentdm/models/conversation_list_params.rbi +16 -5
- data/rbi/sentdm/models/template_list_params.rbi +22 -16
- data/rbi/sentdm/models/webhook_list_events_params.rbi +12 -6
- data/rbi/sentdm/models/webhook_list_events_response.rbi +114 -263
- data/rbi/sentdm/models/webhook_list_params.rbi +16 -10
- data/rbi/sentdm/resources/contacts.rbi +6 -6
- data/rbi/sentdm/resources/conversations.rbi +14 -6
- data/rbi/sentdm/resources/templates.rbi +7 -7
- data/rbi/sentdm/resources/webhooks.rbi +12 -8
- data/sig/sentdm/internal/contacts_page.rbs +41 -0
- data/sig/sentdm/internal/conversations_page.rbs +41 -0
- data/sig/sentdm/internal/templates_page.rbs +44 -0
- data/sig/sentdm/internal/webhook_events_page.rbs +41 -0
- data/sig/sentdm/internal/webhooks_page.rbs +41 -0
- data/sig/sentdm/models/contact_list_params.rbs +11 -7
- data/sig/sentdm/models/conversation_list_messages_params.rbs +8 -4
- data/sig/sentdm/models/conversation_list_params.rbs +8 -4
- data/sig/sentdm/models/template_list_params.rbs +14 -10
- data/sig/sentdm/models/webhook_list_events_params.rbs +8 -4
- data/sig/sentdm/models/webhook_list_events_response.rbs +63 -127
- data/sig/sentdm/models/webhook_list_params.rbs +11 -7
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/conversations.rbs +6 -6
- data/sig/sentdm/resources/templates.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +6 -6
- metadata +16 -10
- data/lib/sentdm/models/contact_list_response.rb +0 -65
- data/lib/sentdm/models/template_list_response.rb +0 -65
- data/lib/sentdm/models/webhook_list_response.rb +0 -65
- data/rbi/sentdm/models/contact_list_response.rbi +0 -128
- data/rbi/sentdm/models/template_list_response.rbi +0 -128
- data/rbi/sentdm/models/webhook_list_response.rbi +0 -128
- data/sig/sentdm/models/contact_list_response.rbs +0 -67
- data/sig/sentdm/models/template_list_response.rbs +0 -65
- data/sig/sentdm/models/webhook_list_response.rbs +0 -67
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Webhooks#list
|
|
6
|
-
class WebhookListResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# A paginated list of webhooks.
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::WebhookListResponse::Data, nil]
|
|
11
|
-
optional :data, -> { Sentdm::Models::WebhookListResponse::Data }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Standard API response envelope for all v3 endpoints
|
|
33
|
-
#
|
|
34
|
-
# @param data [Sentdm::Models::WebhookListResponse::Data, nil] A paginated list of webhooks.
|
|
35
|
-
#
|
|
36
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
|
-
#
|
|
38
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
|
-
#
|
|
40
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
41
|
-
|
|
42
|
-
# @see Sentdm::Models::WebhookListResponse#data
|
|
43
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
44
|
-
# @!attribute pagination
|
|
45
|
-
# Pagination metadata for list responses
|
|
46
|
-
#
|
|
47
|
-
# @return [Sentdm::Models::PaginationMeta, nil]
|
|
48
|
-
optional :pagination, -> { Sentdm::PaginationMeta }
|
|
49
|
-
|
|
50
|
-
# @!attribute webhooks
|
|
51
|
-
# The webhooks on this page.
|
|
52
|
-
#
|
|
53
|
-
# @return [Array<Sentdm::Models::WebhookResponse>, nil]
|
|
54
|
-
optional :webhooks, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::WebhookResponse] }
|
|
55
|
-
|
|
56
|
-
# @!method initialize(pagination: nil, webhooks: nil)
|
|
57
|
-
# A paginated list of webhooks.
|
|
58
|
-
#
|
|
59
|
-
# @param pagination [Sentdm::Models::PaginationMeta] Pagination metadata for list responses
|
|
60
|
-
#
|
|
61
|
-
# @param webhooks [Array<Sentdm::Models::WebhookResponse>] The webhooks on this page.
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class ContactListResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::Models::ContactListResponse, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# A paginated list of contacts.
|
|
12
|
-
sig { returns(T.nilable(Sentdm::Models::ContactListResponse::Data)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig do
|
|
16
|
-
params(
|
|
17
|
-
data: T.nilable(Sentdm::Models::ContactListResponse::Data::OrHash)
|
|
18
|
-
).void
|
|
19
|
-
end
|
|
20
|
-
attr_writer :data
|
|
21
|
-
|
|
22
|
-
# Error information
|
|
23
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
24
|
-
attr_reader :error
|
|
25
|
-
|
|
26
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
27
|
-
attr_writer :error
|
|
28
|
-
|
|
29
|
-
# Request and response metadata
|
|
30
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
31
|
-
attr_reader :meta
|
|
32
|
-
|
|
33
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
34
|
-
attr_writer :meta
|
|
35
|
-
|
|
36
|
-
# Indicates whether the request was successful
|
|
37
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
38
|
-
attr_reader :success
|
|
39
|
-
|
|
40
|
-
sig { params(success: T::Boolean).void }
|
|
41
|
-
attr_writer :success
|
|
42
|
-
|
|
43
|
-
# Standard API response envelope for all v3 endpoints
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
data: T.nilable(Sentdm::Models::ContactListResponse::Data::OrHash),
|
|
47
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
48
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
49
|
-
success: T::Boolean
|
|
50
|
-
).returns(T.attached_class)
|
|
51
|
-
end
|
|
52
|
-
def self.new(
|
|
53
|
-
# A paginated list of contacts.
|
|
54
|
-
data: nil,
|
|
55
|
-
# Error information
|
|
56
|
-
error: nil,
|
|
57
|
-
# Request and response metadata
|
|
58
|
-
meta: nil,
|
|
59
|
-
# Indicates whether the request was successful
|
|
60
|
-
success: nil
|
|
61
|
-
)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
sig do
|
|
65
|
-
override.returns(
|
|
66
|
-
{
|
|
67
|
-
data: T.nilable(Sentdm::Models::ContactListResponse::Data),
|
|
68
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
69
|
-
meta: Sentdm::APIMeta,
|
|
70
|
-
success: T::Boolean
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
def to_hash
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
78
|
-
OrHash =
|
|
79
|
-
T.type_alias do
|
|
80
|
-
T.any(
|
|
81
|
-
Sentdm::Models::ContactListResponse::Data,
|
|
82
|
-
Sentdm::Internal::AnyHash
|
|
83
|
-
)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# The contacts on this page.
|
|
87
|
-
sig { returns(T.nilable(T::Array[Sentdm::ContactResponse])) }
|
|
88
|
-
attr_reader :contacts
|
|
89
|
-
|
|
90
|
-
sig { params(contacts: T::Array[Sentdm::ContactResponse::OrHash]).void }
|
|
91
|
-
attr_writer :contacts
|
|
92
|
-
|
|
93
|
-
# Pagination metadata for list responses
|
|
94
|
-
sig { returns(T.nilable(Sentdm::PaginationMeta)) }
|
|
95
|
-
attr_reader :pagination
|
|
96
|
-
|
|
97
|
-
sig { params(pagination: Sentdm::PaginationMeta::OrHash).void }
|
|
98
|
-
attr_writer :pagination
|
|
99
|
-
|
|
100
|
-
# A paginated list of contacts.
|
|
101
|
-
sig do
|
|
102
|
-
params(
|
|
103
|
-
contacts: T::Array[Sentdm::ContactResponse::OrHash],
|
|
104
|
-
pagination: Sentdm::PaginationMeta::OrHash
|
|
105
|
-
).returns(T.attached_class)
|
|
106
|
-
end
|
|
107
|
-
def self.new(
|
|
108
|
-
# The contacts on this page.
|
|
109
|
-
contacts: nil,
|
|
110
|
-
# Pagination metadata for list responses
|
|
111
|
-
pagination: nil
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
sig do
|
|
116
|
-
override.returns(
|
|
117
|
-
{
|
|
118
|
-
contacts: T::Array[Sentdm::ContactResponse],
|
|
119
|
-
pagination: Sentdm::PaginationMeta
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
end
|
|
123
|
-
def to_hash
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
end
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class TemplateListResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::Models::TemplateListResponse, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# A paginated list of templates.
|
|
12
|
-
sig { returns(T.nilable(Sentdm::Models::TemplateListResponse::Data)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig do
|
|
16
|
-
params(
|
|
17
|
-
data: T.nilable(Sentdm::Models::TemplateListResponse::Data::OrHash)
|
|
18
|
-
).void
|
|
19
|
-
end
|
|
20
|
-
attr_writer :data
|
|
21
|
-
|
|
22
|
-
# Error information
|
|
23
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
24
|
-
attr_reader :error
|
|
25
|
-
|
|
26
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
27
|
-
attr_writer :error
|
|
28
|
-
|
|
29
|
-
# Request and response metadata
|
|
30
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
31
|
-
attr_reader :meta
|
|
32
|
-
|
|
33
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
34
|
-
attr_writer :meta
|
|
35
|
-
|
|
36
|
-
# Indicates whether the request was successful
|
|
37
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
38
|
-
attr_reader :success
|
|
39
|
-
|
|
40
|
-
sig { params(success: T::Boolean).void }
|
|
41
|
-
attr_writer :success
|
|
42
|
-
|
|
43
|
-
# Standard API response envelope for all v3 endpoints
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
data: T.nilable(Sentdm::Models::TemplateListResponse::Data::OrHash),
|
|
47
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
48
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
49
|
-
success: T::Boolean
|
|
50
|
-
).returns(T.attached_class)
|
|
51
|
-
end
|
|
52
|
-
def self.new(
|
|
53
|
-
# A paginated list of templates.
|
|
54
|
-
data: nil,
|
|
55
|
-
# Error information
|
|
56
|
-
error: nil,
|
|
57
|
-
# Request and response metadata
|
|
58
|
-
meta: nil,
|
|
59
|
-
# Indicates whether the request was successful
|
|
60
|
-
success: nil
|
|
61
|
-
)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
sig do
|
|
65
|
-
override.returns(
|
|
66
|
-
{
|
|
67
|
-
data: T.nilable(Sentdm::Models::TemplateListResponse::Data),
|
|
68
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
69
|
-
meta: Sentdm::APIMeta,
|
|
70
|
-
success: T::Boolean
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
def to_hash
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
78
|
-
OrHash =
|
|
79
|
-
T.type_alias do
|
|
80
|
-
T.any(
|
|
81
|
-
Sentdm::Models::TemplateListResponse::Data,
|
|
82
|
-
Sentdm::Internal::AnyHash
|
|
83
|
-
)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Pagination metadata for list responses
|
|
87
|
-
sig { returns(T.nilable(Sentdm::PaginationMeta)) }
|
|
88
|
-
attr_reader :pagination
|
|
89
|
-
|
|
90
|
-
sig { params(pagination: Sentdm::PaginationMeta::OrHash).void }
|
|
91
|
-
attr_writer :pagination
|
|
92
|
-
|
|
93
|
-
# The templates on this page.
|
|
94
|
-
sig { returns(T.nilable(T::Array[Sentdm::Template])) }
|
|
95
|
-
attr_reader :templates
|
|
96
|
-
|
|
97
|
-
sig { params(templates: T::Array[Sentdm::Template::OrHash]).void }
|
|
98
|
-
attr_writer :templates
|
|
99
|
-
|
|
100
|
-
# A paginated list of templates.
|
|
101
|
-
sig do
|
|
102
|
-
params(
|
|
103
|
-
pagination: Sentdm::PaginationMeta::OrHash,
|
|
104
|
-
templates: T::Array[Sentdm::Template::OrHash]
|
|
105
|
-
).returns(T.attached_class)
|
|
106
|
-
end
|
|
107
|
-
def self.new(
|
|
108
|
-
# Pagination metadata for list responses
|
|
109
|
-
pagination: nil,
|
|
110
|
-
# The templates on this page.
|
|
111
|
-
templates: nil
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
sig do
|
|
116
|
-
override.returns(
|
|
117
|
-
{
|
|
118
|
-
pagination: Sentdm::PaginationMeta,
|
|
119
|
-
templates: T::Array[Sentdm::Template]
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
end
|
|
123
|
-
def to_hash
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
end
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class WebhookListResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::Models::WebhookListResponse, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# A paginated list of webhooks.
|
|
12
|
-
sig { returns(T.nilable(Sentdm::Models::WebhookListResponse::Data)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig do
|
|
16
|
-
params(
|
|
17
|
-
data: T.nilable(Sentdm::Models::WebhookListResponse::Data::OrHash)
|
|
18
|
-
).void
|
|
19
|
-
end
|
|
20
|
-
attr_writer :data
|
|
21
|
-
|
|
22
|
-
# Error information
|
|
23
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
24
|
-
attr_reader :error
|
|
25
|
-
|
|
26
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
27
|
-
attr_writer :error
|
|
28
|
-
|
|
29
|
-
# Request and response metadata
|
|
30
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
31
|
-
attr_reader :meta
|
|
32
|
-
|
|
33
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
34
|
-
attr_writer :meta
|
|
35
|
-
|
|
36
|
-
# Indicates whether the request was successful
|
|
37
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
38
|
-
attr_reader :success
|
|
39
|
-
|
|
40
|
-
sig { params(success: T::Boolean).void }
|
|
41
|
-
attr_writer :success
|
|
42
|
-
|
|
43
|
-
# Standard API response envelope for all v3 endpoints
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
data: T.nilable(Sentdm::Models::WebhookListResponse::Data::OrHash),
|
|
47
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
48
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
49
|
-
success: T::Boolean
|
|
50
|
-
).returns(T.attached_class)
|
|
51
|
-
end
|
|
52
|
-
def self.new(
|
|
53
|
-
# A paginated list of webhooks.
|
|
54
|
-
data: nil,
|
|
55
|
-
# Error information
|
|
56
|
-
error: nil,
|
|
57
|
-
# Request and response metadata
|
|
58
|
-
meta: nil,
|
|
59
|
-
# Indicates whether the request was successful
|
|
60
|
-
success: nil
|
|
61
|
-
)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
sig do
|
|
65
|
-
override.returns(
|
|
66
|
-
{
|
|
67
|
-
data: T.nilable(Sentdm::Models::WebhookListResponse::Data),
|
|
68
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
69
|
-
meta: Sentdm::APIMeta,
|
|
70
|
-
success: T::Boolean
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
def to_hash
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
78
|
-
OrHash =
|
|
79
|
-
T.type_alias do
|
|
80
|
-
T.any(
|
|
81
|
-
Sentdm::Models::WebhookListResponse::Data,
|
|
82
|
-
Sentdm::Internal::AnyHash
|
|
83
|
-
)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Pagination metadata for list responses
|
|
87
|
-
sig { returns(T.nilable(Sentdm::PaginationMeta)) }
|
|
88
|
-
attr_reader :pagination
|
|
89
|
-
|
|
90
|
-
sig { params(pagination: Sentdm::PaginationMeta::OrHash).void }
|
|
91
|
-
attr_writer :pagination
|
|
92
|
-
|
|
93
|
-
# The webhooks on this page.
|
|
94
|
-
sig { returns(T.nilable(T::Array[Sentdm::WebhookResponse])) }
|
|
95
|
-
attr_reader :webhooks
|
|
96
|
-
|
|
97
|
-
sig { params(webhooks: T::Array[Sentdm::WebhookResponse::OrHash]).void }
|
|
98
|
-
attr_writer :webhooks
|
|
99
|
-
|
|
100
|
-
# A paginated list of webhooks.
|
|
101
|
-
sig do
|
|
102
|
-
params(
|
|
103
|
-
pagination: Sentdm::PaginationMeta::OrHash,
|
|
104
|
-
webhooks: T::Array[Sentdm::WebhookResponse::OrHash]
|
|
105
|
-
).returns(T.attached_class)
|
|
106
|
-
end
|
|
107
|
-
def self.new(
|
|
108
|
-
# Pagination metadata for list responses
|
|
109
|
-
pagination: nil,
|
|
110
|
-
# The webhooks on this page.
|
|
111
|
-
webhooks: nil
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
sig do
|
|
116
|
-
override.returns(
|
|
117
|
-
{
|
|
118
|
-
pagination: Sentdm::PaginationMeta,
|
|
119
|
-
webhooks: T::Array[Sentdm::WebhookResponse]
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
end
|
|
123
|
-
def to_hash
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
module Sentdm
|
|
2
|
-
module Models
|
|
3
|
-
type contact_list_response =
|
|
4
|
-
{
|
|
5
|
-
data: Sentdm::Models::ContactListResponse::Data?,
|
|
6
|
-
error: Sentdm::ErrorDetail?,
|
|
7
|
-
meta: Sentdm::APIMeta,
|
|
8
|
-
success: bool
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class ContactListResponse < Sentdm::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor data: Sentdm::Models::ContactListResponse::Data?
|
|
13
|
-
|
|
14
|
-
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
-
|
|
16
|
-
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
-
|
|
18
|
-
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
-
|
|
20
|
-
attr_reader success: bool?
|
|
21
|
-
|
|
22
|
-
def success=: (bool) -> bool
|
|
23
|
-
|
|
24
|
-
def initialize: (
|
|
25
|
-
?data: Sentdm::Models::ContactListResponse::Data?,
|
|
26
|
-
?error: Sentdm::ErrorDetail?,
|
|
27
|
-
?meta: Sentdm::APIMeta,
|
|
28
|
-
?success: bool
|
|
29
|
-
) -> void
|
|
30
|
-
|
|
31
|
-
def to_hash: -> {
|
|
32
|
-
data: Sentdm::Models::ContactListResponse::Data?,
|
|
33
|
-
error: Sentdm::ErrorDetail?,
|
|
34
|
-
meta: Sentdm::APIMeta,
|
|
35
|
-
success: bool
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type data =
|
|
39
|
-
{
|
|
40
|
-
contacts: ::Array[Sentdm::ContactResponse],
|
|
41
|
-
pagination: Sentdm::PaginationMeta
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
45
|
-
attr_reader contacts: ::Array[Sentdm::ContactResponse]?
|
|
46
|
-
|
|
47
|
-
def contacts=: (
|
|
48
|
-
::Array[Sentdm::ContactResponse]
|
|
49
|
-
) -> ::Array[Sentdm::ContactResponse]
|
|
50
|
-
|
|
51
|
-
attr_reader pagination: Sentdm::PaginationMeta?
|
|
52
|
-
|
|
53
|
-
def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
|
|
54
|
-
|
|
55
|
-
def initialize: (
|
|
56
|
-
?contacts: ::Array[Sentdm::ContactResponse],
|
|
57
|
-
?pagination: Sentdm::PaginationMeta
|
|
58
|
-
) -> void
|
|
59
|
-
|
|
60
|
-
def to_hash: -> {
|
|
61
|
-
contacts: ::Array[Sentdm::ContactResponse],
|
|
62
|
-
pagination: Sentdm::PaginationMeta
|
|
63
|
-
}
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
module Sentdm
|
|
2
|
-
module Models
|
|
3
|
-
type template_list_response =
|
|
4
|
-
{
|
|
5
|
-
data: Sentdm::Models::TemplateListResponse::Data?,
|
|
6
|
-
error: Sentdm::ErrorDetail?,
|
|
7
|
-
meta: Sentdm::APIMeta,
|
|
8
|
-
success: bool
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class TemplateListResponse < Sentdm::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor data: Sentdm::Models::TemplateListResponse::Data?
|
|
13
|
-
|
|
14
|
-
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
-
|
|
16
|
-
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
-
|
|
18
|
-
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
-
|
|
20
|
-
attr_reader success: bool?
|
|
21
|
-
|
|
22
|
-
def success=: (bool) -> bool
|
|
23
|
-
|
|
24
|
-
def initialize: (
|
|
25
|
-
?data: Sentdm::Models::TemplateListResponse::Data?,
|
|
26
|
-
?error: Sentdm::ErrorDetail?,
|
|
27
|
-
?meta: Sentdm::APIMeta,
|
|
28
|
-
?success: bool
|
|
29
|
-
) -> void
|
|
30
|
-
|
|
31
|
-
def to_hash: -> {
|
|
32
|
-
data: Sentdm::Models::TemplateListResponse::Data?,
|
|
33
|
-
error: Sentdm::ErrorDetail?,
|
|
34
|
-
meta: Sentdm::APIMeta,
|
|
35
|
-
success: bool
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type data =
|
|
39
|
-
{
|
|
40
|
-
pagination: Sentdm::PaginationMeta,
|
|
41
|
-
templates: ::Array[Sentdm::Template]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
45
|
-
attr_reader pagination: Sentdm::PaginationMeta?
|
|
46
|
-
|
|
47
|
-
def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
|
|
48
|
-
|
|
49
|
-
attr_reader templates: ::Array[Sentdm::Template]?
|
|
50
|
-
|
|
51
|
-
def templates=: (::Array[Sentdm::Template]) -> ::Array[Sentdm::Template]
|
|
52
|
-
|
|
53
|
-
def initialize: (
|
|
54
|
-
?pagination: Sentdm::PaginationMeta,
|
|
55
|
-
?templates: ::Array[Sentdm::Template]
|
|
56
|
-
) -> void
|
|
57
|
-
|
|
58
|
-
def to_hash: -> {
|
|
59
|
-
pagination: Sentdm::PaginationMeta,
|
|
60
|
-
templates: ::Array[Sentdm::Template]
|
|
61
|
-
}
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
module Sentdm
|
|
2
|
-
module Models
|
|
3
|
-
type webhook_list_response =
|
|
4
|
-
{
|
|
5
|
-
data: Sentdm::Models::WebhookListResponse::Data?,
|
|
6
|
-
error: Sentdm::ErrorDetail?,
|
|
7
|
-
meta: Sentdm::APIMeta,
|
|
8
|
-
success: bool
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class WebhookListResponse < Sentdm::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor data: Sentdm::Models::WebhookListResponse::Data?
|
|
13
|
-
|
|
14
|
-
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
-
|
|
16
|
-
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
-
|
|
18
|
-
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
-
|
|
20
|
-
attr_reader success: bool?
|
|
21
|
-
|
|
22
|
-
def success=: (bool) -> bool
|
|
23
|
-
|
|
24
|
-
def initialize: (
|
|
25
|
-
?data: Sentdm::Models::WebhookListResponse::Data?,
|
|
26
|
-
?error: Sentdm::ErrorDetail?,
|
|
27
|
-
?meta: Sentdm::APIMeta,
|
|
28
|
-
?success: bool
|
|
29
|
-
) -> void
|
|
30
|
-
|
|
31
|
-
def to_hash: -> {
|
|
32
|
-
data: Sentdm::Models::WebhookListResponse::Data?,
|
|
33
|
-
error: Sentdm::ErrorDetail?,
|
|
34
|
-
meta: Sentdm::APIMeta,
|
|
35
|
-
success: bool
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type data =
|
|
39
|
-
{
|
|
40
|
-
pagination: Sentdm::PaginationMeta,
|
|
41
|
-
webhooks: ::Array[Sentdm::WebhookResponse]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
45
|
-
attr_reader pagination: Sentdm::PaginationMeta?
|
|
46
|
-
|
|
47
|
-
def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
|
|
48
|
-
|
|
49
|
-
attr_reader webhooks: ::Array[Sentdm::WebhookResponse]?
|
|
50
|
-
|
|
51
|
-
def webhooks=: (
|
|
52
|
-
::Array[Sentdm::WebhookResponse]
|
|
53
|
-
) -> ::Array[Sentdm::WebhookResponse]
|
|
54
|
-
|
|
55
|
-
def initialize: (
|
|
56
|
-
?pagination: Sentdm::PaginationMeta,
|
|
57
|
-
?webhooks: ::Array[Sentdm::WebhookResponse]
|
|
58
|
-
) -> void
|
|
59
|
-
|
|
60
|
-
def to_hash: -> {
|
|
61
|
-
pagination: Sentdm::PaginationMeta,
|
|
62
|
-
webhooks: ::Array[Sentdm::WebhookResponse]
|
|
63
|
-
}
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|