sentdm 0.0.2
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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +11 -0
- data/README.md +240 -0
- data/SECURITY.md +27 -0
- data/lib/sentdm/client.rb +115 -0
- data/lib/sentdm/errors.rb +228 -0
- data/lib/sentdm/file_part.rb +58 -0
- data/lib/sentdm/internal/transport/base_client.rb +573 -0
- data/lib/sentdm/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/sentdm/internal/type/array_of.rb +168 -0
- data/lib/sentdm/internal/type/base_model.rb +531 -0
- data/lib/sentdm/internal/type/base_page.rb +55 -0
- data/lib/sentdm/internal/type/boolean.rb +77 -0
- data/lib/sentdm/internal/type/converter.rb +327 -0
- data/lib/sentdm/internal/type/enum.rb +131 -0
- data/lib/sentdm/internal/type/file_input.rb +111 -0
- data/lib/sentdm/internal/type/hash_of.rb +188 -0
- data/lib/sentdm/internal/type/request_parameters.rb +42 -0
- data/lib/sentdm/internal/type/union.rb +237 -0
- data/lib/sentdm/internal/type/unknown.rb +81 -0
- data/lib/sentdm/internal/util.rb +920 -0
- data/lib/sentdm/internal.rb +20 -0
- data/lib/sentdm/models/contact_list_item.rb +96 -0
- data/lib/sentdm/models/contact_list_params.rb +30 -0
- data/lib/sentdm/models/contact_list_response.rb +40 -0
- data/lib/sentdm/models/contact_retrieve_by_phone_params.rb +22 -0
- data/lib/sentdm/models/contact_retrieve_id_params.rb +22 -0
- data/lib/sentdm/models/message_retrieve_params.rb +14 -0
- data/lib/sentdm/models/message_retrieve_response.rb +227 -0
- data/lib/sentdm/models/message_send_quick_message_params.rb +34 -0
- data/lib/sentdm/models/message_send_to_contact_params.rb +46 -0
- data/lib/sentdm/models/message_send_to_phone_params.rb +47 -0
- data/lib/sentdm/models/number_lookup_retrieve_params.rb +20 -0
- data/lib/sentdm/models/number_lookup_retrieve_response.rb +83 -0
- data/lib/sentdm/models/organization_list_params.rb +14 -0
- data/lib/sentdm/models/organization_list_response.rb +57 -0
- data/lib/sentdm/models/organization_retrieve_profiles_params.rb +14 -0
- data/lib/sentdm/models/organization_retrieve_profiles_response.rb +22 -0
- data/lib/sentdm/models/organizations/customer_user.rb +96 -0
- data/lib/sentdm/models/organizations/user_delete_params.rb +22 -0
- data/lib/sentdm/models/organizations/user_invite_params.rb +40 -0
- data/lib/sentdm/models/organizations/user_list_params.rb +28 -0
- data/lib/sentdm/models/organizations/user_list_response.rb +36 -0
- data/lib/sentdm/models/organizations/user_retrieve_params.rb +22 -0
- data/lib/sentdm/models/organizations/user_update_role_params.rb +28 -0
- data/lib/sentdm/models/profile_summary.rb +45 -0
- data/lib/sentdm/models/template_body_content.rb +27 -0
- data/lib/sentdm/models/template_create_params.rb +53 -0
- data/lib/sentdm/models/template_definition.rb +310 -0
- data/lib/sentdm/models/template_delete_params.rb +14 -0
- data/lib/sentdm/models/template_list_params.rb +54 -0
- data/lib/sentdm/models/template_list_response.rb +40 -0
- data/lib/sentdm/models/template_response.rb +100 -0
- data/lib/sentdm/models/template_retrieve_params.rb +14 -0
- data/lib/sentdm/models/template_variable.rb +74 -0
- data/lib/sentdm/models.rb +83 -0
- data/lib/sentdm/request_options.rb +77 -0
- data/lib/sentdm/resources/contacts.rb +88 -0
- data/lib/sentdm/resources/messages.rb +130 -0
- data/lib/sentdm/resources/number_lookup.rb +37 -0
- data/lib/sentdm/resources/organizations/users.rb +150 -0
- data/lib/sentdm/resources/organizations.rb +58 -0
- data/lib/sentdm/resources/templates.rb +131 -0
- data/lib/sentdm/version.rb +5 -0
- data/lib/sentdm.rb +94 -0
- data/manifest.yaml +17 -0
- data/rbi/sentdm/client.rbi +80 -0
- data/rbi/sentdm/errors.rbi +205 -0
- data/rbi/sentdm/file_part.rbi +37 -0
- data/rbi/sentdm/internal/transport/base_client.rbi +297 -0
- data/rbi/sentdm/internal/transport/pooled_net_requester.rbi +82 -0
- data/rbi/sentdm/internal/type/array_of.rbi +104 -0
- data/rbi/sentdm/internal/type/base_model.rbi +299 -0
- data/rbi/sentdm/internal/type/base_page.rbi +42 -0
- data/rbi/sentdm/internal/type/boolean.rbi +58 -0
- data/rbi/sentdm/internal/type/converter.rbi +204 -0
- data/rbi/sentdm/internal/type/enum.rbi +82 -0
- data/rbi/sentdm/internal/type/file_input.rbi +59 -0
- data/rbi/sentdm/internal/type/hash_of.rbi +104 -0
- data/rbi/sentdm/internal/type/request_parameters.rbi +29 -0
- data/rbi/sentdm/internal/type/union.rbi +126 -0
- data/rbi/sentdm/internal/type/unknown.rbi +58 -0
- data/rbi/sentdm/internal/util.rbi +484 -0
- data/rbi/sentdm/internal.rbi +16 -0
- data/rbi/sentdm/models/contact_list_item.rbi +144 -0
- data/rbi/sentdm/models/contact_list_params.rbi +51 -0
- data/rbi/sentdm/models/contact_list_response.rbi +74 -0
- data/rbi/sentdm/models/contact_retrieve_by_phone_params.rbi +40 -0
- data/rbi/sentdm/models/contact_retrieve_id_params.rbi +40 -0
- data/rbi/sentdm/models/message_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/message_retrieve_response.rbi +376 -0
- data/rbi/sentdm/models/message_send_quick_message_params.rbi +56 -0
- data/rbi/sentdm/models/message_send_to_contact_params.rbi +63 -0
- data/rbi/sentdm/models/message_send_to_phone_params.rbi +65 -0
- data/rbi/sentdm/models/number_lookup_retrieve_params.rbi +35 -0
- data/rbi/sentdm/models/number_lookup_retrieve_response.rbi +132 -0
- data/rbi/sentdm/models/organization_list_params.rbi +27 -0
- data/rbi/sentdm/models/organization_list_response.rbi +131 -0
- data/rbi/sentdm/models/organization_retrieve_profiles_params.rbi +30 -0
- data/rbi/sentdm/models/organization_retrieve_profiles_response.rbi +47 -0
- data/rbi/sentdm/models/organizations/customer_user.rbi +129 -0
- data/rbi/sentdm/models/organizations/user_delete_params.rbi +40 -0
- data/rbi/sentdm/models/organizations/user_invite_params.rbi +73 -0
- data/rbi/sentdm/models/organizations/user_list_params.rbi +48 -0
- data/rbi/sentdm/models/organizations/user_list_response.rbi +71 -0
- data/rbi/sentdm/models/organizations/user_retrieve_params.rbi +40 -0
- data/rbi/sentdm/models/organizations/user_update_role_params.rbi +51 -0
- data/rbi/sentdm/models/profile_summary.rbi +74 -0
- data/rbi/sentdm/models/template_body_content.rbi +46 -0
- data/rbi/sentdm/models/template_create_params.rbi +81 -0
- data/rbi/sentdm/models/template_definition.rbi +497 -0
- data/rbi/sentdm/models/template_delete_params.rbi +27 -0
- data/rbi/sentdm/models/template_list_params.rbi +75 -0
- data/rbi/sentdm/models/template_list_response.rbi +74 -0
- data/rbi/sentdm/models/template_response.rbi +149 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/template_variable.rbi +120 -0
- data/rbi/sentdm/models.rbi +46 -0
- data/rbi/sentdm/request_options.rbi +55 -0
- data/rbi/sentdm/resources/contacts.rbi +63 -0
- data/rbi/sentdm/resources/messages.rbi +97 -0
- data/rbi/sentdm/resources/number_lookup.rbi +24 -0
- data/rbi/sentdm/resources/organizations/users.rbi +95 -0
- data/rbi/sentdm/resources/organizations.rbi +37 -0
- data/rbi/sentdm/resources/templates.rbi +103 -0
- data/rbi/sentdm/version.rbi +5 -0
- data/sig/sentdm/client.rbs +41 -0
- data/sig/sentdm/errors.rbs +117 -0
- data/sig/sentdm/file_part.rbs +21 -0
- data/sig/sentdm/internal/transport/base_client.rbs +133 -0
- data/sig/sentdm/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/sentdm/internal/type/array_of.rbs +48 -0
- data/sig/sentdm/internal/type/base_model.rbs +102 -0
- data/sig/sentdm/internal/type/base_page.rbs +24 -0
- data/sig/sentdm/internal/type/boolean.rbs +26 -0
- data/sig/sentdm/internal/type/converter.rbs +79 -0
- data/sig/sentdm/internal/type/enum.rbs +32 -0
- data/sig/sentdm/internal/type/file_input.rbs +25 -0
- data/sig/sentdm/internal/type/hash_of.rbs +48 -0
- data/sig/sentdm/internal/type/request_parameters.rbs +17 -0
- data/sig/sentdm/internal/type/union.rbs +52 -0
- data/sig/sentdm/internal/type/unknown.rbs +26 -0
- data/sig/sentdm/internal/util.rbs +185 -0
- data/sig/sentdm/internal.rbs +9 -0
- data/sig/sentdm/models/contact_list_item.rbs +85 -0
- data/sig/sentdm/models/contact_list_params.rbs +28 -0
- data/sig/sentdm/models/contact_list_response.rbs +52 -0
- data/sig/sentdm/models/contact_retrieve_by_phone_params.rbs +23 -0
- data/sig/sentdm/models/contact_retrieve_id_params.rbs +20 -0
- data/sig/sentdm/models/message_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/message_retrieve_response.rbs +188 -0
- data/sig/sentdm/models/message_send_quick_message_params.rbs +28 -0
- data/sig/sentdm/models/message_send_to_contact_params.rbs +36 -0
- data/sig/sentdm/models/message_send_to_phone_params.rbs +36 -0
- data/sig/sentdm/models/number_lookup_retrieve_params.rbs +23 -0
- data/sig/sentdm/models/number_lookup_retrieve_response.rbs +78 -0
- data/sig/sentdm/models/organization_list_params.rbs +15 -0
- data/sig/sentdm/models/organization_list_response.rbs +76 -0
- data/sig/sentdm/models/organization_retrieve_profiles_params.rbs +15 -0
- data/sig/sentdm/models/organization_retrieve_profiles_response.rbs +28 -0
- data/sig/sentdm/models/organizations/customer_user.rbs +91 -0
- data/sig/sentdm/models/organizations/user_delete_params.rbs +25 -0
- data/sig/sentdm/models/organizations/user_invite_params.rbs +44 -0
- data/sig/sentdm/models/organizations/user_list_params.rbs +30 -0
- data/sig/sentdm/models/organizations/user_list_response.rbs +47 -0
- data/sig/sentdm/models/organizations/user_retrieve_params.rbs +25 -0
- data/sig/sentdm/models/organizations/user_update_role_params.rbs +32 -0
- data/sig/sentdm/models/profile_summary.rbs +51 -0
- data/sig/sentdm/models/template_body_content.rbs +32 -0
- data/sig/sentdm/models/template_create_params.rbs +43 -0
- data/sig/sentdm/models/template_definition.rbs +258 -0
- data/sig/sentdm/models/template_delete_params.rbs +15 -0
- data/sig/sentdm/models/template_list_params.rbs +46 -0
- data/sig/sentdm/models/template_list_response.rbs +52 -0
- data/sig/sentdm/models/template_response.rbs +92 -0
- data/sig/sentdm/models/template_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/template_variable.rbs +87 -0
- data/sig/sentdm/models.rbs +43 -0
- data/sig/sentdm/request_options.rbs +34 -0
- data/sig/sentdm/resources/contacts.rbs +23 -0
- data/sig/sentdm/resources/messages.rbs +32 -0
- data/sig/sentdm/resources/number_lookup.rbs +12 -0
- data/sig/sentdm/resources/organizations/users.rbs +44 -0
- data/sig/sentdm/resources/organizations.rbs +18 -0
- data/sig/sentdm/resources/templates.rbs +31 -0
- data/sig/sentdm/version.rbs +3 -0
- metadata +259 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::NumberLookup#retrieve
|
|
6
|
+
class NumberLookupRetrieveResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute country_code
|
|
8
|
+
# The country calling code (e.g., 1 for US/Canada)
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :country_code, String, api_name: :countryCode
|
|
12
|
+
|
|
13
|
+
# @!attribute format_e164
|
|
14
|
+
# The phone number formatted in E.164 standard (e.g., +1234567890)
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :format_e164, String, api_name: :formatE164
|
|
18
|
+
|
|
19
|
+
# @!attribute format_international
|
|
20
|
+
# The phone number formatted for international dialing (e.g., +1 234-567-890)
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :format_international, String, api_name: :formatInternational
|
|
24
|
+
|
|
25
|
+
# @!attribute format_national
|
|
26
|
+
# The phone number formatted for national dialing (e.g., (234) 567-890)
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :format_national, String, api_name: :formatNational
|
|
30
|
+
|
|
31
|
+
# @!attribute format_rfc
|
|
32
|
+
# The phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :format_rfc, String, api_name: :formatRfc
|
|
36
|
+
|
|
37
|
+
# @!attribute number_type
|
|
38
|
+
# The type of phone number (e.g., mobile, fixed_line, voip)
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :number_type, String, api_name: :numberType
|
|
42
|
+
|
|
43
|
+
# @!attribute phone_number
|
|
44
|
+
# The phone number in its original format
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :phone_number, String, api_name: :phoneNumber
|
|
48
|
+
|
|
49
|
+
# @!attribute phone_timezones
|
|
50
|
+
# The timezones associated with the phone number
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
optional :phone_timezones, String, api_name: :phoneTimezones
|
|
54
|
+
|
|
55
|
+
# @!attribute region_code
|
|
56
|
+
# The ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
optional :region_code, String, api_name: :regionCode
|
|
60
|
+
|
|
61
|
+
# @!method initialize(country_code: nil, format_e164: nil, format_international: nil, format_national: nil, format_rfc: nil, number_type: nil, phone_number: nil, phone_timezones: nil, region_code: nil)
|
|
62
|
+
# Response containing phone number lookup data
|
|
63
|
+
#
|
|
64
|
+
# @param country_code [String] The country calling code (e.g., 1 for US/Canada)
|
|
65
|
+
#
|
|
66
|
+
# @param format_e164 [String] The phone number formatted in E.164 standard (e.g., +1234567890)
|
|
67
|
+
#
|
|
68
|
+
# @param format_international [String] The phone number formatted for international dialing (e.g., +1 234-567-890)
|
|
69
|
+
#
|
|
70
|
+
# @param format_national [String] The phone number formatted for national dialing (e.g., (234) 567-890)
|
|
71
|
+
#
|
|
72
|
+
# @param format_rfc [String] The phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)
|
|
73
|
+
#
|
|
74
|
+
# @param number_type [String] The type of phone number (e.g., mobile, fixed_line, voip)
|
|
75
|
+
#
|
|
76
|
+
# @param phone_number [String] The phone number in its original format
|
|
77
|
+
#
|
|
78
|
+
# @param phone_timezones [String] The timezones associated with the phone number
|
|
79
|
+
#
|
|
80
|
+
# @param region_code [String] The ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::Organizations#list
|
|
6
|
+
class OrganizationListParams < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::Organizations#list
|
|
6
|
+
class OrganizationListResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute organizations
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<Sentdm::Models::OrganizationListResponse::Organization>, nil]
|
|
10
|
+
optional :organizations,
|
|
11
|
+
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::OrganizationListResponse::Organization] }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(organizations: nil)
|
|
14
|
+
# @param organizations [Array<Sentdm::Models::OrganizationListResponse::Organization>]
|
|
15
|
+
|
|
16
|
+
class Organization < Sentdm::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute id
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute created_at
|
|
23
|
+
#
|
|
24
|
+
# @return [Time, nil]
|
|
25
|
+
optional :created_at, Time, api_name: :createdAt
|
|
26
|
+
|
|
27
|
+
# @!attribute description
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :description, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute icon
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :icon, String, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute name
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :name, String
|
|
41
|
+
|
|
42
|
+
# @!attribute profiles
|
|
43
|
+
#
|
|
44
|
+
# @return [Array<Sentdm::Models::ProfileSummary>, nil]
|
|
45
|
+
optional :profiles, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::ProfileSummary] }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(id: nil, created_at: nil, description: nil, icon: nil, name: nil, profiles: nil)
|
|
48
|
+
# @param id [String]
|
|
49
|
+
# @param created_at [Time]
|
|
50
|
+
# @param description [String, nil]
|
|
51
|
+
# @param icon [String, nil]
|
|
52
|
+
# @param name [String]
|
|
53
|
+
# @param profiles [Array<Sentdm::Models::ProfileSummary>]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::Organizations#retrieve_profiles
|
|
6
|
+
class OrganizationRetrieveProfilesParams < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::Organizations#retrieve_profiles
|
|
6
|
+
class OrganizationRetrieveProfilesResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute organization_id
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :organization_id, String, api_name: :organizationId
|
|
11
|
+
|
|
12
|
+
# @!attribute profiles
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<Sentdm::Models::ProfileSummary>, nil]
|
|
15
|
+
optional :profiles, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::ProfileSummary] }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(organization_id: nil, profiles: nil)
|
|
18
|
+
# @param organization_id [String]
|
|
19
|
+
# @param profiles [Array<Sentdm::Models::ProfileSummary>]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#retrieve
|
|
7
|
+
class CustomerUser < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
optional :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute created_at
|
|
15
|
+
#
|
|
16
|
+
# @return [Time, nil]
|
|
17
|
+
optional :created_at, Time, api_name: :createdAt
|
|
18
|
+
|
|
19
|
+
# @!attribute customer_id
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :customer_id, String, api_name: :customerId
|
|
23
|
+
|
|
24
|
+
# @!attribute email
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :email, String
|
|
28
|
+
|
|
29
|
+
# @!attribute invitation_sent_at
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :invitation_sent_at, Time, api_name: :invitationSentAt, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute invitation_token
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :invitation_token, String, api_name: :invitationToken, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute invitation_token_expires_at
|
|
40
|
+
#
|
|
41
|
+
# @return [Time, nil]
|
|
42
|
+
optional :invitation_token_expires_at, Time, api_name: :invitationTokenExpiresAt, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute last_login_at
|
|
45
|
+
#
|
|
46
|
+
# @return [Time, nil]
|
|
47
|
+
optional :last_login_at, Time, api_name: :lastLoginAt, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!attribute name
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
optional :name, String
|
|
53
|
+
|
|
54
|
+
# @!attribute role
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :role, String
|
|
58
|
+
|
|
59
|
+
# @!attribute status
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :status, String
|
|
63
|
+
|
|
64
|
+
# @!attribute updated_at
|
|
65
|
+
#
|
|
66
|
+
# @return [Time, nil]
|
|
67
|
+
optional :updated_at, Time, api_name: :updatedAt, nil?: true
|
|
68
|
+
|
|
69
|
+
# @!method initialize(id: nil, created_at: nil, customer_id: nil, email: nil, invitation_sent_at: nil, invitation_token: nil, invitation_token_expires_at: nil, last_login_at: nil, name: nil, role: nil, status: nil, updated_at: nil)
|
|
70
|
+
# @param id [String] Unique identifier
|
|
71
|
+
#
|
|
72
|
+
# @param created_at [Time]
|
|
73
|
+
#
|
|
74
|
+
# @param customer_id [String]
|
|
75
|
+
#
|
|
76
|
+
# @param email [String]
|
|
77
|
+
#
|
|
78
|
+
# @param invitation_sent_at [Time, nil]
|
|
79
|
+
#
|
|
80
|
+
# @param invitation_token [String, nil]
|
|
81
|
+
#
|
|
82
|
+
# @param invitation_token_expires_at [Time, nil]
|
|
83
|
+
#
|
|
84
|
+
# @param last_login_at [Time, nil]
|
|
85
|
+
#
|
|
86
|
+
# @param name [String]
|
|
87
|
+
#
|
|
88
|
+
# @param role [String]
|
|
89
|
+
#
|
|
90
|
+
# @param status [String]
|
|
91
|
+
#
|
|
92
|
+
# @param updated_at [Time, nil]
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#delete
|
|
7
|
+
class UserDeleteParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(customer_id:, request_options: {})
|
|
17
|
+
# @param customer_id [String]
|
|
18
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#invite
|
|
7
|
+
class UserInviteParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute email
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :email, String
|
|
15
|
+
|
|
16
|
+
# @!attribute invited_by
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :invited_by, String, api_name: :invitedBy, nil?: true
|
|
20
|
+
|
|
21
|
+
# @!attribute name
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :name, String
|
|
25
|
+
|
|
26
|
+
# @!attribute role
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :role, String
|
|
30
|
+
|
|
31
|
+
# @!method initialize(email: nil, invited_by: nil, name: nil, role: nil, request_options: {})
|
|
32
|
+
# @param email [String]
|
|
33
|
+
# @param invited_by [String, nil]
|
|
34
|
+
# @param name [String]
|
|
35
|
+
# @param role [String]
|
|
36
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#list
|
|
7
|
+
class UserListParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute page
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
required :page, Integer
|
|
15
|
+
|
|
16
|
+
# @!attribute page_size
|
|
17
|
+
#
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
required :page_size, Integer
|
|
20
|
+
|
|
21
|
+
# @!method initialize(page:, page_size:, request_options: {})
|
|
22
|
+
# @param page [Integer]
|
|
23
|
+
# @param page_size [Integer]
|
|
24
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#list
|
|
7
|
+
class UserListResponse < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute page
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer, nil]
|
|
11
|
+
optional :page, Integer
|
|
12
|
+
|
|
13
|
+
# @!attribute page_size
|
|
14
|
+
#
|
|
15
|
+
# @return [Integer, nil]
|
|
16
|
+
optional :page_size, Integer, api_name: :pageSize
|
|
17
|
+
|
|
18
|
+
# @!attribute total_count
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer, nil]
|
|
21
|
+
optional :total_count, Integer, api_name: :totalCount
|
|
22
|
+
|
|
23
|
+
# @!attribute users
|
|
24
|
+
#
|
|
25
|
+
# @return [Array<Sentdm::Models::Organizations::CustomerUser>, nil]
|
|
26
|
+
optional :users, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Organizations::CustomerUser] }
|
|
27
|
+
|
|
28
|
+
# @!method initialize(page: nil, page_size: nil, total_count: nil, users: nil)
|
|
29
|
+
# @param page [Integer]
|
|
30
|
+
# @param page_size [Integer]
|
|
31
|
+
# @param total_count [Integer]
|
|
32
|
+
# @param users [Array<Sentdm::Models::Organizations::CustomerUser>]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#retrieve
|
|
7
|
+
class UserRetrieveParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(customer_id:, request_options: {})
|
|
17
|
+
# @param customer_id [String]
|
|
18
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Sentdm::Resources::Organizations::Users#update_role
|
|
7
|
+
class UserUpdateRoleParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute customer_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :customer_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute role
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :role, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(customer_id:, role: nil, request_options: {})
|
|
22
|
+
# @param customer_id [String]
|
|
23
|
+
# @param role [String]
|
|
24
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ProfileSummary < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
#
|
|
8
|
+
# @return [String, nil]
|
|
9
|
+
optional :id, String
|
|
10
|
+
|
|
11
|
+
# @!attribute created_at
|
|
12
|
+
#
|
|
13
|
+
# @return [Time, nil]
|
|
14
|
+
optional :created_at, Time, api_name: :createdAt
|
|
15
|
+
|
|
16
|
+
# @!attribute description
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :description, String, nil?: true
|
|
20
|
+
|
|
21
|
+
# @!attribute icon
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :icon, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute name
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :name, String
|
|
30
|
+
|
|
31
|
+
# @!attribute short_name
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :short_name, String, api_name: :shortName, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id: nil, created_at: nil, description: nil, icon: nil, name: nil, short_name: nil)
|
|
37
|
+
# @param id [String]
|
|
38
|
+
# @param created_at [Time]
|
|
39
|
+
# @param description [String, nil]
|
|
40
|
+
# @param icon [String, nil]
|
|
41
|
+
# @param name [String]
|
|
42
|
+
# @param short_name [String, nil]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class TemplateBodyContent < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute template
|
|
7
|
+
#
|
|
8
|
+
# @return [String, nil]
|
|
9
|
+
optional :template, String
|
|
10
|
+
|
|
11
|
+
# @!attribute type
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :type, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute variables
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
|
|
19
|
+
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
|
|
20
|
+
|
|
21
|
+
# @!method initialize(template: nil, type: nil, variables: nil)
|
|
22
|
+
# @param template [String]
|
|
23
|
+
# @param type [String, nil]
|
|
24
|
+
# @param variables [Array<Sentdm::Models::TemplateVariable>, nil]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
# @see Sentdm::Resources::Templates#create
|
|
6
|
+
class TemplateCreateParams < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute definition
|
|
11
|
+
# Template definition containing header, body, footer, and buttons
|
|
12
|
+
#
|
|
13
|
+
# @return [Sentdm::Models::TemplateDefinition]
|
|
14
|
+
required :definition, -> { Sentdm::TemplateDefinition }
|
|
15
|
+
|
|
16
|
+
# @!attribute category
|
|
17
|
+
# The template category (e.g., MARKETING, UTILITY, AUTHENTICATION). Can only be
|
|
18
|
+
# set when creating a new template. If not provided, will be auto-generated using
|
|
19
|
+
# AI.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :category, String, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute language
|
|
25
|
+
# The template language code (e.g., en_US, es_ES). Can only be set when creating a
|
|
26
|
+
# new template. If not provided, will be auto-detected using AI.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :language, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute submit_for_review
|
|
32
|
+
# When false, the template will be saved as draft. When true, the template will be
|
|
33
|
+
# submitted for review.
|
|
34
|
+
#
|
|
35
|
+
# @return [Boolean, nil]
|
|
36
|
+
optional :submit_for_review, Sentdm::Internal::Type::Boolean, api_name: :submitForReview
|
|
37
|
+
|
|
38
|
+
# @!method initialize(definition:, category: nil, language: nil, submit_for_review: nil, request_options: {})
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Sentdm::Models::TemplateCreateParams} for more details.
|
|
41
|
+
#
|
|
42
|
+
# @param definition [Sentdm::Models::TemplateDefinition] Template definition containing header, body, footer, and buttons
|
|
43
|
+
#
|
|
44
|
+
# @param category [String, nil] The template category (e.g., MARKETING, UTILITY, AUTHENTICATION). Can only be se
|
|
45
|
+
#
|
|
46
|
+
# @param language [String, nil] The template language code (e.g., en_US, es_ES). Can only be set when creating a
|
|
47
|
+
#
|
|
48
|
+
# @param submit_for_review [Boolean] When false, the template will be saved as draft.
|
|
49
|
+
#
|
|
50
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|