zyphr 0.1.3 → 0.1.6
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/README.md +4 -3
- data/docs/Category.md +4 -2
- data/docs/Device.md +10 -12
- data/docs/DeviceStats.md +3 -1
- data/docs/DevicesApi.md +3 -3
- data/docs/PushApi.md +3 -3
- data/docs/PushMessage.md +13 -7
- data/docs/PushMessageDetail.md +17 -15
- data/docs/PushMessageDetailAllOfActionButtons.md +24 -0
- data/docs/RegisterDeviceRequest.md +4 -14
- data/docs/SMSApi.md +4 -4
- data/docs/SendPushRequest.md +35 -15
- data/docs/SendPushRequestActionButtonsInner.md +24 -0
- data/docs/TemplatesApi.md +2 -2
- data/docs/TopicsApi.md +2 -2
- data/docs/WaaSApplication.md +4 -2
- data/docs/WaaSApplicationsApi.md +1 -1
- data/docs/{WebhookWorkspaceMetricsResponse.md → WebhookAccountMetricsResponse.md} +3 -3
- data/docs/WebhooksApi.md +70 -70
- data/lib/zyphr/api/devices_api.rb +4 -4
- data/lib/zyphr/api/push_api.rb +4 -4
- data/lib/zyphr/api/sms_api.rb +8 -8
- data/lib/zyphr/api/templates_api.rb +4 -4
- data/lib/zyphr/api/topics_api.rb +4 -4
- data/lib/zyphr/api/waa_s_applications_api.rb +2 -2
- data/lib/zyphr/api/webhooks_api.rb +59 -59
- data/lib/zyphr/models/category.rb +16 -7
- data/lib/zyphr/models/device.rb +34 -57
- data/lib/zyphr/models/device_stats.rb +13 -4
- data/lib/zyphr/models/push_message.rb +67 -36
- data/lib/zyphr/models/push_message_detail.rb +88 -75
- data/lib/zyphr/models/push_message_detail_all_of_action_buttons.rb +247 -0
- data/lib/zyphr/models/register_device_request.rb +43 -59
- data/lib/zyphr/models/send_push_request.rb +278 -91
- data/lib/zyphr/models/{push_payload.rb → send_push_request_action_buttons_inner.rb} +72 -73
- data/lib/zyphr/models/waa_s_application.rb +16 -7
- data/lib/zyphr/models/{webhook_workspace_metrics_response.rb → webhook_account_metrics_response.rb} +4 -4
- data/lib/zyphr.rb +3 -2
- data/spec/api/devices_api_spec.rb +2 -2
- data/spec/api/push_api_spec.rb +2 -2
- data/spec/api/sms_api_spec.rb +4 -4
- data/spec/api/templates_api_spec.rb +2 -2
- data/spec/api/topics_api_spec.rb +2 -2
- data/spec/api/waa_s_applications_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +12 -12
- data/spec/models/category_spec.rb +7 -1
- data/spec/models/device_spec.rb +5 -15
- data/spec/models/device_stats_spec.rb +6 -0
- data/spec/models/{push_payload_spec.rb → push_message_detail_all_of_action_buttons_spec.rb} +10 -34
- data/spec/models/push_message_detail_spec.rb +26 -20
- data/spec/models/push_message_spec.rb +26 -8
- data/spec/models/register_device_request_spec.rb +2 -32
- data/spec/models/send_push_request_action_buttons_inner_spec.rb +54 -0
- data/spec/models/send_push_request_spec.rb +67 -11
- data/spec/models/waa_s_application_spec.rb +7 -1
- data/spec/models/{webhook_workspace_metrics_response_spec.rb → webhook_account_metrics_response_spec.rb} +6 -6
- data/zyphr.gemspec +1 -1
- metadata +328 -324
- data/docs/PushPayload.md +0 -32
data/docs/WebhooksApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://api.zyphr.dev/v1*
|
|
|
8
8
|
| [**close_webhook_circuit**](WebhooksApi.md#close_webhook_circuit) | **POST** /v1/webhooks/{id}/circuit/close | Force close circuit breaker |
|
|
9
9
|
| [**create_webhook**](WebhooksApi.md#create_webhook) | **POST** /v1/webhooks | Create webhook |
|
|
10
10
|
| [**delete_webhook**](WebhooksApi.md#delete_webhook) | **DELETE** /v1/webhooks/{id} | Delete webhook |
|
|
11
|
+
| [**get_account_webhook_metrics**](WebhooksApi.md#get_account_webhook_metrics) | **GET** /v1/webhooks/metrics | Get account webhook metrics |
|
|
11
12
|
| [**get_webhook**](WebhooksApi.md#get_webhook) | **GET** /v1/webhooks/{id} | Get webhook |
|
|
12
13
|
| [**get_webhook_circuit_state**](WebhooksApi.md#get_webhook_circuit_state) | **GET** /v1/webhooks/{id}/circuit | Get circuit breaker state |
|
|
13
14
|
| [**get_webhook_delivery**](WebhooksApi.md#get_webhook_delivery) | **GET** /v1/webhooks/{id}/deliveries/{deliveryId} | Get webhook delivery details |
|
|
@@ -16,7 +17,6 @@ All URIs are relative to *https://api.zyphr.dev/v1*
|
|
|
16
17
|
| [**get_webhook_metrics**](WebhooksApi.md#get_webhook_metrics) | **GET** /v1/webhooks/{id}/metrics | Get webhook health metrics |
|
|
17
18
|
| [**get_webhook_regions**](WebhooksApi.md#get_webhook_regions) | **GET** /v1/webhooks/regions | Get available webhook regions |
|
|
18
19
|
| [**get_webhook_usage**](WebhooksApi.md#get_webhook_usage) | **GET** /v1/webhooks/usage | Get webhook usage metrics |
|
|
19
|
-
| [**get_workspace_webhook_metrics**](WebhooksApi.md#get_workspace_webhook_metrics) | **GET** /v1/webhooks/metrics | Get workspace webhook metrics |
|
|
20
20
|
| [**list_webhook_deliveries**](WebhooksApi.md#list_webhook_deliveries) | **GET** /v1/webhooks/{id}/deliveries | List webhook deliveries |
|
|
21
21
|
| [**list_webhook_event_types**](WebhooksApi.md#list_webhook_event_types) | **GET** /v1/webhooks/events | List webhook event types |
|
|
22
22
|
| [**list_webhook_versions**](WebhooksApi.md#list_webhook_versions) | **GET** /v1/webhooks/versions | List webhook API versions |
|
|
@@ -317,6 +317,74 @@ end
|
|
|
317
317
|
- **Accept**: application/json
|
|
318
318
|
|
|
319
319
|
|
|
320
|
+
## get_account_webhook_metrics
|
|
321
|
+
|
|
322
|
+
> <WebhookAccountMetricsResponse> get_account_webhook_metrics
|
|
323
|
+
|
|
324
|
+
Get account webhook metrics
|
|
325
|
+
|
|
326
|
+
Get aggregate webhook health and performance metrics for the entire account.
|
|
327
|
+
|
|
328
|
+
### Examples
|
|
329
|
+
|
|
330
|
+
```ruby
|
|
331
|
+
require 'time'
|
|
332
|
+
require 'zyphr'
|
|
333
|
+
# setup authorization
|
|
334
|
+
Zyphr.configure do |config|
|
|
335
|
+
# Configure API key authorization: ApiKeyAuth
|
|
336
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
337
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
338
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
api_instance = Zyphr::WebhooksApi.new
|
|
342
|
+
|
|
343
|
+
begin
|
|
344
|
+
# Get account webhook metrics
|
|
345
|
+
result = api_instance.get_account_webhook_metrics
|
|
346
|
+
p result
|
|
347
|
+
rescue Zyphr::ApiError => e
|
|
348
|
+
puts "Error when calling WebhooksApi->get_account_webhook_metrics: #{e}"
|
|
349
|
+
end
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
#### Using the get_account_webhook_metrics_with_http_info variant
|
|
353
|
+
|
|
354
|
+
This returns an Array which contains the response data, status code and headers.
|
|
355
|
+
|
|
356
|
+
> <Array(<WebhookAccountMetricsResponse>, Integer, Hash)> get_account_webhook_metrics_with_http_info
|
|
357
|
+
|
|
358
|
+
```ruby
|
|
359
|
+
begin
|
|
360
|
+
# Get account webhook metrics
|
|
361
|
+
data, status_code, headers = api_instance.get_account_webhook_metrics_with_http_info
|
|
362
|
+
p status_code # => 2xx
|
|
363
|
+
p headers # => { ... }
|
|
364
|
+
p data # => <WebhookAccountMetricsResponse>
|
|
365
|
+
rescue Zyphr::ApiError => e
|
|
366
|
+
puts "Error when calling WebhooksApi->get_account_webhook_metrics_with_http_info: #{e}"
|
|
367
|
+
end
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Parameters
|
|
371
|
+
|
|
372
|
+
This endpoint does not need any parameter.
|
|
373
|
+
|
|
374
|
+
### Return type
|
|
375
|
+
|
|
376
|
+
[**WebhookAccountMetricsResponse**](WebhookAccountMetricsResponse.md)
|
|
377
|
+
|
|
378
|
+
### Authorization
|
|
379
|
+
|
|
380
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
381
|
+
|
|
382
|
+
### HTTP request headers
|
|
383
|
+
|
|
384
|
+
- **Content-Type**: Not defined
|
|
385
|
+
- **Accept**: application/json
|
|
386
|
+
|
|
387
|
+
|
|
320
388
|
## get_webhook
|
|
321
389
|
|
|
322
390
|
> <WebhookResponse> get_webhook(id)
|
|
@@ -878,74 +946,6 @@ This endpoint does not need any parameter.
|
|
|
878
946
|
- **Accept**: application/json
|
|
879
947
|
|
|
880
948
|
|
|
881
|
-
## get_workspace_webhook_metrics
|
|
882
|
-
|
|
883
|
-
> <WebhookWorkspaceMetricsResponse> get_workspace_webhook_metrics
|
|
884
|
-
|
|
885
|
-
Get workspace webhook metrics
|
|
886
|
-
|
|
887
|
-
Get aggregate webhook health and performance metrics for the entire workspace.
|
|
888
|
-
|
|
889
|
-
### Examples
|
|
890
|
-
|
|
891
|
-
```ruby
|
|
892
|
-
require 'time'
|
|
893
|
-
require 'zyphr'
|
|
894
|
-
# setup authorization
|
|
895
|
-
Zyphr.configure do |config|
|
|
896
|
-
# Configure API key authorization: ApiKeyAuth
|
|
897
|
-
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
898
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
899
|
-
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
900
|
-
end
|
|
901
|
-
|
|
902
|
-
api_instance = Zyphr::WebhooksApi.new
|
|
903
|
-
|
|
904
|
-
begin
|
|
905
|
-
# Get workspace webhook metrics
|
|
906
|
-
result = api_instance.get_workspace_webhook_metrics
|
|
907
|
-
p result
|
|
908
|
-
rescue Zyphr::ApiError => e
|
|
909
|
-
puts "Error when calling WebhooksApi->get_workspace_webhook_metrics: #{e}"
|
|
910
|
-
end
|
|
911
|
-
```
|
|
912
|
-
|
|
913
|
-
#### Using the get_workspace_webhook_metrics_with_http_info variant
|
|
914
|
-
|
|
915
|
-
This returns an Array which contains the response data, status code and headers.
|
|
916
|
-
|
|
917
|
-
> <Array(<WebhookWorkspaceMetricsResponse>, Integer, Hash)> get_workspace_webhook_metrics_with_http_info
|
|
918
|
-
|
|
919
|
-
```ruby
|
|
920
|
-
begin
|
|
921
|
-
# Get workspace webhook metrics
|
|
922
|
-
data, status_code, headers = api_instance.get_workspace_webhook_metrics_with_http_info
|
|
923
|
-
p status_code # => 2xx
|
|
924
|
-
p headers # => { ... }
|
|
925
|
-
p data # => <WebhookWorkspaceMetricsResponse>
|
|
926
|
-
rescue Zyphr::ApiError => e
|
|
927
|
-
puts "Error when calling WebhooksApi->get_workspace_webhook_metrics_with_http_info: #{e}"
|
|
928
|
-
end
|
|
929
|
-
```
|
|
930
|
-
|
|
931
|
-
### Parameters
|
|
932
|
-
|
|
933
|
-
This endpoint does not need any parameter.
|
|
934
|
-
|
|
935
|
-
### Return type
|
|
936
|
-
|
|
937
|
-
[**WebhookWorkspaceMetricsResponse**](WebhookWorkspaceMetricsResponse.md)
|
|
938
|
-
|
|
939
|
-
### Authorization
|
|
940
|
-
|
|
941
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
942
|
-
|
|
943
|
-
### HTTP request headers
|
|
944
|
-
|
|
945
|
-
- **Content-Type**: Not defined
|
|
946
|
-
- **Accept**: application/json
|
|
947
|
-
|
|
948
|
-
|
|
949
949
|
## list_webhook_deliveries
|
|
950
950
|
|
|
951
951
|
> <WebhookDeliveryListResponse> list_webhook_deliveries(id, opts)
|
|
@@ -1180,7 +1180,7 @@ This endpoint does not need any parameter.
|
|
|
1180
1180
|
|
|
1181
1181
|
List webhooks
|
|
1182
1182
|
|
|
1183
|
-
List all webhooks for the
|
|
1183
|
+
List all webhooks for the account with pagination.
|
|
1184
1184
|
|
|
1185
1185
|
### Examples
|
|
1186
1186
|
|
|
@@ -209,7 +209,7 @@ module Zyphr
|
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
# Get device statistics
|
|
212
|
-
# Get aggregated device statistics for the
|
|
212
|
+
# Get aggregated device statistics for the account.
|
|
213
213
|
# @param [Hash] opts the optional parameters
|
|
214
214
|
# @return [DeviceStatsResponse]
|
|
215
215
|
def get_device_stats(opts = {})
|
|
@@ -218,7 +218,7 @@ module Zyphr
|
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
# Get device statistics
|
|
221
|
-
# Get aggregated device statistics for the
|
|
221
|
+
# Get aggregated device statistics for the account.
|
|
222
222
|
# @param [Hash] opts the optional parameters
|
|
223
223
|
# @return [Array<(DeviceStatsResponse, Integer, Hash)>] DeviceStatsResponse data, response status code and response headers
|
|
224
224
|
def get_device_stats_with_http_info(opts = {})
|
|
@@ -266,7 +266,7 @@ module Zyphr
|
|
|
266
266
|
end
|
|
267
267
|
|
|
268
268
|
# List devices
|
|
269
|
-
# List registered devices for the
|
|
269
|
+
# List registered devices for the account with optional filtering.
|
|
270
270
|
# @param [Hash] opts the optional parameters
|
|
271
271
|
# @option opts [String] :user_id Filter by subscriber/user ID
|
|
272
272
|
# @option opts [String] :platform
|
|
@@ -279,7 +279,7 @@ module Zyphr
|
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
# List devices
|
|
282
|
-
# List registered devices for the
|
|
282
|
+
# List registered devices for the account with optional filtering.
|
|
283
283
|
# @param [Hash] opts the optional parameters
|
|
284
284
|
# @option opts [String] :user_id Filter by subscriber/user ID
|
|
285
285
|
# @option opts [String] :platform
|
data/lib/zyphr/api/push_api.rb
CHANGED
|
@@ -83,7 +83,7 @@ module Zyphr
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
# Get push notification statistics
|
|
86
|
-
# Get aggregated push notification statistics for the
|
|
86
|
+
# Get aggregated push notification statistics for the account.
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
88
|
# @return [PushStatsResponse]
|
|
89
89
|
def get_push_stats(opts = {})
|
|
@@ -92,7 +92,7 @@ module Zyphr
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# Get push notification statistics
|
|
95
|
-
# Get aggregated push notification statistics for the
|
|
95
|
+
# Get aggregated push notification statistics for the account.
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
97
|
# @return [Array<(PushStatsResponse, Integer, Hash)>] PushStatsResponse data, response status code and response headers
|
|
98
98
|
def get_push_stats_with_http_info(opts = {})
|
|
@@ -203,7 +203,7 @@ module Zyphr
|
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# List push notifications
|
|
206
|
-
# List push notification messages for the
|
|
206
|
+
# List push notification messages for the account with optional filtering.
|
|
207
207
|
# @param [Hash] opts the optional parameters
|
|
208
208
|
# @option opts [String] :user_id Filter by subscriber/user ID
|
|
209
209
|
# @option opts [String] :device_id Filter by device ID
|
|
@@ -217,7 +217,7 @@ module Zyphr
|
|
|
217
217
|
end
|
|
218
218
|
|
|
219
219
|
# List push notifications
|
|
220
|
-
# List push notification messages for the
|
|
220
|
+
# List push notification messages for the account with optional filtering.
|
|
221
221
|
# @param [Hash] opts the optional parameters
|
|
222
222
|
# @option opts [String] :user_id Filter by subscriber/user ID
|
|
223
223
|
# @option opts [String] :device_id Filter by device ID
|
data/lib/zyphr/api/sms_api.rb
CHANGED
|
@@ -20,7 +20,7 @@ module Zyphr
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Delete SMS configuration
|
|
23
|
-
# Remove the SMS provider configuration for the
|
|
23
|
+
# Remove the SMS provider configuration for the account.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [SmsConfigDeleteResponse]
|
|
26
26
|
def delete_sms_config(opts = {})
|
|
@@ -29,7 +29,7 @@ module Zyphr
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Delete SMS configuration
|
|
32
|
-
# Remove the SMS provider configuration for the
|
|
32
|
+
# Remove the SMS provider configuration for the account.
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(SmsConfigDeleteResponse, Integer, Hash)>] SmsConfigDeleteResponse data, response status code and response headers
|
|
35
35
|
def delete_sms_config_with_http_info(opts = {})
|
|
@@ -140,7 +140,7 @@ module Zyphr
|
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
# Get SMS configuration
|
|
143
|
-
# Get the current SMS provider configuration for the
|
|
143
|
+
# Get the current SMS provider configuration for the account.
|
|
144
144
|
# @param [Hash] opts the optional parameters
|
|
145
145
|
# @return [SmsConfigResponse]
|
|
146
146
|
def get_sms_config(opts = {})
|
|
@@ -149,7 +149,7 @@ module Zyphr
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
# Get SMS configuration
|
|
152
|
-
# Get the current SMS provider configuration for the
|
|
152
|
+
# Get the current SMS provider configuration for the account.
|
|
153
153
|
# @param [Hash] opts the optional parameters
|
|
154
154
|
# @return [Array<(SmsConfigResponse, Integer, Hash)>] SmsConfigResponse data, response status code and response headers
|
|
155
155
|
def get_sms_config_with_http_info(opts = {})
|
|
@@ -197,7 +197,7 @@ module Zyphr
|
|
|
197
197
|
end
|
|
198
198
|
|
|
199
199
|
# List SMS messages
|
|
200
|
-
# List SMS messages for the
|
|
200
|
+
# List SMS messages for the account with optional filtering and pagination.
|
|
201
201
|
# @param [Hash] opts the optional parameters
|
|
202
202
|
# @option opts [Integer] :page (default to 1)
|
|
203
203
|
# @option opts [Integer] :per_page (default to 25)
|
|
@@ -210,7 +210,7 @@ module Zyphr
|
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
# List SMS messages
|
|
213
|
-
# List SMS messages for the
|
|
213
|
+
# List SMS messages for the account with optional filtering and pagination.
|
|
214
214
|
# @param [Hash] opts the optional parameters
|
|
215
215
|
# @option opts [Integer] :page (default to 1)
|
|
216
216
|
# @option opts [Integer] :per_page (default to 25)
|
|
@@ -478,7 +478,7 @@ module Zyphr
|
|
|
478
478
|
end
|
|
479
479
|
|
|
480
480
|
# Create or update SMS configuration
|
|
481
|
-
# Set up or update the SMS provider configuration (Twilio) for the
|
|
481
|
+
# Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
|
|
482
482
|
# @param upsert_sms_config_request [UpsertSmsConfigRequest]
|
|
483
483
|
# @param [Hash] opts the optional parameters
|
|
484
484
|
# @return [SmsConfigResponse]
|
|
@@ -488,7 +488,7 @@ module Zyphr
|
|
|
488
488
|
end
|
|
489
489
|
|
|
490
490
|
# Create or update SMS configuration
|
|
491
|
-
# Set up or update the SMS provider configuration (Twilio) for the
|
|
491
|
+
# Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
|
|
492
492
|
# @param upsert_sms_config_request [UpsertSmsConfigRequest]
|
|
493
493
|
# @param [Hash] opts the optional parameters
|
|
494
494
|
# @return [Array<(SmsConfigResponse, Integer, Hash)>] SmsConfigResponse data, response status code and response headers
|
|
@@ -20,7 +20,7 @@ module Zyphr
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Create template
|
|
23
|
-
# Create a new email template. Name must be unique within the
|
|
23
|
+
# Create a new email template. Name must be unique within the account.
|
|
24
24
|
# @param create_template_request [CreateTemplateRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [TemplateResponse]
|
|
@@ -30,7 +30,7 @@ module Zyphr
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create template
|
|
33
|
-
# Create a new email template. Name must be unique within the
|
|
33
|
+
# Create a new email template. Name must be unique within the account.
|
|
34
34
|
# @param create_template_request [CreateTemplateRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(TemplateResponse, Integer, Hash)>] TemplateResponse data, response status code and response headers
|
|
@@ -214,7 +214,7 @@ module Zyphr
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# List templates
|
|
217
|
-
# List templates for the
|
|
217
|
+
# List templates for the account with optional pagination.
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @option opts [Integer] :limit (default to 50)
|
|
220
220
|
# @option opts [Integer] :offset (default to 0)
|
|
@@ -225,7 +225,7 @@ module Zyphr
|
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
# List templates
|
|
228
|
-
# List templates for the
|
|
228
|
+
# List templates for the account with optional pagination.
|
|
229
229
|
# @param [Hash] opts the optional parameters
|
|
230
230
|
# @option opts [Integer] :limit (default to 50)
|
|
231
231
|
# @option opts [Integer] :offset (default to 0)
|
data/lib/zyphr/api/topics_api.rb
CHANGED
|
@@ -288,7 +288,7 @@ module Zyphr
|
|
|
288
288
|
end
|
|
289
289
|
|
|
290
290
|
# Get topic statistics
|
|
291
|
-
# Get aggregate statistics for all topics in the
|
|
291
|
+
# Get aggregate statistics for all topics in the account.
|
|
292
292
|
# @param [Hash] opts the optional parameters
|
|
293
293
|
# @return [TopicStatsResponse]
|
|
294
294
|
def get_topic_stats(opts = {})
|
|
@@ -297,7 +297,7 @@ module Zyphr
|
|
|
297
297
|
end
|
|
298
298
|
|
|
299
299
|
# Get topic statistics
|
|
300
|
-
# Get aggregate statistics for all topics in the
|
|
300
|
+
# Get aggregate statistics for all topics in the account.
|
|
301
301
|
# @param [Hash] opts the optional parameters
|
|
302
302
|
# @return [Array<(TopicStatsResponse, Integer, Hash)>] TopicStatsResponse data, response status code and response headers
|
|
303
303
|
def get_topic_stats_with_http_info(opts = {})
|
|
@@ -414,7 +414,7 @@ module Zyphr
|
|
|
414
414
|
end
|
|
415
415
|
|
|
416
416
|
# List topics
|
|
417
|
-
# List all topics for the
|
|
417
|
+
# List all topics for the account with pagination and optional search.
|
|
418
418
|
# @param [Hash] opts the optional parameters
|
|
419
419
|
# @option opts [Integer] :page Page number (default to 1)
|
|
420
420
|
# @option opts [Integer] :per_page Items per page (max 100) (default to 25)
|
|
@@ -426,7 +426,7 @@ module Zyphr
|
|
|
426
426
|
end
|
|
427
427
|
|
|
428
428
|
# List topics
|
|
429
|
-
# List all topics for the
|
|
429
|
+
# List all topics for the account with pagination and optional search.
|
|
430
430
|
# @param [Hash] opts the optional parameters
|
|
431
431
|
# @option opts [Integer] :page Page number (default to 1)
|
|
432
432
|
# @option opts [Integer] :per_page Items per page (max 100) (default to 25)
|
|
@@ -275,7 +275,7 @@ module Zyphr
|
|
|
275
275
|
end
|
|
276
276
|
|
|
277
277
|
# List WaaS applications
|
|
278
|
-
# List all Webhooks-as-a-Service applications in the
|
|
278
|
+
# List all Webhooks-as-a-Service applications in the account.
|
|
279
279
|
# @param [Hash] opts the optional parameters
|
|
280
280
|
# @option opts [Integer] :limit (default to 50)
|
|
281
281
|
# @option opts [Integer] :offset (default to 0)
|
|
@@ -287,7 +287,7 @@ module Zyphr
|
|
|
287
287
|
end
|
|
288
288
|
|
|
289
289
|
# List WaaS applications
|
|
290
|
-
# List all Webhooks-as-a-Service applications in the
|
|
290
|
+
# List all Webhooks-as-a-Service applications in the account.
|
|
291
291
|
# @param [Hash] opts the optional parameters
|
|
292
292
|
# @option opts [Integer] :limit (default to 50)
|
|
293
293
|
# @option opts [Integer] :offset (default to 0)
|
|
@@ -283,6 +283,63 @@ module Zyphr
|
|
|
283
283
|
return data, status_code, headers
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
+
# Get account webhook metrics
|
|
287
|
+
# Get aggregate webhook health and performance metrics for the entire account.
|
|
288
|
+
# @param [Hash] opts the optional parameters
|
|
289
|
+
# @return [WebhookAccountMetricsResponse]
|
|
290
|
+
def get_account_webhook_metrics(opts = {})
|
|
291
|
+
data, _status_code, _headers = get_account_webhook_metrics_with_http_info(opts)
|
|
292
|
+
data
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Get account webhook metrics
|
|
296
|
+
# Get aggregate webhook health and performance metrics for the entire account.
|
|
297
|
+
# @param [Hash] opts the optional parameters
|
|
298
|
+
# @return [Array<(WebhookAccountMetricsResponse, Integer, Hash)>] WebhookAccountMetricsResponse data, response status code and response headers
|
|
299
|
+
def get_account_webhook_metrics_with_http_info(opts = {})
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.get_account_webhook_metrics ...'
|
|
302
|
+
end
|
|
303
|
+
# resource path
|
|
304
|
+
local_var_path = '/v1/webhooks/metrics'
|
|
305
|
+
|
|
306
|
+
# query parameters
|
|
307
|
+
query_params = opts[:query_params] || {}
|
|
308
|
+
|
|
309
|
+
# header parameters
|
|
310
|
+
header_params = opts[:header_params] || {}
|
|
311
|
+
# HTTP header 'Accept' (if needed)
|
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
313
|
+
|
|
314
|
+
# form parameters
|
|
315
|
+
form_params = opts[:form_params] || {}
|
|
316
|
+
|
|
317
|
+
# http body (model)
|
|
318
|
+
post_body = opts[:debug_body]
|
|
319
|
+
|
|
320
|
+
# return_type
|
|
321
|
+
return_type = opts[:debug_return_type] || 'WebhookAccountMetricsResponse'
|
|
322
|
+
|
|
323
|
+
# auth_names
|
|
324
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
325
|
+
|
|
326
|
+
new_options = opts.merge(
|
|
327
|
+
:operation => :"WebhooksApi.get_account_webhook_metrics",
|
|
328
|
+
:header_params => header_params,
|
|
329
|
+
:query_params => query_params,
|
|
330
|
+
:form_params => form_params,
|
|
331
|
+
:body => post_body,
|
|
332
|
+
:auth_names => auth_names,
|
|
333
|
+
:return_type => return_type
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
337
|
+
if @api_client.config.debugging
|
|
338
|
+
@api_client.config.logger.debug "API called: WebhooksApi#get_account_webhook_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
339
|
+
end
|
|
340
|
+
return data, status_code, headers
|
|
341
|
+
end
|
|
342
|
+
|
|
286
343
|
# Get webhook
|
|
287
344
|
# Get a specific webhook by ID.
|
|
288
345
|
# @param id [String] Webhook ID
|
|
@@ -775,63 +832,6 @@ module Zyphr
|
|
|
775
832
|
return data, status_code, headers
|
|
776
833
|
end
|
|
777
834
|
|
|
778
|
-
# Get workspace webhook metrics
|
|
779
|
-
# Get aggregate webhook health and performance metrics for the entire workspace.
|
|
780
|
-
# @param [Hash] opts the optional parameters
|
|
781
|
-
# @return [WebhookWorkspaceMetricsResponse]
|
|
782
|
-
def get_workspace_webhook_metrics(opts = {})
|
|
783
|
-
data, _status_code, _headers = get_workspace_webhook_metrics_with_http_info(opts)
|
|
784
|
-
data
|
|
785
|
-
end
|
|
786
|
-
|
|
787
|
-
# Get workspace webhook metrics
|
|
788
|
-
# Get aggregate webhook health and performance metrics for the entire workspace.
|
|
789
|
-
# @param [Hash] opts the optional parameters
|
|
790
|
-
# @return [Array<(WebhookWorkspaceMetricsResponse, Integer, Hash)>] WebhookWorkspaceMetricsResponse data, response status code and response headers
|
|
791
|
-
def get_workspace_webhook_metrics_with_http_info(opts = {})
|
|
792
|
-
if @api_client.config.debugging
|
|
793
|
-
@api_client.config.logger.debug 'Calling API: WebhooksApi.get_workspace_webhook_metrics ...'
|
|
794
|
-
end
|
|
795
|
-
# resource path
|
|
796
|
-
local_var_path = '/v1/webhooks/metrics'
|
|
797
|
-
|
|
798
|
-
# query parameters
|
|
799
|
-
query_params = opts[:query_params] || {}
|
|
800
|
-
|
|
801
|
-
# header parameters
|
|
802
|
-
header_params = opts[:header_params] || {}
|
|
803
|
-
# HTTP header 'Accept' (if needed)
|
|
804
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
805
|
-
|
|
806
|
-
# form parameters
|
|
807
|
-
form_params = opts[:form_params] || {}
|
|
808
|
-
|
|
809
|
-
# http body (model)
|
|
810
|
-
post_body = opts[:debug_body]
|
|
811
|
-
|
|
812
|
-
# return_type
|
|
813
|
-
return_type = opts[:debug_return_type] || 'WebhookWorkspaceMetricsResponse'
|
|
814
|
-
|
|
815
|
-
# auth_names
|
|
816
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
817
|
-
|
|
818
|
-
new_options = opts.merge(
|
|
819
|
-
:operation => :"WebhooksApi.get_workspace_webhook_metrics",
|
|
820
|
-
:header_params => header_params,
|
|
821
|
-
:query_params => query_params,
|
|
822
|
-
:form_params => form_params,
|
|
823
|
-
:body => post_body,
|
|
824
|
-
:auth_names => auth_names,
|
|
825
|
-
:return_type => return_type
|
|
826
|
-
)
|
|
827
|
-
|
|
828
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
829
|
-
if @api_client.config.debugging
|
|
830
|
-
@api_client.config.logger.debug "API called: WebhooksApi#get_workspace_webhook_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
831
|
-
end
|
|
832
|
-
return data, status_code, headers
|
|
833
|
-
end
|
|
834
|
-
|
|
835
835
|
# List webhook deliveries
|
|
836
836
|
# List delivery attempts for a webhook with filtering and pagination.
|
|
837
837
|
# @param id [String] Webhook ID
|
|
@@ -1038,7 +1038,7 @@ module Zyphr
|
|
|
1038
1038
|
end
|
|
1039
1039
|
|
|
1040
1040
|
# List webhooks
|
|
1041
|
-
# List all webhooks for the
|
|
1041
|
+
# List all webhooks for the account with pagination.
|
|
1042
1042
|
# @param [Hash] opts the optional parameters
|
|
1043
1043
|
# @option opts [Integer] :limit Maximum number of webhooks to return (default to 50)
|
|
1044
1044
|
# @option opts [Integer] :offset Number of webhooks to skip (default to 0)
|
|
@@ -1049,7 +1049,7 @@ module Zyphr
|
|
|
1049
1049
|
end
|
|
1050
1050
|
|
|
1051
1051
|
# List webhooks
|
|
1052
|
-
# List all webhooks for the
|
|
1052
|
+
# List all webhooks for the account with pagination.
|
|
1053
1053
|
# @param [Hash] opts the optional parameters
|
|
1054
1054
|
# @option opts [Integer] :limit Maximum number of webhooks to return (default to 50)
|
|
1055
1055
|
# @option opts [Integer] :offset Number of webhooks to skip (default to 0)
|
|
@@ -17,7 +17,9 @@ module Zyphr
|
|
|
17
17
|
class Category
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :account_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :project_id
|
|
21
23
|
|
|
22
24
|
attr_accessor :name
|
|
23
25
|
|
|
@@ -37,7 +39,8 @@ module Zyphr
|
|
|
37
39
|
def self.attribute_map
|
|
38
40
|
{
|
|
39
41
|
:'id' => :'id',
|
|
40
|
-
:'
|
|
42
|
+
:'account_id' => :'account_id',
|
|
43
|
+
:'project_id' => :'project_id',
|
|
41
44
|
:'name' => :'name',
|
|
42
45
|
:'slug' => :'slug',
|
|
43
46
|
:'description' => :'description',
|
|
@@ -62,7 +65,8 @@ module Zyphr
|
|
|
62
65
|
def self.openapi_types
|
|
63
66
|
{
|
|
64
67
|
:'id' => :'String',
|
|
65
|
-
:'
|
|
68
|
+
:'account_id' => :'String',
|
|
69
|
+
:'project_id' => :'String',
|
|
66
70
|
:'name' => :'String',
|
|
67
71
|
:'slug' => :'String',
|
|
68
72
|
:'description' => :'String',
|
|
@@ -100,8 +104,12 @@ module Zyphr
|
|
|
100
104
|
self.id = attributes[:'id']
|
|
101
105
|
end
|
|
102
106
|
|
|
103
|
-
if attributes.key?(:'
|
|
104
|
-
self.
|
|
107
|
+
if attributes.key?(:'account_id')
|
|
108
|
+
self.account_id = attributes[:'account_id']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'project_id')
|
|
112
|
+
self.project_id = attributes[:'project_id']
|
|
105
113
|
end
|
|
106
114
|
|
|
107
115
|
if attributes.key?(:'name')
|
|
@@ -156,7 +164,8 @@ module Zyphr
|
|
|
156
164
|
return true if self.equal?(o)
|
|
157
165
|
self.class == o.class &&
|
|
158
166
|
id == o.id &&
|
|
159
|
-
|
|
167
|
+
account_id == o.account_id &&
|
|
168
|
+
project_id == o.project_id &&
|
|
160
169
|
name == o.name &&
|
|
161
170
|
slug == o.slug &&
|
|
162
171
|
description == o.description &&
|
|
@@ -175,7 +184,7 @@ module Zyphr
|
|
|
175
184
|
# Calculates hash code according to all attributes.
|
|
176
185
|
# @return [Integer] Hash code
|
|
177
186
|
def hash
|
|
178
|
-
[id,
|
|
187
|
+
[id, account_id, project_id, name, slug, description, channels, is_default, created_at, updated_at].hash
|
|
179
188
|
end
|
|
180
189
|
|
|
181
190
|
# Builds the object from hash
|