pingram 1.0.14 → 1.0.16

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api/addresses_api.rb +67 -6
  4. data/lib/pingram/api/default_api.rb +2 -2
  5. data/lib/pingram/api/domains_api.rb +69 -8
  6. data/lib/pingram/api/email_api.rb +2 -2
  7. data/lib/pingram/api/logs_api.rb +10 -10
  8. data/lib/pingram/api/numbers_api.rb +6 -6
  9. data/lib/pingram/api/profile_api.rb +248 -0
  10. data/lib/pingram/api/sms_api.rb +2 -2
  11. data/lib/pingram/api_client.rb +1 -1
  12. data/lib/pingram/models/billing_post_response_body.rb +74 -203
  13. data/lib/pingram/models/domain_dns_check.rb +244 -0
  14. data/lib/pingram/models/domain_dns_check_records_inner.rb +357 -0
  15. data/lib/pingram/models/get_members_response_inner.rb +37 -4
  16. data/lib/pingram/models/mfa_setup_request.rb +189 -0
  17. data/lib/pingram/models/mfa_setup_response.rb +216 -0
  18. data/lib/pingram/models/mfa_status_response.rb +235 -0
  19. data/lib/pingram/models/mfa_verify_request.rb +241 -0
  20. data/lib/pingram/version.rb +1 -1
  21. data/lib/pingram.rb +6 -0
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  27. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
  28. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  29. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  30. metadata +8 -2
@@ -150,5 +150,253 @@ module Pingram
150
150
  end
151
151
  return data, status_code, headers
152
152
  end
153
+
154
+ # Disable MFA for the authenticated user
155
+ # @param type [String] MFA type (e.g. SOFTWARE_TOKEN_MFA)
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [SuccessResponse]
158
+ def profile_disable_mfa(type, opts = {})
159
+ data, _status_code, _headers = profile_disable_mfa_with_http_info(type, opts)
160
+ data
161
+ end
162
+
163
+ # Disable MFA for the authenticated user
164
+ # @param type [String] MFA type (e.g. SOFTWARE_TOKEN_MFA)
165
+ # @param [Hash] opts the optional parameters
166
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
167
+ def profile_disable_mfa_with_http_info(type, opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug 'Calling API: ProfileApi.profile_disable_mfa ...'
170
+ end
171
+ # verify the required parameter 'type' is set
172
+ if @api_client.config.client_side_validation && type.nil?
173
+ fail ArgumentError, "Missing the required parameter 'type' when calling ProfileApi.profile_disable_mfa"
174
+ end
175
+ # resource path
176
+ local_var_path = '/profile/mfa/{type}'.sub('{' + 'type' + '}', CGI.escape(type.to_s))
177
+
178
+ # query parameters
179
+ query_params = opts[:query_params] || {}
180
+
181
+ # header parameters
182
+ header_params = opts[:header_params] || {}
183
+ # HTTP header 'Accept' (if needed)
184
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
185
+
186
+ # form parameters
187
+ form_params = opts[:form_params] || {}
188
+
189
+ # http body (model)
190
+ post_body = opts[:debug_body]
191
+
192
+ # return_type
193
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
194
+
195
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
196
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
197
+
198
+ new_options = opts.merge(
199
+ :operation => :"ProfileApi.profile_disable_mfa",
200
+ :header_params => header_params,
201
+ :query_params => query_params,
202
+ :form_params => form_params,
203
+ :body => post_body,
204
+ :auth_names => auth_names,
205
+ :return_type => return_type
206
+ )
207
+
208
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
209
+ if @api_client.config.debugging
210
+ @api_client.config.logger.debug "API called: ProfileApi#profile_disable_mfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
211
+ end
212
+ return data, status_code, headers
213
+ end
214
+
215
+ # Get MFA status for the authenticated user
216
+ # @param [Hash] opts the optional parameters
217
+ # @return [MFAStatusResponse]
218
+ def profile_get_mfa_status(opts = {})
219
+ data, _status_code, _headers = profile_get_mfa_status_with_http_info(opts)
220
+ data
221
+ end
222
+
223
+ # Get MFA status for the authenticated user
224
+ # @param [Hash] opts the optional parameters
225
+ # @return [Array<(MFAStatusResponse, Integer, Hash)>] MFAStatusResponse data, response status code and response headers
226
+ def profile_get_mfa_status_with_http_info(opts = {})
227
+ if @api_client.config.debugging
228
+ @api_client.config.logger.debug 'Calling API: ProfileApi.profile_get_mfa_status ...'
229
+ end
230
+ # resource path
231
+ local_var_path = '/profile/mfa'
232
+
233
+ # query parameters
234
+ query_params = opts[:query_params] || {}
235
+
236
+ # header parameters
237
+ header_params = opts[:header_params] || {}
238
+ # HTTP header 'Accept' (if needed)
239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
240
+
241
+ # form parameters
242
+ form_params = opts[:form_params] || {}
243
+
244
+ # http body (model)
245
+ post_body = opts[:debug_body]
246
+
247
+ # return_type
248
+ return_type = opts[:debug_return_type] || 'MFAStatusResponse'
249
+
250
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
251
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
252
+
253
+ new_options = opts.merge(
254
+ :operation => :"ProfileApi.profile_get_mfa_status",
255
+ :header_params => header_params,
256
+ :query_params => query_params,
257
+ :form_params => form_params,
258
+ :body => post_body,
259
+ :auth_names => auth_names,
260
+ :return_type => return_type
261
+ )
262
+
263
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug "API called: ProfileApi#profile_get_mfa_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ end
267
+ return data, status_code, headers
268
+ end
269
+
270
+ # Start TOTP MFA setup and return QR code data
271
+ # @param mfa_setup_request [MFASetupRequest]
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [MFASetupResponse]
274
+ def profile_setup_mfa(mfa_setup_request, opts = {})
275
+ data, _status_code, _headers = profile_setup_mfa_with_http_info(mfa_setup_request, opts)
276
+ data
277
+ end
278
+
279
+ # Start TOTP MFA setup and return QR code data
280
+ # @param mfa_setup_request [MFASetupRequest]
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [Array<(MFASetupResponse, Integer, Hash)>] MFASetupResponse data, response status code and response headers
283
+ def profile_setup_mfa_with_http_info(mfa_setup_request, opts = {})
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug 'Calling API: ProfileApi.profile_setup_mfa ...'
286
+ end
287
+ # verify the required parameter 'mfa_setup_request' is set
288
+ if @api_client.config.client_side_validation && mfa_setup_request.nil?
289
+ fail ArgumentError, "Missing the required parameter 'mfa_setup_request' when calling ProfileApi.profile_setup_mfa"
290
+ end
291
+ # resource path
292
+ local_var_path = '/profile/mfa'
293
+
294
+ # query parameters
295
+ query_params = opts[:query_params] || {}
296
+
297
+ # header parameters
298
+ header_params = opts[:header_params] || {}
299
+ # HTTP header 'Accept' (if needed)
300
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
301
+ # HTTP header 'Content-Type'
302
+ content_type = @api_client.select_header_content_type(['application/json'])
303
+ if !content_type.nil?
304
+ header_params['Content-Type'] = content_type
305
+ end
306
+
307
+ # form parameters
308
+ form_params = opts[:form_params] || {}
309
+
310
+ # http body (model)
311
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(mfa_setup_request)
312
+
313
+ # return_type
314
+ return_type = opts[:debug_return_type] || 'MFASetupResponse'
315
+
316
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
317
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
318
+
319
+ new_options = opts.merge(
320
+ :operation => :"ProfileApi.profile_setup_mfa",
321
+ :header_params => header_params,
322
+ :query_params => query_params,
323
+ :form_params => form_params,
324
+ :body => post_body,
325
+ :auth_names => auth_names,
326
+ :return_type => return_type
327
+ )
328
+
329
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "API called: ProfileApi#profile_setup_mfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
+ end
333
+ return data, status_code, headers
334
+ end
335
+
336
+ # Verify TOTP code and enable MFA
337
+ # @param mfa_verify_request [MFAVerifyRequest]
338
+ # @param [Hash] opts the optional parameters
339
+ # @return [SuccessResponse]
340
+ def profile_verify_mfa(mfa_verify_request, opts = {})
341
+ data, _status_code, _headers = profile_verify_mfa_with_http_info(mfa_verify_request, opts)
342
+ data
343
+ end
344
+
345
+ # Verify TOTP code and enable MFA
346
+ # @param mfa_verify_request [MFAVerifyRequest]
347
+ # @param [Hash] opts the optional parameters
348
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
349
+ def profile_verify_mfa_with_http_info(mfa_verify_request, opts = {})
350
+ if @api_client.config.debugging
351
+ @api_client.config.logger.debug 'Calling API: ProfileApi.profile_verify_mfa ...'
352
+ end
353
+ # verify the required parameter 'mfa_verify_request' is set
354
+ if @api_client.config.client_side_validation && mfa_verify_request.nil?
355
+ fail ArgumentError, "Missing the required parameter 'mfa_verify_request' when calling ProfileApi.profile_verify_mfa"
356
+ end
357
+ # resource path
358
+ local_var_path = '/profile/mfa/verify'
359
+
360
+ # query parameters
361
+ query_params = opts[:query_params] || {}
362
+
363
+ # header parameters
364
+ header_params = opts[:header_params] || {}
365
+ # HTTP header 'Accept' (if needed)
366
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
367
+ # HTTP header 'Content-Type'
368
+ content_type = @api_client.select_header_content_type(['application/json'])
369
+ if !content_type.nil?
370
+ header_params['Content-Type'] = content_type
371
+ end
372
+
373
+ # form parameters
374
+ form_params = opts[:form_params] || {}
375
+
376
+ # http body (model)
377
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(mfa_verify_request)
378
+
379
+ # return_type
380
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
381
+
382
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
383
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
384
+
385
+ new_options = opts.merge(
386
+ :operation => :"ProfileApi.profile_verify_mfa",
387
+ :header_params => header_params,
388
+ :query_params => query_params,
389
+ :form_params => form_params,
390
+ :body => post_body,
391
+ :auth_names => auth_names,
392
+ :return_type => return_type
393
+ )
394
+
395
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug "API called: ProfileApi#profile_verify_mfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
398
+ end
399
+ return data, status_code, headers
400
+ end
153
401
  end
154
402
  end
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Send an SMS or MMS notification directly without templates
22
+ # Send an SMS or MMS directly without a template. Requires `type` and `to`. Pass `message` and/or `mediaUrls`. Optional: `from`, `schedule`.
23
23
  # @param send_sms_request [SendSmsRequest]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [SendSmsResponse]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Send an SMS or MMS notification directly without templates
31
+ # Send an SMS or MMS directly without a template. Requires &#x60;type&#x60; and &#x60;to&#x60;. Pass &#x60;message&#x60; and/or &#x60;mediaUrls&#x60;. Optional: &#x60;from&#x60;, &#x60;schedule&#x60;.
32
32
  # @param send_sms_request [SendSmsRequest]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(SendSmsResponse, Integer, Hash)>] SendSmsResponse data, response status code and response headers
@@ -32,7 +32,7 @@ module Pingram
32
32
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
33
33
  def initialize(config = Configuration.default)
34
34
  @config = config
35
- @user_agent = "pingram-ruby/1.0.14"
35
+ @user_agent = "pingram-ruby/1.0.16"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent