pingram 0.1.4 → 0.1.5

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.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api/account_api.rb +1 -1
  4. data/lib/pingram/api/addresses_api.rb +1 -1
  5. data/lib/pingram/api/components_api.rb +1 -1
  6. data/lib/pingram/api/default_api.rb +1 -1
  7. data/lib/pingram/api/domains_api.rb +1 -1
  8. data/lib/pingram/api/editor_api.rb +1 -1
  9. data/lib/pingram/api/environments_api.rb +1 -1
  10. data/lib/pingram/api/health_api.rb +1 -1
  11. data/lib/pingram/api/insights_api.rb +1 -1
  12. data/lib/pingram/api/keys_api.rb +1 -1
  13. data/lib/pingram/api/logs_api.rb +1 -1
  14. data/lib/pingram/api/members_api.rb +1 -1
  15. data/lib/pingram/api/sender_api.rb +1 -1
  16. data/lib/pingram/api/templates_api.rb +1 -1
  17. data/lib/pingram/api/types_api.rb +1 -1
  18. data/lib/pingram/api/user_api.rb +1 -1
  19. data/lib/pingram/api/users_api.rb +1 -1
  20. data/lib/pingram/api_client.rb +2 -2
  21. data/lib/pingram/api_error.rb +1 -1
  22. data/lib/pingram/api_model_base.rb +1 -1
  23. data/lib/pingram/configuration.rb +3 -3
  24. data/lib/pingram/models/account_addresses_response.rb +1 -1
  25. data/lib/pingram/models/account_addresses_response_addresses_inner.rb +1 -1
  26. data/lib/pingram/models/account_get_response.rb +1 -1
  27. data/lib/pingram/models/account_get_response_pending_downgrade_usage_limit.rb +1 -1
  28. data/lib/pingram/models/address_response.rb +1 -1
  29. data/lib/pingram/models/auto_join_get_response.rb +1 -1
  30. data/lib/pingram/models/auto_join_post_response.rb +1 -1
  31. data/lib/pingram/models/auto_join_request_body.rb +1 -1
  32. data/lib/pingram/models/bee_token_v2.rb +1 -1
  33. data/lib/pingram/models/billing_post_request_body.rb +1 -1
  34. data/lib/pingram/models/billing_post_response_body.rb +1 -1
  35. data/lib/pingram/models/billing_post_response_body_pending_downgrade_usage_limit.rb +1 -1
  36. data/lib/pingram/models/channels_enum.rb +1 -1
  37. data/lib/pingram/models/create_account_request_body.rb +1 -1
  38. data/lib/pingram/models/create_account_response.rb +1 -1
  39. data/lib/pingram/models/create_address_request.rb +1 -1
  40. data/lib/pingram/models/create_key_request.rb +1 -1
  41. data/lib/pingram/models/create_key_response.rb +1 -1
  42. data/lib/pingram/models/delete_key_response.rb +1 -1
  43. data/lib/pingram/models/delete_user_response.rb +1 -1
  44. data/lib/pingram/models/email_auth_token_post_request.rb +1 -1
  45. data/lib/pingram/models/email_component_patch_request.rb +1 -1
  46. data/lib/pingram/models/email_component_post_request.rb +1 -1
  47. data/lib/pingram/models/email_component_response.rb +1 -1
  48. data/lib/pingram/models/email_component_response_referenced_by_inner.rb +1 -1
  49. data/lib/pingram/models/environment.rb +1 -1
  50. data/lib/pingram/models/environment_create_request.rb +1 -1
  51. data/lib/pingram/models/environment_patch_request.rb +1 -1
  52. data/lib/pingram/models/get_account_metadata_response.rb +1 -1
  53. data/lib/pingram/models/get_account_metadata_response_user_account_metadata.rb +1 -1
  54. data/lib/pingram/models/get_email_components_response_inner.rb +1 -1
  55. data/lib/pingram/models/get_environments_response_inner.rb +1 -1
  56. data/lib/pingram/models/get_inapp_notifications_response.rb +1 -1
  57. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner.rb +1 -1
  58. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options.rb +1 -1
  59. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options_instant.rb +1 -1
  60. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options_off.rb +1 -1
  61. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner_replies_inner.rb +1 -1
  62. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner_template.rb +1 -1
  63. data/lib/pingram/models/get_inapp_notifications_response_notifications_inner_template_any_of.rb +1 -1
  64. data/lib/pingram/models/get_keys_response.rb +1 -1
  65. data/lib/pingram/models/get_keys_response_keys_inner.rb +1 -1
  66. data/lib/pingram/models/get_logs_response.rb +1 -1
  67. data/lib/pingram/models/get_logs_response_messages_inner.rb +1 -1
  68. data/lib/pingram/models/get_logs_response_messages_inner_attachments_inner.rb +1 -1
  69. data/lib/pingram/models/get_members_response_inner.rb +1 -1
  70. data/lib/pingram/models/get_metrics_response_inner.rb +1 -1
  71. data/lib/pingram/models/get_metrics_response_inner_messages_inner.rb +1 -1
  72. data/lib/pingram/models/get_notifications_response_inner.rb +1 -1
  73. data/lib/pingram/models/get_notifications_response_inner_deduplication.rb +1 -1
  74. data/lib/pingram/models/get_notifications_response_inner_options.rb +1 -1
  75. data/lib/pingram/models/get_notifications_response_inner_options_email.rb +1 -1
  76. data/lib/pingram/models/get_notifications_response_inner_options_email_daily.rb +1 -1
  77. data/lib/pingram/models/get_notifications_response_inner_options_email_monthly.rb +1 -1
  78. data/lib/pingram/models/get_notifications_response_inner_options_email_weekly.rb +1 -1
  79. data/lib/pingram/models/get_notifications_response_inner_templates_inner.rb +1 -1
  80. data/lib/pingram/models/get_notifications_response_inner_throttling.rb +1 -1
  81. data/lib/pingram/models/get_senders_response_inner.rb +1 -1
  82. data/lib/pingram/models/get_templates_list_response_inner.rb +1 -1
  83. data/lib/pingram/models/get_templates_list_response_inner_any_of.rb +1 -1
  84. data/lib/pingram/models/get_templates_list_response_inner_any_of1.rb +1 -1
  85. data/lib/pingram/models/get_templates_list_response_inner_any_of1_instant.rb +1 -1
  86. data/lib/pingram/models/get_templates_list_response_inner_any_of2.rb +1 -1
  87. data/lib/pingram/models/get_templates_list_response_inner_any_of3.rb +1 -1
  88. data/lib/pingram/models/get_templates_list_response_inner_any_of4.rb +1 -1
  89. data/lib/pingram/models/get_templates_list_response_inner_any_of5.rb +1 -1
  90. data/lib/pingram/models/get_templates_list_response_inner_any_of5_metadata.rb +1 -1
  91. data/lib/pingram/models/get_templates_list_response_inner_any_of5_metadata_entities_inner.rb +1 -1
  92. data/lib/pingram/models/get_templates_list_response_inner_any_of5_metadata_entities_inner_external_ref.rb +1 -1
  93. data/lib/pingram/models/get_templates_response.rb +1 -1
  94. data/lib/pingram/models/get_users_response.rb +1 -1
  95. data/lib/pingram/models/get_users_response_users_inner.rb +10 -1
  96. data/lib/pingram/models/get_users_response_users_inner_email_suppression_status.rb +2 -1
  97. data/lib/pingram/models/get_users_response_users_inner_push_tokens_inner.rb +1 -1
  98. data/lib/pingram/models/get_users_response_users_inner_push_tokens_inner_device.rb +1 -1
  99. data/lib/pingram/models/get_users_response_users_inner_slack_token.rb +1 -1
  100. data/lib/pingram/models/get_users_response_users_inner_slack_token_authed_user.rb +1 -1
  101. data/lib/pingram/models/get_users_response_users_inner_slack_token_enterprise.rb +1 -1
  102. data/lib/pingram/models/get_users_response_users_inner_slack_token_incoming_webhook.rb +1 -1
  103. data/lib/pingram/models/get_users_response_users_inner_slack_token_response_metadata.rb +1 -1
  104. data/lib/pingram/models/get_users_response_users_inner_web_push_tokens_inner.rb +1 -1
  105. data/lib/pingram/models/get_users_response_users_inner_web_push_tokens_inner_sub.rb +1 -1
  106. data/lib/pingram/models/get_users_response_users_inner_web_push_tokens_inner_sub_keys.rb +1 -1
  107. data/lib/pingram/models/in_app_notification_patch_request.rb +1 -1
  108. data/lib/pingram/models/in_app_notification_unread_clear_request.rb +1 -1
  109. data/lib/pingram/models/inapp_unread_count_response.rb +1 -1
  110. data/lib/pingram/models/inbound_request_body.rb +1 -1
  111. data/lib/pingram/models/inbound_response_body.rb +1 -1
  112. data/lib/pingram/models/inbound_response_body_results_inner.rb +1 -1
  113. data/lib/pingram/models/ingishts_post_request.rb +1 -1
  114. data/lib/pingram/models/ingishts_post_request_label_options.rb +1 -1
  115. data/lib/pingram/models/ingishts_post_request_metric_data_queries_inner.rb +1 -1
  116. data/lib/pingram/models/ingishts_post_request_metric_data_queries_inner_metric_stat.rb +1 -1
  117. data/lib/pingram/models/ingishts_post_request_metric_data_queries_inner_metric_stat_metric.rb +1 -1
  118. data/lib/pingram/models/ingishts_post_request_metric_data_queries_inner_metric_stat_metric_dimensions_inner.rb +1 -1
  119. data/lib/pingram/models/intercom_webhook.rb +1 -1
  120. data/lib/pingram/models/intercom_webhook_data.rb +1 -1
  121. data/lib/pingram/models/intercom_webhook_data_item.rb +1 -1
  122. data/lib/pingram/models/intercom_webhook_data_item_any_of.rb +2 -1
  123. data/lib/pingram/models/intercom_webhook_data_item_any_of_contacts.rb +1 -1
  124. data/lib/pingram/models/intercom_webhook_data_item_any_of_contacts_contacts_inner.rb +1 -1
  125. data/lib/pingram/models/intercom_webhook_data_item_any_of_source.rb +1 -1
  126. data/lib/pingram/models/intercom_webhook_data_item_any_of_source_author.rb +1 -1
  127. data/lib/pingram/models/invite_post_response.rb +1 -1
  128. data/lib/pingram/models/log_query_post_body.rb +1 -1
  129. data/lib/pingram/models/logs_bulk_request.rb +1 -1
  130. data/lib/pingram/models/logs_get_response.rb +1 -1
  131. data/lib/pingram/models/logs_get_response_logs_inner.rb +1 -1
  132. data/lib/pingram/models/logs_query_response.rb +1 -1
  133. data/lib/pingram/models/logs_query_result_response.rb +1 -1
  134. data/lib/pingram/models/logs_retention_response.rb +1 -1
  135. data/lib/pingram/models/logs_tail_response.rb +1 -1
  136. data/lib/pingram/models/member_invite_request.rb +1 -1
  137. data/lib/pingram/models/member_update_request.rb +1 -1
  138. data/lib/pingram/models/message_response.rb +1 -1
  139. data/lib/pingram/models/notification.rb +1 -1
  140. data/lib/pingram/models/notification_create_request.rb +1 -1
  141. data/lib/pingram/models/notification_patch_request.rb +6 -3
  142. data/lib/pingram/models/notification_patch_request_deduplication.rb +164 -0
  143. data/lib/pingram/models/notification_patch_request_throttling.rb +294 -0
  144. data/lib/pingram/models/post_email_test_request.rb +1 -1
  145. data/lib/pingram/models/post_email_test_response.rb +1 -1
  146. data/lib/pingram/models/post_senders_request_body.rb +1 -1
  147. data/lib/pingram/models/post_user_request.rb +7 -1
  148. data/lib/pingram/models/sender_post_body.rb +8 -2
  149. data/lib/pingram/models/sender_post_body_call.rb +166 -0
  150. data/lib/pingram/models/sender_post_body_email.rb +7 -1
  151. data/lib/pingram/models/sender_post_body_inapp.rb +5 -1
  152. data/lib/pingram/models/sender_post_body_mobile_push.rb +4 -1
  153. data/lib/pingram/models/sender_post_body_options.rb +2 -1
  154. data/lib/pingram/models/sender_post_body_options_apn.rb +9 -1
  155. data/lib/pingram/models/sender_post_body_options_email.rb +9 -1
  156. data/lib/pingram/models/sender_post_body_options_email_attachments_inner.rb +1 -1
  157. data/lib/pingram/models/sender_post_body_options_email_attachments_inner_any_of.rb +1 -1
  158. data/lib/pingram/models/sender_post_body_options_email_attachments_inner_any_of1.rb +1 -1
  159. data/lib/pingram/models/sender_post_body_options_fcm.rb +2 -1
  160. data/lib/pingram/models/sender_post_body_options_fcm_android.rb +6 -1
  161. data/lib/pingram/models/sender_post_body_slack.rb +13 -1
  162. data/lib/pingram/models/sender_post_body_sms.rb +3 -1
  163. data/lib/pingram/models/sender_post_body_sms_auto_reply.rb +2 -1
  164. data/lib/pingram/models/sender_post_body_to.rb +11 -1
  165. data/lib/pingram/models/sender_post_body_user.rb +10 -1
  166. data/lib/pingram/models/sender_post_body_web_push.rb +6 -1
  167. data/lib/pingram/models/sender_post_response.rb +1 -1
  168. data/lib/pingram/models/set_default_template_request.rb +1 -1
  169. data/lib/pingram/models/slack_interactivity_response.rb +1 -1
  170. data/lib/pingram/models/slack_oauth_request.rb +1 -1
  171. data/lib/pingram/models/success_response.rb +1 -1
  172. data/lib/pingram/models/supabase_configure_request.rb +1 -1
  173. data/lib/pingram/models/supabase_configure_response.rb +1 -1
  174. data/lib/pingram/models/supabase_o_auth_request.rb +1 -1
  175. data/lib/pingram/models/supabase_o_auth_response.rb +1 -1
  176. data/lib/pingram/models/supabase_projects_response.rb +1 -1
  177. data/lib/pingram/models/supabase_projects_response_projects_inner.rb +1 -1
  178. data/lib/pingram/models/supabase_status_response.rb +1 -1
  179. data/lib/pingram/models/template.rb +1 -1
  180. data/lib/pingram/models/template_patch_request.rb +1 -1
  181. data/lib/pingram/models/template_patch_request_any_of.rb +1 -1
  182. data/lib/pingram/models/template_patch_request_any_of1.rb +1 -1
  183. data/lib/pingram/models/template_patch_request_any_of1_batch.rb +1 -1
  184. data/lib/pingram/models/template_patch_request_any_of1_instant.rb +1 -1
  185. data/lib/pingram/models/template_post_request.rb +1 -1
  186. data/lib/pingram/models/template_post_request_batch.rb +1 -1
  187. data/lib/pingram/models/template_post_request_instant.rb +1 -1
  188. data/lib/pingram/models/update_address_request.rb +1 -1
  189. data/lib/pingram/models/user.rb +10 -1
  190. data/lib/pingram/models/user_suppression_delete_response.rb +1 -1
  191. data/lib/pingram/models/webhook_response.rb +1 -1
  192. data/lib/pingram/version.rb +2 -2
  193. data/lib/pingram.rb +4 -1
  194. data/pingram.gemspec +1 -1
  195. metadata +5 -2
@@ -0,0 +1,166 @@
1
+ =begin
2
+ #Pingram
3
+
4
+ #Internal API for notification delivery and management
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Pingram
17
+ # Inline call content (message).
18
+ class SenderPostBodyCall < ApiModelBase
19
+ # Text to speak (TTS).
20
+ attr_accessor :message
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'message' => :'message'
26
+ }
27
+ end
28
+
29
+ # Returns attribute mapping this model knows about
30
+ def self.acceptable_attribute_map
31
+ attribute_map
32
+ end
33
+
34
+ # Returns all the JSON keys this model knows about
35
+ def self.acceptable_attributes
36
+ acceptable_attribute_map.values
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.openapi_types
41
+ {
42
+ :'message' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::SenderPostBodyCall` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::SenderPostBodyCall`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'message')
69
+ self.message = attributes[:'message']
70
+ else
71
+ self.message = nil
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
79
+ invalid_properties = Array.new
80
+ if @message.nil?
81
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
+ return false if @message.nil?
92
+ true
93
+ end
94
+
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] message Value to be assigned
97
+ def message=(message)
98
+ if message.nil?
99
+ fail ArgumentError, 'message cannot be nil'
100
+ end
101
+
102
+ @message = message
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ message == o.message
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(o)
116
+ self == o
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [message].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ transformed_hash = {}
132
+ openapi_types.each_pair do |key, type|
133
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = nil
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[attribute_map[key]].is_a?(Array)
139
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
+ end
141
+ elsif !attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
+ end
144
+ end
145
+ new(transformed_hash)
146
+ end
147
+
148
+ # Returns the object in the form of hash
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_hash
151
+ hash = {}
152
+ self.class.attribute_map.each_pair do |attr, param|
153
+ value = self.send(attr)
154
+ if value.nil?
155
+ is_nullable = self.class.openapi_nullable.include?(attr)
156
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
157
+ end
158
+
159
+ hash[param] = _to_hash(value)
160
+ end
161
+ hash
162
+ end
163
+
164
+ end
165
+
166
+ end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,15 +14,21 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Inline email content (subject, html). Use when not using templates.
17
18
  class SenderPostBodyEmail < ApiModelBase
19
+ # Email subject line.
18
20
  attr_accessor :subject
19
21
 
22
+ # HTML body content.
20
23
  attr_accessor :html
21
24
 
25
+ # Preview/snippet text shown in inbox.
22
26
  attr_accessor :preview_text
23
27
 
28
+ # Display name of sender.
24
29
  attr_accessor :sender_name
25
30
 
31
+ # Sender email address.
26
32
  attr_accessor :sender_email
27
33
 
28
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,11 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Inline in-app content (title, url, image).
17
18
  class SenderPostBodyInapp < ApiModelBase
19
+ # Notification title.
18
20
  attr_accessor :title
19
21
 
22
+ # URL to open when clicked.
20
23
  attr_accessor :url
21
24
 
25
+ # Image URL.
22
26
  attr_accessor :image
23
27
 
24
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,9 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Inline mobile push content (title, message).
17
18
  class SenderPostBodyMobilePush < ApiModelBase
19
+ # Notification title.
18
20
  attr_accessor :title
19
21
 
22
+ # Body text.
20
23
  attr_accessor :message
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Per-channel overrides for send options (email, APN, FCM).
17
18
  class SenderPostBodyOptions < ApiModelBase
18
19
  attr_accessor :email
19
20
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,19 +14,27 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Apple Push Notification (APN) overrides.
17
18
  class SenderPostBodyOptionsApn < ApiModelBase
19
+ # Seconds until the notification expires.
18
20
  attr_accessor :expiry
19
21
 
22
+ # Delivery priority (10 = immediate, 5 = power-saving).
20
23
  attr_accessor :priority
21
24
 
25
+ # Group notifications with the same ID (replaces previous).
22
26
  attr_accessor :collapse_id
23
27
 
28
+ # Thread identifier for grouping notifications.
24
29
  attr_accessor :thread_id
25
30
 
31
+ # Badge count on app icon.
26
32
  attr_accessor :badge
27
33
 
34
+ # Sound file name.
28
35
  attr_accessor :sound
29
36
 
37
+ # Silent background notification (no alert).
30
38
  attr_accessor :content_available
31
39
 
32
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,19 +14,27 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Email-specific overrides.
17
18
  class SenderPostBodyOptionsEmail < ApiModelBase
19
+ # Reply-to addresses for the email.
18
20
  attr_accessor :reply_to_addresses
19
21
 
22
+ # CC recipients.
20
23
  attr_accessor :cc_addresses
21
24
 
25
+ # BCC recipients.
22
26
  attr_accessor :bcc_addresses
23
27
 
28
+ # Override sender email address.
24
29
  attr_accessor :from_address
25
30
 
31
+ # Override sender display name.
26
32
  attr_accessor :from_name
27
33
 
34
+ # File attachments (by URL or inline base64 content).
28
35
  attr_accessor :attachments
29
36
 
37
+ # Conditional expression for when to send (e.g. merge tag logic).
30
38
  attr_accessor :condition
31
39
 
32
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Firebase Cloud Messaging (FCM) overrides.
17
18
  class SenderPostBodyOptionsFcm < ApiModelBase
18
19
  attr_accessor :android
19
20
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,13 +14,18 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Android-specific FCM options.
17
18
  class SenderPostBodyOptionsFcmAndroid < ApiModelBase
19
+ # Collapse key for grouping messages.
18
20
  attr_accessor :collapse_key
19
21
 
22
+ # Delivery priority.
20
23
  attr_accessor :priority
21
24
 
25
+ # Time to live in seconds.
22
26
  attr_accessor :ttl
23
27
 
28
+ # Restrict delivery to a specific package.
24
29
  attr_accessor :restricted_package_name
25
30
 
26
31
  class EnumAttributeValidator
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,27 +14,39 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Inline Slack content (text, blocks, etc.).
17
18
  class SenderPostBodySlack < ApiModelBase
19
+ # Fallback plain text (required when using blocks).
18
20
  attr_accessor :text
19
21
 
22
+ # Slack Block Kit blocks.
20
23
  attr_accessor :blocks
21
24
 
25
+ # Override bot username.
22
26
  attr_accessor :username
23
27
 
28
+ # Icon: emoji (e.g. \":smile:\") or URL. Default: bot's icon.
24
29
  attr_accessor :icon
25
30
 
31
+ # Parent message `ts` to post in a thread.
26
32
  attr_accessor :thread_ts
27
33
 
34
+ # When true with thread_ts, broadcasts reply to channel. Default: false.
28
35
  attr_accessor :reply_broadcast
29
36
 
37
+ # URL parsing: \"full\" (clickable links) or \"none\". Default: \"none\".
30
38
  attr_accessor :parse
31
39
 
40
+ # Convert channel and username refs to Slack links. Default: false.
32
41
  attr_accessor :link_names
33
42
 
43
+ # Enable Slack markup (*bold*, _italic_, `code`). Default: true.
34
44
  attr_accessor :mrkdwn
35
45
 
46
+ # Unfurl link previews. Default: true.
36
47
  attr_accessor :unfurl_links
37
48
 
49
+ # Unfurl media previews. Default: true.
38
50
  attr_accessor :unfurl_media
39
51
 
40
52
  attr_accessor :metadata
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,7 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Inline SMS content (message, autoReply).
17
18
  class SenderPostBodySms < ApiModelBase
19
+ # SMS body text.
18
20
  attr_accessor :message
19
21
 
20
22
  attr_accessor :auto_reply
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -15,6 +15,7 @@ require 'time'
15
15
 
16
16
  module Pingram
17
17
  class SenderPostBodySmsAutoReply < ApiModelBase
18
+ # Auto-reply message to send when user texts in.
18
19
  attr_accessor :message
19
20
 
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,17 +14,24 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Recipient user. Provide `id`, `email`, or `number` to identify the user.
17
18
  class SenderPostBodyTo < ApiModelBase
19
+ # Unique user identifier. Required.
18
20
  attr_accessor :id
19
21
 
22
+ # User's email address for email notifications.
20
23
  attr_accessor :email
21
24
 
25
+ # User's phone number for SMS/call notifications.
22
26
  attr_accessor :number
23
27
 
28
+ # Mobile push tokens (FCM, APN) for push notifications.
24
29
  attr_accessor :push_tokens
25
30
 
31
+ # Web push subscription config from the browser.
26
32
  attr_accessor :web_push_tokens
27
33
 
34
+ # User's timezone (e.g. \"America/New_York\") for scheduling.
28
35
  attr_accessor :timezone
29
36
 
30
37
  # The destination channel of slack notifications sent to this user. Can be either of the following: - Channel name, e.g. \"test\" - Channel name with # prefix, e.g. \"#test\" - Channel ID, e.g. \"C1234567890\" - User ID for DM, e.g. \"U1234567890\" - Username with @ prefix, e.g. \"@test\"
@@ -32,10 +39,13 @@ module Pingram
32
39
 
33
40
  attr_accessor :slack_token
34
41
 
42
+ # Last activity timestamp. Updated automatically. Read-only.
35
43
  attr_accessor :last_seen_time
36
44
 
45
+ # Last update timestamp. Read-only.
37
46
  attr_accessor :updated_at
38
47
 
48
+ # Creation timestamp. Read-only.
39
49
  attr_accessor :created_at
40
50
 
41
51
  attr_accessor :email_suppression_status
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -15,16 +15,22 @@ require 'time'
15
15
 
16
16
  module Pingram
17
17
  class SenderPostBodyUser < ApiModelBase
18
+ # Unique user identifier. Required.
18
19
  attr_accessor :id
19
20
 
21
+ # User's email address for email notifications.
20
22
  attr_accessor :email
21
23
 
24
+ # User's phone number for SMS/call notifications.
22
25
  attr_accessor :number
23
26
 
27
+ # Mobile push tokens (FCM, APN) for push notifications.
24
28
  attr_accessor :push_tokens
25
29
 
30
+ # Web push subscription config from the browser.
26
31
  attr_accessor :web_push_tokens
27
32
 
33
+ # User's timezone (e.g. \"America/New_York\") for scheduling.
28
34
  attr_accessor :timezone
29
35
 
30
36
  # The destination channel of slack notifications sent to this user. Can be either of the following: - Channel name, e.g. \"test\" - Channel name with # prefix, e.g. \"#test\" - Channel ID, e.g. \"C1234567890\" - User ID for DM, e.g. \"U1234567890\" - Username with @ prefix, e.g. \"@test\"
@@ -32,10 +38,13 @@ module Pingram
32
38
 
33
39
  attr_accessor :slack_token
34
40
 
41
+ # Last activity timestamp. Updated automatically. Read-only.
35
42
  attr_accessor :last_seen_time
36
43
 
44
+ # Last update timestamp. Read-only.
37
45
  attr_accessor :updated_at
38
46
 
47
+ # Creation timestamp. Read-only.
39
48
  attr_accessor :created_at
40
49
 
41
50
  attr_accessor :email_suppression_status
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -14,13 +14,18 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
+ # Inline web push content (title, message, icon, url).
17
18
  class SenderPostBodyWebPush < ApiModelBase
19
+ # Notification title.
18
20
  attr_accessor :title
19
21
 
22
+ # Body text.
20
23
  attr_accessor :message
21
24
 
25
+ # Icon URL.
22
26
  attr_accessor :icon
23
27
 
28
+ # URL to open when clicked.
24
29
  attr_accessor :url
25
30
 
26
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #NotificationAPI
2
+ #Pingram
3
3
 
4
4
  #Internal API for notification delivery and management
5
5