zyphr 0.1.41 → 0.1.43
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 +37 -1
- data/docs/AuthUserDirectoryApi.md +57 -50
- data/docs/CloseWaaSEndpointCircuit200Response.md +20 -0
- data/docs/CloseWaaSEndpointCircuit200ResponseData.md +18 -0
- data/docs/DomainsApi.md +8 -7
- data/docs/GetEndUserById200Response.md +20 -0
- data/docs/GetEndUserClaims200Response.md +20 -0
- data/docs/GetEndUserClaims200ResponseData.md +18 -0
- data/docs/GetSubscriberInboxPreferences200Response.md +18 -0
- data/docs/GetSubscriberInboxPreferences200ResponseData.md +20 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataCategoriesInner.md +20 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory.md +26 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataGlobal.md +18 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner.md +22 -0
- data/docs/GetSubscriberNotification200Response.md +18 -0
- data/docs/GetSubscriberUnreadCount200Response.md +18 -0
- data/docs/GetWaaSDelivery200Response.md +20 -0
- data/docs/GetWaaSEndpointCircuit200Response.md +20 -0
- data/docs/GetWaaSEndpointCircuit200ResponseData.md +28 -0
- data/docs/GetWaaSEndpointMetrics200Response.md +20 -0
- data/docs/GetWaaSEndpointMetrics200ResponseData.md +22 -0
- data/docs/GetWaaSEndpointMetrics200ResponseDataHealth.md +20 -0
- data/docs/GetWaaSEndpointMetrics200ResponseDataWindowsValue.md +30 -0
- data/docs/InboxApi.md +73 -64
- data/docs/InviteEndUser200Response.md +20 -0
- data/docs/InviteEndUser200ResponseData.md +22 -0
- data/docs/ListEndUsers200Response.md +20 -0
- data/docs/{ListWorkflowExecutions200ResponseMeta.md → ListEndUsers200ResponseMeta.md} +2 -2
- data/docs/ListWorkflowExecutions200Response.md +1 -1
- data/docs/MarkAllSubscriberNotificationsRead200Response.md +18 -0
- data/docs/RotateWaaSEndpointSecret200Response.md +20 -0
- data/docs/RotateWaaSEndpointSecret200ResponseData.md +18 -0
- data/docs/SendTemplateTestEmail202Response.md +20 -0
- data/docs/SendTemplateTestEmail202ResponseData.md +30 -0
- data/docs/SendTemplateTestEmail202ResponseMeta.md +18 -0
- data/docs/SetEndUserClaims200Response.md +18 -0
- data/docs/SetEndUserClaims200ResponseData.md +20 -0
- data/docs/SmsListResponse.md +1 -1
- data/docs/TemplatesApi.md +7 -6
- data/docs/UpdateSubscriberPreferences200Response.md +18 -0
- data/docs/UpdateSubscriberPreferences200ResponseData.md +20 -0
- data/docs/UpdateSubscriberPreferences200ResponseDataPreferencesInner.md +24 -0
- data/docs/UpdateWaaSEndpoint200Response.md +20 -0
- data/docs/UpdateWaaSEventType200Response.md +20 -0
- data/docs/WaaSDeliveriesApi.md +16 -14
- data/docs/WaaSEndpointsApi.md +40 -35
- data/docs/WaaSEventTypesApi.md +16 -14
- data/lib/zyphr/api/auth_user_directory_api.rb +51 -37
- data/lib/zyphr/api/domains_api.rb +7 -5
- data/lib/zyphr/api/inbox_api.rb +65 -47
- data/lib/zyphr/api/templates_api.rb +5 -5
- data/lib/zyphr/api/waa_s_deliveries_api.rb +14 -10
- data/lib/zyphr/api/waa_s_endpoints_api.rb +35 -25
- data/lib/zyphr/api/waa_s_event_types_api.rb +14 -10
- data/lib/zyphr/models/close_waa_s_endpoint_circuit200_response.rb +229 -0
- data/lib/zyphr/models/close_waa_s_endpoint_circuit200_response_data.rb +261 -0
- data/lib/zyphr/models/get_end_user_by_id200_response.rb +229 -0
- data/lib/zyphr/models/get_end_user_claims200_response.rb +229 -0
- data/lib/zyphr/models/get_end_user_claims200_response_data.rb +223 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response.rb +220 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data.rb +231 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_categories_inner.rb +231 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_categories_inner_category.rb +257 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_global.rb +222 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_global_channels_inner.rb +272 -0
- data/lib/zyphr/models/get_subscriber_notification200_response.rb +220 -0
- data/lib/zyphr/models/get_subscriber_unread_count200_response.rb +220 -0
- data/lib/zyphr/models/get_waa_s_delivery200_response.rb +229 -0
- data/lib/zyphr/models/get_waa_s_endpoint_circuit200_response.rb +229 -0
- data/lib/zyphr/models/get_waa_s_endpoint_circuit200_response_data.rb +349 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response.rb +229 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response_data.rb +292 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response_data_health.rb +287 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response_data_windows_value.rb +308 -0
- data/lib/zyphr/models/invite_end_user200_response.rb +229 -0
- data/lib/zyphr/models/invite_end_user200_response_data.rb +240 -0
- data/lib/zyphr/models/list_end_users200_response.rb +231 -0
- data/lib/zyphr/models/{list_workflow_executions200_response_meta.rb → list_end_users200_response_meta.rb} +3 -3
- data/lib/zyphr/models/list_workflow_executions200_response.rb +1 -1
- data/lib/zyphr/models/mark_all_subscriber_notifications_read200_response.rb +220 -0
- data/lib/zyphr/models/rotate_waa_s_endpoint_secret200_response.rb +229 -0
- data/lib/zyphr/models/rotate_waa_s_endpoint_secret200_response_data.rb +238 -0
- data/lib/zyphr/models/send_template_test_email202_response.rb +263 -0
- data/lib/zyphr/models/send_template_test_email202_response_data.rb +393 -0
- data/lib/zyphr/models/send_template_test_email202_response_meta.rb +237 -0
- data/lib/zyphr/models/set_end_user_claims200_response.rb +220 -0
- data/lib/zyphr/models/set_end_user_claims200_response_data.rb +230 -0
- data/lib/zyphr/models/sms_list_response.rb +1 -1
- data/lib/zyphr/models/update_subscriber_preferences200_response.rb +220 -0
- data/lib/zyphr/models/update_subscriber_preferences200_response_data.rb +231 -0
- data/lib/zyphr/models/update_subscriber_preferences200_response_data_preferences_inner.rb +282 -0
- data/lib/zyphr/models/update_waa_s_endpoint200_response.rb +229 -0
- data/lib/zyphr/models/update_waa_s_event_type200_response.rb +229 -0
- data/lib/zyphr.rb +37 -1
- data/spec/api/auth_user_directory_api_spec.rb +8 -8
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/inbox_api_spec.rb +10 -10
- data/spec/api/templates_api_spec.rb +1 -1
- data/spec/api/waa_s_deliveries_api_spec.rb +2 -2
- data/spec/api/waa_s_endpoints_api_spec.rb +5 -5
- data/spec/api/waa_s_event_types_api_spec.rb +2 -2
- data/spec/models/close_waa_s_endpoint_circuit200_response_data_spec.rb +40 -0
- data/spec/models/close_waa_s_endpoint_circuit200_response_spec.rb +42 -0
- data/spec/models/get_end_user_by_id200_response_spec.rb +42 -0
- data/spec/models/get_end_user_claims200_response_data_spec.rb +36 -0
- data/spec/models/get_end_user_claims200_response_spec.rb +42 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_categories_inner_category_spec.rb +60 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_categories_inner_spec.rb +42 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_global_channels_inner_spec.rb +52 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_global_spec.rb +36 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_spec.rb +42 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_spec.rb +36 -0
- data/spec/models/get_subscriber_notification200_response_spec.rb +36 -0
- data/spec/models/get_subscriber_unread_count200_response_spec.rb +36 -0
- data/spec/models/get_waa_s_delivery200_response_spec.rb +42 -0
- data/spec/models/get_waa_s_endpoint_circuit200_response_data_spec.rb +70 -0
- data/spec/models/get_waa_s_endpoint_circuit200_response_spec.rb +42 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_data_health_spec.rb +46 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_data_spec.rb +48 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_data_windows_value_spec.rb +76 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_spec.rb +42 -0
- data/spec/models/invite_end_user200_response_data_spec.rb +48 -0
- data/spec/models/invite_end_user200_response_spec.rb +42 -0
- data/spec/models/{list_workflow_executions200_response_meta_spec.rb → list_end_users200_response_meta_spec.rb} +6 -6
- data/spec/models/list_end_users200_response_spec.rb +42 -0
- data/spec/models/mark_all_subscriber_notifications_read200_response_spec.rb +36 -0
- data/spec/models/rotate_waa_s_endpoint_secret200_response_data_spec.rb +36 -0
- data/spec/models/rotate_waa_s_endpoint_secret200_response_spec.rb +42 -0
- data/spec/models/send_template_test_email202_response_data_spec.rb +72 -0
- data/spec/models/send_template_test_email202_response_meta_spec.rb +36 -0
- data/spec/models/send_template_test_email202_response_spec.rb +42 -0
- data/spec/models/set_end_user_claims200_response_data_spec.rb +42 -0
- data/spec/models/set_end_user_claims200_response_spec.rb +36 -0
- data/spec/models/update_subscriber_preferences200_response_data_preferences_inner_spec.rb +58 -0
- data/spec/models/update_subscriber_preferences200_response_data_spec.rb +42 -0
- data/spec/models/update_subscriber_preferences200_response_spec.rb +36 -0
- data/spec/models/update_waa_s_endpoint200_response_spec.rb +42 -0
- data/spec/models/update_waa_s_event_type200_response_spec.rb +42 -0
- data/zyphr.gemspec +1 -1
- metadata +150 -6
data/docs/InboxApi.md
CHANGED
|
@@ -103,7 +103,7 @@ end
|
|
|
103
103
|
|
|
104
104
|
## archive_subscriber_notification
|
|
105
105
|
|
|
106
|
-
> archive_subscriber_notification(id)
|
|
106
|
+
> <GetSubscriberNotification200Response> archive_subscriber_notification(id)
|
|
107
107
|
|
|
108
108
|
Archive a notification
|
|
109
109
|
|
|
@@ -123,7 +123,8 @@ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
|
123
123
|
|
|
124
124
|
begin
|
|
125
125
|
# Archive a notification
|
|
126
|
-
api_instance.archive_subscriber_notification(id)
|
|
126
|
+
result = api_instance.archive_subscriber_notification(id)
|
|
127
|
+
p result
|
|
127
128
|
rescue Zyphr::ApiError => e
|
|
128
129
|
puts "Error when calling InboxApi->archive_subscriber_notification: #{e}"
|
|
129
130
|
end
|
|
@@ -131,9 +132,9 @@ end
|
|
|
131
132
|
|
|
132
133
|
#### Using the archive_subscriber_notification_with_http_info variant
|
|
133
134
|
|
|
134
|
-
This returns an Array which contains the response data
|
|
135
|
+
This returns an Array which contains the response data, status code and headers.
|
|
135
136
|
|
|
136
|
-
> <Array(
|
|
137
|
+
> <Array(<GetSubscriberNotification200Response>, Integer, Hash)> archive_subscriber_notification_with_http_info(id)
|
|
137
138
|
|
|
138
139
|
```ruby
|
|
139
140
|
begin
|
|
@@ -141,7 +142,7 @@ begin
|
|
|
141
142
|
data, status_code, headers = api_instance.archive_subscriber_notification_with_http_info(id)
|
|
142
143
|
p status_code # => 2xx
|
|
143
144
|
p headers # => { ... }
|
|
144
|
-
p data # =>
|
|
145
|
+
p data # => <GetSubscriberNotification200Response>
|
|
145
146
|
rescue Zyphr::ApiError => e
|
|
146
147
|
puts "Error when calling InboxApi->archive_subscriber_notification_with_http_info: #{e}"
|
|
147
148
|
end
|
|
@@ -155,7 +156,7 @@ end
|
|
|
155
156
|
|
|
156
157
|
### Return type
|
|
157
158
|
|
|
158
|
-
|
|
159
|
+
[**GetSubscriberNotification200Response**](GetSubscriberNotification200Response.md)
|
|
159
160
|
|
|
160
161
|
### Authorization
|
|
161
162
|
|
|
@@ -164,7 +165,7 @@ nil (empty response body)
|
|
|
164
165
|
### HTTP request headers
|
|
165
166
|
|
|
166
167
|
- **Content-Type**: Not defined
|
|
167
|
-
- **Accept**:
|
|
168
|
+
- **Accept**: application/json
|
|
168
169
|
|
|
169
170
|
|
|
170
171
|
## delete_inbox_notification
|
|
@@ -315,7 +316,7 @@ nil (empty response body)
|
|
|
315
316
|
|
|
316
317
|
Generate a subscriber token
|
|
317
318
|
|
|
318
|
-
Generate a JWT token for client-side inbox authentication. This is a server-side call that requires your API key. Pass the returned token to `@zyphr/inbox-react`'s `<ZyphrProvider subscriberToken=\"...\">` or use it as `Authorization: Bearer <token>` for client-side inbox API calls and WebSocket connections. The token expires in 7 days.
|
|
319
|
+
Generate a JWT token for client-side inbox authentication. This is a server-side call that requires your API key. Pass the returned token to `@zyphr-dev/inbox-react`'s `<ZyphrProvider subscriberToken=\"...\">` or use it as `Authorization: Bearer <token>` for client-side inbox API calls and WebSocket connections. The token expires in 7 days.
|
|
319
320
|
|
|
320
321
|
### Examples
|
|
321
322
|
|
|
@@ -459,7 +460,7 @@ end
|
|
|
459
460
|
|
|
460
461
|
## get_subscriber_inbox_preferences
|
|
461
462
|
|
|
462
|
-
> get_subscriber_inbox_preferences
|
|
463
|
+
> <GetSubscriberInboxPreferences200Response> get_subscriber_inbox_preferences
|
|
463
464
|
|
|
464
465
|
Get subscriber preferences
|
|
465
466
|
|
|
@@ -480,7 +481,8 @@ api_instance = Zyphr::InboxApi.new
|
|
|
480
481
|
|
|
481
482
|
begin
|
|
482
483
|
# Get subscriber preferences
|
|
483
|
-
api_instance.get_subscriber_inbox_preferences
|
|
484
|
+
result = api_instance.get_subscriber_inbox_preferences
|
|
485
|
+
p result
|
|
484
486
|
rescue Zyphr::ApiError => e
|
|
485
487
|
puts "Error when calling InboxApi->get_subscriber_inbox_preferences: #{e}"
|
|
486
488
|
end
|
|
@@ -488,9 +490,9 @@ end
|
|
|
488
490
|
|
|
489
491
|
#### Using the get_subscriber_inbox_preferences_with_http_info variant
|
|
490
492
|
|
|
491
|
-
This returns an Array which contains the response data
|
|
493
|
+
This returns an Array which contains the response data, status code and headers.
|
|
492
494
|
|
|
493
|
-
> <Array(
|
|
495
|
+
> <Array(<GetSubscriberInboxPreferences200Response>, Integer, Hash)> get_subscriber_inbox_preferences_with_http_info
|
|
494
496
|
|
|
495
497
|
```ruby
|
|
496
498
|
begin
|
|
@@ -498,7 +500,7 @@ begin
|
|
|
498
500
|
data, status_code, headers = api_instance.get_subscriber_inbox_preferences_with_http_info
|
|
499
501
|
p status_code # => 2xx
|
|
500
502
|
p headers # => { ... }
|
|
501
|
-
p data # =>
|
|
503
|
+
p data # => <GetSubscriberInboxPreferences200Response>
|
|
502
504
|
rescue Zyphr::ApiError => e
|
|
503
505
|
puts "Error when calling InboxApi->get_subscriber_inbox_preferences_with_http_info: #{e}"
|
|
504
506
|
end
|
|
@@ -510,7 +512,7 @@ This endpoint does not need any parameter.
|
|
|
510
512
|
|
|
511
513
|
### Return type
|
|
512
514
|
|
|
513
|
-
|
|
515
|
+
[**GetSubscriberInboxPreferences200Response**](GetSubscriberInboxPreferences200Response.md)
|
|
514
516
|
|
|
515
517
|
### Authorization
|
|
516
518
|
|
|
@@ -519,12 +521,12 @@ nil (empty response body)
|
|
|
519
521
|
### HTTP request headers
|
|
520
522
|
|
|
521
523
|
- **Content-Type**: Not defined
|
|
522
|
-
- **Accept**:
|
|
524
|
+
- **Accept**: application/json
|
|
523
525
|
|
|
524
526
|
|
|
525
527
|
## get_subscriber_notification
|
|
526
528
|
|
|
527
|
-
> get_subscriber_notification(id)
|
|
529
|
+
> <GetSubscriberNotification200Response> get_subscriber_notification(id)
|
|
528
530
|
|
|
529
531
|
Get a notification
|
|
530
532
|
|
|
@@ -546,7 +548,8 @@ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
|
546
548
|
|
|
547
549
|
begin
|
|
548
550
|
# Get a notification
|
|
549
|
-
api_instance.get_subscriber_notification(id)
|
|
551
|
+
result = api_instance.get_subscriber_notification(id)
|
|
552
|
+
p result
|
|
550
553
|
rescue Zyphr::ApiError => e
|
|
551
554
|
puts "Error when calling InboxApi->get_subscriber_notification: #{e}"
|
|
552
555
|
end
|
|
@@ -554,9 +557,9 @@ end
|
|
|
554
557
|
|
|
555
558
|
#### Using the get_subscriber_notification_with_http_info variant
|
|
556
559
|
|
|
557
|
-
This returns an Array which contains the response data
|
|
560
|
+
This returns an Array which contains the response data, status code and headers.
|
|
558
561
|
|
|
559
|
-
> <Array(
|
|
562
|
+
> <Array(<GetSubscriberNotification200Response>, Integer, Hash)> get_subscriber_notification_with_http_info(id)
|
|
560
563
|
|
|
561
564
|
```ruby
|
|
562
565
|
begin
|
|
@@ -564,7 +567,7 @@ begin
|
|
|
564
567
|
data, status_code, headers = api_instance.get_subscriber_notification_with_http_info(id)
|
|
565
568
|
p status_code # => 2xx
|
|
566
569
|
p headers # => { ... }
|
|
567
|
-
p data # =>
|
|
570
|
+
p data # => <GetSubscriberNotification200Response>
|
|
568
571
|
rescue Zyphr::ApiError => e
|
|
569
572
|
puts "Error when calling InboxApi->get_subscriber_notification_with_http_info: #{e}"
|
|
570
573
|
end
|
|
@@ -578,7 +581,7 @@ end
|
|
|
578
581
|
|
|
579
582
|
### Return type
|
|
580
583
|
|
|
581
|
-
|
|
584
|
+
[**GetSubscriberNotification200Response**](GetSubscriberNotification200Response.md)
|
|
582
585
|
|
|
583
586
|
### Authorization
|
|
584
587
|
|
|
@@ -587,12 +590,12 @@ nil (empty response body)
|
|
|
587
590
|
### HTTP request headers
|
|
588
591
|
|
|
589
592
|
- **Content-Type**: Not defined
|
|
590
|
-
- **Accept**:
|
|
593
|
+
- **Accept**: application/json
|
|
591
594
|
|
|
592
595
|
|
|
593
596
|
## get_subscriber_unread_count
|
|
594
597
|
|
|
595
|
-
> get_subscriber_unread_count
|
|
598
|
+
> <GetSubscriberUnreadCount200Response> get_subscriber_unread_count
|
|
596
599
|
|
|
597
600
|
Get unread count
|
|
598
601
|
|
|
@@ -613,7 +616,8 @@ api_instance = Zyphr::InboxApi.new
|
|
|
613
616
|
|
|
614
617
|
begin
|
|
615
618
|
# Get unread count
|
|
616
|
-
api_instance.get_subscriber_unread_count
|
|
619
|
+
result = api_instance.get_subscriber_unread_count
|
|
620
|
+
p result
|
|
617
621
|
rescue Zyphr::ApiError => e
|
|
618
622
|
puts "Error when calling InboxApi->get_subscriber_unread_count: #{e}"
|
|
619
623
|
end
|
|
@@ -621,9 +625,9 @@ end
|
|
|
621
625
|
|
|
622
626
|
#### Using the get_subscriber_unread_count_with_http_info variant
|
|
623
627
|
|
|
624
|
-
This returns an Array which contains the response data
|
|
628
|
+
This returns an Array which contains the response data, status code and headers.
|
|
625
629
|
|
|
626
|
-
> <Array(
|
|
630
|
+
> <Array(<GetSubscriberUnreadCount200Response>, Integer, Hash)> get_subscriber_unread_count_with_http_info
|
|
627
631
|
|
|
628
632
|
```ruby
|
|
629
633
|
begin
|
|
@@ -631,7 +635,7 @@ begin
|
|
|
631
635
|
data, status_code, headers = api_instance.get_subscriber_unread_count_with_http_info
|
|
632
636
|
p status_code # => 2xx
|
|
633
637
|
p headers # => { ... }
|
|
634
|
-
p data # =>
|
|
638
|
+
p data # => <GetSubscriberUnreadCount200Response>
|
|
635
639
|
rescue Zyphr::ApiError => e
|
|
636
640
|
puts "Error when calling InboxApi->get_subscriber_unread_count_with_http_info: #{e}"
|
|
637
641
|
end
|
|
@@ -643,7 +647,7 @@ This endpoint does not need any parameter.
|
|
|
643
647
|
|
|
644
648
|
### Return type
|
|
645
649
|
|
|
646
|
-
|
|
650
|
+
[**GetSubscriberUnreadCount200Response**](GetSubscriberUnreadCount200Response.md)
|
|
647
651
|
|
|
648
652
|
### Authorization
|
|
649
653
|
|
|
@@ -652,7 +656,7 @@ nil (empty response body)
|
|
|
652
656
|
### HTTP request headers
|
|
653
657
|
|
|
654
658
|
- **Content-Type**: Not defined
|
|
655
|
-
- **Accept**:
|
|
659
|
+
- **Accept**: application/json
|
|
656
660
|
|
|
657
661
|
|
|
658
662
|
## get_unread_count
|
|
@@ -732,7 +736,7 @@ end
|
|
|
732
736
|
|
|
733
737
|
## list_all_inbox
|
|
734
738
|
|
|
735
|
-
> list_all_inbox(opts)
|
|
739
|
+
> <InboxListResponse> list_all_inbox(opts)
|
|
736
740
|
|
|
737
741
|
List all project notifications
|
|
738
742
|
|
|
@@ -763,7 +767,8 @@ opts = {
|
|
|
763
767
|
|
|
764
768
|
begin
|
|
765
769
|
# List all project notifications
|
|
766
|
-
api_instance.list_all_inbox(opts)
|
|
770
|
+
result = api_instance.list_all_inbox(opts)
|
|
771
|
+
p result
|
|
767
772
|
rescue Zyphr::ApiError => e
|
|
768
773
|
puts "Error when calling InboxApi->list_all_inbox: #{e}"
|
|
769
774
|
end
|
|
@@ -771,9 +776,9 @@ end
|
|
|
771
776
|
|
|
772
777
|
#### Using the list_all_inbox_with_http_info variant
|
|
773
778
|
|
|
774
|
-
This returns an Array which contains the response data
|
|
779
|
+
This returns an Array which contains the response data, status code and headers.
|
|
775
780
|
|
|
776
|
-
> <Array(
|
|
781
|
+
> <Array(<InboxListResponse>, Integer, Hash)> list_all_inbox_with_http_info(opts)
|
|
777
782
|
|
|
778
783
|
```ruby
|
|
779
784
|
begin
|
|
@@ -781,7 +786,7 @@ begin
|
|
|
781
786
|
data, status_code, headers = api_instance.list_all_inbox_with_http_info(opts)
|
|
782
787
|
p status_code # => 2xx
|
|
783
788
|
p headers # => { ... }
|
|
784
|
-
p data # =>
|
|
789
|
+
p data # => <InboxListResponse>
|
|
785
790
|
rescue Zyphr::ApiError => e
|
|
786
791
|
puts "Error when calling InboxApi->list_all_inbox_with_http_info: #{e}"
|
|
787
792
|
end
|
|
@@ -800,7 +805,7 @@ end
|
|
|
800
805
|
|
|
801
806
|
### Return type
|
|
802
807
|
|
|
803
|
-
|
|
808
|
+
[**InboxListResponse**](InboxListResponse.md)
|
|
804
809
|
|
|
805
810
|
### Authorization
|
|
806
811
|
|
|
@@ -809,7 +814,7 @@ nil (empty response body)
|
|
|
809
814
|
### HTTP request headers
|
|
810
815
|
|
|
811
816
|
- **Content-Type**: Not defined
|
|
812
|
-
- **Accept**:
|
|
817
|
+
- **Accept**: application/json
|
|
813
818
|
|
|
814
819
|
|
|
815
820
|
## list_inbox
|
|
@@ -901,7 +906,7 @@ end
|
|
|
901
906
|
|
|
902
907
|
## list_subscriber_notifications
|
|
903
908
|
|
|
904
|
-
> list_subscriber_notifications(opts)
|
|
909
|
+
> <InboxListResponse> list_subscriber_notifications(opts)
|
|
905
910
|
|
|
906
911
|
List subscriber notifications
|
|
907
912
|
|
|
@@ -929,7 +934,8 @@ opts = {
|
|
|
929
934
|
|
|
930
935
|
begin
|
|
931
936
|
# List subscriber notifications
|
|
932
|
-
api_instance.list_subscriber_notifications(opts)
|
|
937
|
+
result = api_instance.list_subscriber_notifications(opts)
|
|
938
|
+
p result
|
|
933
939
|
rescue Zyphr::ApiError => e
|
|
934
940
|
puts "Error when calling InboxApi->list_subscriber_notifications: #{e}"
|
|
935
941
|
end
|
|
@@ -937,9 +943,9 @@ end
|
|
|
937
943
|
|
|
938
944
|
#### Using the list_subscriber_notifications_with_http_info variant
|
|
939
945
|
|
|
940
|
-
This returns an Array which contains the response data
|
|
946
|
+
This returns an Array which contains the response data, status code and headers.
|
|
941
947
|
|
|
942
|
-
> <Array(
|
|
948
|
+
> <Array(<InboxListResponse>, Integer, Hash)> list_subscriber_notifications_with_http_info(opts)
|
|
943
949
|
|
|
944
950
|
```ruby
|
|
945
951
|
begin
|
|
@@ -947,7 +953,7 @@ begin
|
|
|
947
953
|
data, status_code, headers = api_instance.list_subscriber_notifications_with_http_info(opts)
|
|
948
954
|
p status_code # => 2xx
|
|
949
955
|
p headers # => { ... }
|
|
950
|
-
p data # =>
|
|
956
|
+
p data # => <InboxListResponse>
|
|
951
957
|
rescue Zyphr::ApiError => e
|
|
952
958
|
puts "Error when calling InboxApi->list_subscriber_notifications_with_http_info: #{e}"
|
|
953
959
|
end
|
|
@@ -965,7 +971,7 @@ end
|
|
|
965
971
|
|
|
966
972
|
### Return type
|
|
967
973
|
|
|
968
|
-
|
|
974
|
+
[**InboxListResponse**](InboxListResponse.md)
|
|
969
975
|
|
|
970
976
|
### Authorization
|
|
971
977
|
|
|
@@ -974,7 +980,7 @@ nil (empty response body)
|
|
|
974
980
|
### HTTP request headers
|
|
975
981
|
|
|
976
982
|
- **Content-Type**: Not defined
|
|
977
|
-
- **Accept**:
|
|
983
|
+
- **Accept**: application/json
|
|
978
984
|
|
|
979
985
|
|
|
980
986
|
## mark_all_inbox_read
|
|
@@ -1050,7 +1056,7 @@ end
|
|
|
1050
1056
|
|
|
1051
1057
|
## mark_all_subscriber_notifications_read
|
|
1052
1058
|
|
|
1053
|
-
> mark_all_subscriber_notifications_read(opts)
|
|
1059
|
+
> <MarkAllSubscriberNotificationsRead200Response> mark_all_subscriber_notifications_read(opts)
|
|
1054
1060
|
|
|
1055
1061
|
Mark all notifications as read
|
|
1056
1062
|
|
|
@@ -1072,7 +1078,8 @@ opts = {
|
|
|
1072
1078
|
|
|
1073
1079
|
begin
|
|
1074
1080
|
# Mark all notifications as read
|
|
1075
|
-
api_instance.mark_all_subscriber_notifications_read(opts)
|
|
1081
|
+
result = api_instance.mark_all_subscriber_notifications_read(opts)
|
|
1082
|
+
p result
|
|
1076
1083
|
rescue Zyphr::ApiError => e
|
|
1077
1084
|
puts "Error when calling InboxApi->mark_all_subscriber_notifications_read: #{e}"
|
|
1078
1085
|
end
|
|
@@ -1080,9 +1087,9 @@ end
|
|
|
1080
1087
|
|
|
1081
1088
|
#### Using the mark_all_subscriber_notifications_read_with_http_info variant
|
|
1082
1089
|
|
|
1083
|
-
This returns an Array which contains the response data
|
|
1090
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1084
1091
|
|
|
1085
|
-
> <Array(
|
|
1092
|
+
> <Array(<MarkAllSubscriberNotificationsRead200Response>, Integer, Hash)> mark_all_subscriber_notifications_read_with_http_info(opts)
|
|
1086
1093
|
|
|
1087
1094
|
```ruby
|
|
1088
1095
|
begin
|
|
@@ -1090,7 +1097,7 @@ begin
|
|
|
1090
1097
|
data, status_code, headers = api_instance.mark_all_subscriber_notifications_read_with_http_info(opts)
|
|
1091
1098
|
p status_code # => 2xx
|
|
1092
1099
|
p headers # => { ... }
|
|
1093
|
-
p data # =>
|
|
1100
|
+
p data # => <MarkAllSubscriberNotificationsRead200Response>
|
|
1094
1101
|
rescue Zyphr::ApiError => e
|
|
1095
1102
|
puts "Error when calling InboxApi->mark_all_subscriber_notifications_read_with_http_info: #{e}"
|
|
1096
1103
|
end
|
|
@@ -1104,7 +1111,7 @@ end
|
|
|
1104
1111
|
|
|
1105
1112
|
### Return type
|
|
1106
1113
|
|
|
1107
|
-
|
|
1114
|
+
[**MarkAllSubscriberNotificationsRead200Response**](MarkAllSubscriberNotificationsRead200Response.md)
|
|
1108
1115
|
|
|
1109
1116
|
### Authorization
|
|
1110
1117
|
|
|
@@ -1113,7 +1120,7 @@ nil (empty response body)
|
|
|
1113
1120
|
### HTTP request headers
|
|
1114
1121
|
|
|
1115
1122
|
- **Content-Type**: application/json
|
|
1116
|
-
- **Accept**:
|
|
1123
|
+
- **Accept**: application/json
|
|
1117
1124
|
|
|
1118
1125
|
|
|
1119
1126
|
## mark_inbox_read
|
|
@@ -1193,7 +1200,7 @@ end
|
|
|
1193
1200
|
|
|
1194
1201
|
## mark_subscriber_notification_read
|
|
1195
1202
|
|
|
1196
|
-
> mark_subscriber_notification_read(id)
|
|
1203
|
+
> <GetSubscriberNotification200Response> mark_subscriber_notification_read(id)
|
|
1197
1204
|
|
|
1198
1205
|
Mark notification as read
|
|
1199
1206
|
|
|
@@ -1213,7 +1220,8 @@ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
|
1213
1220
|
|
|
1214
1221
|
begin
|
|
1215
1222
|
# Mark notification as read
|
|
1216
|
-
api_instance.mark_subscriber_notification_read(id)
|
|
1223
|
+
result = api_instance.mark_subscriber_notification_read(id)
|
|
1224
|
+
p result
|
|
1217
1225
|
rescue Zyphr::ApiError => e
|
|
1218
1226
|
puts "Error when calling InboxApi->mark_subscriber_notification_read: #{e}"
|
|
1219
1227
|
end
|
|
@@ -1221,9 +1229,9 @@ end
|
|
|
1221
1229
|
|
|
1222
1230
|
#### Using the mark_subscriber_notification_read_with_http_info variant
|
|
1223
1231
|
|
|
1224
|
-
This returns an Array which contains the response data
|
|
1232
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1225
1233
|
|
|
1226
|
-
> <Array(
|
|
1234
|
+
> <Array(<GetSubscriberNotification200Response>, Integer, Hash)> mark_subscriber_notification_read_with_http_info(id)
|
|
1227
1235
|
|
|
1228
1236
|
```ruby
|
|
1229
1237
|
begin
|
|
@@ -1231,7 +1239,7 @@ begin
|
|
|
1231
1239
|
data, status_code, headers = api_instance.mark_subscriber_notification_read_with_http_info(id)
|
|
1232
1240
|
p status_code # => 2xx
|
|
1233
1241
|
p headers # => { ... }
|
|
1234
|
-
p data # =>
|
|
1242
|
+
p data # => <GetSubscriberNotification200Response>
|
|
1235
1243
|
rescue Zyphr::ApiError => e
|
|
1236
1244
|
puts "Error when calling InboxApi->mark_subscriber_notification_read_with_http_info: #{e}"
|
|
1237
1245
|
end
|
|
@@ -1245,7 +1253,7 @@ end
|
|
|
1245
1253
|
|
|
1246
1254
|
### Return type
|
|
1247
1255
|
|
|
1248
|
-
|
|
1256
|
+
[**GetSubscriberNotification200Response**](GetSubscriberNotification200Response.md)
|
|
1249
1257
|
|
|
1250
1258
|
### Authorization
|
|
1251
1259
|
|
|
@@ -1254,7 +1262,7 @@ nil (empty response body)
|
|
|
1254
1262
|
### HTTP request headers
|
|
1255
1263
|
|
|
1256
1264
|
- **Content-Type**: Not defined
|
|
1257
|
-
- **Accept**:
|
|
1265
|
+
- **Accept**: application/json
|
|
1258
1266
|
|
|
1259
1267
|
|
|
1260
1268
|
## send_batch_in_app
|
|
@@ -1401,7 +1409,7 @@ end
|
|
|
1401
1409
|
|
|
1402
1410
|
## update_subscriber_preferences
|
|
1403
1411
|
|
|
1404
|
-
> update_subscriber_preferences(update_subscriber_preferences_request)
|
|
1412
|
+
> <UpdateSubscriberPreferences200Response> update_subscriber_preferences(update_subscriber_preferences_request)
|
|
1405
1413
|
|
|
1406
1414
|
Update subscriber preferences
|
|
1407
1415
|
|
|
@@ -1423,7 +1431,8 @@ update_subscriber_preferences_request = Zyphr::UpdateSubscriberPreferencesReques
|
|
|
1423
1431
|
|
|
1424
1432
|
begin
|
|
1425
1433
|
# Update subscriber preferences
|
|
1426
|
-
api_instance.update_subscriber_preferences(update_subscriber_preferences_request)
|
|
1434
|
+
result = api_instance.update_subscriber_preferences(update_subscriber_preferences_request)
|
|
1435
|
+
p result
|
|
1427
1436
|
rescue Zyphr::ApiError => e
|
|
1428
1437
|
puts "Error when calling InboxApi->update_subscriber_preferences: #{e}"
|
|
1429
1438
|
end
|
|
@@ -1431,9 +1440,9 @@ end
|
|
|
1431
1440
|
|
|
1432
1441
|
#### Using the update_subscriber_preferences_with_http_info variant
|
|
1433
1442
|
|
|
1434
|
-
This returns an Array which contains the response data
|
|
1443
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1435
1444
|
|
|
1436
|
-
> <Array(
|
|
1445
|
+
> <Array(<UpdateSubscriberPreferences200Response>, Integer, Hash)> update_subscriber_preferences_with_http_info(update_subscriber_preferences_request)
|
|
1437
1446
|
|
|
1438
1447
|
```ruby
|
|
1439
1448
|
begin
|
|
@@ -1441,7 +1450,7 @@ begin
|
|
|
1441
1450
|
data, status_code, headers = api_instance.update_subscriber_preferences_with_http_info(update_subscriber_preferences_request)
|
|
1442
1451
|
p status_code # => 2xx
|
|
1443
1452
|
p headers # => { ... }
|
|
1444
|
-
p data # =>
|
|
1453
|
+
p data # => <UpdateSubscriberPreferences200Response>
|
|
1445
1454
|
rescue Zyphr::ApiError => e
|
|
1446
1455
|
puts "Error when calling InboxApi->update_subscriber_preferences_with_http_info: #{e}"
|
|
1447
1456
|
end
|
|
@@ -1455,7 +1464,7 @@ end
|
|
|
1455
1464
|
|
|
1456
1465
|
### Return type
|
|
1457
1466
|
|
|
1458
|
-
|
|
1467
|
+
[**UpdateSubscriberPreferences200Response**](UpdateSubscriberPreferences200Response.md)
|
|
1459
1468
|
|
|
1460
1469
|
### Authorization
|
|
1461
1470
|
|
|
@@ -1464,5 +1473,5 @@ nil (empty response body)
|
|
|
1464
1473
|
### HTTP request headers
|
|
1465
1474
|
|
|
1466
1475
|
- **Content-Type**: application/json
|
|
1467
|
-
- **Accept**:
|
|
1476
|
+
- **Accept**: application/json
|
|
1468
1477
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::InviteEndUser200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**InviteEndUser200ResponseData**](InviteEndUser200ResponseData.md) | | [optional] |
|
|
8
|
+
| **meta** | [**GetDomain200ResponseMeta**](GetDomain200ResponseMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::InviteEndUser200Response.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Zyphr::InviteEndUser200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **user_id** | **String** | | [optional] |
|
|
8
|
+
| **created** | **Boolean** | True when a new user was provisioned; false when an existing user was reused (idempotent on email). | [optional] |
|
|
9
|
+
| **link_sent** | **Boolean** | True when a magic-link or password-reset email was successfully dispatched. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'zyphr'
|
|
15
|
+
|
|
16
|
+
instance = Zyphr::InviteEndUser200ResponseData.new(
|
|
17
|
+
user_id: null,
|
|
18
|
+
created: null,
|
|
19
|
+
link_sent: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::ListEndUsers200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<AuthUser>**](AuthUser.md) | | [optional] |
|
|
8
|
+
| **meta** | [**ListEndUsers200ResponseMeta**](ListEndUsers200ResponseMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::ListEndUsers200Response.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Zyphr::
|
|
1
|
+
# Zyphr::ListEndUsers200ResponseMeta
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
```ruby
|
|
16
16
|
require 'zyphr'
|
|
17
17
|
|
|
18
|
-
instance = Zyphr::
|
|
18
|
+
instance = Zyphr::ListEndUsers200ResponseMeta.new(
|
|
19
19
|
request_id: null,
|
|
20
20
|
page: null,
|
|
21
21
|
per_page: null,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **data** | [**Array<WorkflowExecution>**](WorkflowExecution.md) | | [optional] |
|
|
8
|
-
| **meta** | [**
|
|
8
|
+
| **meta** | [**ListEndUsers200ResponseMeta**](ListEndUsers200ResponseMeta.md) | | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Zyphr::MarkAllSubscriberNotificationsRead200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**MarkAllReadData**](MarkAllReadData.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'zyphr'
|
|
13
|
+
|
|
14
|
+
instance = Zyphr::MarkAllSubscriberNotificationsRead200Response.new(
|
|
15
|
+
data: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::RotateWaaSEndpointSecret200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**RotateWaaSEndpointSecret200ResponseData**](RotateWaaSEndpointSecret200ResponseData.md) | | [optional] |
|
|
8
|
+
| **meta** | [**GetDomain200ResponseMeta**](GetDomain200ResponseMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::RotateWaaSEndpointSecret200Response.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Zyphr::RotateWaaSEndpointSecret200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **secret** | **String** | The newly generated signing secret. Returned only on rotation. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'zyphr'
|
|
13
|
+
|
|
14
|
+
instance = Zyphr::RotateWaaSEndpointSecret200ResponseData.new(
|
|
15
|
+
secret: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::SendTemplateTestEmail202Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**SendTemplateTestEmail202ResponseData**](SendTemplateTestEmail202ResponseData.md) | | |
|
|
8
|
+
| **meta** | [**SendTemplateTestEmail202ResponseMeta**](SendTemplateTestEmail202ResponseMeta.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::SendTemplateTestEmail202Response.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|