sentdm 0.3.1 → 0.4.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 +8 -0
- data/README.md +9 -9
- data/lib/sentdm/client.rb +0 -1
- data/lib/sentdm/models/api_meta.rb +1 -9
- data/lib/sentdm/models/brand_data.rb +235 -198
- data/lib/sentdm/models/brand_with_kyc.rb +249 -214
- data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +0 -1
- data/lib/sentdm/models/contact_create_params.rb +13 -6
- data/lib/sentdm/models/contact_delete_params.rb +8 -1
- data/lib/sentdm/models/contact_list_params.rb +10 -2
- data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
- data/lib/sentdm/models/contact_update_params.rb +13 -6
- data/lib/sentdm/models/me_retrieve_params.rb +7 -1
- data/lib/sentdm/models/me_retrieve_response.rb +152 -7
- data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
- data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
- data/lib/sentdm/models/message_send_params.rb +17 -10
- data/lib/sentdm/models/mutation_request.rb +6 -6
- data/lib/sentdm/models/profile_complete_params.rb +13 -6
- data/lib/sentdm/models/profile_create_params.rb +192 -10
- data/lib/sentdm/models/profile_delete_params.rb +18 -18
- data/lib/sentdm/models/profile_detail.rb +144 -95
- data/lib/sentdm/models/profile_list_params.rb +7 -1
- data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
- data/lib/sentdm/models/profile_update_params.rb +142 -22
- data/lib/sentdm/models/template_create_params.rb +17 -10
- data/lib/sentdm/models/template_delete_params.rb +13 -6
- data/lib/sentdm/models/template_list_params.rb +18 -2
- data/lib/sentdm/models/template_retrieve_params.rb +7 -1
- data/lib/sentdm/models/template_update_params.rb +17 -10
- data/lib/sentdm/models/template_variable.rb +7 -1
- data/lib/sentdm/models/user_invite_params.rb +13 -6
- data/lib/sentdm/models/user_list_params.rb +7 -1
- data/lib/sentdm/models/user_remove_params.rb +17 -17
- data/lib/sentdm/models/user_retrieve_params.rb +7 -1
- data/lib/sentdm/models/user_update_role_params.rb +15 -16
- data/lib/sentdm/models/webhook_create_params.rb +13 -6
- data/lib/sentdm/models/webhook_delete_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_params.rb +7 -1
- data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +7 -1
- data/lib/sentdm/models/webhook_test_params.rb +13 -6
- data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
- data/lib/sentdm/models/webhook_update_params.rb +13 -6
- data/lib/sentdm/models.rb +0 -12
- data/lib/sentdm/resources/brands/campaigns.rb +0 -129
- data/lib/sentdm/resources/brands.rb +0 -112
- data/lib/sentdm/resources/contacts.rb +43 -20
- data/lib/sentdm/resources/lookup.rb +0 -21
- data/lib/sentdm/resources/me.rb +24 -5
- data/lib/sentdm/resources/messages.rb +24 -8
- data/lib/sentdm/resources/profiles.rb +116 -32
- data/lib/sentdm/resources/templates.rb +47 -24
- data/lib/sentdm/resources/users.rb +40 -23
- data/lib/sentdm/resources/webhooks.rb +92 -34
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -14
- data/rbi/sentdm/client.rbi +0 -1
- data/rbi/sentdm/models/api_meta.rbi +4 -18
- data/rbi/sentdm/models/brand_data.rbi +326 -203
- data/rbi/sentdm/models/brand_with_kyc.rbi +334 -216
- data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +6 -8
- data/rbi/sentdm/models/contact_create_params.rbi +19 -10
- data/rbi/sentdm/models/contact_delete_params.rbi +9 -0
- data/rbi/sentdm/models/contact_list_params.rbi +11 -0
- data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/contact_update_params.rbi +19 -10
- data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
- data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
- data/rbi/sentdm/models/message_send_params.rbi +22 -13
- data/rbi/sentdm/models/mutation_request.rbi +10 -10
- data/rbi/sentdm/models/profile_complete_params.rbi +19 -10
- data/rbi/sentdm/models/profile_create_params.rbi +323 -15
- data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
- data/rbi/sentdm/models/profile_detail.rbi +184 -128
- data/rbi/sentdm/models/profile_list_params.rbi +16 -5
- data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/profile_update_params.rbi +231 -30
- data/rbi/sentdm/models/template_create_params.rbi +22 -13
- data/rbi/sentdm/models/template_delete_params.rbi +19 -10
- data/rbi/sentdm/models/template_list_params.rbi +19 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/template_update_params.rbi +22 -13
- data/rbi/sentdm/models/template_variable.rbi +6 -0
- data/rbi/sentdm/models/user_invite_params.rbi +19 -10
- data/rbi/sentdm/models/user_list_params.rbi +16 -5
- data/rbi/sentdm/models/user_remove_params.rbi +35 -23
- data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
- data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
- data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
- data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +15 -1
- data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
- data/rbi/sentdm/models.rbi +0 -12
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -95
- data/rbi/sentdm/resources/brands.rbi +0 -80
- data/rbi/sentdm/resources/contacts.rbi +37 -12
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/rbi/sentdm/resources/me.rbi +25 -7
- data/rbi/sentdm/resources/messages.rbi +17 -4
- data/rbi/sentdm/resources/profiles.rbi +178 -38
- data/rbi/sentdm/resources/templates.rbi +47 -19
- data/rbi/sentdm/resources/users.rbi +47 -25
- data/rbi/sentdm/resources/webhooks.rbi +92 -20
- data/sig/sentdm/models/api_meta.rbs +2 -16
- data/sig/sentdm/models/brand_data.rbs +188 -142
- data/sig/sentdm/models/brand_with_kyc.rbs +184 -133
- data/sig/sentdm/models/contact_create_params.rbs +16 -5
- data/sig/sentdm/models/contact_delete_params.rbs +11 -1
- data/sig/sentdm/models/contact_list_params.rbs +8 -1
- data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/contact_update_params.rbs +13 -6
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
- data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
- data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
- data/sig/sentdm/models/message_send_params.rbs +15 -8
- data/sig/sentdm/models/mutation_request.rbs +5 -5
- data/sig/sentdm/models/profile_complete_params.rbs +13 -6
- data/sig/sentdm/models/profile_create_params.rbs +111 -7
- data/sig/sentdm/models/profile_delete_params.rbs +23 -13
- data/sig/sentdm/models/profile_detail.rbs +105 -84
- data/sig/sentdm/models/profile_list_params.rbs +14 -3
- data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/profile_update_params.rbs +86 -17
- data/sig/sentdm/models/template_create_params.rbs +15 -8
- data/sig/sentdm/models/template_delete_params.rbs +16 -5
- data/sig/sentdm/models/template_list_params.rbs +13 -1
- data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/template_update_params.rbs +15 -8
- data/sig/sentdm/models/template_variable.rbs +5 -0
- data/sig/sentdm/models/user_invite_params.rbs +13 -6
- data/sig/sentdm/models/user_list_params.rbs +14 -3
- data/sig/sentdm/models/user_remove_params.rbs +23 -13
- data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/user_update_role_params.rbs +17 -17
- data/sig/sentdm/models/webhook_create_params.rbs +13 -6
- data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
- data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
- data/sig/sentdm/models/webhook_list_params.rbs +13 -1
- data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -1
- data/sig/sentdm/models/webhook_test_params.rbs +13 -6
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
- data/sig/sentdm/models/webhook_update_params.rbs +13 -6
- data/sig/sentdm/models.rbs +0 -12
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -29
- data/sig/sentdm/resources/brands.rbs +0 -25
- data/sig/sentdm/resources/contacts.rbs +7 -2
- data/sig/sentdm/resources/lookup.rbs +0 -5
- data/sig/sentdm/resources/me.rbs +1 -0
- data/sig/sentdm/resources/messages.rbs +4 -1
- data/sig/sentdm/resources/profiles.rbs +19 -8
- data/sig/sentdm/resources/templates.rbs +9 -3
- data/sig/sentdm/resources/users.rbs +10 -7
- data/sig/sentdm/resources/webhooks.rbs +18 -5
- metadata +1 -40
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
- data/lib/sentdm/models/brand_create_params.rb +0 -41
- data/lib/sentdm/models/brand_delete_params.rb +0 -34
- data/lib/sentdm/models/brand_list_params.rb +0 -14
- data/lib/sentdm/models/brand_list_response.rb +0 -43
- data/lib/sentdm/models/brand_update_params.rb +0 -48
- data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
- data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
- data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
- data/lib/sentdm/models/brands/campaign_list_response.rb +0 -47
- data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +0 -20
- data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +0 -104
- data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +0 -74
- data/rbi/sentdm/models/brand_create_params.rbi +0 -68
- data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
- data/rbi/sentdm/models/brand_list_params.rbi +0 -27
- data/rbi/sentdm/models/brand_list_response.rbi +0 -71
- data/rbi/sentdm/models/brand_update_params.rbi +0 -74
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +0 -79
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +0 -84
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +0 -82
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +0 -85
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +0 -38
- data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +0 -183
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
- data/sig/sentdm/models/brand_create_params.rbs +0 -36
- data/sig/sentdm/models/brand_delete_params.rbs +0 -36
- data/sig/sentdm/models/brand_list_params.rbs +0 -14
- data/sig/sentdm/models/brand_list_response.rbs +0 -39
- data/sig/sentdm/models/brand_update_params.rbs +0 -45
- data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +0 -46
- data/sig/sentdm/models/brands/campaign_list_params.rbs +0 -25
- data/sig/sentdm/models/brands/campaign_list_response.rbs +0 -41
- data/sig/sentdm/models/brands/campaign_update_params.rbs +0 -52
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +0 -23
- data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +0 -102
|
@@ -4,8 +4,9 @@ module Sentdm
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
event_type: String,
|
|
7
|
-
|
|
8
|
-
idempotency_key: String
|
|
7
|
+
sandbox: bool,
|
|
8
|
+
idempotency_key: String,
|
|
9
|
+
x_profile_id: String
|
|
9
10
|
}
|
|
10
11
|
& Sentdm::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -19,27 +20,33 @@ module Sentdm
|
|
|
19
20
|
|
|
20
21
|
def event_type=: (String) -> String
|
|
21
22
|
|
|
22
|
-
attr_reader
|
|
23
|
+
attr_reader sandbox: bool?
|
|
23
24
|
|
|
24
|
-
def
|
|
25
|
+
def sandbox=: (bool) -> bool
|
|
25
26
|
|
|
26
27
|
attr_reader idempotency_key: String?
|
|
27
28
|
|
|
28
29
|
def idempotency_key=: (String) -> String
|
|
29
30
|
|
|
31
|
+
attr_reader x_profile_id: String?
|
|
32
|
+
|
|
33
|
+
def x_profile_id=: (String) -> String
|
|
34
|
+
|
|
30
35
|
def initialize: (
|
|
31
36
|
id: String,
|
|
32
37
|
?event_type: String,
|
|
33
|
-
?
|
|
38
|
+
?sandbox: bool,
|
|
34
39
|
?idempotency_key: String,
|
|
40
|
+
?x_profile_id: String,
|
|
35
41
|
?request_options: Sentdm::request_opts
|
|
36
42
|
) -> void
|
|
37
43
|
|
|
38
44
|
def to_hash: -> {
|
|
39
45
|
id: String,
|
|
40
46
|
event_type: String,
|
|
41
|
-
|
|
47
|
+
sandbox: bool,
|
|
42
48
|
idempotency_key: String,
|
|
49
|
+
x_profile_id: String,
|
|
43
50
|
request_options: Sentdm::RequestOptions
|
|
44
51
|
}
|
|
45
52
|
end
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type webhook_toggle_status_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
is_active: bool,
|
|
7
|
+
sandbox: bool,
|
|
8
|
+
idempotency_key: String,
|
|
9
|
+
x_profile_id: String
|
|
10
|
+
}
|
|
5
11
|
& Sentdm::Internal::Type::request_parameters
|
|
6
12
|
|
|
7
13
|
class WebhookToggleStatusParams < Sentdm::Internal::Type::BaseModel
|
|
@@ -14,27 +20,33 @@ module Sentdm
|
|
|
14
20
|
|
|
15
21
|
def is_active=: (bool) -> bool
|
|
16
22
|
|
|
17
|
-
attr_reader
|
|
23
|
+
attr_reader sandbox: bool?
|
|
18
24
|
|
|
19
|
-
def
|
|
25
|
+
def sandbox=: (bool) -> bool
|
|
20
26
|
|
|
21
27
|
attr_reader idempotency_key: String?
|
|
22
28
|
|
|
23
29
|
def idempotency_key=: (String) -> String
|
|
24
30
|
|
|
31
|
+
attr_reader x_profile_id: String?
|
|
32
|
+
|
|
33
|
+
def x_profile_id=: (String) -> String
|
|
34
|
+
|
|
25
35
|
def initialize: (
|
|
26
36
|
id: String,
|
|
27
37
|
?is_active: bool,
|
|
28
|
-
?
|
|
38
|
+
?sandbox: bool,
|
|
29
39
|
?idempotency_key: String,
|
|
40
|
+
?x_profile_id: String,
|
|
30
41
|
?request_options: Sentdm::request_opts
|
|
31
42
|
) -> void
|
|
32
43
|
|
|
33
44
|
def to_hash: -> {
|
|
34
45
|
id: String,
|
|
35
46
|
is_active: bool,
|
|
36
|
-
|
|
47
|
+
sandbox: bool,
|
|
37
48
|
idempotency_key: String,
|
|
49
|
+
x_profile_id: String,
|
|
38
50
|
request_options: Sentdm::RequestOptions
|
|
39
51
|
}
|
|
40
52
|
end
|
|
@@ -7,9 +7,10 @@ module Sentdm
|
|
|
7
7
|
endpoint_url: String,
|
|
8
8
|
event_types: ::Array[String],
|
|
9
9
|
retry_count: Integer,
|
|
10
|
-
|
|
10
|
+
sandbox: bool,
|
|
11
11
|
timeout_seconds: Integer,
|
|
12
|
-
idempotency_key: String
|
|
12
|
+
idempotency_key: String,
|
|
13
|
+
x_profile_id: String
|
|
13
14
|
}
|
|
14
15
|
& Sentdm::Internal::Type::request_parameters
|
|
15
16
|
|
|
@@ -35,9 +36,9 @@ module Sentdm
|
|
|
35
36
|
|
|
36
37
|
def retry_count=: (Integer) -> Integer
|
|
37
38
|
|
|
38
|
-
attr_reader
|
|
39
|
+
attr_reader sandbox: bool?
|
|
39
40
|
|
|
40
|
-
def
|
|
41
|
+
def sandbox=: (bool) -> bool
|
|
41
42
|
|
|
42
43
|
attr_reader timeout_seconds: Integer?
|
|
43
44
|
|
|
@@ -47,15 +48,20 @@ module Sentdm
|
|
|
47
48
|
|
|
48
49
|
def idempotency_key=: (String) -> String
|
|
49
50
|
|
|
51
|
+
attr_reader x_profile_id: String?
|
|
52
|
+
|
|
53
|
+
def x_profile_id=: (String) -> String
|
|
54
|
+
|
|
50
55
|
def initialize: (
|
|
51
56
|
id: String,
|
|
52
57
|
?display_name: String,
|
|
53
58
|
?endpoint_url: String,
|
|
54
59
|
?event_types: ::Array[String],
|
|
55
60
|
?retry_count: Integer,
|
|
56
|
-
?
|
|
61
|
+
?sandbox: bool,
|
|
57
62
|
?timeout_seconds: Integer,
|
|
58
63
|
?idempotency_key: String,
|
|
64
|
+
?x_profile_id: String,
|
|
59
65
|
?request_options: Sentdm::request_opts
|
|
60
66
|
) -> void
|
|
61
67
|
|
|
@@ -65,9 +71,10 @@ module Sentdm
|
|
|
65
71
|
endpoint_url: String,
|
|
66
72
|
event_types: ::Array[String],
|
|
67
73
|
retry_count: Integer,
|
|
68
|
-
|
|
74
|
+
sandbox: bool,
|
|
69
75
|
timeout_seconds: Integer,
|
|
70
76
|
idempotency_key: String,
|
|
77
|
+
x_profile_id: String,
|
|
71
78
|
request_options: Sentdm::RequestOptions
|
|
72
79
|
}
|
|
73
80
|
end
|
data/sig/sentdm/models.rbs
CHANGED
|
@@ -3,8 +3,6 @@ module Sentdm
|
|
|
3
3
|
|
|
4
4
|
class APIMeta = Sentdm::Models::APIMeta
|
|
5
5
|
|
|
6
|
-
class APIResponseBrandWithKYC = Sentdm::Models::APIResponseBrandWithKYC
|
|
7
|
-
|
|
8
6
|
class APIResponseContact = Sentdm::Models::APIResponseContact
|
|
9
7
|
|
|
10
8
|
class APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
@@ -15,18 +13,10 @@ module Sentdm
|
|
|
15
13
|
|
|
16
14
|
class APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
17
15
|
|
|
18
|
-
class BrandCreateParams = Sentdm::Models::BrandCreateParams
|
|
19
|
-
|
|
20
16
|
class BrandData = Sentdm::Models::BrandData
|
|
21
17
|
|
|
22
|
-
class BrandDeleteParams = Sentdm::Models::BrandDeleteParams
|
|
23
|
-
|
|
24
|
-
class BrandListParams = Sentdm::Models::BrandListParams
|
|
25
|
-
|
|
26
18
|
module Brands = Sentdm::Models::Brands
|
|
27
19
|
|
|
28
|
-
class BrandUpdateParams = Sentdm::Models::BrandUpdateParams
|
|
29
|
-
|
|
30
20
|
class BrandWithKYC = Sentdm::Models::BrandWithKYC
|
|
31
21
|
|
|
32
22
|
class Contact = Sentdm::Models::Contact
|
|
@@ -43,8 +33,6 @@ module Sentdm
|
|
|
43
33
|
|
|
44
34
|
class DestinationCountry = Sentdm::Models::DestinationCountry
|
|
45
35
|
|
|
46
|
-
class LookupRetrievePhoneInfoParams = Sentdm::Models::LookupRetrievePhoneInfoParams
|
|
47
|
-
|
|
48
36
|
class MeRetrieveParams = Sentdm::Models::MeRetrieveParams
|
|
49
37
|
|
|
50
38
|
class MessageRetrieveActivitiesParams = Sentdm::Models::MessageRetrieveActivitiesParams
|
|
@@ -2,35 +2,6 @@ module Sentdm
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Brands
|
|
4
4
|
class Campaigns
|
|
5
|
-
def create: (
|
|
6
|
-
String brand_id,
|
|
7
|
-
campaign: Sentdm::Brands::CampaignData,
|
|
8
|
-
?test_mode: bool,
|
|
9
|
-
?idempotency_key: String,
|
|
10
|
-
?request_options: Sentdm::request_opts
|
|
11
|
-
) -> Sentdm::Brands::APIResponseTcrCampaignWithUseCases
|
|
12
|
-
|
|
13
|
-
def update: (
|
|
14
|
-
String campaign_id,
|
|
15
|
-
brand_id: String,
|
|
16
|
-
campaign: Sentdm::Brands::CampaignData,
|
|
17
|
-
?test_mode: bool,
|
|
18
|
-
?idempotency_key: String,
|
|
19
|
-
?request_options: Sentdm::request_opts
|
|
20
|
-
) -> Sentdm::Brands::APIResponseTcrCampaignWithUseCases
|
|
21
|
-
|
|
22
|
-
def list: (
|
|
23
|
-
String brand_id,
|
|
24
|
-
?request_options: Sentdm::request_opts
|
|
25
|
-
) -> Sentdm::Models::Brands::CampaignListResponse
|
|
26
|
-
|
|
27
|
-
def delete: (
|
|
28
|
-
String campaign_id,
|
|
29
|
-
brand_id: String,
|
|
30
|
-
body: Sentdm::Brands::CampaignDeleteParams::Body,
|
|
31
|
-
?request_options: Sentdm::request_opts
|
|
32
|
-
) -> nil
|
|
33
|
-
|
|
34
5
|
def initialize: (client: Sentdm::Client) -> void
|
|
35
6
|
end
|
|
36
7
|
end
|
|
@@ -3,31 +3,6 @@ module Sentdm
|
|
|
3
3
|
class Brands
|
|
4
4
|
attr_reader campaigns: Sentdm::Resources::Brands::Campaigns
|
|
5
5
|
|
|
6
|
-
def create: (
|
|
7
|
-
brand: Sentdm::BrandData,
|
|
8
|
-
?test_mode: bool,
|
|
9
|
-
?idempotency_key: String,
|
|
10
|
-
?request_options: Sentdm::request_opts
|
|
11
|
-
) -> Sentdm::APIResponseBrandWithKYC
|
|
12
|
-
|
|
13
|
-
def update: (
|
|
14
|
-
String brand_id,
|
|
15
|
-
brand: Sentdm::BrandData,
|
|
16
|
-
?test_mode: bool,
|
|
17
|
-
?idempotency_key: String,
|
|
18
|
-
?request_options: Sentdm::request_opts
|
|
19
|
-
) -> Sentdm::APIResponseBrandWithKYC
|
|
20
|
-
|
|
21
|
-
def list: (
|
|
22
|
-
?request_options: Sentdm::request_opts
|
|
23
|
-
) -> Sentdm::Models::BrandListResponse
|
|
24
|
-
|
|
25
|
-
def delete: (
|
|
26
|
-
String brand_id,
|
|
27
|
-
body: Sentdm::BrandDeleteParams::Body,
|
|
28
|
-
?request_options: Sentdm::request_opts
|
|
29
|
-
) -> nil
|
|
30
|
-
|
|
31
6
|
def initialize: (client: Sentdm::Client) -> void
|
|
32
7
|
end
|
|
33
8
|
end
|
|
@@ -3,13 +3,15 @@ module Sentdm
|
|
|
3
3
|
class Contacts
|
|
4
4
|
def create: (
|
|
5
5
|
?phone_number: String,
|
|
6
|
-
?
|
|
6
|
+
?sandbox: bool,
|
|
7
7
|
?idempotency_key: String,
|
|
8
|
+
?x_profile_id: String,
|
|
8
9
|
?request_options: Sentdm::request_opts
|
|
9
10
|
) -> Sentdm::APIResponseContact
|
|
10
11
|
|
|
11
12
|
def retrieve: (
|
|
12
13
|
String id,
|
|
14
|
+
?x_profile_id: String,
|
|
13
15
|
?request_options: Sentdm::request_opts
|
|
14
16
|
) -> Sentdm::APIResponseContact
|
|
15
17
|
|
|
@@ -17,8 +19,9 @@ module Sentdm
|
|
|
17
19
|
String id,
|
|
18
20
|
?default_channel: String?,
|
|
19
21
|
?opt_out: bool?,
|
|
20
|
-
?
|
|
22
|
+
?sandbox: bool,
|
|
21
23
|
?idempotency_key: String,
|
|
24
|
+
?x_profile_id: String,
|
|
22
25
|
?request_options: Sentdm::request_opts
|
|
23
26
|
) -> Sentdm::APIResponseContact
|
|
24
27
|
|
|
@@ -28,12 +31,14 @@ module Sentdm
|
|
|
28
31
|
?channel: String?,
|
|
29
32
|
?phone: String?,
|
|
30
33
|
?search: String?,
|
|
34
|
+
?x_profile_id: String,
|
|
31
35
|
?request_options: Sentdm::request_opts
|
|
32
36
|
) -> Sentdm::Models::ContactListResponse
|
|
33
37
|
|
|
34
38
|
def delete: (
|
|
35
39
|
String id,
|
|
36
40
|
body: Sentdm::ContactDeleteParams::Body,
|
|
41
|
+
?x_profile_id: String,
|
|
37
42
|
?request_options: Sentdm::request_opts
|
|
38
43
|
) -> nil
|
|
39
44
|
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Resources
|
|
3
3
|
class Lookup
|
|
4
|
-
def retrieve_phone_info: (
|
|
5
|
-
String phone_number,
|
|
6
|
-
?request_options: Sentdm::request_opts
|
|
7
|
-
) -> Sentdm::Models::LookupRetrievePhoneInfoResponse
|
|
8
|
-
|
|
9
4
|
def initialize: (client: Sentdm::Client) -> void
|
|
10
5
|
end
|
|
11
6
|
end
|
data/sig/sentdm/resources/me.rbs
CHANGED
|
@@ -3,20 +3,23 @@ module Sentdm
|
|
|
3
3
|
class Messages
|
|
4
4
|
def retrieve_activities: (
|
|
5
5
|
String id,
|
|
6
|
+
?x_profile_id: String,
|
|
6
7
|
?request_options: Sentdm::request_opts
|
|
7
8
|
) -> Sentdm::Models::MessageRetrieveActivitiesResponse
|
|
8
9
|
|
|
9
10
|
def retrieve_status: (
|
|
10
11
|
String id,
|
|
12
|
+
?x_profile_id: String,
|
|
11
13
|
?request_options: Sentdm::request_opts
|
|
12
14
|
) -> Sentdm::Models::MessageRetrieveStatusResponse
|
|
13
15
|
|
|
14
16
|
def send_: (
|
|
15
17
|
?channel: ::Array[String]?,
|
|
18
|
+
?sandbox: bool,
|
|
16
19
|
?template: Sentdm::MessageSendParams::Template,
|
|
17
|
-
?test_mode: bool,
|
|
18
20
|
?to: ::Array[String],
|
|
19
21
|
?idempotency_key: String,
|
|
22
|
+
?x_profile_id: String,
|
|
20
23
|
?request_options: Sentdm::request_opts
|
|
21
24
|
) -> Sentdm::Models::MessageSendResponse
|
|
22
25
|
|
|
@@ -4,7 +4,9 @@ module Sentdm
|
|
|
4
4
|
def create: (
|
|
5
5
|
?allow_contact_sharing: bool,
|
|
6
6
|
?allow_template_sharing: bool,
|
|
7
|
+
?billing_contact: Sentdm::ProfileCreateParams::BillingContact?,
|
|
7
8
|
?billing_model: String?,
|
|
9
|
+
?brand: Sentdm::BrandData?,
|
|
8
10
|
?description: String?,
|
|
9
11
|
?icon: String?,
|
|
10
12
|
?inherit_contacts: bool?,
|
|
@@ -12,23 +14,29 @@ module Sentdm
|
|
|
12
14
|
?inherit_tcr_campaign: bool?,
|
|
13
15
|
?inherit_templates: bool?,
|
|
14
16
|
?name: String,
|
|
17
|
+
?payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
18
|
+
?sandbox: bool,
|
|
15
19
|
?short_name: String?,
|
|
16
|
-
?
|
|
20
|
+
?whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
17
21
|
?idempotency_key: String,
|
|
22
|
+
?x_profile_id: String,
|
|
18
23
|
?request_options: Sentdm::request_opts
|
|
19
24
|
) -> Sentdm::APIResponseOfProfileDetail
|
|
20
25
|
|
|
21
26
|
def retrieve: (
|
|
22
27
|
String profile_id,
|
|
28
|
+
?x_profile_id: String,
|
|
23
29
|
?request_options: Sentdm::request_opts
|
|
24
30
|
) -> Sentdm::APIResponseOfProfileDetail
|
|
25
31
|
|
|
26
32
|
def update: (
|
|
27
|
-
String
|
|
33
|
+
String profile_id,
|
|
28
34
|
?allow_contact_sharing: bool?,
|
|
29
35
|
?allow_number_change_during_onboarding: bool?,
|
|
30
36
|
?allow_template_sharing: bool?,
|
|
37
|
+
?billing_contact: Sentdm::ProfileUpdateParams::BillingContact?,
|
|
31
38
|
?billing_model: String?,
|
|
39
|
+
?brand: Sentdm::BrandData?,
|
|
32
40
|
?description: String?,
|
|
33
41
|
?icon: String?,
|
|
34
42
|
?inherit_contacts: bool?,
|
|
@@ -36,33 +44,36 @@ module Sentdm
|
|
|
36
44
|
?inherit_tcr_campaign: bool?,
|
|
37
45
|
?inherit_templates: bool?,
|
|
38
46
|
?name: String?,
|
|
39
|
-
?
|
|
47
|
+
?payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
|
|
48
|
+
?sandbox: bool,
|
|
40
49
|
?sending_phone_number: String?,
|
|
41
50
|
?sending_phone_number_profile_id: String?,
|
|
42
51
|
?sending_whatsapp_number_profile_id: String?,
|
|
43
52
|
?short_name: String?,
|
|
44
|
-
?test_mode: bool,
|
|
45
53
|
?whatsapp_phone_number: String?,
|
|
46
54
|
?idempotency_key: String,
|
|
55
|
+
?x_profile_id: String,
|
|
47
56
|
?request_options: Sentdm::request_opts
|
|
48
57
|
) -> Sentdm::APIResponseOfProfileDetail
|
|
49
58
|
|
|
50
59
|
def list: (
|
|
60
|
+
?x_profile_id: String,
|
|
51
61
|
?request_options: Sentdm::request_opts
|
|
52
62
|
) -> Sentdm::Models::ProfileListResponse
|
|
53
63
|
|
|
54
64
|
def delete: (
|
|
55
|
-
String
|
|
56
|
-
|
|
57
|
-
?
|
|
65
|
+
String profile_id,
|
|
66
|
+
body: Sentdm::ProfileDeleteParams::Body,
|
|
67
|
+
?x_profile_id: String,
|
|
58
68
|
?request_options: Sentdm::request_opts
|
|
59
69
|
) -> nil
|
|
60
70
|
|
|
61
71
|
def complete: (
|
|
62
72
|
String profile_id,
|
|
63
73
|
web_hook_url: String,
|
|
64
|
-
?
|
|
74
|
+
?sandbox: bool,
|
|
65
75
|
?idempotency_key: String,
|
|
76
|
+
?x_profile_id: String,
|
|
66
77
|
?request_options: Sentdm::request_opts
|
|
67
78
|
) -> top
|
|
68
79
|
|
|
@@ -6,14 +6,16 @@ module Sentdm
|
|
|
6
6
|
?creation_source: String?,
|
|
7
7
|
?definition: Sentdm::TemplateDefinition,
|
|
8
8
|
?language: String?,
|
|
9
|
+
?sandbox: bool,
|
|
9
10
|
?submit_for_review: bool,
|
|
10
|
-
?test_mode: bool,
|
|
11
11
|
?idempotency_key: String,
|
|
12
|
+
?x_profile_id: String,
|
|
12
13
|
?request_options: Sentdm::request_opts
|
|
13
14
|
) -> Sentdm::APIResponseTemplate
|
|
14
15
|
|
|
15
16
|
def retrieve: (
|
|
16
17
|
String id,
|
|
18
|
+
?x_profile_id: String,
|
|
17
19
|
?request_options: Sentdm::request_opts
|
|
18
20
|
) -> Sentdm::APIResponseTemplate
|
|
19
21
|
|
|
@@ -23,9 +25,10 @@ module Sentdm
|
|
|
23
25
|
?definition: Sentdm::TemplateDefinition?,
|
|
24
26
|
?language: String?,
|
|
25
27
|
?name: String?,
|
|
28
|
+
?sandbox: bool,
|
|
26
29
|
?submit_for_review: bool,
|
|
27
|
-
?test_mode: bool,
|
|
28
30
|
?idempotency_key: String,
|
|
31
|
+
?x_profile_id: String,
|
|
29
32
|
?request_options: Sentdm::request_opts
|
|
30
33
|
) -> Sentdm::APIResponseTemplate
|
|
31
34
|
|
|
@@ -33,15 +36,18 @@ module Sentdm
|
|
|
33
36
|
page: Integer,
|
|
34
37
|
page_size: Integer,
|
|
35
38
|
?category: String?,
|
|
39
|
+
?is_welcome_playground: bool?,
|
|
36
40
|
?search: String?,
|
|
37
41
|
?status: String?,
|
|
42
|
+
?x_profile_id: String,
|
|
38
43
|
?request_options: Sentdm::request_opts
|
|
39
44
|
) -> Sentdm::Models::TemplateListResponse
|
|
40
45
|
|
|
41
46
|
def delete: (
|
|
42
47
|
String id,
|
|
43
48
|
?delete_from_meta: bool?,
|
|
44
|
-
?
|
|
49
|
+
?sandbox: bool,
|
|
50
|
+
?x_profile_id: String,
|
|
45
51
|
?request_options: Sentdm::request_opts
|
|
46
52
|
) -> nil
|
|
47
53
|
|
|
@@ -3,10 +3,12 @@ module Sentdm
|
|
|
3
3
|
class Users
|
|
4
4
|
def retrieve: (
|
|
5
5
|
String user_id,
|
|
6
|
+
?x_profile_id: String,
|
|
6
7
|
?request_options: Sentdm::request_opts
|
|
7
8
|
) -> Sentdm::APIResponseOfUser
|
|
8
9
|
|
|
9
10
|
def list: (
|
|
11
|
+
?x_profile_id: String,
|
|
10
12
|
?request_options: Sentdm::request_opts
|
|
11
13
|
) -> Sentdm::Models::UserListResponse
|
|
12
14
|
|
|
@@ -14,24 +16,25 @@ module Sentdm
|
|
|
14
16
|
?email: String,
|
|
15
17
|
?name: String,
|
|
16
18
|
?role: String,
|
|
17
|
-
?
|
|
19
|
+
?sandbox: bool,
|
|
18
20
|
?idempotency_key: String,
|
|
21
|
+
?x_profile_id: String,
|
|
19
22
|
?request_options: Sentdm::request_opts
|
|
20
23
|
) -> Sentdm::APIResponseOfUser
|
|
21
24
|
|
|
22
25
|
def remove: (
|
|
23
|
-
String
|
|
24
|
-
|
|
25
|
-
?
|
|
26
|
+
String user_id,
|
|
27
|
+
body: Sentdm::UserRemoveParams::Body,
|
|
28
|
+
?x_profile_id: String,
|
|
26
29
|
?request_options: Sentdm::request_opts
|
|
27
30
|
) -> nil
|
|
28
31
|
|
|
29
32
|
def update_role: (
|
|
30
|
-
String
|
|
33
|
+
String user_id,
|
|
31
34
|
?role: String,
|
|
32
|
-
?
|
|
33
|
-
?body_user_id: String,
|
|
35
|
+
?sandbox: bool,
|
|
34
36
|
?idempotency_key: String,
|
|
37
|
+
?x_profile_id: String,
|
|
35
38
|
?request_options: Sentdm::request_opts
|
|
36
39
|
) -> Sentdm::APIResponseOfUser
|
|
37
40
|
|
|
@@ -6,14 +6,16 @@ module Sentdm
|
|
|
6
6
|
?endpoint_url: String,
|
|
7
7
|
?event_types: ::Array[String],
|
|
8
8
|
?retry_count: Integer,
|
|
9
|
-
?
|
|
9
|
+
?sandbox: bool,
|
|
10
10
|
?timeout_seconds: Integer,
|
|
11
11
|
?idempotency_key: String,
|
|
12
|
+
?x_profile_id: String,
|
|
12
13
|
?request_options: Sentdm::request_opts
|
|
13
14
|
) -> Sentdm::APIResponseWebhook
|
|
14
15
|
|
|
15
16
|
def retrieve: (
|
|
16
17
|
String id,
|
|
18
|
+
?x_profile_id: String,
|
|
17
19
|
?request_options: Sentdm::request_opts
|
|
18
20
|
) -> Sentdm::APIResponseWebhook
|
|
19
21
|
|
|
@@ -23,9 +25,10 @@ module Sentdm
|
|
|
23
25
|
?endpoint_url: String,
|
|
24
26
|
?event_types: ::Array[String],
|
|
25
27
|
?retry_count: Integer,
|
|
26
|
-
?
|
|
28
|
+
?sandbox: bool,
|
|
27
29
|
?timeout_seconds: Integer,
|
|
28
30
|
?idempotency_key: String,
|
|
31
|
+
?x_profile_id: String,
|
|
29
32
|
?request_options: Sentdm::request_opts
|
|
30
33
|
) -> Sentdm::APIResponseWebhook
|
|
31
34
|
|
|
@@ -34,12 +37,18 @@ module Sentdm
|
|
|
34
37
|
page_size: Integer,
|
|
35
38
|
?is_active: bool?,
|
|
36
39
|
?search: String?,
|
|
40
|
+
?x_profile_id: String,
|
|
37
41
|
?request_options: Sentdm::request_opts
|
|
38
42
|
) -> Sentdm::Models::WebhookListResponse
|
|
39
43
|
|
|
40
|
-
def delete: (
|
|
44
|
+
def delete: (
|
|
45
|
+
String id,
|
|
46
|
+
?x_profile_id: String,
|
|
47
|
+
?request_options: Sentdm::request_opts
|
|
48
|
+
) -> nil
|
|
41
49
|
|
|
42
50
|
def list_event_types: (
|
|
51
|
+
?x_profile_id: String,
|
|
43
52
|
?request_options: Sentdm::request_opts
|
|
44
53
|
) -> Sentdm::Models::WebhookListEventTypesResponse
|
|
45
54
|
|
|
@@ -48,6 +57,7 @@ module Sentdm
|
|
|
48
57
|
page: Integer,
|
|
49
58
|
page_size: Integer,
|
|
50
59
|
?search: String?,
|
|
60
|
+
?x_profile_id: String,
|
|
51
61
|
?request_options: Sentdm::request_opts
|
|
52
62
|
) -> Sentdm::Models::WebhookListEventsResponse
|
|
53
63
|
|
|
@@ -55,22 +65,25 @@ module Sentdm
|
|
|
55
65
|
String id,
|
|
56
66
|
body: Sentdm::WebhookRotateSecretParams::Body,
|
|
57
67
|
?idempotency_key: String,
|
|
68
|
+
?x_profile_id: String,
|
|
58
69
|
?request_options: Sentdm::request_opts
|
|
59
70
|
) -> Sentdm::Models::WebhookRotateSecretResponse
|
|
60
71
|
|
|
61
72
|
def test_: (
|
|
62
73
|
String id,
|
|
63
74
|
?event_type: String,
|
|
64
|
-
?
|
|
75
|
+
?sandbox: bool,
|
|
65
76
|
?idempotency_key: String,
|
|
77
|
+
?x_profile_id: String,
|
|
66
78
|
?request_options: Sentdm::request_opts
|
|
67
79
|
) -> Sentdm::Models::WebhookTestResponse
|
|
68
80
|
|
|
69
81
|
def toggle_status: (
|
|
70
82
|
String id,
|
|
71
83
|
?is_active: bool,
|
|
72
|
-
?
|
|
84
|
+
?sandbox: bool,
|
|
73
85
|
?idempotency_key: String,
|
|
86
|
+
?x_profile_id: String,
|
|
74
87
|
?request_options: Sentdm::request_opts
|
|
75
88
|
) -> Sentdm::APIResponseWebhook
|
|
76
89
|
|